コード例 #1
0
 public GitBasedMultiFileSystemHistoryService(GitBasedGroup group, IHistoryService historyService) : base(group)
 {
     if (historyService == null)            
         throw new ArgumentNullException(nameof(historyService));
     
     m_HistoryService = historyService;
 }
コード例 #2
0
ファイル: UserService.Partial.cs プロジェクト: amarfut/finder
 public UserService(INoSqlDb db, IHistoryService history, IImageService image, ILogger logger, IDateTimeProvider dtp)
 {
     _db = db;
     _history = history;
     _image = image;
     _logger = logger;
     _dtp = dtp;
 }
コード例 #3
0
 public SuggestionVoteService(
     IUnitOfWork db,
     IHistoryService historyService,
     IVoteFinishHelper voteFinishHelper)
 {
     _db = db;
     _historyService = historyService;
     _voteFinishHelper = voteFinishHelper;
 }
コード例 #4
0
 public TrackedDownloadService(IParsingService parsingService,
     ICacheManager cacheManager,
     IHistoryService historyService,
     Logger logger)
 {
     _parsingService = parsingService;
     _historyService = historyService;
     _cache = cacheManager.GetCache<TrackedDownload>(GetType());
     _logger = logger;
 }
コード例 #5
0
 public FailedDownloadService(IHistoryService historyService,
                              IEventAggregator eventAggregator,
                              IConfigService configService,
                              Logger logger)
 {
     _historyService = historyService;
     _eventAggregator = eventAggregator;
     _configService = configService;
     _logger = logger;
 }
コード例 #6
0
 public HistorySpecification(IHistoryService historyService,
                                    QualityUpgradableSpecification qualityUpgradableSpecification,
                                    IConfigService configService,
                                    Logger logger)
 {
     _historyService = historyService;
     _qualityUpgradableSpecification = qualityUpgradableSpecification;
     _configService = configService;
     _logger = logger;
 }
コード例 #7
0
ファイル: HistorySpecification.cs プロジェクト: niel/NzbDrone
 public HistorySpecification(IHistoryService historyService,
                                    QualityUpgradableSpecification qualityUpgradableSpecification,
                                    IProvideDownloadClient downloadClientProvider,
                                    Logger logger)
 {
     _historyService = historyService;
     _qualityUpgradableSpecification = qualityUpgradableSpecification;
     _downloadClientProvider = downloadClientProvider;
     _logger = logger;
 }
コード例 #8
0
 public CallHistoryViewModel(IHistoryService historyService, DialpadViewModel dialpadViewModel)
     : this()
 {
     _historyService = historyService;
     _contactService = ServiceManager.Instance.ContactService;
     _contactService.ContactAdded += OnNewContactAdded;
     _contactService.ContactsChanged += OnContactChanged;
     _contactService.ContactRemoved += OnContactRemoved;
     _historyService.OnCallHistoryEvent += CallHistoryEventChanged;
     _dialpadViewModel = dialpadViewModel;
     _dialpadViewModel.PropertyChanged += OnDialpadPropertyChanged;
 }
コード例 #9
0
 public CompletedDownloadService(IEventAggregator eventAggregator,
                              IConfigService configService,
                              IDiskProvider diskProvider,
                              IDownloadedEpisodesImportService downloadedEpisodesImportService,
                              IHistoryService historyService,
                              Logger logger)
 {
     _eventAggregator = eventAggregator;
     _configService = configService;
     _diskProvider = diskProvider;
     _downloadedEpisodesImportService = downloadedEpisodesImportService;
     _historyService = historyService;
     _logger = logger;
 }
コード例 #10
0
 public CompletedDownloadService(IConfigService configService,
                                 IEventAggregator eventAggregator,
                                 IHistoryService historyService,
                                 IDownloadedEpisodesImportService downloadedEpisodesImportService,
                                 IParsingService parsingService,
                                 Logger logger)
 {
     _configService = configService;
     _eventAggregator = eventAggregator;
     _historyService = historyService;
     _downloadedEpisodesImportService = downloadedEpisodesImportService;
     _parsingService = parsingService;
     _logger = logger;
 }
