示例#1
0
文件: Diary.cs 项目: monil286/MAsst
 private void BtnBack1_Click_1(object sender, EventArgs e)
 {
     Diary d = new Diary();
     try
     {
         this.Dispose();
         this.Close();
         d.Show();
         d.Diary_Load(null, null);
     }
     catch(Exception er)
     {
         MessageBox.Show(er.Message);
     }
 }
示例#2
0
文件: Diary.cs 项目: monil286/MAsst
 private void BtnDel_Click(object sender, EventArgs e)
 {
     String fileName = Directory.GetCurrentDirectory() + "\\Diary-" + LstBxDiaryEntry.SelectedItem.ToString() + ".txt";
     File.Delete(fileName);
     Diary d = new Diary();
     try
     {
         this.Dispose();
         this.Close();
         d.Show();
         d.Diary_Load(null, null);
     }
     catch(Exception er)
     {
         MessageBox.Show(er.Message);
     }
 }
示例#3
0
 private void BtnDiary_Click(object sender, EventArgs e)
 {
     Diary dr = new Diary();
     this.Close();
     dr.Show();
 }