예제 #1
0
 public Form1()
 {
     InitializeComponent();
     currentexcuse = new Excuse();
     if (currentexcuse != null)
     {
         currentexcuse.LastUsed = lastUsed.Value;
     }
 }
예제 #2
0
 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);
         }
     }
 }
예제 #3
0
 private void Button3_Click(object sender, EventArgs e)
 {
     currentexcuse = new Excuse(rand, Folder);
     UpdateForm(false);
 }