コード例 #11
0
        public GitBasedMultiFileSystemSnapshot(Commit commit, IHistoryService historyService)
        {
            if (commit == null)
                throw new ArgumentNullException(nameof(commit));

            if (historyService == null)
                throw new ArgumentNullException(nameof(historyService));

            if(!IsSnapshot(commit))
                throw new ArgumentException("The specified commit is not a MultiFileSystemSnapshot", nameof(commit));

            m_Commit = commit;
            m_HistoryService = historyService;
            m_SnapshotIds = new Lazy<IDictionary<string, string>>(LoadSnapshotIds);
        }
コード例 #12
0
        public static GitBasedMultiFileSystemSnapshot Create(Repository repository, BranchName branchName, IHistoryService historyService)
        {
            var directoryCreator = new LocalItemCreator();            

            var branch = repository.GetBranch(branchName);

            string commitId;
            using (var workingRepository = new TemporaryWorkingDirectory(repository.Info.Path, branch.FriendlyName))
            {

                var snapshotDirectory = new Directory(null, s_SnapshotDirectoryName);
                foreach (var fileSystemHistory in historyService.Items)
                {
                    var fileName = fileSystemHistory.Name + s_FileNameSuffix;
                    var content = fileSystemHistory.LatestFileSystemSnapshot?.Id ?? "";
                    snapshotDirectory.Add(d => new TextFile(d, fileName, content));
                }
                
                var snapshotDirectoryPath = Path.Combine(workingRepository.Location, s_SnapshotDirectoryName);
                directoryCreator.CreateDirectoryInPlace(snapshotDirectory, snapshotDirectoryPath, true);

                if (workingRepository.HasChanges)
                {
                    try
                    {
                        commitId = workingRepository.Commit("Created multi-filesystem snapshot");
                        workingRepository.Push();
                    }
                    catch (EmptyCommitException)
                    {
                        // no changes after all (HasChanges does not seem to be a 100% accurate)
                        commitId = repository.GetBranch(branchName).Tip.Sha;
                    }

                }
                else
                {
                    commitId = repository.GetBranch(branchName).Tip.Sha;
                }
            }

            var commit = repository.Lookup<Commit>(commitId);
            return IsSnapshot(commit) ? new GitBasedMultiFileSystemSnapshot(commit, historyService) : null;
        }
コード例 #13
0
ファイル: PagesApiContext.cs プロジェクト: tkirda/BetterCMS
        /// <summary>
        /// Initializes a new instance of the <see cref="PagesApiContext" /> class.
        /// </summary>
        /// <param name="lifetimeScope">The lifetime scope.</param>
        /// <param name="repository">The repository.</param>
        /// <param name="sitemapService">The sitemap service.</param>
        /// <param name="historyService">The history service.</param>
        public PagesApiContext(ILifetimeScope lifetimeScope, IRepository repository = null, ISitemapService sitemapService = null, IHistoryService historyService = null)
            : base(lifetimeScope, repository)
        {
            if (historyService == null)
            {
                this.historyService = Resolve<IHistoryService>();
            }
            else
            {
                this.historyService = historyService;
            }

            if (sitemapService == null)
            {
                this.sitemapService = Resolve<ISitemapService>();
            }
            else
            {
                this.sitemapService = sitemapService;
            }
        }
