Beispiel #1
0
 private void LoadSettingFromFile()
 {
     IniFiles fop = new IniFiles("Settings.ini");
     saveTonvCheckBox.Checked = fop.ReadBool("FACTORY", "SAVETOSN", false);
     forbidUbscheckBox.Checked = fop.ReadBool("FACTORY", "FORBIDUSB", false);
     restorecheckBox.Checked = fop.ReadBool("FACTORY", "RESTOREFACTORY", false);
 }
Beispiel #2
0
        private void ReadParameterFormFile()
        {
            IniFiles Fop = new IniFiles("Settings.ini");

            QWriteAllForm.TestList.Clear();
            if (Fop.ReadBool("TEST", "TestBoard", false))
                QWriteAllForm.TestList.Add("TestBoard");
            if (Fop.ReadBool("TEST", "SN", false))
                QWriteAllForm.TestList.Add("SN");
            if (Fop.ReadBool("TEST", "BTMAC", false))
                QWriteAllForm.TestList.Add("BTMAC");
            if (Fop.ReadBool("TEST", "WIFIMAC", false))
                QWriteAllForm.TestList.Add("WIFIMAC");
            if (Fop.ReadBool("TEST", "NV453", false))
                QWriteAllForm.TestList.Add("NV453");
        }
Beispiel #3
0
 private void loadSettingFromFile()
 {
     IniFiles fop = new IniFiles("Settings.ini");
     leakcurBox.Text = fop.ReadString("DEVICEPOWER", "LEAKCURRENT", "");
     sleepcurBox.Text = fop.ReadString("DEVICEPOWER", "SLEEPCURRENT", "");
     stablecurBox.Text = fop.ReadString("DEVICEPOWER", "STABLECURRENT", "");
     entermmicheckBox.Checked = fop.ReadBool("DEVICEPOWER", "MMI", false);
 }
Beispiel #4
0
        private void LoadCfg()
        {
            IniFiles fop = new IniFiles("Settings.ini");

            if (fop.ReadBool("TEST", "TestBoard", false))
                checkBoxTest.Checked = true;
            if (fop.ReadBool("TEST", "SN", false))
                checkBoxSN.Checked = true;
            if (fop.ReadBool("TEST", "BTMAC", false))
                checkBoxBTMAC.Checked = true;
            if (fop.ReadBool("TEST", "WIFIMAC", false))
                checkBoxWIFIMAC.Checked = true;
            if (fop.ReadBool("TEST", "NV453", false))
                checkBoxNv453.Checked = true;

            WlantextBox.Text = fop.ReadString("TEST", "WLANADDR", "");
            BttextBox.Text = fop.ReadString("TEST", "BTADDR", "");
            snHeaderBox.Text = fop.ReadString("TEST", "SNHEADER", ""); 
        }
Beispiel #5
0
 private void mmiTestBtn_Click(object sender, EventArgs e)
 {
     SetResult(1);
     /*read file from phone*/
     IniFiles fop = new IniFiles("Settings.ini");
     if (fop.ReadBool("FACTORY", "SAVETOSN", false))
     {
         MessageBox.Show("SAVETOSN");
     }
     if (fop.ReadBool("FACTORY", "FORBIDUSB", false))
     {
         MessageBox.Show("FORBIDUSB");
     }
     if (fop.ReadBool("FACTORY", "RESTOREFACTORY", false))
     {
         MessageBox.Show("RESTOREFACTORY");
     }
     SetResult(2);
 }