Example #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            #region " Rev Detail Grid "

            xRevisionDetail.CanUserAddRows      = false;
            xRevisionDetail.CanUserDeleteRows   = false;
            xRevisionDetail.CanUserResizeRows   = false;
            xRevisionDetail.HeadersVisibility   = DataGridHeadersVisibility.All;
            xRevisionDetail.SelectionMode       = DataGridSelectionMode.Extended;
            xRevisionDetail.AutoGenerateColumns = false;
            xRevisionDetail.Columns.Add(new DataGridTextColumn
            {
                Header     = "Action",
                Binding    = new Binding("Action"),
                Width      = new DataGridLength(1, DataGridLengthUnitType.Star),
                IsReadOnly = true
            });
            xRevisionDetail.Columns.Add(new DataGridTextColumn()
            {
                Header     = "ObjectType",
                Binding    = new Binding("ObjectType"),
                Width      = new DataGridLength(1, DataGridLengthUnitType.Star),
                IsReadOnly = true
            });

            #endregion

            xRevisionList.SelectionChanged   += XRevisions_SelectionChanged;
            xRevisionDetail.SelectionChanged += XRevisionDetail_SelectionChanged;
            xQueryType.ItemsSource            = Enum.GetNames(typeof(NoDbConnectionType));
            xQueryType.SelectedItem           = _noDbConnectionType.ToString();

            Init();
        }
Example #2
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     xTables.ItemsSource     = _noDbService.TableService.Tables.Where(x => !x.Detail.Ignored).ToList();
     xQueryType.ItemsSource  = Enum.GetNames(typeof(NoDbConnectionType));
     xQueryType.SelectedItem = _noDbConnectionType.ToString();
     xQuery.Document         = new FlowDocument();
 }