public MDIMainForm() { Default = this; this.DialogResult = DialogResult.Cancel; InitializeComponent(); UIActionDispatcher = new UIActionDispatcher(this); SetStatusText(Message_Status_Ready); }
public override void OnRunning() { Application.ThreadException += Application_ThreadException; if (SkinName.IsNotNullOrEmpty()) { DevExpress.LookAndFeel.UserLookAndFeel.Default.UseDefaultLookAndFeel = false; DevExpress.LookAndFeel.UserLookAndFeel.Default.UseWindowsXPTheme = false; DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName = SkinName; DevExpress.Skins.SkinManager.EnableFormSkins(); } if (!Login()) { return; } MainForm = new MDIMainForm(); MVCPublic.MainForm = MainForm; MainForm.Initialize(this); Application.Run(MainForm); }