Esempio n. 1
0
 public Server()
 {
     roomServicePort = int.Parse(System.Configuration.ConfigurationManager.AppSettings["RoomServicePort"]);
     roomClient = new RoomServiceClient(roomCallback,ip,roomServicePort);
     roomClient.AudioServiceLogin(ip,port);
     roomClient.AudioServiceLogOff();
 }
        public RoomWindowViewModel(RoomViewModel roomVM)
        {
            this.RoomVM = roomVM;
            userVMs.SetValue(new System.Collections.ObjectModel.ObservableCollection<UserViewModel>());
            privateMicUserVMs.SetValue(new System.Collections.ObjectModel.ObservableCollection<UserViewModel>());
            secretMicUserVMs.SetValue(new System.Collections.ObjectModel.ObservableCollection<UserViewModel>());
            fontFamilies.SetValue(new System.Collections.ObjectModel.ObservableCollection<string>());
            fontSizes.SetValue(new System.Collections.ObjectModel.ObservableCollection<int>());

            RoomCallback = new RoomServiceCallback();
            RoomClient = new RoomServiceClient(RoomCallback, roomVM.ServiceIp, ApplicationVM.LocalCache.RoomServicePort);

            SetVideoSize();
        }