Example #1
0
        private void kryptonNavigator1_TabClicked(object sender, ComponentFactory.Krypton.Navigator.KryptonPageEventArgs e)
        {
            //if( e.Item == kryptonPageSettings )
            //{
            //	Hide();
            //	EditorAPI.ShowProjectSettings();
            //	return;
            //}

            if (e.Item == kryptonPageBuild)
            {
                if (packagingNeedInit)
                {
                    PackagingInit();
                }
                return;
            }

            if (e.Item == kryptonPageExit)
            {
                if (EditorMessageBox.ShowQuestion(Translate("Exit the editor?"), EMessageBoxButtons.OKCancel) == EDialogResult.OK)
                {
                    EditorForm.Instance.Close();
                }
                return;
            }
        }
Example #2
0
 private void tabEmployees_TabClicked(object sender, ComponentFactory.Krypton.Navigator.KryptonPageEventArgs e)
 {
     this.SelectedTAB = (DB_FORM_IDs)((KryptonNavigator)sender).Pages[e.Index].Tag;
     this.RefreshTabPage();
 }