コード例 #1
0
        /*private void ShowMySQL()
         * {
         *  this.mySqlConnectFront2 = new DBDiff.Schema.MySQL.Front.MySqlConnectFront();
         *  this.mySqlConnectFront1 = new DBDiff.Schema.MySQL.Front.MySqlConnectFront();
         *  this.mySqlConnectFront1.Location = new System.Drawing.Point(5, 19);
         *  this.mySqlConnectFront1.Name = "mySqlConnectFront1";
         *  this.mySqlConnectFront1.Size = new System.Drawing.Size(420, 190);
         *  this.mySqlConnectFront1.TabIndex = 10;
         *  this.mySqlConnectFront2.Location = new System.Drawing.Point(5, 19);
         *  this.mySqlConnectFront2.Name = "mySqlConnectFront2";
         *  this.mySqlConnectFront2.Size = new System.Drawing.Size(420, 190);
         *  this.mySqlConnectFront2.TabIndex = 10;
         *  this.mySqlConnectFront1.Visible = true;
         *  this.mySqlConnectFront2.Visible = true;
         *  this.groupBox3.Controls.Add((System.Windows.Forms.Control)this.mySqlConnectFront2);
         *  this.groupBox2.Controls.Add((System.Windows.Forms.Control)this.mySqlConnectFront1);
         * }
         */

        private void ShowSQL2005()
        {
            mySqlConnectFront2          = new SqlServerConnectFront();
            mySqlConnectFront1          = new SqlServerConnectFront();
            mySqlConnectFront1.Location = new Point(1, 1);
            mySqlConnectFront1.Name     = "mySqlConnectFront1";
            mySqlConnectFront1.Anchor   =
                (AnchorStyles)((int)AnchorStyles.Bottom + (int)AnchorStyles.Left + (int)AnchorStyles.Right);

            mySqlConnectFront1.TabIndex = 10;
            mySqlConnectFront1.Text     = "源数据库:";
            mySqlConnectFront2.Location = new Point(1, 1);
            mySqlConnectFront2.Name     = "mySqlConnectFront2";
            mySqlConnectFront2.Anchor   =
                (AnchorStyles)((int)AnchorStyles.Bottom + (int)AnchorStyles.Left + (int)AnchorStyles.Right);
            mySqlConnectFront2.TabIndex = 10;
            mySqlConnectFront1.Visible  = true;
            mySqlConnectFront2.Visible  = true;
            mySqlConnectFront2.Text     = "目标数据库:";
            ((SqlServerConnectFront)mySqlConnectFront1).UserName      = "******";
            ((SqlServerConnectFront)mySqlConnectFront1).Password      = "";
            ((SqlServerConnectFront)mySqlConnectFront1).ServerName    = "(local)";
            ((SqlServerConnectFront)mySqlConnectFront2).UserName      = "******";
            ((SqlServerConnectFront)mySqlConnectFront2).Password      = "";
            ((SqlServerConnectFront)mySqlConnectFront2).ServerName    = "(local)";
            ((SqlServerConnectFront)mySqlConnectFront1).DatabaseIndex = 1;
            ((SqlServerConnectFront)mySqlConnectFront2).DatabaseIndex = 2;
            PanelDestination.Controls.Add((Control)mySqlConnectFront2);
            PanelSource.Controls.Add((Control)mySqlConnectFront1);
        }
コード例 #2
0
ファイル: PrincipalForm.cs プロジェクト: posttk421/OpenDBDiff
 private void LoadProjectHandler(IProjectHandler projectHandler)
 {
     UnloadProjectHandler();
     ProjectSelectorHandler = projectHandler;
     SourceSelector         = ProjectSelectorHandler.CreateSourceSelector();
     DestinationSelector    = ProjectSelectorHandler.CreateDestinationSelector();
     PanelSource.Controls.Add(SourceSelector.Control);
     PanelDestination.Controls.Add(DestinationSelector.Control);
 }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: qxguoxing/OpenDBDiff
 private void LoadProjectHandler(IProjectHandler projectHandler)
 {
     UnloadProjectHandler();
     ProjectSelectorHandler = projectHandler;
     LeftDatabaseSelector   = ProjectSelectorHandler.CreateSourceSelector();
     RightDatabaseSelector  = ProjectSelectorHandler.CreateDestinationSelector();
     LeftDatabasePanel.Controls.Add(LeftDatabaseSelector.Control);
     RightDatabasePanel.Controls.Add(RightDatabaseSelector.Control);
 }
