public void OnAddButtonClicked(object sender, RoutedEventArgs args)
        {
            Debug.Assert(!string.IsNullOrEmpty(this.relatedModel));

            var dlg = new Controls.SelectionDialog(this.relatedModel);

            dlg.ShowDialog();
        }
Exemplo n.º 2
0
        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();
        }