示例#1
0
        private void baseButton1_Click(object sender, EventArgs e)
        {
            List <CheckStoreDetail> list        = dataGridView1.DataSource as List <CheckStoreDetail>;
            List <CheckStoreDetail> uncheckList = list?.FindAll(t => t.Selected);

            try
            {
                if (uncheckList != null && uncheckList.Count > 0)
                {
                    ZeroClick?.Invoke(uncheckList, null);
                    Reload();
                }
            }
            catch (Exception ex)
            {
                CommonGlobalUtil.ShowError(ex);
            }
            finally
            {
                CompleteProgressForm();
                UnLockPage();
            }
        }
 private void btnZero_Click(object sender, RoutedEventArgs e)
 {
     ZeroClick?.Invoke(sender, e);
 }