forked from hpavlov/Tangra.DirectShow.Video
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrmSetupDialog.cs
More file actions
82 lines (74 loc) · 2.06 KB
/
frmSetupDialog.cs
File metadata and controls
82 lines (74 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//tabs=4
// --------------------------------------------------------------------------------
//
// ASCOM Video Driver - DirectShow
//
// Description: This is the set up form for the Video Driver DirectShow
//
// Author: (HDP) Hristo Pavlov <hristo_dpavlov@yahoo.com>
//
// Edit Log:
//
// Date Who Vers Description
// ----------- --- ----- -------------------------------------------------------
// 13-Mar-2013 HDP 6.0.0 Initial commit
// 21-Mar-2013 HDP 6.0.0. Implemented monochrome and colour grabbing
// 22-Mar-2013 HDP 6.0.0 Added support for XviD and Huffyuv codecs
// --------------------------------------------------------------------------------
//
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
using Tangra.DirectShowVideoBase.DirectShowVideo;
using Tangra.DirectShowVideoBase.DirectShowVideo.VideoCaptureImpl;
using DirectShowLib;
namespace Tangra.DirectShow
{
[ComVisible(false)]
internal partial class frmSetupDialog : Form
{
private string driverVersion;
public frmSetupDialog(DirectShowVideoSettings settings, string driverVersion)
{
InitializeComponent();
this.driverVersion = driverVersion;
ucDirectShowVideoSettings.Initialize(settings);
}
private void frmSetupDialog_Load(object sender, EventArgs e)
{
lblVersion.Text = "v" + driverVersion;
}
private void cmdOK_Click(object sender, EventArgs e)
{
if (ucDirectShowVideoSettings.SaveSettings() == DialogResult.OK)
Close();
}
private void cmdCancel_Click(object sender, EventArgs e)
{
Close();
}
private void BrowseToAscom(object sender, EventArgs e)
{
try
{
System.Diagnostics.Process.Start("http://ascom-standards.org/");
}
catch (System.ComponentModel.Win32Exception noBrowser)
{
if (noBrowser.ErrorCode == -2147467259)
MessageBox.Show(noBrowser.Message);
}
catch (System.Exception other)
{
MessageBox.Show(other.Message);
}
}
}
}