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