Пример #1
0
        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();
        }
Пример #2
0
        private void ActivateSelectedItem()
        {
            DeviceTypeForm.Operation  = Controls.FormOperation.Edit;
            DeviceTypeForm.DeviceType = (Model.DeviceType)DeviceTypeList.SelectedItem;

            DeviceTypeForm.Visibility = Visibility.Visible;
            DeviceTypeForm.SetInitialFocus();

            RemoveDeviceTypeButton.IsEnabled = true;
        }