Пример #1
0
        private void SelectDatabaseTypeButton_Click(object sender, RoutedEventArgs e)
        {
            if (this.DatabaseTypeList.SelectedIndex == -1)
            {
                MessageBox.Show("Please select database type.");
            }
            var databaseServer = (DatabaseServer)this.DatabaseTypeList.SelectedValue;

            if (databaseServer != DatabaseServer.SqlServer &&
                databaseServer != DatabaseServer.MySql)
            {
                MessageBox.Show("SqlServer,MySql are supported.");
                return;
            }

            AValue.SchemaData.DatabaseServer = databaseServer;
            this.SetItemsSource();
            this.SetControlEnable(MainWindowState.SchemaLoaded);

            if (AValue.ConfigData.ConnectionStrings.Count == 0)
            {
                var w = new ManageConnectionStringWindow();
                w.ShowDialog();
                return;
            }
        }
Пример #2
0
        private void SelectDatabaseTypeButton_Click(object sender, RoutedEventArgs e)
        {
            var databaseServer = (DatabaseServer)this.DatabaseTypeList.SelectedValue;
            if (databaseServer != DatabaseServer.SqlServer &&
                databaseServer != DatabaseServer.MySql)
            {
                MessageBox.Show("SqlServer,MySql are supported.");
                return;
            }

            AValue.SchemaData.DatabaseServer = databaseServer;
            this.SetItemsSource();
            this.SetControlEnable(MainWindowState.SchemaLoaded);

            if (AValue.ConfigData.ConnectionStrings.Count == 0)
            {
                var w = new ManageConnectionStringWindow();
                w.ShowDialog();
                return;
            }
        }
Пример #3
0
        private void m0101_Click(object sender, RoutedEventArgs e)
        {
            var w = new ManageConnectionStringWindow();

            this.ShowDialog(w);
        }
Пример #4
0
 private void m0101_Click(object sender, RoutedEventArgs e)
 {
     var w = new ManageConnectionStringWindow();
     w.ShowDialog();
 }