public void GetData() { this.treeView1.Nodes.Clear(); BLL.CustomerGroup bll = new BLL.CustomerGroup(); this.treeView1.Nodes.Add(bll.GetCustomerGroup()); this.treeView1.Nodes[0].Toggle(); }
private void frmCustomer_Load(object sender, EventArgs e) { this.Height = 422; BLL.CustomerGroup bll = new BLL.CustomerGroup(); this.cbxCustomerGroup.Nodes.Add(bll.GetCustomerGroup()); this.cbxCustomerGroup.Nodes[0].Toggle(); GetCustomerGroup(_guid); //加载省列表 cbxProvince.DataSource = DBUtility.XMLHelper.GetProvinces(); cbxProvince.DisplayMember = "ProvinceName"; cbxProvince.ValueMember = "ID"; cbxProvince.SelectedValue = 27; cbxProvince_SelectedIndexChanged(null, null); cbxCity_SelectedIndexChanged(null, null); this.cbxProvince.SelectedIndexChanged += new System.EventHandler(this.cbxProvince_SelectedIndexChanged); this.cbxCity.SelectedIndexChanged += new System.EventHandler(this.cbxCity_SelectedIndexChanged); if (this._model != null) { GetUpdate(); } else { GetAdd(); } }
private void frmAddCustomerGroup_Load(object sender, EventArgs e) { BLL.CustomerGroup bll = new BLL.CustomerGroup(); this.cbxTreeCustomerGroup.Nodes.Add(bll.GetCustomerGroup()); this.cbxTreeCustomerGroup.Nodes[0].Toggle(); if (this._model != null) { GetUpdate(); } }
private void frmService_Load(object sender, EventArgs e) { BLL.CustomerGroup bll = new BLL.CustomerGroup(); this.cbxCustomerGroup.Nodes.Add(bll.GetCustomerGroup()); this.cbxCustomerGroup.Nodes[0].Toggle(); if (_guid != Guid.Empty) { GetCustomerGroup(_guid); } if (this._model != null) { GetUpdate(); } else { GetAdd(); } }