Exemple #1
0
        private void ListBoxItemOnLoaded(object sender, RoutedEventArgs e)
        {
            if (_dataItemNeedShowEditor == null)
            {
                return;
            }

            var source = sender as FrameworkElement;

            if (source == null || source.DataContext != _dataItemNeedShowEditor)
            {
                return;
            }

            var item = Helpers.FindVisualParent <ListBoxItem>(source);

            if (item == null)
            {
                return;
            }

            _dataItemNeedShowEditor = null;

            item.Focus();

            ShowItemDropDown(item);
        }
Exemple #2
0
        private void bntAdvanced_Click(object sender, RoutedEventArgs e)
        {
            var form = new MetadataFilterForm(MetadataFilter)
            {
                Owner = Helpers.FindVisualParent <Window>(this)
            };

            form.FilterControl.ShowServer   = ShowServer;
            form.FilterControl.ShowDatabase = ShowDatabase;
            form.FilterControl.ShowSchema   = ShowSchema;
            form.FilterControl.ShowPackage  = ShowPackage;

            form.FilterControl.DatabaseList = DatabaseList;
            form.FilterControl.SchemaList   = SchemaList;

            form.ShowDialog();
        }