コード例 #14
0
        public ScreenHistory()
        {
            InitializeComponent();

            this.historyService = Win32ServiceManager.SharedManager.HistoryService;

            this.historyService.onHistoryEvent += this.historyService_onHistoryEvent;

            this.filterItems = new List<FilterItem>(new FilterItem[]
            {
                new FilterItem("All Events", "/BogheApp;component/embedded/16/date_time_16.png", HistoryEvent.StatusType.All, MediaType.All),
                new FilterItem("All Calls", "/BogheApp;component/embedded/16/call_16.png", HistoryEvent.StatusType.All, MediaType.AudioVideo),
                new FilterItem("Outgoing Calls", "/BogheApp;component/embedded/16/call_outgoing_16.png", HistoryEvent.StatusType.Outgoing, MediaType.AudioVideo),
                new FilterItem("Incoming Calls", "/BogheApp;component/embedded/16/call_incoming_16.png", HistoryEvent.StatusType.Incoming, MediaType.AudioVideo),
                new FilterItem("Missed Calls", "/BogheApp;component/embedded/16/call_missed_16.png", HistoryEvent.StatusType.Missed, MediaType.AudioVideo),
                new FilterItem("Messaging", "/BogheApp;component/embedded/16/messages_16.png", HistoryEvent.StatusType.All, MediaType.Messaging),
                new FilterItem("File Transfers", "/BogheApp;component/embedded/16/document_up_down_16.png", HistoryEvent.StatusType.All, MediaType.FileTransfer),
            });

            this.listBox.ItemTemplateSelector = new DataTemplateSelectorHistory();
            this.UpdateSource();

            this.comboBoxFilterCriteria.ItemsSource = this.filterItems;
            this.comboBoxFilterCriteria.SelectedIndex = 0;

            this.historyView.Filter = delegate(object @event)
            {
                HistoryEvent hEvent = @event as HistoryEvent;
                if (hEvent == null)
                {
                    return false;
                }
                if (((hEvent.Status & this.statusToDisplay) == hEvent.Status) &&
                    ((hEvent.MediaType & this.mediaTypeToDisplay) == hEvent.MediaType))
                {
                    return hEvent.DisplayName.StartsWith(this.textBoxSearchCriteria.Text, StringComparison.InvariantCultureIgnoreCase);
                }
                return false;
            };
        }
コード例 #15
0
 public HistoryController(ILogger <HistoryController> logger, IHistoryService historyService)
 {
     _logger         = logger;
     _historyService = historyService;
 }
コード例 #16
0
 public virtual void initServices()
 {
     runtimeService    = engineRule.RuntimeService;
     managementService = engineRule.ManagementService;
     historyService    = engineRule.HistoryService;
 }
コード例 #17
0
        public ScreenContactEdit(Contact contact, Group group)
            : base()
        {
            InitializeComponent();

            if ((this.contact = contact) != null)
            {
                this.textBoxSipUri.Text = this.contact.UriString ?? this.contact.UriString;
                this.textBoxDisplayName.Text = this.contact.DisplayName ?? this.contact.DisplayName;
                this.textBoxSipUri.IsEnabled = false;
                this.editMode = true;
                this.labelTitle.Content = Strings.Text_EditContact;
            }
            else
            {
                String realm = Win32ServiceManager.SharedManager.ConfigurationService.Get(Configuration.ConfFolder.NETWORK,
                    Configuration.ConfEntry.REALM, Configuration.DEFAULT_NETWORK_REALM);
                this.contact = new Contact();
                if (group != null)
                {
                    this.contact.GroupName = group.Name;
                }
                this.textBoxSipUri.Text = this.contact.UriString = String.Format("sip:johndoe@{0}", realm.Replace("sip:", String.Empty));
                this.textBoxDisplayName.Text = this.contact.DisplayName = "John Doe";
                this.textBoxSipUri.IsEnabled = true;
                this.editMode = false;
                this.labelTitle.Content = Strings.Text_AddContact;
            }

            this.contactService = Win32ServiceManager.SharedManager.ContactService;
            this.historyService = Win32ServiceManager.SharedManager.HistoryService;
            this.screenService = Win32ServiceManager.SharedManager.Win32ScreenService;
        }
コード例 #18
0
 public HistoryController(IDistributedCache distributedCache, IHistoryService historyService)
 {
     _distributedCache = distributedCache;
     _historyService   = historyService;
 }
コード例 #19
0
 public ContentHistoryService(IHistoryService historyService)
 {
     this.historyService = historyService;
 }
コード例 #20
0
 public StudentController(ICourseService courseService, ISpecialtyService specialtyService, IGroupService groupService, IStudentService studentService, IUnitOfWorkAsync unitOfWork, IHistoryService historyService)
 {
     _courseService    = courseService;
     _specialtyService = specialtyService;
     _groupService     = groupService;
     _studentService   = studentService;
     _unitOfWork       = unitOfWork;
     _historyService   = historyService;
 }
