コード例 #1
0
        private void Form_Closed(object sender, FormClosedEventArgs e)
        {
            string            path = System.Windows.Forms.Application.StartupPath + "\\config.ini";
            IniOperationClass c    = new IniOperationClass(path);

            c.IniWriteValue("HOT", "Instrument", this.textBox1.Text);
        }
コード例 #2
0
        private void Form_Load(object sender, EventArgs e)
        {
            string            path = System.Windows.Forms.Application.StartupPath + "\\config.ini";
            IniOperationClass c    = new IniOperationClass(path);

            this.textBox_OutputHandle.Text = c.IniReadValue("MCHandle", "Handle");
        }
コード例 #3
0
        private void Form_load(object sender, EventArgs e)
        {
            this.textBox_URL.Text = string.Format("http://hotmap.icetech.com.cn/hotmap.html");

            string            path = System.Windows.Forms.Application.StartupPath + "\\config.ini";
            IniOperationClass c    = new IniOperationClass(path);

            this.textBox1.Text = c.IniReadValue("HOT", "Instrument");
        }
コード例 #4
0
        private void Form_Closed(object sender, FormClosedEventArgs e)
        {
            string            path = System.Windows.Forms.Application.StartupPath + "\\config.ini";
            IniOperationClass c    = new IniOperationClass(path);

            c.IniWriteValue("PointXY", "ContentInputX", this.textBox_setX.Text);
            c.IniWriteValue("PointXY", "ContentInputY", this.textBox_setY.Text);
            c.IniWriteValue("PointXY", "ButtonEnterX", this.textBox_enterX.Text);
            c.IniWriteValue("PointXY", "ButtonEnterY", this.textBox_enterY.Text);
            c.IniWriteValue("PointXY", "ButtonVoiceX", this.textBox_VoiceX.Text);
            c.IniWriteValue("PointXY", "ButtonVoiceY", this.textBox_VoiceY.Text);
        }
コード例 #5
0
        private void InitTextBox()
        {
            string            path = System.Windows.Forms.Application.StartupPath + "\\config.ini";
            IniOperationClass c    = new IniOperationClass(path);

            this.textBox_setX.Text   = c.IniReadValue("PointXY", "ContentInputX");
            this.textBox_setY.Text   = c.IniReadValue("PointXY", "ContentInputY");
            this.textBox_enterX.Text = c.IniReadValue("PointXY", "ButtonEnterX");
            this.textBox_enterY.Text = c.IniReadValue("PointXY", "ButtonEnterY");
            this.textBox_VoiceX.Text = c.IniReadValue("PointXY", "ButtonVoiceX");
            this.textBox_VoiceY.Text = c.IniReadValue("PointXY", "ButtonVoiceY");
        }