/// <summary> /// 切换Tab的时候,必须切换当前对象 /// </summary> public frmMain() { InitializeComponent(); GetSystemIcon.InitMainTreeImage(); GetSystemIcon.InitTabViewImage(); trvsrvlst.ImageList = GetSystemIcon.MainTreeImage; tabView.ImageList = GetSystemIcon.TabViewImage; SetMenuImage(); GuiConfig.Translateform(this); if (!GuiConfig.IsUseDefaultLanguage) { //其他控件 statusStripMain.Items[0].Text = GuiConfig.GetText("MainStatusBarTextReady"); } //Init ToolBar InitToolBar(); Text += " " + SystemManager.Version; Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); if (SystemManager.MonoMode) { Text += " MONO"; } //获得数据对象方法的注入 GetInject(); }
/// <summary> /// 切换Tab的时候,必须切换当前对象 /// </summary> public FrmMain() { InitializeComponent(); GetSystemIcon.InitMainTreeImage(); GetSystemIcon.InitTabViewImage(); trvsrvlst.ImageList = GetSystemIcon.MainTreeImage; tabView.ImageList = GetSystemIcon.TabViewImage; SetMenuImage(); GuiConfig.Translateform(this); if (!GuiConfig.IsUseDefaultLanguage) { //其他控件 statusStripMain.Items[0].Text = GuiConfig.GetText(TextType.MainStatusBarTextReady); } //Init ToolBar InitToolBar(); Text += " " + SystemManager.Version; Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); if (SystemManager.MonoMode) { Text += " MONO"; } //新建文档的文档获得方法注入 CtlDocumentView._getDocument = () => { var frmInsertDoc = new FrmNewDocument(); Utility.OpenForm(frmInsertDoc, false, true); return(frmInsertDoc.MBsonDocument); }; }
public frmMain() { InitializeComponent(); GetSystemIcon.InitMainTreeImage(); GetSystemIcon.InitTabViewImage(); if (!SystemManager.DEBUG_MODE) { //非Debug模式的时候,UT菜单不可使用 toolStripMenuItem12.Visible = false; } this.Text += " " + SystemManager.Version; this.Icon = System.Drawing.Icon.ExtractAssociatedIcon(Application.ExecutablePath); if (SystemManager.MONO_MODE) { this.Text += " MONO"; } //长时间操作时候,实时提示进度在状态栏中 SystemManager.ActionDone += new EventHandler <ActionDoneEventArgs>( (x, y) => { //1.lblAction 没有InvokeRequired //2.DoEvents必须 lblAction.Text = y.Message; Application.DoEvents(); } ); }
private static void Main() { GetSystemIcon.InitMainTreeImage(); Application.Run(new frmConsole()); }
private static void Main() { SystemManager.ConfigHelperInstance = ConfigHelper.LoadFromConfigFile(ConfigHelper._configFilename); GetSystemIcon.InitMainTreeImage(); Application.Run(new Console()); }