Esempio n. 1
0
        private void Confirm()
        {
            grdSearch.EndEdit();
            SelectedIds = GetCheckedIds();
            if (!SelectedIds.Any())
            {
                SelectedIds = DepartmentsAll.Select(x => x.Id).ToList();
            }
            var count = SelectedIds.Count;

            SelectedState
                = (count == DepartmentsAll.Count) ? "すべて"
                : (count == 1) ? ConvertRowToDepartment(grdSearch.Rows.First(x => IsChecked(x))).Name
                : "請求部門絞込有";
            ParentForm.DialogResult = DialogResult.OK;
        }
Esempio n. 2
0
        private void Confirm()
        {
            grdSearch.EndEdit();
            SelectedIds = GetCheckedIds();
            if (!SelectedIds.Any())
            {
                SelectedIds = SectionsAll.Select(x => x.Id).ToList();
            }
            var count = SelectedIds.Count;

            SelectedState
                = (count == SectionsAll.Count) ? "すべて"
                : (count == 1) ? (grdSearch.Rows.First(x => IsChecked(x)).DataBoundItem as Section).Name
                : "入金部門絞込有";
            ParentForm.DialogResult = DialogResult.OK;
        }
Esempio n. 3
0
 protected override bool CanExecuteDelete(Sample target, Action <string> errorAction) => Selected != null || (SelectedIds?.Any() ?? false);