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); } }
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(); } } }
static void Postfix(DlgSettings __instance, ref UICLabel ___lbVersion) { ___lbVersion.text = DlgSettings.Version.Ver + " patch by Wing"; }