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 button4_Click(object sender, EventArgs e) { viewVisitHistory vh = new viewVisitHistory(); visit.ActiveForm.Hide(); vh.ShowDialog(); }
private void button3_Click(object sender, EventArgs e) { viewVisitHistory vvh = new viewVisitHistory(); vvh.ShowDialog(); }