Exemplo n.º 1
0
        private void Add_Button_Click(object sender, EventArgs e)
        {
            this.Customer_GridView.ClearColumnsFilter();

            AddCount++;
            CustommersData.Add(new Customer
            {
                CustomerIDTemp = $"XXXXX{AddCount}",
                Status         = ModifyMode.Insert
            });
        }
        private void ImportData()
        {
            List <Customer> customers = ExcelHelper.LoadCustomer(out StringBuilder error);

            foreach (var item in customers)
            {
                item.Status = ModifyMode.Insert;
                CustommersData.Add(item);
            }

            if (error != null && error.Length > 0)
            {
                ClientCommon.ShowErrorBox(error.ToString());
            }
        }