コード例 #21
0
 public virtual void initServices()
 {
     historyService  = engineRule.HistoryService;
     identityService = engineRule.IdentityService;
 }
コード例 #22
0
 public ContentHistoryService(IHistoryService historyService)
 {
     this.historyService = historyService;
 }
コード例 #23
0
 public UpdateIssueHandler(IIssueRepository issueRepository, ILogger <UpdateIssueHandler> logger, IMessageBroker messageBroker, IHistoryService historyService, IProjectsApiHttpClient projectsApiHttpClient, IAppContext appContext)
 {
     _issueRepository       = issueRepository;
     _logger                = logger;
     _messageBroker         = messageBroker;
     _historyService        = historyService;
     _projectsApiHttpClient = projectsApiHttpClient;
     _appContext            = appContext;
 }
コード例 #24
0
ファイル: History.cs プロジェクト: Gparquet/bworld
 public History(IHistoryService historyService, IQueue queue)
 {
     _historyService = historyService;
 }
コード例 #25
0
 public HomeController(IComputerService computerService, IHistoryService historyService)
 {
     _computerService = computerService;
     _historyService  = historyService;
 }
コード例 #26
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetContentHistoryCommand" /> class.
 /// </summary>
 public GetContentHistoryCommand(IHistoryService historyService)
 {
     this.historyService = historyService;
 }
コード例 #27
0
 /// <summary>Initializes the GroupController</summary>
 public GroupController(IGroupService groupService, ISpendingService spendingService, IHistoryService historyService)
 {
     GroupService    = groupService;
     SpendingService = spendingService;
     HistoryService  = historyService;
 }
コード例 #28
0
 public HistoryController(IHistoryService historyService, IErrorService errorService) : base(errorService)
 {
     _historyService = historyService;
 }
コード例 #29
0
 public DeliveryTypeHandler(ICommonDataService dataService, IHistoryService historyService)
 {
     _dataService    = dataService;
     _historyService = historyService;
 }
コード例 #30
0
 public static async Task <IList <HistoryObject> > GetHistoryObject(this BaseEntity entity, IHistoryService historyService)
 {
     return(await historyService.GetHistoryObjectForEntity(entity));
 }
コード例 #31
0
 public FailedDownloadService(IHistoryService historyService,
                              IEventAggregator eventAggregator)
 {
     _historyService = historyService;
     _eventAggregator = eventAggregator;
 }
コード例 #32
0
 public LoadingArrivalTimeHandler(ICommonDataService dataService, IHistoryService historyService)
 {
     _dataService    = dataService;
     _historyService = historyService;
 }
コード例 #33
0
 public FastSellHandler(ITransactionService transactionService, IHistoryService historyService)
 {
     _transactionService = transactionService;
     _historyService     = historyService;
 }
コード例 #34
0
        public FhirResponse History(string type, HistoryParameters parameters)
        {
            IHistoryService historyExtension = this.GetFeature <IHistoryService>();

            return(CreateSnapshotResponse(historyExtension.History(type, parameters)));
        }
コード例 #35
0
 public HistoryController(ICommandBus commandBus, IHistoryService historyService)
     : base(commandBus)
 {
     this.historyService = historyService;
 }
コード例 #36
0
 public AnalyticsService(IHistoryService historyService, IConfigFileProvider configFileProvider)
 {
     _configFileProvider = configFileProvider;
     _historyService     = historyService;
 }
コード例 #37
0
 public DeliveryStatusHandler(ICommonDataService dataService, IHistoryService historyService)
 {
     this._dataService = dataService;
     _historyService   = historyService;
 }
