// Constructor called by frmListGateway after clicked "+" button public frmEditGateway(SetGatewayInfo set_gw, ChechDuplicateGatewayID check, bool edit_flag) { InitializeComponent(); this.isEdit = edit_flag; this.gateway_Info = new cls_Gateway_Info(); this.delgSetGateway = set_gw; this.delgCheckDuplicate = check; }
//Constructor called by frmListGateway after double clicked the gateway list //Constructor called by Gateway.cs after clicked the gateway node public frmEditGateway(SetGatewayInfo set_gw, cls_Gateway_Info gw) { InitializeComponent(); this.isEdit = true; if (gw.gateway_id == "") { this.isCopy = true; } this.gateway_Info = gw; this.device_list = gw.device_info; //iGatewayIndex = index; this.delgSetGateway = set_gw; }