コード例 #1
0
 public static SimSelection Create(string title, SimDescription me)
 {
     SimSelection selection = new SimSelection(title, me);
     bool canceled;
     selection.FilterSims(new List<ICriteria>(), null, true, out canceled);
     return selection;
 }
コード例 #2
0
ファイル: SimIDOption.cs プロジェクト: yakoder/NRaas
            public static SimSelection Create(SimIDOption option)
            {
                SimSelection selection = new SimSelection(option);
                bool         canceled;

                selection.FilterSims(new List <ICriteria>(), null, true, out canceled);
                return(selection);
            }
コード例 #3
0
            public static SimSelection Create(string title, string subTitle, SimDescription me)
            {
                SimSelection selection = new SimSelection(title, subTitle, me);

                bool canceled = false;

                selection.FilterSims(null, null, false, out canceled);

                return(selection);
            }
コード例 #4
0
ファイル: ProtoSelect.cs プロジェクト: yakoder/NRaas
            public static SimSelection Create(string title, string subTitle, SimDescription me, Role.RoleType type)
            {
                SimSelection selection = new SimSelection(title, subTitle, me, type);

                List <ICriteria> criteria = new List <ICriteria>();

                foreach (IRoleCriteria crit in Common.DerivativeSearch.Find <IRoleCriteria>())
                {
                    criteria.Add(crit);
                }

                bool canceled;

                selection.FilterSims(criteria, null, false, out canceled);
                return(selection);
            }