private void randomButton_Click(object sender, EventArgs e) { if (CheckChanged()) { currentExcuse = new Excuse(random, selectedFolder); UpdateForm(false); } }
private void openButton_Click(object sender, EventArgs e) { if (CheckChanged()) { openFileDialog1.InitialDirectory = selectedFolder; DialogResult result = openFileDialog1.ShowDialog(); if (result == DialogResult.OK) { currentExcuse = new Excuse(openFileDialog1.FileName); UpdateForm(false); } dateLabel.Text = lastUsed.Value.ToString(); } }