Пример #1
0
 protected override void OnAppearing()
 {
     base.OnAppearing();
     options = (MReviewOptions)BindingContext;
     options.CopyProperties(optionsEdit);
     BindingContext = optionsEdit;
 }
Пример #2
0
 public ReviewOptionsDlg(Window owner, MReviewOptions options)
 {
     InitializeComponent();
     SourceInitialized += (x, y) => this.HideMinimizeAndMaximizeButtons();
     Owner              = owner;
     this.options       = options;
     options.CopyProperties(optionsEdit);
     DataContext = optionsEdit;
 }
Пример #3
0
 void OnSave(object sender, EventArgs e)
 {
     optionsEdit.CopyProperties(options);
     Navigation.PopModalAsync();
     OnOK?.Invoke(this, EventArgs.Empty);
 }
Пример #4
0
 void btnOK_Click(object sender, RoutedEventArgs e)
 {
     optionsEdit.CopyProperties(options);
     DialogResult = true;
 }