예제 #1
0
 public CreateRoomVm()
 {
     CreateRoomAction  = new CreateRoomActionVm();
     CreateRoomContent = new CreateRoomContentVm();
     RoomActions       = new List <CreateRoomActionVm>();
     RoomContents      = new List <CreateRoomContentVm>();
 }
예제 #2
0
        public CreateRoomVm(IEnumerable <string> cultures)
        {
            this.Cultures     = cultures;
            CreateRoomAction  = new CreateRoomActionVm(cultures);
            CreateRoomContent = new CreateRoomContentVm(cultures);
            RoomActions       = new List <CreateRoomActionVm>();
            RoomContents      = new List <CreateRoomContentVm>();

            CultureNames = new Dictionary <string, string>();

            foreach (var item in cultures)
            {
                CultureNames.Add(item, string.Empty);
            }
        }