Example #1
0
 private void buttonRandom_Click(object sender, EventArgs e)
 {
     if (CheckChanged())
     {
         currentExcuse = new Excuse(random, selectedFolder);
         UpdateForm(false);
     }
 }
Example #2
0
 private void buttonOpen_Click(object sender, EventArgs e)
 {
     if (CheckChanged())
     {
         openFileDialog1.InitialDirectory = selectedFolder;
         openFileDialog1.Filter           = "Text files (*.txt)|*.txt|All files (*.*)|*.*";
         openFileDialog1.FileName         = textBox1.Text + ".txt";
         DialogResult result = openFileDialog1.ShowDialog();
         if (result == DialogResult.OK)
         {
             currentExcuse = new Excuse(openFileDialog1.FileName);
             UpdateForm(false);
         }
     }
 }