예제 #1
0
        public RequestViewModel()
        {
            ClientLanguages  = LocalStorage.LoginResponseLS.UserInfo.LanguageInfo;
            RequestLanguages = new ObservableCollection <LanguageModel>();
            Businesses       = LocalStorage.LoginResponseLS.UserInfo.ClientInfo.Businesses;
            if (Businesses.Count == 1)
            {
                SelectedBusiness = Businesses.Last();
            }
            CreateCallRequestCommand = new Command(async() => await ExecuteCreateCallRequestAsync());
            ActiveCallViewModel      = new ActiveCallViewModel();

            ActiveCallViewModel.CallCanceled += ActiveCallViewModel_CallCanceled;
            App.ActiveCall.PropertyChanged   += ActiveCall_PropertyChanged;
        }