예제 #1
0
 private void rbCheckedChanged()
 {
     if (rbRemote.Checked)
     {
         txtServer.Enabled = true;
         txtServer.Text    = DBReg.Server;
     }
     else if (rbEmbedded.Checked)
     {
         txtServer.Enabled = false;
         txtServer.Text    = "";
     }
     else if (rbLocal.Checked)
     {
         txtServer.Enabled = false;
         txtServer.Text    = "localhost";
     }
     EditToData();
     txtBackupSourceDatabasePath.Text = _dbReg.GetDatabasepfad();
 }
예제 #2
0
        public override void DataToEdit()
        {
            txtRestoreDetinationDatabasePath.Text = DBReg.DatabasePath;
            txtBackupSourceDatabasePath.Text      = DBReg.GetDatabasepfad();

            if (DBReg.ConnectionType == eConnectionType.embedded)
            {
                rbEmbedded.Checked = true;
                txtServer.Text     = "";
            }
            else if (DBReg.ConnectionType == eConnectionType.localhost)
            {
                rbLocal.Checked = true;
                txtServer.Text  = "localhost";
            }
            else
            {
                rbRemote.Checked = true;
                txtServer.Text   = DBReg.Server;
            }
        }