Exemple #1
0
        public static bool Execute(Relative relative, List <Concept> conceptList)
        {
            using (var frm = new fmRelativeEdit())
            {
                frm._relative    = relative;
                frm._conceptList = conceptList;
                if (conceptList == null)
                {
                    frm._conceptList = new List <Concept>();
                }

                return(frm.ShowDialog() == DialogResult.OK);
            }
        }
Exemple #2
0
        public static bool Execute(Relative relative, int concept1Id, int concept2Id, List <Concept> conceptList)
        {
            using (var frm = new fmRelativeEdit())
            {
                relative._Concept1 = conceptList.FirstOrDefault(g => g.Id == concept1Id);
                relative._Concept2 = conceptList.FirstOrDefault(g => g.Id == concept2Id);
                frm._relative      = relative;
                frm._conceptList   = conceptList;
                if (conceptList == null)
                {
                    frm._conceptList = new List <Concept>();
                }

                return(frm.ShowDialog() == DialogResult.OK);
            }
        }