public void Hide(Control control) { if (control != null) { EngineToolTipManager.Hide(control); } }
private void timer1_Tick(object sender, EventArgs e) { if (!IsHandleCreated || WinFormsUtility.IsDesignerHosted(this) || EditorAPI.ClosingApplication) { return; } if (!loaded) { return; } //!!!!!slowly? //!!!!!! //if( needSelectResource != null ) //{ // var selectResource = needSelectResource; // needSelectResource = null; // //ContentObjectSettings.Instance.SelectResource( selectResource ); //} //UpdatePagesVisibility(); //!!!!! //!!!!где еще вызывать? if (EngineApp.Instance != null) { EngineApp.DoTick(); } if (EngineApp.GetSystemTime() - lastSlowUpdatingTime > 0.2 && !firstTick) { QATButtonsUpdate(); RibbonUpdate(); UpdateText(); lastSlowUpdatingTime = EngineApp.GetSystemTime(); } //save editor settings EditorSettingsSerialization.Dump(); ScreenNotifications.Update(); if (!needClose) { EditorAPI.SelectedDocumentWindowChangedUpdate(); } if (!needClose) { foreach (var document in EditorAPI.Documents) { document.EditorUpdateWhenDocumentModified_Tick(); } } //if( !needClose ) // PreviewImagesManager.Update(); ////!!!!temp //CheckRestartApplicationToApplyChanged(); if (!needClose) { UpdateSoundSystem(); } //save editor settings if (!needClose) { KryptonAutoHiddenSlidePanel.Animate = ProjectSettings.Get.AnimateWindowsAutoHiding; } //if( !needClose ) // ScriptEditorEngine.Instance.UpdateSettings(); UpdateVisibilityOfFloatingWindows(); if (needClose) { needClose = false; Close(); } //open file at startup if (firstTick && !needClose) { var realFileName = EditorSettingsSerialization.OpenFileAtStartup; EditorSettingsSerialization.OpenFileAtStartup = ""; if (File.Exists(realFileName)) { //select new file in Resources window EditorAPI.SelectFilesOrDirectoriesInMainResourcesWindow(new string[] { realFileName }); //open file EditorAPI.OpenFileAsDocument(realFileName, true, true); } } if (firstTick) { firstTick = false; if (SplashForm.Instance != null) { SplashForm.Instance.AllowClose = true; } // hide cover show ribbon. kryptonRibbon.Visible = true; if (coverControl != null) { Controls.Remove(coverControl); } //coverControl.Visible = false; Invalidate(true); if (EditorSettingsSerialization.ShowTipsAsStartup) { EditorAPI.ShowTips(); } } if (unlockFormUpdateInTimer.HasValue && (DateTime.Now - unlockFormUpdateInTimer.Value).TotalSeconds > 0) { KryptonWinFormsUtility.LockFormUpdate(null); unlockFormUpdateInTimer = null; } if (!needClose) { EngineToolTipManager.Update(); } canSaveConfig = true; }