private void CustomerList_Load(object sender, EventArgs e) { this.Width = FormSize.Width(this.Tag.ToString()); this.Height = FormSize.Heigth(this.Tag.ToString()); int IFW = FormSize.Width(Singleton <Tree> .Instance.Tag.ToString()); initialLocation.X = IFW; initialLocation.Y = 0; this.Location = initialLocation; Application.DoEvents(); List <CustomerModel> lm = CustomerDA.GetAllCustomer(Config.VBR4000Connection); BindList(lm); }
private void toolStripButton1_Click(object sender, EventArgs e) { List <CustomerModel> lm = CustomerDA.GetAllCustomer(Config.VBR4000Connection); BindList(lm); }