private void codeBt_Click(object sender, EventArgs e)
 {
     SelectDlg dlg = new SelectDlg(2, this.tmpltComb.SelectedIndex, this.dlgxmlPath);
     if (dlg.ShowDialog(this) == DialogResult.OK)
     {
         this.CodeBox.Text = dlg.Value;
     }
 }
 private void trgBt_Click(object sender, EventArgs e)
 {
     SelectDlg dlg = new SelectDlg(3, -1, this.dlgxmlPath);
     if (dlg.ShowDialog(this) == DialogResult.OK)
     {
         this.TargetRange.Text = dlg.Value;
     }
 }
 private void typeBt_Click(object sender, EventArgs e)
 {
     SelectDlg dlg = new SelectDlg(0, this.tmpltComb.SelectedIndex, this.dlgxmlPath);
     if (dlg.ShowDialog(this) == DialogResult.OK)
     {
         this.TypeBox.Text = dlg.Value;
         this.setViewState(dlg.getViewSetting());
     }
 }
 private void propBt_Click(object sender, EventArgs e)
 {
     SelectDlg dlg = new SelectDlg(4, -1, this.dlgxmlPath);
     if (dlg.ShowDialog(this) == DialogResult.OK)
     {
         this.propBox.Text = dlg.Value;
     }
 }