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"); }
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"); }
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"); }