コード例 #4
0
 public void SetSettingsFrom(IFront other)
 {
     if (other is SqlServerConnectFront sql)
     {
         this.ServerName               = sql.ServerName;
         this.DatabaseName             = sql.DatabaseName;
         this.UseWindowsAuthentication = sql.UseWindowsAuthentication;
         this.UserName = sql.UserName;
         this.Password = sql.Password;
     }
 }
コード例 #5
0
        public Controller(IFront front)
        {
            this.front = front;

            front.PortSelected += port => CreateOsd(port);
            front.Draw         += Front_Draw;

            (new Thread(Read)
            {
                IsBackground = true, Priority = ThreadPriority.Lowest
            }).Start();
        }
コード例 #6
0
ファイル: KeySpeed.cs プロジェクト: Drift2020/WPF
 public KeySpeed(IFront viwe)
 {
     starts                   = new DateTime();
     now                      = new DateTime();
     _viwe                    = viwe;
     _viwe.DownKey           += new EventHandler <EventArgs>(DownKey);
     _viwe.Fails             += new EventHandler <EventArgs>(Fails);
     _viwe.Speed_Chars       += new EventHandler <EventArgs>(Speed_Chars);
     _viwe.Start             += new EventHandler <EventArgs>(Start);
     _viwe.Stop              += new EventHandler <EventArgs>(Stop);
     _viwe.Start_program     += new EventHandler <EventArgs>(Start_program);
     _viwe.is_Start           = false;
     _viwe.is_Enable_text_box = false;
     _viwe.is_Stop_button     = false;
 }
コード例 #7
0
        private void ShowSQL2005()
        {
            mySqlConnectFront2 = new SqlServerConnectFront();
            mySqlConnectFront1 = new SqlServerConnectFront();
            mySqlConnectFront1.Location = new Point(1, 1);
            mySqlConnectFront1.Name = "mySqlConnectFront1";
            mySqlConnectFront1.Anchor =
                (AnchorStyles)((int)AnchorStyles.Bottom + (int)AnchorStyles.Left + (int)AnchorStyles.Right);

            mySqlConnectFront1.TabIndex = 10;
            mySqlConnectFront1.Text = "Reference Database:";
            mySqlConnectFront2.Location = new Point(1, 1);
            mySqlConnectFront2.Name = "mySqlConnectFront2";
            mySqlConnectFront2.Anchor =
                (AnchorStyles)((int)AnchorStyles.Bottom + (int)AnchorStyles.Left + (int)AnchorStyles.Right);
            mySqlConnectFront2.TabIndex = 10;
            mySqlConnectFront1.Visible = true;
            mySqlConnectFront2.Visible = true;
            mySqlConnectFront2.Text = "Target Database:";
            ((SqlServerConnectFront)mySqlConnectFront1).UserName = "******";
            ((SqlServerConnectFront)mySqlConnectFront1).Password = "";
            ((SqlServerConnectFront)mySqlConnectFront1).ServerName = "(local)";
            ((SqlServerConnectFront)mySqlConnectFront2).UserName = "******";
            ((SqlServerConnectFront)mySqlConnectFront2).Password = "";
            ((SqlServerConnectFront)mySqlConnectFront2).ServerName = "(local)";
            ((SqlServerConnectFront)mySqlConnectFront1).DatabaseIndex = 1;
            ((SqlServerConnectFront)mySqlConnectFront2).DatabaseIndex = 2;
            PanelDestination.Controls.Add((Control)mySqlConnectFront2);
            PanelSource.Controls.Add((Control)mySqlConnectFront1);
        }
コード例 #8
0
 public InteraccionesController()
 {
     blHandler          = WebApiConfig.FrontService(null);
     interactionHandler = WebApiConfig.InteractionService(null);
 }
コード例 #9
0
 public JugadorAlianzaController()
 {
     blHandler = WebApiConfig.FrontService(null);
 }
コード例 #10
0
 public JugadorRecursoController()
 {
     blHandler = WebApiConfig.FrontService(null);
 }
コード例 #11
0
 public JugadorEdificioController()
 {
     blHandler = WebApiConfig.FrontService(null);
 }
コード例 #12
0
 public JugadorInvestigacionController()
 {
     blHandler = WebApiConfig.FrontService(null);
 }
コード例 #13
0
 public JugadorDestacamentoController()
 {
     blHandler = WebApiConfig.FrontService(null);
 }
コード例 #14
0
 protected override void InitializePage()
 {
     FrontService = Modules.Container.Resolve <IFront>();
     SetLayout("~/Views/Shared/_Layout.cshtml");
     base.InitializePage();
 }
コード例 #15
0
 public MeController()
 {
     blHandler = WebApiConfig.FrontService(null);
 }