示例#1
0
        private void btnInsetTo_Click(object sender, RoutedEventArgs e)
        {
            if (newDataScrambled == null)
            {
                MessageBox.Show("Please RUN -> [Run (Bring Data A)] ... ");
                return;
            }

            if (newDataScrambled.dsResult == null)
            {
                MessageBox.Show(" Result is NULL ... DataSet MUST has at least one Table and one Row! ");
                return;
            }

            listSB = new List <StringBuilder>();
            OleDbDataBase db = new OleDbDataBase();

            listSB = db.BuildDB2DeleteSQL(newDataScrambled.dsResult);

            foreach (DataTable dt in newDataScrambled.dsResult.Tables)
            {
                listSB.AddRange(db.BuildDB2InsertSQL(dt));
            }

            if (newRunInsert != null)
            {
                newRunInsert.Close();
            }
            newRunInsert = new RunInsert();
            newRunInsert.strConnectionStringTo = strConnectionStringTo;
            newRunInsert.listSB = listSB;
            newRunInsert.Show();
        }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.RunInsert1 = ((WpfHelperCopyData.RunInsert)(target));

            #line 5 "..\..\RunMigrate.xaml"
                this.RunInsert1.Closing += new System.ComponentModel.CancelEventHandler(this.RunInsert_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.btnRun = ((System.Windows.Controls.Button)(target));

            #line 13 "..\..\RunMigrate.xaml"
                this.btnRun.Click += new System.Windows.RoutedEventHandler(this.btnRun_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.chkBoxUnblock = ((System.Windows.Controls.CheckBox)(target));

            #line 14 "..\..\RunMigrate.xaml"
                this.chkBoxUnblock.Click += new System.Windows.RoutedEventHandler(this.chkBoxUnblock_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.prgResult = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 5:
                this.btnSave = ((System.Windows.Controls.Button)(target));

            #line 16 "..\..\RunMigrate.xaml"
                this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }