private void BioSeqUI_Shown(object sender, EventArgs e) { Visible = false; cmbUser.SelectedIndexChanged -= cmbUser_SelectedIndexChanged; cmbUser.Text = AppConfigHelper.LastUser; Initialize(); //AppConfigHelper.StartTimer(); Cursor.Current = Cursors.Default; if (Size.Width != 0) { Location = AppConfigHelper.UILocation(); if (Location.X <= 0) { Location = new Point(100, 100); } Size = AppConfigHelper.UISize(); if (Size.Height <= 0 || Size.Width <= 0) { Size = new Size(3000, 1500); } } cmbUser.SelectedIndexChanged += cmbUser_SelectedIndexChanged; Splasher.Close(); Visible = true; }
private void Initialize() { try { Cursor.Current = Cursors.WaitCursor; PopulateDBDropdownAndSelect(); PopulateUserDropdownAndSelect(); Cursor.Current = Cursors.Default; chkDetailSamples.CheckedChanged -= chkDetailSamples_CheckedChanged; chkDetailSamples.Checked = AppConfigHelper.ShowDetail; chkDetailSamples.CheckedChanged += chkDetailSamples_CheckedChanged; cmbUser.Text = AppConfigHelper.LastUser; txtDB.Text = AppConfigHelper.CurrentDBName(); txtStandardReference.Text = AppConfigHelper.BuildTreeDomesticReference; txtPath.Text = AppConfigHelper.CurrentDBPath(); } catch (Exception ex) { Splasher.Close(); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK); throw ex; } }
public BioSeqUI() { InitializeComponent(); Visible = false; Splasher.Show(typeof(BioSeqSplash)); // Uncomment! cmbAnalysis.SelectedIndex = 0; }