private void Main_Load(object sender, EventArgs e) { tbIp.Text = Properties.Settings.Default.IpAddress; switch (Properties.Settings.Default.ClientType) { case ClientType.XBMC: { checkBoxXBMC.Checked = true; } break; case ClientType.Boxee: { checkBoxBoxee.Checked = true; } break; case ClientType.Custom: { checkBoxCustom.Checked = true; } break; } if (Properties.Settings.Default.AutoStartStreamViewer == true) { streamViewer = new StreamView(); autostartVisualFeedToolStripMenuItem.Checked = true; } }
private void openVisualFeedToolStripMenuItem_Click(object sender, EventArgs e) { Cursor = Cursors.WaitCursor; if (streamViewer == null) { streamViewer = new StreamView(); } if (!streamViewer.Visible) { if (streamViewer.InvokeRequired) { streamViewer.Invoke((Action)(() => { streamViewer.Show(); })); streamViewer.Invoke((Action)(() => { streamViewer.DesktopLocation = Properties.Settings.Default.StreamViewerLocation; })); openVisualFeedToolStripMenuItem.Checked = true; } else { if (!streamViewer.IsDisposed) { streamViewer.Show(); streamViewer.DesktopLocation = Properties.Settings.Default.StreamViewerLocation; openVisualFeedToolStripMenuItem.Checked = true; } else { streamViewer = null; } } Cursor = Cursors.Default; } else { streamViewer.Invoke((Action)(() => { streamViewer.Hide(); })); openVisualFeedToolStripMenuItem.Checked = false; Cursor = Cursors.Default; } }
private void sensorHandler_HandDetected(object sender, EventArgs e) { if (streamViewer == null) { streamViewer = new StreamView(); } if (Properties.Settings.Default.AutoStartStreamViewer == true) { if (streamViewer.Visible == false) { if (streamViewer.InvokeRequired) { streamViewer.Invoke((Action)(() => { streamViewer.Show(); })); } else { this.Invoke((Action)(() => { streamViewer.Show(); })); } streamViewer.DesktopLocation = Properties.Settings.Default.StreamViewerLocation; } } }
private void sensorHandler_HandDetected(object sender, EventArgs e) { if (streamViewer == null) streamViewer = new StreamView(); if (Properties.Settings.Default.AutoStartStreamViewer == true) { if (streamViewer.Visible == false) { if (streamViewer.InvokeRequired) { streamViewer.Invoke((Action)(() => { streamViewer.Show(); })); } else { this.Invoke((Action)(() => { streamViewer.Show(); })); } streamViewer.DesktopLocation = Properties.Settings.Default.StreamViewerLocation; } } }
private void openVisualFeedToolStripMenuItem_Click(object sender, EventArgs e) { Cursor = Cursors.WaitCursor; if (streamViewer == null) streamViewer = new StreamView(); if (!streamViewer.Visible) { if (streamViewer.InvokeRequired) { streamViewer.Invoke((Action)(() => { streamViewer.Show(); })); streamViewer.Invoke((Action)(() => { streamViewer.DesktopLocation = Properties.Settings.Default.StreamViewerLocation; })); openVisualFeedToolStripMenuItem.Checked = true; } else { if (!streamViewer.IsDisposed) { streamViewer.Show(); streamViewer.DesktopLocation = Properties.Settings.Default.StreamViewerLocation; openVisualFeedToolStripMenuItem.Checked = true; } else { streamViewer = null; } } Cursor = Cursors.Default; } else { streamViewer.Invoke((Action)(() => { streamViewer.Hide(); })); openVisualFeedToolStripMenuItem.Checked = false; Cursor = Cursors.Default; } }
private void Main_Load(object sender, EventArgs e) { tbIp.Text = Properties.Settings.Default.IpAddress; switch (Properties.Settings.Default.ClientType) { case ClientType.XBMC: { checkBoxXBMC.Checked = true; } break; case ClientType.Boxee: { checkBoxBoxee.Checked = true; } break; case ClientType.Custom: { checkBoxCustom.Checked = true; } break; } if (Properties.Settings.Default.AutoStartStreamViewer == true) { streamViewer = new StreamView(); autostartVisualFeedToolStripMenuItem.Checked = true; } }