public FrmMain() { var aboutBox = new FrmAbout(); aboutBox.ShowDialog(); InitializeComponent(); this.Text = aboutBox.AssemblyTitle; MainTitle.Text = aboutBox.AssemblyTitle; #region Control Change Events this.txtTargetVolume.TextChanged += new EventHandler(Config_Changed); this.txtWordListPath.TextChanged += new EventHandler(Config_Changed); this.txtWordListOffset.TextChanged += new EventHandler(Config_Changed); this.chkIsSystemVol.CheckedChanged += new EventHandler(Config_Changed); this.chkHiddenVolume.CheckedChanged += new EventHandler(Config_Changed); this.chkKeyfiles.CheckedChanged += new EventHandler(chkKeyfiles_CheckedChanged); this.cboThreads.TextChanged += new EventHandler(Config_Changed); this.showPasswordCheckBox.CheckedChanged += new EventHandler(Config_Changed); #endregion #region Validate UserInput this.cboThreads.Validating += new CancelEventHandler(cboThreads_Validating); this.txtWordListOffset.Validating += new CancelEventHandler(txtWordListOffset_Validating); #endregion FindAndSetThreadCnt(); }
public FrmMain() { var aboutBox = new FrmAbout(); aboutBox.ShowDialog(); InitializeComponent(); this.Text = aboutBox.AssemblyTitle; MainTitle.Text = aboutBox.AssemblyTitle; #region Control Change Events this.txtTargetVolume.TextChanged += new EventHandler(Config_Changed); this.txtWordListPath.TextChanged += new EventHandler(Config_Changed); this.txtWordListOffset.TextChanged += new EventHandler(Config_Changed); this.chkIsSystemVol.CheckedChanged += new EventHandler(Config_Changed); this.chkHiddenVolume.CheckedChanged += new EventHandler(Config_Changed); this.chkKeyfiles.CheckedChanged += new EventHandler(chkKeyfiles_CheckedChanged); this.cboThreads.TextChanged += new EventHandler(Config_Changed); this.showPasswordCheckBox.CheckedChanged += new EventHandler(Config_Changed); #endregion #region Validate UserInput this.cboThreads.Validating +=new CancelEventHandler(cboThreads_Validating); this.txtWordListOffset.Validating +=new CancelEventHandler(txtWordListOffset_Validating); #endregion FindAndSetThreadCnt(); }