Esempio n. 1
0
        private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DlgSettings dlg = new DlgSettings(AppSettings);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                AppSettingsDirty = true;
                UpdateTitleBar();
                ((IInstrument)Tm.TestClass).CloseConnection();
                Type t = Type.GetType(AppSettings.TestClass);
                Tm.TestClass = Activator.CreateInstance(t);
            }
        }
Esempio n. 2
0
        private void OnSettings()
        {
            DlgSettings dlg = null;

            try {
                dlg = new DlgSettings( this, this.agendaSystem );
                dlg.Run();

                this.UpdateCategories();

                if ( dlg.CategoryRemoved ) {
                    this.SetCategoryAsFilter( null );
                    this.UpdatePersons();
                }

                dlg.Destroy();
            }
            catch(Exception exc) {
                Util.MsgInfo( this, AppInfo.Name, exc.Message );
            }
            finally {
                if ( dlg != null ) {
                    dlg.Destroy();
                }
            }
        }
Esempio n. 3
0
 static void Postfix(DlgSettings __instance, ref UICLabel ___lbVersion)
 {
     ___lbVersion.text = DlgSettings.Version.Ver + " patch by Wing";
 }