Esempio n. 1
0
        public static HashSet <Column> Show(IWin32Window owner, IEnumerable <Column> available, IEnumerable <Column> selected, string title)
        {
            using (FrmEditColumns frm = new FrmEditColumns(available, selected, true, title))
            {
                if (frm.ShowDialog(owner) == DialogResult.OK)
                {
                    return(frm._selected);
                }

                return(null);
            }
        }
Esempio n. 2
0
        public static Column Show(IWin32Window owner, IEnumerable <Column> available, Column selected, string title)
        {
            using (FrmEditColumns frm = new FrmEditColumns(available, new[] { selected }, false, title))
            {
                if (frm.ShowDialog(owner) == DialogResult.OK)
                {
                    return(frm._selected.FirstOrDefault());
                }

                return(null);
            }
        }