Ejemplo n.º 1
0
        public BCadDialog(BCadControl control)
        {
            InitializeComponent();

            this.Control = control;
            this.Control.SetWindowParent(this);
            this.controlSurface.Content = this.Control;
        }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 3
0
 public BCadDialog(BCadControl <TResult> control)
 {
     this.Control = control;
     this.Content = control;
 }