public void OnAddButtonClicked(object sender, RoutedEventArgs args) { Debug.Assert(!string.IsNullOrEmpty(this.relatedModel)); var dlg = new Controls.SelectionDialog(this.relatedModel); dlg.ShowDialog(); }
public void OnSelectButtonClicked(object sender, RoutedEventArgs args) { Debug.Assert(this.metaField != null); var relatedModel = this.metaField["relation"] as string; Debug.Assert(!string.IsNullOrEmpty(relatedModel)); var dlg = new Controls.SelectionDialog(relatedModel); dlg.RecordsSelected += new EventHandler <Controls.RecordsSelectedEventArgs>(this.OnIDsSelected); dlg.ShowDialog(); }