Beispiel #1
0
        private void cancelbtn_Click(object sender, RoutedEventArgs e)
        {
            editCallWindow ecw = new editCallWindow(this.com, this.use, this.cll);

            ecw.Show();
            this.Close();
        }
Beispiel #2
0
 private void okbtn_Click(object sender, RoutedEventArgs e)
 {
     if (f.CheckForInternetConnection())
     {
         string selected = ((ComboBoxItem)generalcb.SelectedItem).Tag.ToString();
         if (selected.ToString() != "")
         {
             this.cll.techid = f.return_employee_by_id(f.removequat(selected));
             string   mystringCorrect = f.getapitodelmanuel(this.cll.call_id + "", f.removequat(selected) + "");
             string[] strArr          = null;
             char[]   splitchar       = { ':' };
             strArr    = mystringCorrect.Split(splitchar);
             strArr[2] = strArr[2].Replace("}", "");
             string thedate = strArr[1] + ":" + strArr[2];
             this.cll.date_of_arrive = thedate;
             MessageBox.Show("בוצע בהצלחה");
             editCallWindow ecw = new editCallWindow(this.com, this.use, this.cll);
             ecw.Show();
             this.Close();
         }
     }
     else
     {
         MessageBox.Show("אין גישה לרשת");
     }
 }
        private void EditCall(object sender, RoutedEventArgs e)
        {
            loadtimeclock.Visibility = Visibility.Visible;
            Button         clicked = (Button)sender;
            int            num     = f.removequat(clicked.Tag.ToString());
            editCallWindow ecw     = new editCallWindow(this.com, this.use, f.set_call_by_id(num));

            ecw.Show();
            this.Close();
        }