private void btnReview_Click(object sender, EventArgs e) { if (cbxevent.Text == "یادداشت") { viewNoteHistory vnh = new viewNoteHistory(); add.ActiveForm.Hide(); vnh.ShowDialog(); } else if (cbxevent.Text == "برنامه روزانه" || cbxevent.Text == "قرار ملاقات") { viewVisitHistory vvh = new viewVisitHistory(); add.ActiveForm.Hide(); vvh.ShowDialog(); } else { MessageBox.Show("لطفا نوع رویداد را مشخص کنید"); cbxevent.Focus(); } }
private void button2_Click_1(object sender, EventArgs e) { viewNoteHistory vn = new viewNoteHistory(); this.Hide(); vn.Show(); }