Exemplo n.º 1
0
 private void frmMain_Load(object sender, EventArgs e)
 {
     MysqlController.MySQLIP       = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlURL"));
     MysqlController.MySQLAccount  = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlAccount"));
     MysqlController.MySQLPassword = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlPassword"));
     MysqlController.MySQLDatabase = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlDatabase"));
     //iFTPIP = iCrype.CryptString(iniControl.IniReadValue("Network", "FTPURL"));
     //iFTPAccount = iCrype.CryptString(iniControl.IniReadValue("Network", "FTPAccount"));
     //iFTPPassword = iCrype.CryptString(iniControl.IniReadValue("Network", "FTPPassword"));
 }
Exemplo n.º 2
0
 private void frmMian_Shown(object sender, EventArgs e)
 {
     tmCheck.Enabled = true;
     if (iniController.IniReadValue("SYSTEM", "PATH") != "" &&
         iniController.IniReadValue("SYSTEM", "PATH") != null)
     {
         ListSoftware(iniController.IniReadValue("SYSTEM", "PATH"));
         lblPath.Text     = iniController.IniReadValue("SYSTEM", "PATH");
         cmdStart.Enabled = true;
     }
 }
Exemplo n.º 3
0
 private void frmMian_Shown(object sender, EventArgs e)
 {
     tmCheck.Enabled = true;
     if (iniController.IniReadValue("SYSTEM", "PATH") == null ||
         iniController.IniReadValue("SYSTEM", "PATH") == "")
     {
         return;
     }
     lblPath.Text     = iniController.IniReadValue("SYSTEM", "PATH");
     cmdStart.Enabled = true;
     ListSoftware(lblPath.Text);
 }
Exemplo n.º 4
0
 public frmLogin()
 {
     InitializeComponent();
     MysqlController.MySQLIP       = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlURL"));
     MysqlController.MySQLAccount  = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlAccount"));
     MysqlController.MySQLPassword = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlPassword"));
     MysqlController.MySQLDatabase = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlDatabase"));
     clsLog.iMySQLIP       = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlURL"));
     clsLog.iMySQLAccount  = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlAccount"));
     clsLog.iMySQLPassword = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlPassword"));
     clsLog.iMySQLDatabase = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlDatabase"));
     ShopName =
         iCrype.CryptString(iShopSetting.IniReadValue(iCrype.CryptString("Setting"),
                                                      iCrype.CryptString("ShopName")));
     //ShopCNName = iShopSetting.IniReadValue(iCrype.CryptString("Setting"), iCrype.CryptString("ShopCNName"));
     label1.Text = ShopName + " ERP ";
 }
Exemplo n.º 5
0
        protected override void OnStart(string[] args)
        {
            // TODO: 在此处添加代码以启动服务。
            var iCrype     = new EnDeCrype();
            var iniControl = new clsINI(iniPath + @"\SoftwareUpdate.bin");

            //读取配置文件
            iDuration = iCrype.CryptString(iniControl.IniReadValue("ServiceInfo", "Duration"));
            iSavePath = iCrype.CryptString(iniControl.IniReadValue("ServiceInfo", "SavePath"));
            iNotifyME = iCrype.CryptString(iniControl.IniReadValue("ServiceSetting", "NotifyMe")) ==
                        "1";
            iNoBusyUpdate     = iCrype.CryptString(iniControl.IniReadValue("ServiceSetting", "NoBusyUpdate")) == "1";
            iAutoUpdateNotify =
                iCrype.CryptString(iniControl.IniReadValue("ServiceSetting", "AutoUpdateNotify")) == "1";

            //开启服务进行软件更新
        }
Exemplo n.º 6
0
 private void frmInstallService_Shown(object sender, EventArgs e)
 {
     try
     {
         txtTime.Text =
             iCrype.CryptString(iniControl.IniReadValue(iCrype.CryptString("ServiceInfo"),
                                                        iCrype.CryptString("Duration")));
         txtSavePath.Text =
             iCrype.CryptString(iniControl.IniReadValue(iCrype.CryptString("ServiceInfo"),
                                                        iCrype.CryptString("SavePath")));
         //iniControl.IniWriteValue(iCrype.CryptString("ServiceInfo"), iCrype.CryptString("CVSPath"), iCrype.CryptString(txtCVSPath.Text));
         txtCVSPath.Text =
             iCrype.CryptString(iniControl.IniReadValue(iCrype.CryptString("ServiceInfo"),
                                                        iCrype.CryptString("CVSPath")));
         ckbUpdateNotify.Checked =
             iCrype.CryptString(iniControl.IniReadValue(iCrype.CryptString("ServiceSetting"),
                                                        iCrype.CryptString("NotifyMe"))) ==
             "1";
         ckbNoBusy.Checked =
             iCrype.CryptString(iniControl.IniReadValue(iCrype.CryptString("ServiceSetting"),
                                                        iCrype.CryptString("NoBusyUpdate"))) == "1";
         ckbAutoUpdateNotify.Checked =
             iCrype.CryptString(iniControl.IniReadValue(iCrype.CryptString("ServiceSetting"),
                                                        iCrype.CryptString("AutoUpdateNotify"))) == "1";
     }
     catch (Exception)
     {
         //Do Nothing
     }
 }
