public MainWindow()
        {
            InitializeComponent();

            UpdateStatus("Starting server...");

            BroadcastPort = Properties.Settings.Default.broadcastPort;
            DevicePort = Properties.Settings.Default.webcamPort;
            BasePath = Properties.Settings.Default.basePath;

            if (string.IsNullOrEmpty(BasePath))
                BasePath = Environment.GetFolderPath(Environment.SpecialFolder.Personal);

            DVPresenter = new DevicePresenter(this);
            _rsPresenter = new ResourcePresenter(this);

            cbxDevice.Items.Add("All webcams");
            cbxDevice.SelectedIndex = 0;
            UpdateStatus("Ready!");
        }
Example #2
0
 public Client(Messenger messenger, DevicePresenter presenter, string name)
     : base(messenger)
 {
     _dvPresenter = presenter;
     Name = name;
 }