Esempio n. 1
0
        public CastInterface()
        {
            DayCastServer.TryLaunchServer(LocalIPAddress, LocalHostPort);
            DayCastServer.ServerQueueReception += DayCastServer_ServerQueueReception;
            DayCastServer.PollServer(HostAddress);

            MediaSender.GetChannel <IMediaChannel>().StatusChanged      += MediaChannelStatusChanged;
            MediaSender.GetChannel <IMediaChannel>().QueueStatusChanged += QueueStatusChanged;
            MediaSender.GetChannel <IReceiverChannel>().StatusChanged   += ReceiverChannelStatusChanged;
            SeekTimer.Tick += SeekTimer_Tick;

            Queue = new ObservableCollection <QueueItem>();

            InitializeCommands();
        }
Esempio n. 2
0
 private void Window_Closing(object sender, CancelEventArgs e)
 {
     NotifyIcon.Visible = false;
     DayCastServer.TryStopServer();
     Settings.Default.Save();
 }