public Form1() { InitializeComponent(); currentexcuse = new Excuse(); if (currentexcuse != null) { currentexcuse.LastUsed = lastUsed.Value; } }
private void Button4_Click(object sender, EventArgs e) { if (CheckChanged()) { openFileDialog1.InitialDirectory = Folder; openFileDialog1.Filter = "Text files (*.txt)|*.txt|All files (*.*)|*.*"; //openFileDialog1.FileName = description.Text + ".txt"; if (openFileDialog1.ShowDialog() == DialogResult.OK) { currentexcuse = new Excuse(openFileDialog1.FileName); UpdateForm(false); } } }
private void Button3_Click(object sender, EventArgs e) { currentexcuse = new Excuse(rand, Folder); UpdateForm(false); }