Beispiel #1
0
        private void ShowConnectionWizard(string windowTitle)
        {
            DataContext = linqDataContext = null;
            SQLConnectionWindow window = new SQLConnectionWindow(windowTitle)
            {
                Description = ServerModeOptions.GetGridDescription()
            };

            if (Application.Current != null)
            {
                window.Owner = Application.Current.MainWindow;
            }
            window.ShowDialog();
            ServerModeOptions.SQLConnectionString = window.GetDataBaseConnectionString();
        }
        void ShowConnectionWizard(string demoString)
        {
            if (DevExpress.Xpf.DemoBase.DemoTesting.DemoTestingHelper.IsTesting)
            {
                return;
            }
            SQLConnectionWindow window = new SQLConnectionWindow("Return", new PeopleGeneratorProvider())
            {
                Description = ServerModeOptions.GetLookUpDescription()
            };

            if (System.Windows.Application.Current != null)
            {
                window.Owner = System.Windows.Application.Current.MainWindow;
            }
            window.ShowDialog();
            ServerModeOptions.SQLConnectionString = window.GetDataBaseConnectionString();
        }
 public override ServerModeRecordsGeneratorBase Create(SQLConnectionWindow parentWindow, bool clearRecords)
 {
     return(new ServerModeOutlookDataGenerator(parentWindow, clearRecords));
 }
 public abstract ServerModeRecordsGeneratorBase Create(SQLConnectionWindow parentWindow, bool clearRecords);
 public ServerModeOutlookDataGenerator(SQLConnectionWindow parentWindow, bool clearRecords) : base(parentWindow, clearRecords)
 {
 }
 public ServerModeRecordsGeneratorBase(SQLConnectionWindow parentWindow, bool clearRecords)
 {
     this.parentWindow = parentWindow;
     this.clearRecords = clearRecords;
 }