示例#1
0
 private void SetRegistryKeys()
 {
     OSAE.ModifyRegistry myRegistry = new OSAE.ModifyRegistry();
     myRegistry.SubKey = @"SOFTWARE\OSAE\DBSETTINGS";
     myRegistry.Write("DBUSERNAME", "osae");
     myRegistry.Write("DBPASSWORD", "osaePass");
     myRegistry.Write("DBCONNECTION", txbServer.Text);
     myRegistry.Write("DBPORT", txbPort.Text);
     myRegistry.Write("DBNAME", "osae");
     myRegistry.Write("INSTALLDIR", installDirectory);
 }
示例#2
0
 private void Form_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (!btnClose.Visible && btnInstall.Text != "Close")
     {
         MessageBox.Show("Database did not install successfully.  Please make sure your MySql instance is running and re-run the Open Source Automation installer again.");
         this.DialogResult = DialogResult.Cancel;
     }
     else
     {
         if (string.IsNullOrEmpty(regSettings.WcfServer))
         {
             OSAE.ModifyRegistry myRegistry = new OSAE.ModifyRegistry();
             myRegistry.SubKey = @"SOFTWARE\OSAE";
             myRegistry.Write("WcfServer", txbWcfAddress.Text);
         }
     }
 }
示例#3
0
 private void SetRegistryKeys()
 {
     OSAE.ModifyRegistry myRegistry = new OSAE.ModifyRegistry();
     myRegistry.SubKey = @"SOFTWARE\OSAE\DBSETTINGS";
     myRegistry.Write("DBUSERNAME", "osae");
     myRegistry.Write("DBPASSWORD", "osaePass");
     myRegistry.Write("DBCONNECTION", txbServer.Text);
     myRegistry.Write("DBPORT", txbPort.Text);
     myRegistry.Write("DBNAME", "osae");
     myRegistry.Write("INSTALLDIR", installDirectory);
 }
示例#4
0
 private void Form_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (!btnClose.Visible && btnInstall.Text != "Close")
     {
         MessageBox.Show("Database did not install successfully.  Please make sure your MySql instance is running and re-run the Open Source Automation installer again.");
         this.DialogResult = DialogResult.Cancel;
     }
     else
     {
         if(string.IsNullOrEmpty(regSettings.WcfServer))
         {
             OSAE.ModifyRegistry myRegistry = new OSAE.ModifyRegistry();
             myRegistry.SubKey = @"SOFTWARE\OSAE";
             myRegistry.Write("WcfServer", txbWcfAddress.Text);
         }
     }
 }