예제 #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);
         }
     }
 }