Esempio n. 1
0
        private void BtnDiary_Click(object sender, EventArgs e)
        {
            Diary dr = new Diary();

            this.Close();
            dr.Show();
        }
Esempio n. 2
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);
            }
        }
Esempio n. 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);
            }
        }
Esempio n. 4
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);
     }
 }
Esempio n. 5
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);
     }
 }
Esempio n. 6
0
 private void BtnDiary_Click(object sender, EventArgs e)
 {
     Diary dr = new Diary();
     this.Close();
     dr.Show();
 }