private void notificationToolStripMenuItem1_Click(object sender, EventArgs e) { if (!(this.ParentForm is ViewNotification)) { this.ParentForm.Hide(); ViewNotification form = new ViewNotification(); form.ShowDialog(); this.ParentForm.Close(); } }
private void picViewListDiary_Click(object sender, EventArgs e) { try { this.Hide(); ViewNotification newForm = new ViewNotification(adopter); newForm.ShowDialog(); this.Show(); } catch (Exception) { // ignored } }