예제 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (cbxevent.Text == "یادداشت")
     {
         note nt = new note();
         add.ActiveForm.Hide();
         nt.ShowDialog();
     }
     else if (cbxevent.Text == "برنامه روزانه" || cbxevent.Text == "قرار ملاقات")
     {
         visit vt = new visit();
         add.ActiveForm.Hide();
         vt.ShowDialog();
     }
     else
     {
         MessageBox.Show("لطفا نوع رویداد را مشخص کنید");
         cbxevent.Focus();
     }
 }
예제 #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     visit vs = new visit();
     vs.ShowDialog();
 }