コード例 #38
0
        public ScreenContacts()
            : base()
        {
            InitializeComponent();

            this.contactService = Win32ServiceManager.SharedManager.ContactService;
            this.sipService = Win32ServiceManager.SharedManager.SipService;
            this.historyService = Win32ServiceManager.SharedManager.HistoryService;

            // important to do it here before setting ItemsSource
            this.contactService.onContactEvent += this.contactService_onContactEvent;
            this.sipService.onSubscriptionEvent += this.sipService_onSubscriptionEvent;

            this.UpdateSource();
        }
コード例 #39
0
 public AlreadyImportedSpecification(IHistoryService historyService,
                                     Logger logger)
 {
     _historyService = historyService;
     _logger         = logger;
 }
コード例 #40
0
 public ShippingWarehouseNameHandler(ICommonDataService dataService, IHistoryService historyService)
 {
     _dataService    = dataService;
     _historyService = historyService;
 }
コード例 #41
0
 public HistoryController(IHistoryService historyService)
 {
     _historyService = historyService;
 }
コード例 #42
0
        public SessionWindow(String remotePartyUri)
            : base()
        {
            InitializeComponent();

            this.remotePartyUri = remotePartyUri;
            this.Title = String.Empty;
            this.buttonCallOrAnswer.Tag = Strings.Text_Call;

            this.fileTransferSessions = new List<MyMsrpSession>();
            this.imActivityIndicator = new IMActivityIndicator(this.remotePartyUri);

            this.videoDisplayLocal = new VideoDisplay();
            this.videoDisplayLocal.VerticalAlignment = VerticalAlignment.Stretch;
            this.videoDisplayLocal.HorizontalAlignment = HorizontalAlignment.Stretch;
            this.videoDisplayScrenCastLocal = new VideoDisplay();
            this.videoDisplayScrenCastLocal.VerticalAlignment = this.videoDisplayLocal.VerticalAlignment;
            this.videoDisplayScrenCastLocal.HorizontalAlignment = this.videoDisplayLocal.HorizontalAlignment;
            this.videoDisplayRemote = new VideoDisplay();
            this.videoDisplayRemote.ToolTip = this.borderVideoDispalyRemote.ToolTip;

            this.borderVideoDispalyRemote.Child = this.videoDisplayRemote;
            this.borderVideoDispalyLocal.Child = this.videoDisplayLocal;
            this.borderVideoDispalyScrenCastLocal.Child = this.videoDisplayScrenCastLocal;

            this.labelInfo.Content = String.Empty;
            this.timerCall = new Timer(1000);
            this.timerCall.AutoReset = true;
            this.timerCall.Elapsed += this.timerCall_Elapsed;

            // Services
            this.contactService = Win32ServiceManager.SharedManager.ContactService;
            this.sipService = Win32ServiceManager.SharedManager.SipService;
            this.historyService = Win32ServiceManager.SharedManager.HistoryService;
            this.soundService = Win32ServiceManager.SharedManager.SoundService;
            this.configurationService = Win32ServiceManager.SharedManager.ConfigurationService;

            // Messaging
            this.historyDataSource = new MyObservableCollection<HistoryEvent>();
            this.historyCtrl.ItemTemplateSelector = new DataTemplateSelectorMessaging();
            this.historyCtrl.ItemsSource = this.historyDataSource;

            // Register events
            this.sipService.onInviteEvent += this.sipService_onInviteEvent;
            this.imActivityIndicator.RemoteStateChangedEvent += this.imActivityIndicator_RemoteStateChangedEvent;
            this.imActivityIndicator.SendMessageEvent += this.imActivityIndicator_SendMessageEvent;

            this.volume = this.configurationService.Get(Configuration.ConfFolder.GENERAL, Configuration.ConfEntry.AUDIO_VOLUME, Configuration.DEFAULT_GENERAL_AUDIO_VOLUME);
            this.sliderVolume.Value = (double)this.volume;

            lock (SessionWindow.windows)
            {
                SessionWindow.windows.Add(this);
            }
        }
コード例 #43
0
 public HistoryViewModel(IHistoryService historyService, INavigationService navigationService, IFavoriteService favoriteService)
     : base(navigationService, favoriteService)
 {
     this.historyService = historyService;
     HistoryItems = new ObservableCollection<Group<BaseEntry>>();
 }
