private void editusertbn_Click(object sender, RoutedEventArgs e) { if (f.CheckForInternetConnection()) { edituser ed = new edituser(); ed.Show(); this.Close(); } else { MessageBox.Show("אין אינטרנט"); } }
private void okbtn_Click(object sender, RoutedEventArgs e) { loader.Content = "טוען.."; if (mooo > 0) { if (f.CheckForInternetConnection()) { string selected = ((ComboBoxItem)generalcb.SelectedItem).Tag.ToString(); if (editforuser == 0) { if (f.removequat(selected) == 0) { edituser ed = new edituser(0); ed.Show(); this.Close(); } else { edituser ed = new edituser(f.set_Company(f.removequat(selected))); ed.Show(); this.Close(); } } if (editforuser == 1 || editforuser == 2) { userbox ed = new userbox(f.retrunuserbyid(f.removequat(selected))); ed.Show(); this.Close(); } } else { MessageBox.Show("אין אינטרנט"); loader.Content = ""; } } else { MessageBox.Show("אין רשומות"); loader.Content = ""; } }