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