コード例 #44
0
 /// <summary>
 /// Create a controller and set the service
 /// </summary>
 public HistoryController(IHistoryService service)
 {
     _service = service;
 }
コード例 #45
0
 public UpgradeHistorySpecification(IHistoryService historyService, QualityUpgradableSpecification qualityUpgradableSpecification, Logger logger)
 {
     _historyService = historyService;
     _qualityUpgradableSpecification = qualityUpgradableSpecification;
     _logger = logger;
 }
コード例 #46
0
 public DishController(IErrorService errorService, IDishService dishService, IHistoryService historyService) : base(errorService, historyService)
 {
     this.dishService = dishService;
 }
コード例 #47
0
 protected void OnLoaded(object sender, RoutedEventArgs e)
 {
     if (_historyService != null)
         return;
     _historyService = ServiceManager.Instance.HistoryService;
     _historyService.OnCallHistoryEvent += OnHistoryCallEvent;
     lstCallsBox.Visibility = Visibility.Collapsed;
 }
コード例 #48
0
 public HistoryController(IServiceFactory factory, IMapper mapper)
 {
     _service = factory.CreateHistoryService();
     _mapper  = mapper;
 }
コード例 #49
0
ファイル: RetrySpecification.cs プロジェクト: BO45/NzbDrone
 public RetrySpecification(IHistoryService historyService, IConfigService configService, Logger logger)
 {
     _historyService = historyService;
     _configService = configService;
     _logger = logger;
 }
コード例 #50
0
ファイル: UserController.cs プロジェクト: rnofenko/FIFA
 public UserController(IUserService userService, IHistoryService historyService)
 {
     _userService = userService;
     _historyService = historyService;
 }
コード例 #51
0
ファイル: MessagingWindow.xaml.cs プロジェクト: xolile/boghe
        public MessagingWindow(String remotePartyUri)
        {
            InitializeComponent();

            this.remotePartyUri = remotePartyUri;
            this.Title = String.Empty;
            this.messagingType = MediaType.None;
            this.fileTransferSessions = new List<MyMsrpSession>();

            // Services
            this.configurationService = Win32ServiceManager.SharedManager.ConfigurationService;
            this.contactService = Win32ServiceManager.SharedManager.ContactService;
            this.sipService = Win32ServiceManager.SharedManager.SipService;
            this.historyService = Win32ServiceManager.SharedManager.HistoryService;
            this.soundService = Win32ServiceManager.SharedManager.SoundService;

            // Messaging
            this.historyDataSource = new MyObservableCollection<HistoryEvent>();
            this.historyCtrl.ItemTemplateSelector = new DataTemplateSelectorMessaging();
            this.historyCtrl.ItemsSource = this.historyDataSource;

            // Participants
            this.participants = new MyObservableCollection<Participant>();
            this.participants.Add(new Participant(this.remotePartyUri));
            this.listBoxParticipants.ItemsSource = this.participants;

            // Events
            this.sipService.onInviteEvent += this.sipService_onInviteEvent;

            lock (MessagingWindow.windows)
            {
                MessagingWindow.windows.Add(this);
            }
        }
コード例 #52
0
 public GrabbedReleaseQualitySpecification(IHistoryService historyService, Logger logger)
 {
     _historyService = historyService;
     _logger         = logger;
 }
