Example #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);
 }
Example #2
0
        public void LoadCurrentValues()
        {
            OSAE.ModifyRegistry registry = new OSAE.ModifyRegistry();
            registry.SubKey = @"SOFTWARE\OSAE\DBSETTINGS";

            DbPassword   = registry.Read("DBPASSWORD");
            DbUsername   = registry.Read("DBUSERNAME");
            DbPort       = registry.Read("DBPORT");
            DbConnection = registry.Read("DBCONNECTION");

            OSAE.ModifyRegistry baseRegistry = new OSAE.ModifyRegistry();
            baseRegistry.SubKey = @"SOFTWARE\OSAE";
            WcfServer           = baseRegistry.Read("WcfServer");
        }
Example #3
0
        public void LoadCurrentValues()
        {
            OSAE.ModifyRegistry registry = new OSAE.ModifyRegistry();
            registry.SubKey = @"SOFTWARE\OSAE\DBSETTINGS";

            DbPassword = registry.Read("DBPASSWORD");
            DbUsername = registry.Read("DBUSERNAME");
            DbPort = registry.Read("DBPORT");
            DbConnection = registry.Read("DBCONNECTION");

            OSAE.ModifyRegistry baseRegistry = new OSAE.ModifyRegistry();
            baseRegistry.SubKey = @"SOFTWARE\OSAE";
            WcfServer = baseRegistry.Read("WcfServer");
        }
Example #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);
         }
     }
 }
Example #5
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);
 }
Example #6
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);
         }
     }
 }