using System;
///*************************************************************************/
///*
///* 文件名 :IMdiForm.cs
///* 程序说明 : MDI主窗体接口
///* 原创作者 :孙中吕
///*
///* Copyright 2006-2021 C/S框架网 www.csframework.com
///*
///**************************************************************************/
using System.Collections;
using System.Windows.Forms;
namespace CSFrameworkV5.Core
{
///
/// MDI主窗体接口
///
public interface IMdiForm
{
///
///主窗体的工具栏
///
IToolbarRegister MdiToolbar { get; set; }
///
/// 主窗体的观察者
///
IObserver[] MdiObservers { get; }
///
/// 注册主窗体工具栏的按钮
///
void RegisterMdiButtons();
///
/// 主窗体上的按钮集合
///
IList MdiButtons { get; }
///
/// 所有模块主菜单的集合
///
MenuStrip MainMenu { get; }
///
/// 显示模块的主窗体
///
//void ShowModuleContainerForm(string moduleDisplayName);
///
/// 激活当前模块窗体
///
///
void ActiveModule(string moduleDisplayName, string moduleMainMenu);
///
/// 打开某个模块的窗体
///
/// 窗体的名字空间
/// 窗体关联的菜单名
/// 传入参数
Form OpenModuleForm(string formFullName, string associatedMenuName,
object param);
///
/// 打开某个模块的窗体
///
/// 命令对象
///
Form OpenModuleForm(object quickCommand);
///
/// 获取框架全局的对象类型(包括所有DLL模块的对象类型)
///
///
///
Type GetGlobalType(string objNamespace);
///
/// 获得指定窗体的button控件----根据按钮名称
///
Control GetModuleMainFormButtonByBtnName(string formFullName,
string btnName);
///
/// 获得指定窗体的button控件----根据菜单名称
///
Control GetModuleMainFormButtonByMenuName(string formFullName,
string menuName);
///
/// 获得指定窗体的button控件名称----根据菜单名
///
string GetModuleMainFormButtonNameByMenuName(string formFullName,
string menuName);
///
/// 更新模块按钮排版
///
///
void UpdateModuleButtonLocal(string formFullName);
///
/// 获取ToolBar的按钮组件
///
/// 按钮名称
///
object GetToolBarButton(string buttonName);
///
/// 删除模块功能(主菜单和导航菜单)
///
/// 菜单名称
///
bool RemoveFunction(string menuName);
}
}