Esempio n. 1
0
        private void General_Load(object sender, EventArgs e)
        {
            usb_radioBtn.Checked = true;
            ApkFileShow.Text     = file;

            string cmd = "Cmd";

            string[] cmdPhone = INIOperationClass.INIGetAllItems(INIFile, cmd);
            cmdComBox.Items.AddRange(cmdPhone);
            cmdComBox.SelectedIndex = 0;
            Thread thread_ = new Thread(delegate()
            {
                FindDevices(out devices);
            });

            thread_.Start();
        }
Esempio n. 2
0
        private void Form1_Activated(object sender, EventArgs e)
        {
            string[] items = INIOperationClass.INIGetAllItems(Application.StartupPath + "/setting.ini", "Start");

            foreach (string value in items)
            {
                string[] words = value.Split('=');

                if (words[0] == "Startform" && words[1] == "0")
                {
                    // this.Hide();
                    Startformopen = words[1];
                }
                else if (words[0] == "Title" && words[1] != "")
                {
                    this.Text = words[1];
                }


                //Console.WriteLine(words[0]);
            }
        }
Esempio n. 3
0
        private void button2_Click(object sender, EventArgs e)
        {
            items = INIOperationClass.INIGetAllItems(Application.StartupPath + "/setting.ini", "File");

            backgroundWorker1.RunWorkerAsync();
        }