Ejemplo n.º 1
0
        void RunDBGenerator(string demoString)
        {
            WindowDatabaseGenerator windowDBGenerator = new WindowDatabaseGenerator(this, demoString);
            bool?cancelInitialization = windowDBGenerator.ShowDialog();

            if (cancelInitialization == false && radioTableDataSource.IsChecked.Value)
            {
                DisableControls();
                isDataBaseGeneratorRunned = true;
                Initialize(InitializerDataSource.TableDataSource);
            }
        }
Ejemplo n.º 2
0
        void RunDBGenerator(DemoState nextState)
        {
            WindowDatabaseGenerator windowDBGenerator = new WindowDatabaseGenerator(this, State.DBGeneratorString);

            if (windowDBGenerator.ShowDialog() == true)
            {
                if (State == nextState)
                {
                    pivotGrid.ReloadDataAsync();
                }
                else
                {
                    State = nextState;
                }
            }
        }