public ShowDevices() { InitializeComponent(); _indeterminateLoading = new LoadingControl { Margin = new Thickness(40, 40, 0, 0) }; _errorMessage = new ErrorControl { Margin = new Thickness(40, 40, 0, 0) }; DataContext = new ShowDevicesPresenter(this); }
public AddNewUser() { InitializeComponent(); _indeterminateLoading = new LoadingControl(); _errorMessage = new ErrorControl(); DataContext = new AddNewUserPresenter(this); }
public AuthorizeDevice(Device authPendingDevice) { InitializeComponent(); _indeterminateLoading = new LoadingControl(); _errorMessage = new ErrorControl(); _errorMessage.BtnOk.Click += (s, e) => { Transitioning.Content = null; }; DataContext = new AuthorizeDevicePresenter(this, authPendingDevice); Loaded += (s, e) => { ValidationErrorsAssistant.ClearErrors(AuthPanel); }; }
public AddNewUserGroup() { InitializeComponent(); _indeterminateLoading = new LoadingControl(); _errorMessage = new ErrorControl(); var presenter = new AddNewUserGroupPresenter(this); UserSelector.ItemFilter += presenter.FilterUsers; DataContext = presenter; }
public ShowApplications() { InitializeComponent(); _indeterminateLoading = new LoadingControl(); _indeterminateLoading.Margin = new Thickness(40, 40, 0, 0); _errorMessage = new ErrorControl(); _errorMessage.Margin = new Thickness(40, 40, 0, 0); DataContext = new ShowApplicationsPresenter(this); }
public AddNewApplication() { InitializeComponent(); _indeterminateLoading = new LoadingControl { Orientation = Orientation.Vertical }; _errorMessage = new ErrorControl(); _progressLoading = new ProgressLoading(); DataContext = new AddNewApplicationPresenter(this); var binding = new Binding("UploadProgressPercentage"); binding.Source = DataContext; BindingOperations.SetBinding(_progressLoading.ProgressBarLoading, ProgressBar.ValueProperty, binding); }
public AddRule(Policy policy, Rule rule = null) { InitializeComponent(); TxtValue.CurrentHighlighter = HighlighterManager.Instance.Highlighters["RuleSyntax"]; TxtException.CurrentHighlighter = HighlighterManager.Instance.Highlighters["RuleSyntax"]; var presenter = new AddRulePresenter(this, policy, rule); EntitySelector.ItemFilter += presenter.FilterEntities; DataContext = presenter; InitializeErrorMessage(); _loadingControl = new LoadingControl { Orientation = Orientation.Vertical }; Loaded += (s, e) => { ValidationErrorsAssistant.ClearErrors(RootPanel); }; }
public LoginDialogWindow() { InitializeComponent(); DataContext = new LoginPresenter(this); _indeterminateLoading = new LoadingControl(); _indeterminateLoading.Margin = new Thickness(0, 20, 0, 0); _errorMessage = new ErrorControl(); var varRes = new ValidationResult(true, null); _errorMessage.BtnOk.Click += BtnOk_Click; Loaded += (s, e) => { ClearErrors(); }; Closed += (s, e) => { if (!_manualClosing && LoginCanceled != null) LoginCanceled(s, e); }; }