Пример #1
0
        public BCadDialog(BCadControl control)
        {
            InitializeComponent();

            this.Control = control;
            this.Control.SetWindowParent(this);
            this.controlSurface.Content = this.Control;
        }
Пример #2
0
 private void OK_Click(object sender, RoutedEventArgs e)
 {
     if (this.Control.Validate())
     {
         acceptedResult = true;
         this.Control.Commit();
         this.Control = null;
         this.Close();
         completionAwaiter.SetResult(true);
     }
 }
Пример #3
0
 public BCadDialog(BCadControl <TResult> control)
 {
     this.Control = control;
     this.Content = control;
 }