public FormCreateAppLicense(AreaCodeInfo areaCode) { InitializeComponent(); this.m_Area = areaCode; this.m_ServiceController = new LicenseController(); this.m_ServiceController.CreateLicenceEvent += M_ServiceController_CreateLicenceKeyEvent; }
private void treeView1_AfterSelect(object sender, TreeViewEventArgs e) { TreeNode treeNode = e.Node; if (treeNode != null && treeNode.Tag != null) { AreaCodeInfo areaCode = treeNode.Tag as AreaCodeInfo; this.current_AreaCode = areaCode; if (areaCode != null) { string pac = areaCode.code; this.m_LicenseController.Get(pac, 1000, 0); } this.btnAdd.Enabled = true; } else { this.btnAdd.Enabled = false; this.current_AreaCode = null; } }