コード例 #53
0
ファイル: SessionWindow.xaml.cs プロジェクト: xolile/boghe
        public SessionWindow(String remotePartyUri)
            : base()
        {
            InitializeComponent();

            this.remotePartyUri = remotePartyUri;
            this.Title = String.Empty;
            this.buttonCallOrAnswer.Tag = "Call";

            this.fileTransferSessions = new List<MyMsrpSession>();

            this.videoDisplayLocal = new VideoDisplay();
            this.videoDisplayLocal.Visibility = Visibility.Hidden;
            this.videoDisplayRemote = new VideoDisplay();
            this.videoDisplayRemote.Visibility = Visibility.Hidden;
            this.videoDisplayRemote.ToolTip = this.borderVideoDispalyRemote.ToolTip;

            this.borderVideoDispalyRemote.Child = this.videoDisplayRemote;
            this.borderVideoDispalyLocal.Child = this.videoDisplayLocal;

            this.labelInfo.Content = String.Empty;
            this.timerCall = new Timer(1000);
            this.timerCall.AutoReset = true;
            this.timerCall.Elapsed += this.timerCall_Elapsed;

            // Services
            this.contactService = Win32ServiceManager.SharedManager.ContactService;
            this.sipService = Win32ServiceManager.SharedManager.SipService;
            this.historyService = Win32ServiceManager.SharedManager.HistoryService;
            this.soundService = Win32ServiceManager.SharedManager.SoundService;
            this.configurationService = Win32ServiceManager.SharedManager.ConfigurationService;

            // Messaging
            this.historyDataSource = new MyObservableCollection<HistoryEvent>();
            this.historyCtrl.ItemTemplateSelector = new DataTemplateSelectorMessaging();
            this.historyCtrl.ItemsSource = this.historyDataSource;

            // Register to SIP events
            this.sipService.onInviteEvent += this.sipService_onInviteEvent;

            lock (SessionWindow.windows)
            {
                SessionWindow.windows.Add(this);
            }
        }
コード例 #54
0
 public HistoryEventController(IHistoryService historyService, IMapper mapper)
 {
     Console.WriteLine("history controller");
     _mapper         = mapper;
     _historyService = historyService;
 }
コード例 #55
0
 public OnChangeVehicleTypeId(ICommonDataService dataService, IHistoryService historyService, IDeliveryCostCalcService calcService)
 {
     _dataService    = dataService;
     _historyService = historyService;
     _calcService    = calcService;
 }
コード例 #56
0
ファイル: MainWindow.xaml.cs プロジェクト: sarandogou/boghe
        public MainWindow()
        {
            InitializeComponent();

            // Initialize Screen Service
            this.screenService = Win32ServiceManager.SharedManager.Win32ScreenService;
            this.screenService.SetTabControl(this.tabControl);
            this.screenService.SetProgressLabel(this.labelProgressInfo);

            // Initialize SIP Service
            this.sipService = Win32ServiceManager.SharedManager.SipService;
            this.sipService.onStackEvent += this.sipService_onStackEvent;
            this.sipService.onRegistrationEvent += this.sipService_onRegistrationEvent;
            this.sipService.onInviteEvent += this.sipService_onInviteEvent;
            this.sipService.onMessagingEvent += this.sipService_onMessagingEvent;
            this.sipService.onSubscriptionEvent += this.sipService_onSubscriptionEvent;
            this.sipService.onHyperAvailabilityTimedout += this.sipService_onHyperAvailabilityTimedout;

            // Initialize other Services
            this.configurationService = Win32ServiceManager.SharedManager.ConfigurationService;
            this.contactService = Win32ServiceManager.SharedManager.ContactService;
            this.soundService = Win32ServiceManager.SharedManager.SoundService;
            this.historyService = Win32ServiceManager.SharedManager.HistoryService;
            this.stateMonitorService = Win32ServiceManager.SharedManager.StateMonitorService;
            this.xcapService = Win32ServiceManager.SharedManager.XcapService;
            this.configurationService.onConfigurationEvent += this.configurationService_onConfigurationEvent;
            this.xcapService.onXcapEvent += this.xcapService_onXcapEvent;
            this.stateMonitorService.onStateChangedEvent += this.stateMonitorService_onStateChangedEvent;

            // Hook Closeable items
            this.AddHandler(CloseableTabItem.CloseTabEvent, new RoutedEventHandler(this.CloseTab));

            this.registrations = new MyObservableCollection<RegistrationInfo>();
            this.watchers = new MyObservableCollection<WatcherInfo>();

            // Show Authentication Screen
            //this.screenService.Show(ScreenType.Contacts);
            this.screenService.Show(ScreenType.Authentication);
        }
コード例 #57
0
 public MenuPage2ViewModel(IHistoryService historyService)
 {
     _historyService = historyService;
 }