예제 #1
0
 private void randomButton_Click(object sender, EventArgs e)
 {
     if (CheckChanged())
     {
         currentExcuse = new Excuse(random, selectedFolder);
         UpdateForm(false);
     }
 }
예제 #2
0
 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();
     }
 }