public bool Start() { this.screenService = this.manager.ScreenService; this.xcapService = this.manager.XcapService; this.sipService = this.manager.SipService; this.configurationService = this.manager.ConfigurationService; this.stateMonitorService = this.manager.StateMonitorService; this.sipService.onRegistrationEvent += this.sipService_onRegistrationEvent; return(true); }
public MainWindow() { InitializeComponent(); aTimer.Interval = 10000; aTimer.Elapsed += aTimer_Elapsed; aTimer.Start(); //Initialize Screen Service this.screenService = Win32ServiceManager.SharedManager.Win32ScreenService; this.screenService.SetTabControl(this.Tab1); //this.screenService.SetProgressLabel(this.labelProgressInfo); Common.MainW = this; // 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>(); this.screenService.Show(ScreenType.Authentication); this.Uname.Text = Common.displayName; this.Ye.Text = Common.Uye.ToString("0.00"); }
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); }
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); }
public bool Start() { this.screenService = this.manager.ScreenService; #if !WINRT this.xcapService = this.manager.XcapService; this.sipService = this.manager.SipService; #endif this.configurationService = this.manager.ConfigurationService; this.stateMonitorService = this.manager.StateMonitorService; #if !WINRT this.sipService.onRegistrationEvent += this.sipService_onRegistrationEvent; #endif return true; }