Exemplo n.º 1
0
        private async void btnShowOrphans_Click(object sender, EventArgs e)
        {
            IList <int> ret         = new List <int>();
            var         selectedIds = orphanageGridView1.SelectedIds;

            if (selectedIds == null || selectedIds.Count == 0)
            {
                return;
            }
            foreach (var id in selectedIds)
            {
                var retOIds = await _fathersViewModel.OrphansIds(id);

                if (retOIds != null && retOIds.Count > 0)
                {
                    foreach (var retId in retOIds)
                    {
                        ret.Add(retId);
                    }
                }
            }
            Orphan.OrphansView or = new Orphan.OrphansView(ret);
            or.MdiParent = this.MdiParent;
            or.Show();
        }
Exemplo n.º 2
0
        private async void btnShowOrphans_Click(object sender, EventArgs e)
        {
            IList <int> ret         = new List <int>();
            var         selectedIds = orphanageGridView1.SelectedIds;

            if (selectedIds == null || selectedIds.Count == 0)
            {
                return;
            }
            var orphansIds = await _bailsViewModel.OrphansIds(selectedIds);

            Orphan.OrphansView or = new Orphan.OrphansView(orphansIds);
            or.MdiParent = this.MdiParent;
            or.Show();
        }