Skip to content

Commit

Permalink
Small change
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxXor committed Aug 1, 2016
1 parent fa0b5a2 commit 1fca118
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Server/Forms/FrmRemoteWebcam.cs
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
using xServer.Core.Helper;
using xServer.Core.Networking;
using xServer.Core.Utilities;
using xServer.Enums;

namespace xServer.Forms
{
using System.Linq;

public partial class FrmRemoteWebcam : Form
{

public bool IsStarted { get; private set; }
private readonly Client _connectClient;
private Dictionary<string, List<Size>> Webcams;
private Dictionary<string, List<Size>> _webcams;

public FrmRemoteWebcam(Client c)
{
Expand Down Expand Up @@ -58,7 +55,7 @@ private void FrmRemoteWebcam_Load(object sender, EventArgs e)
}
public void AddWebcams(Dictionary<string, List<Size>> webcams)
{
this.Webcams = webcams;
this._webcams = webcams;
try
{
cbWebcams.Invoke((MethodInvoker)delegate
Expand Down Expand Up @@ -130,7 +127,7 @@ private void cbWebcams_SelectedIndexChanged(object sender, EventArgs e)
cbResolutions.Invoke((MethodInvoker)delegate
{
cbResolutions.Items.Clear();
foreach (var resolution in this.Webcams.ElementAt(cbWebcams.SelectedIndex).Value)
foreach (var resolution in this._webcams.ElementAt(cbWebcams.SelectedIndex).Value)
{
cbResolutions.Items.Add(string.Format("{0} x {1}", resolution.Width, resolution.Height));
}
Expand Down

0 comments on commit 1fca118

Please sign in to comment.