Esempio n. 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();
        }