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