///////////////////////////////////////// //internal class CoverControl : Control //{ // Label label; // public CoverControl() // { // label = new Label() { Dock = DockStyle.Fill, TextAlign = ContentAlignment.MiddleCenter }; // Controls.Add( label ); // BackColor = Color.Black; // Dock = DockStyle.Fill; // } // public void UpdateText( string text ) // { // label.Text = text; // Application.DoEvents(); // } //} ///////////////////////////////////////// public EditorForm() { instance = this; //get CustomWindowsStyle project settings var customWindowsStyle = ProjectSettings.ReadParameterFromFile("CustomWindowsStyle"); if (!string.IsNullOrEmpty(customWindowsStyle)) { try { KryptonToolkitSettings.AllowFormChrome = (bool)SimpleTypes.ParseValue(typeof(bool), customWindowsStyle); } catch { } } AllowFormChrome = KryptonToolkitSettings.AllowFormChrome; //if( /*showSplashScreenAtStartup &&*/ !Debugger.IsAttached ) //{ // //Image image = MapEditor.Properties.Resources.MapEditorSplash; // var splashForm = new SplashForm();// image ); // splashForm.Show(); //} InitializeComponent(); if (WinFormsUtility.IsDesignerHosted(this)) { return; } ////!!!!new //buttonQATFormIntegration.Enabled = DWM.IsCompositionEnabled && AllowFormChrome; //allowFormChromeButton.Enabled = KryptonManager.AllowFormChrome; workspaceController = new WorkspaceControllerForForm(kryptonPanel, this); //EnableLocalization(); EditorAssemblyInterface.Instance.InitializeWPFApplicationAndScriptEditor(); //InitializeWPFApplication(); //InitializeScriptEditor(); //!!!!!тут? //QATButtonsInit(); //apply editor settings EditorSettingsSerialization.Init(); EditorFavorites.Init(); }
///////////////////////////////////////// //internal class CoverControl : Control //{ // Label label; // public CoverControl() // { // label = new Label() { Dock = DockStyle.Fill, TextAlign = ContentAlignment.MiddleCenter }; // Controls.Add( label ); // BackColor = Color.Black; // Dock = DockStyle.Fill; // } // public void UpdateText( string text ) // { // label.Text = text; // Application.DoEvents(); // } //} ///////////////////////////////////////// public EditorForm() { instance = this; //if( /*showSplashScreenAtStartup &&*/ !Debugger.IsAttached ) //{ // //Image image = MapEditor.Properties.Resources.MapEditorSplash; // var splashForm = new SplashForm();// image ); // splashForm.Show(); //} InitializeComponent(); if (EditorUtility.IsDesignerHosted(this)) { return; } ////!!!!new //buttonQATFormIntegration.Enabled = DWM.IsCompositionEnabled && AllowFormChrome; //allowFormChromeButton.Enabled = KryptonManager.AllowFormChrome; workspaceController = new WorkspaceControllerForForm(kryptonPanel, this); EnableLocalization(); EditorAssemblyInterface.Instance.InitializeWPFApplicationAndScriptEditor(); //InitializeWPFApplication(); //InitializeScriptEditor(); //!!!!!тут? //QATButtonsInit(); //apply editor settings EditorSettingsSerialization.Init(); EditorFavorites.Init(); }