Ejemplo n.º 1
0
        private void frmSetup_Load(object sender, EventArgs e)
        {
            backgroundWorker1.WorkerReportsProgress      = true;
            backgroundWorker1.WorkerSupportsCancellation = true;

            IniFile iniFile = new IniFile(Application.StartupPath + @"\ini\Default.ini");

            tbGroup.Text = iniFile.IniReadValue("Remote", "Group", "");
            LoadControlsText.DisplayTextToFormWhenFirstShow(this);

            cbIPs.Items.Clear();
            foreach (string strTmp in CsConst.mstrActiveIPs)
            {
                cbIPs.Items.Add(strTmp);
            }
            cbIPs.SelectedItem        = CsConst.myLocalIP;
            tbPC1.Text                = CsConst.mbytLocalSubNetID.ToString();
            tbPC2.Text                = CsConst.mbytLocalDeviceID.ToString();
            cboType.SelectedIndex     = Convert.ToInt32(iniFile.IniReadValue("Remote", "Index", "0"));
            CsConst.MyEnterProjectWay = cboType.SelectedIndex;
            CustomIP.Text             = iniFile.IniReadValue("Remote", "CustomIP", "115.29.251.24");
            tbPWD.Text                = iniFile.IniReadValue("Remote", "Password", "");
            cbIP.SelectedIndex        = 0;
            cboEdit.SelectedIndex     = CsConst.MyEditMode;
        }
Ejemplo n.º 2
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            backgroundWorker1.WorkerReportsProgress      = true;
            backgroundWorker1.WorkerSupportsCancellation = true;
            CsConst.mstrDefaultPath = Application.StartupPath + @"\Database\Easy_Design.mdb";
            LoadControlsText.LoadButtonCoontrolTypeFromDatabaseToPublicClass();
            HDLSysPF.GetWeekdaysFromPublicStruct();
            //LoadControlsText.CheckAndLoadControlsNew();
            LoadControlsText.LoadControlsTextIdListFromXML();
            LoadControlsText.DisplayTextToFormWhenFirstShow(this);

            CsConst.mstrINIDefault = new IniFile(Application.StartupPath + @"\ini\LAN0.ini");
            ButtonMode.LoadButtonModeFromDatabaseToPublicClass();
            DryMode.LoadButtonModeFromDatabaseToPublicClass();
            ButtonControlType.LoadButtonCoontrolTypeFromDatabaseToPublicClass();
            DryControlType.LoadButtonCoontrolTypeFromDatabaseToPublicClass();
            DeviceTypeList.LoadButtonCoontrolTypeFromDatabaseToPublicClass();
            ControlTemplates.ReadAllGroupCommandsFrmDatabase();


            HDLSysPF.AutoScale((Form)sender);

            HDLSysPF.AddedDevicesIndexToAPublicListInt();
            GetDeviceList();
            // dgOnline.RowCount = 28;
        }
Ejemplo n.º 3
0
 public frmQC()
 {
     InitializeComponent();
     LoadControlsText.DisplayTextToFormWhenFirstShow(this);
     Control.CheckForIllegalCrossThreadCalls = false;
 }
Ejemplo n.º 4
0
 public FrmBackup()
 {
     InitializeComponent();
     LoadControlsText.DisplayTextToFormWhenFirstShow(this);
 }