示例#1
0
        public void AddRank()
        {
            var c = this.dm.CreateObject <Rank>();

            c.Id = GuidComb.Generate();
            dm.AddRank(c);

            var vm = new RankViewModel(c);

            AllRanks.Add(vm);
            CurrentRank = vm;
        }
示例#2
0
        public void AddRank()
        {
            var c = this.dm.CreateObject<Rank>();
            c.Id = GuidComb.Generate();
            dm.AddRank(c);

            var vm = new RankViewModel(c);
            AllRanks.Add(vm);
            CurrentRank = vm;
        }