/// <summary> /// set the valuation date... /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MainForm_Load(object sender, EventArgs e) { SetupSourceFormatting(); SetValuationDate(Utilities.GetDefaultValuationDate()); AddControls(); string ver = Application.ProductVersion.Substring(0, Application.ProductVersion.LastIndexOf(".")); Maple.Logon logon = new Logon(Application.ProductName, ver, false); logon.SetSplash("Loading..."); logon.Wait(2000); this.Text = "OTC Option Price Valuation Manager v" + ver; logon.Close(); }
private void Form1_Load(object sender, EventArgs e) { string ver = Application.ProductVersion.Substring(0, Application.ProductVersion.LastIndexOf(".")); Maple.Logon logon = new Logon(Application.ProductName, ver, false); logon.SetSplash("Loading..."); logon.Wait(2000); this.Text = Application.ProductName + " v" + ver; formTimer.Interval = 1000; formTimer.Tick += new EventHandler(formTimer_Tick); formTimer.Enabled = true; ShowlogCheckbox.Checked = Settings.Default.ShowLog; if (!ShowlogCheckbox.Checked) { richTextBox1.Text = "Log display is turned off."; } logon.Close(); }