private void AddDeviceTypeButton_Tapped(object sender, Windows.UI.Xaml.Input.TappedRoutedEventArgs e) { DeviceTypeForm.Operation = Controls.FormOperation.Add; DeviceTypeForm.DeviceType = null; DeviceTypeForm.ClearForm(); DeviceTypeForm.Visibility = Visibility.Visible; DeviceTypeForm.SetInitialFocus(); }
private void ActivateSelectedItem() { DeviceTypeForm.Operation = Controls.FormOperation.Edit; DeviceTypeForm.DeviceType = (Model.DeviceType)DeviceTypeList.SelectedItem; DeviceTypeForm.Visibility = Visibility.Visible; DeviceTypeForm.SetInitialFocus(); RemoveDeviceTypeButton.IsEnabled = true; }