private void Button_Click_Ok(object sender, RoutedEventArgs e) { if (tbuName.Text == "" || tbStaticDescription.Text == "") { MessageBox.Show("Niste popunili sva polja!", "Upozorenje!", MessageBoxButton.OK, MessageBoxImage.Warning); } else { se.control.UpdateStaticEquipment(int.Parse(lbuIDStaticEq.Content.ToString()), tbStaticDescription.Text, tbuName.Text); se.LoadEqupiment(); this.Close(); } }
private void Button_Click_Ok(object sender, RoutedEventArgs e) { if (dpRelocation.Text == "" || cbuRoomStatic.Text == "") { MessageBox.Show("Niste popunili sva polja!", "Upozorenje!", MessageBoxButton.OK, MessageBoxImage.Warning); } else { se.control.ChangeRoom(int.Parse(lbuIDStaticEq.Content.ToString()), int.Parse(cbuRoomStatic.Text)); se.LoadEqupiment(); this.Close(); } }
private void Button_Click_Ok(object sender, RoutedEventArgs e) { if (tbName.Text == "" || tbStaticDescription.Text == "" || cbRoomStatic.Text == "") { MessageBox.Show("Niste popunili sva polja!", "Upozorenje!", MessageBoxButton.OK, MessageBoxImage.Warning); } else { se.control.CreateStaticEquipment(int.Parse(lbIDStaticEq.Content.ToString()), tbStaticDescription.Text, int.Parse(cbRoomStatic.Text), tbName.Text); se.LoadEqupiment(); this.Close(); MessageBox.Show("Uspešno ste kreirali statičku opremu!", "Uspešno!", MessageBoxButton.OK, MessageBoxImage.Information); } }