コード例 #1
0
        private void call_edit_cancel_Click(object sender, RoutedEventArgs e)
        {
            callsWindow cw = new callsWindow(this.com, this.use);

            cw.Show();
            this.Close();
        }
コード例 #2
0
        private void callsbtn_Click(object sender, RoutedEventArgs e)
        {
            loadtimeclock.Visibility = Visibility.Visible;
            callsWindow cw = new callsWindow(this.com, this.use);

            cw.Show();
            this.Close();
        }
コード例 #3
0
 private void call_edit_ok_Click(object sender, RoutedEventArgs e)
 {
     if (f.CheckForInternetConnection())
     {
         int    num_of_error = 0;
         string error_list   = "";
         if (openDateTB.Text != "")
         {
             this.ca.date_of_open = openDateTB.Text;
         }
         else
         {
             num_of_error++;
             error_list += "תאריך פתיחה לא יכול להיות ריק";
         }
         if (arrivedateTB.Text != "")
         {
             this.ca.date_of_arrive = arrivedateTB.Text;
         }
         else
         {
             num_of_error++;
             error_list += "תאריך הגעה לא יכול להיות ריק";
         }
         if (emailtb.Text != "")
         {
             this.ca.emailofuser = emailtb.Text;
         }
         else
         {
             num_of_error++;
             error_list += "אימייל לא יכול להיות ריק";
         }
         if (fullnameTB.Text != "")
         {
             this.ca.fullname = fullnameTB.Text;
         }
         else
         {
             num_of_error++;
             error_list += "שם לא יכול להיות ריק";
         }
         if (adressTB.Text != "")
         {
             this.ca.geolocation = adressTB.Text;
         }
         else
         {
             num_of_error++;
             error_list += "כתובת לא יכול להיות ריקה";
         }
         if (num_of_error > 0)
         {
             MessageBox.Show(error_list);
         }
         else
         {
             f.commit_Call(this.ca);
             MessageBox.Show("בוצע בהצלחה!");
             callsWindow cw = new callsWindow(this.com, this.use);
             cw.Show();
             this.Close();
         }
     }
     else
     {
         MessageBox.Show("אין חיבור לאינטרנט");
     }
 }