Exemplo n.º 7
0
        private void button1_Click(object sender, EventArgs e)
        {
            string iTemp  = iSetting.IniReadValue("System", "CMSPassword");
            var    iCrype = new EnDeCrype();

            iTemp = iCrype.CryptString(iTemp);
            if (textBox1.Text != iTemp)
            {
                return;
            }
            var newForm = new frmMain();

            Hide();
            newForm.ShowDialog();
            if (newForm.DialogResult == DialogResult.Cancel)
            {
                Application.Exit();
            }
        }
Exemplo n.º 8
0
        private void frmSetting_Load(object sender, EventArgs e)
        {
            txtSQLAccount.Text  = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlAccount"));
            txtSQLDatabase.Text = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlDatabase"));
            txtSQLIP.Text       = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlURL"));
            txtSQLPass.Text     = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlPassword"));
            txtFTPAccount.Text  = iCrype.CryptString(iniControl.IniReadValue("Network", "FTPAccount"));
            txtFTPIP.Text       = iCrype.CryptString(iniControl.IniReadValue("Network", "FTPURL"));
            txtFTPPassword.Text = iCrype.CryptString(iniControl.IniReadValue("Network", "FTPPassword"));
            txtLXCMS.Text       = iCrype.CryptString(iniControl.IniReadValue("System", "CMSPassword"));
            txtLXCRMYG.Text     = iCrype.CryptString(iniControl.IniReadValue("System", "CRMFakePassword"));
            txtLXCRM.Text       = iCrype.CryptString(iniControl.IniReadValue("System", "CRMPassword"));
            txtLXTool.Text      = iCrype.CryptString(iniControl.IniReadValue("System", "TOOLSPassword"));

            txtP1.Text = iCrype.CryptString(iniControl.IniReadValue("Pay", "P1"));
            txtP2.Text = iCrype.CryptString(iniControl.IniReadValue("Pay", "P2"));
            txtP3.Text = iCrype.CryptString(iniControl.IniReadValue("Pay", "P3"));
            txtP4.Text = iCrype.CryptString(iniControl.IniReadValue("Pay", "P4"));
            txtP5.Text = iCrype.CryptString(iniControl.IniReadValue("Pay", "P5"));
            txtP6.Text = iCrype.CryptString(iniControl.IniReadValue("Pay", "P6"));
            txtP7.Text = iCrype.CryptString(iniControl.IniReadValue("Pay", "P7"));
        }
Exemplo n.º 9
0
        private void ReadSetting()
        {
            MysqlController.MySQLIP       = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlURL"));
            MysqlController.MySQLAccount  = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlAccount"));
            MysqlController.MySQLPassword = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlPassword"));
            MysqlController.MySQLDatabase = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlDatabase"));
            MysqlURL              = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlURL"));
            MysqlAccount          = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlAccount"));
            MysqlPassword         = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlPassword"));
            MysqlDatabase         = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlDatabase"));
            clsLog.iMySQLIP       = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlURL"));
            clsLog.iMySQLAccount  = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlAccount"));
            clsLog.iMySQLPassword = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlPassword"));
            clsLog.iMySQLDatabase = iCrype.CryptString(iniControl.IniReadValue("Network", "MysqlDatabase"));

            /*
             * FTPURL = iCrype.CryptString(iniControl.IniReadValue("Network", "FTPURL"));
             * FTPAccount = iCrype.CryptString(iniControl.IniReadValue("Network", "FTPAccount"));
             * FTPPassword = iCrype.CryptString(iniControl.IniReadValue("Network", "FTPPassword"));
             */
            //FTPControl.Hostname = iCrype.CryptString(iniControl.IniReadValue("Network", "FTPURL"));
            //FTPControl.Username = iCrype.CryptString(iniControl.IniReadValue("Network", "FTPAccount"));
            //FTPControl.Password = iCrype.CryptString(iniControl.IniReadValue("Network", "FTPPassword"));

            /*
             * PassCRM = iCrype.CryptString(iniControl.IniReadValue("System", "CRMPassword"));
             * PassCMS = iCrype.CryptString(iniControl.IniReadValue("System", "CMSPassword"));
             * PassTool = iCrype.CryptString(iniControl.IniReadValue("System", "TOOLSPassword"));
             */
        }