Пример #1
0
        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
        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 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);
     }
 }
Пример #4
0
 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);
     }
 }