Beispiel #1
0
        private void bunifuFlatButton3_Click(object sender, EventArgs e)
        {
            ini    ireader = new ini();
            string ininame = @"Pins.ini";

            ireader.IniWriteValue(this.bunifuDropdown1.selectedValue, "Status", this.bunifuDropdown3.selectedValue, ininame);
            ireader.IniWriteValue(this.bunifuDropdown1.selectedValue, "IO", this.bunifuDropdown4.selectedValue, ininame);
            refreshAdding(Ms);
            refreshdeletekey();
        }
Beispiel #2
0
 private void bunifuFlatButton3_Click(object sender, EventArgs e)
 {
     if (function.Text != string.Empty && returns.Text != string.Empty && bunifuDropdown3.selectedIndex != -1)
     {
         ini ireader = new ini();
         ireader.IniWriteValue(bunifuDropdown3.selectedValue, "Function", function.Text, ininame);
         ireader.IniWriteValue(bunifuDropdown3.selectedValue, "Returns", returns.Text, ininame);
         slideView1.Refreshes();
     }
     else
     {
         MessageBox.Show("請填入相關資訊", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Beispiel #3
0
        private async void RefreshLineStatus(string path)
        {
            Line = new LineNotify(path);
            bool Service = await Line.CheckStatus();

            if (Service)
            {
                label4.Text      = "已連線";
                label4.ForeColor = Color.Green;
            }
            else
            {
                label4.Text      = "尚未連線";
                label4.ForeColor = Color.Red;
            }
            ini ireader = new ini();

            ireader.IniWriteValue("SystemInfo", "IFTTT", path, Systemini);
        }
Beispiel #4
0
        private void bunifuFlatButton2_Click(object sender, EventArgs e)
        {
            ini ireader = new ini();

            ireader.IniWriteValue("SystemInfo", "SendMilliSecond", bunifuMaterialTextbox1.Text, Systemini);
        }
Beispiel #5
0
        private void bunifuDropdown2_onItemSelected(object sender, EventArgs e)
        {
            ini ireader = new ini();

            ireader.IniWriteValue("SystemInfo", "Baud", bunifuDropdown2.selectedValue, Systemini);
        }
Beispiel #6
0
        private void selected(object sender, EventArgs e)
        {
            ini ireader = new ini();

            ireader.IniWriteValue("SystemInfo", "SerialPort", bunifuDropdown1.selectedValue, Systemini);
        }