Example #1
0
        private void tBtnAddIntf_Click(object sender, EventArgs e)
        {
            FrmManagePara manageIntfFomr = new FrmManagePara(null);

            manageIntfFomr.ShowDialog();
            ShowAllParameters();
        }
Example #2
0
        private void skinLVParas_DoubleClick(object sender, EventArgs e)
        {
            if (skinLVParas.SelectedItems.Count > 0)
            {
                var a = skinLVParas.SelectedItems[0];

                HA_Parameter ha_para = new HA_Parameter
                {
                    para_code     = a.SubItems[0].Text,
                    para_name     = a.SubItems[1].Text,
                    para_datatype = a.SubItems[2].Text,
                    para_length   = a.SubItems[3].Text,
                    para_default  = a.SubItems[4].Text,
                    para_note     = a.SubItems[5].Text,
                    para_required = false
                };

                FrmManagePara manageIntfFomr = new FrmManagePara(ha_para);
                manageIntfFomr.ShowDialog();
                ShowAllParameters();
            }
        }