private void okbtn_Click(object sender, RoutedEventArgs e)
 {
     if (this.mono > 0)
     {
         if (f.CheckForInternetConnection())
         {
             if (selectservicecb.SelectedItem == null)
             {
                 MessageBox.Show("אנא בחר מהרישמה");
             }
             else
             {
                 string     selected    = ((ComboBoxItem)selectservicecb.SelectedItem).Tag.ToString();
                 int        selecttonum = f.removequat(selected);
                 service    se          = f.return_service_by_id(selecttonum);
                 serviceBox sb          = new serviceBox(this.com, this.use, se);
                 sb.Show();
                 this.Close();
             }
         }
         else
         {
             MessageBox.Show("אין חיבור לאינטרנט");
         }
     }
     else
     {
         MessageBox.Show("אין רשומות");
     }
 }
Пример #2
0
        private void addservicebtn_Click(object sender, RoutedEventArgs e)
        {
            loadtimeclock.Visibility = Visibility.Visible;
            serviceBox sb = new serviceBox(this.com, this.use);

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