public ChangeDeviceDialog(SuperUserWindow parent) { parentWindow = parent; InitializeComponent(); FillComboBoxesWithItems(); }
public EditUserDialog(SuperUserWindow parentWindow) { this.parentWindow = parentWindow; applyButton.Content = "Применить"; FillInputFieldsWithUserData(); }
public DeviceHistoryWindow(SuperUserWindow parentWindow) { ParentWindow = parentWindow; _historyNotes = new List <History>(); InitializeComponent(); FillHistoryGridWithItems(); }
public EditDeviceDialog(SuperUserWindow parent) : base(parent) { DisplayDeviceData(); DisplayDeviceCongifuration(); DisableControl(serialNumberBox); try { var lastDeviceNote = History.GetDeviceLastHistoryNote(SelectedDevice); if (lastDeviceNote.Status.Name == "Убрано на склад") { statusBox.IsChecked = true; } } catch (NoSuchDataException) { } }
public AddDeviceDialog(SuperUserWindow parent) : base(parent) { // Picking N/A Corps as a default value in ComboBox for (int i = 0; i < corpsBox.Items.Count; i++) { var currentCorps = corpsBox.Items[i] as Corps; if (currentCorps.Name == "N/A") { corpsBox.SelectedIndex = i; } } // Picking cabinet according to Corps foreach (Cabinet cabinet in Cabinet.GetAll(corpsBox.SelectedItem as Corps)) { cabinetBox.Items.Add(cabinet); } cabinetBox.SelectedIndex = 0; // Hiding statusBox - any device addition means putting it into storage contentLayout.Children.Remove(checkBoxLayout); }
public AddUserDialog(Window parent) { parentWindow = parent as SuperUserWindow; }
public ChangeSertificateDialog(SuperUserWindow parent) { parentWindow = parent; InitializeComponent(); }
public AddSertificateDialog(SuperUserWindow parent) : base(parent) { applyButton.Content = "Добавить"; }
public EditSertificateDialog(SuperUserWindow parent) : base(parent) { applyButton.Content = "Применить"; FillInputFieldsWithSertificatesData(); }