Skip to content

Commit 0e824ee

Browse files
author
JMS
committed
Uploaded VCR.NET only
1 parent 4c46d0f commit 0e824ee

406 files changed

Lines changed: 68466 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProductVersion>9.0.30729</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>{EE19B344-ECDA-40B6-8A7B-710C23DA5D44}</ProjectGuid>
9+
<OutputType>WinExe</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>VCRControlCenter</RootNamespace>
12+
<AssemblyName>VCRNET Control Center</AssemblyName>
13+
<ApplicationIcon>TrayIcons\Standard.ICO</ApplicationIcon>
14+
<FileUpgradeFlags>
15+
</FileUpgradeFlags>
16+
<OldToolsVersion>3.5</OldToolsVersion>
17+
<UpgradeBackupLocation>
18+
</UpgradeBackupLocation>
19+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
20+
<SignAssembly>true</SignAssembly>
21+
<AssemblyOriginatorKeyFile>..\..\..\dvbnet4.snk</AssemblyOriginatorKeyFile>
22+
<TargetFrameworkProfile>
23+
</TargetFrameworkProfile>
24+
</PropertyGroup>
25+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
26+
<DebugSymbols>true</DebugSymbols>
27+
<DebugType>full</DebugType>
28+
<Optimize>false</Optimize>
29+
<OutputPath>..\WebClient41\Tools\</OutputPath>
30+
<DefineConstants>DEBUG;TRACE</DefineConstants>
31+
<ErrorReport>prompt</ErrorReport>
32+
<WarningLevel>4</WarningLevel>
33+
<UseVSHostingProcess>false</UseVSHostingProcess>
34+
<NoWarn>
35+
</NoWarn>
36+
<PlatformTarget>x86</PlatformTarget>
37+
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
38+
<Prefer32Bit>false</Prefer32Bit>
39+
</PropertyGroup>
40+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
41+
<DebugType>pdbonly</DebugType>
42+
<Optimize>true</Optimize>
43+
<OutputPath>..\WebClient41\Tools\</OutputPath>
44+
<DefineConstants>TRACE</DefineConstants>
45+
<ErrorReport>prompt</ErrorReport>
46+
<WarningLevel>4</WarningLevel>
47+
<UseVSHostingProcess>false</UseVSHostingProcess>
48+
<NoWarn>
49+
</NoWarn>
50+
<PlatformTarget>x86</PlatformTarget>
51+
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
52+
<Prefer32Bit>false</Prefer32Bit>
53+
</PropertyGroup>
54+
<ItemGroup>
55+
<Reference Include="Newtonsoft.Json">
56+
<HintPath>..\..\..\..\..\..\..\Program Files\Microsoft ASP.NET\ASP.NET MVC 4\Packages\Newtonsoft.Json.4.5.11\lib\net40\Newtonsoft.Json.dll</HintPath>
57+
</Reference>
58+
<Reference Include="System" />
59+
<Reference Include="System.configuration" />
60+
<Reference Include="System.Core">
61+
<RequiredTargetFramework>3.5</RequiredTargetFramework>
62+
</Reference>
63+
<Reference Include="System.Data" />
64+
<Reference Include="System.Deployment" />
65+
<Reference Include="System.Drawing" />
66+
<Reference Include="System.EnterpriseServices" />
67+
<Reference Include="System.ServiceProcess" />
68+
<Reference Include="System.Web.Services" />
69+
<Reference Include="System.Windows.Forms" />
70+
<Reference Include="System.Xml" />
71+
</ItemGroup>
72+
<ItemGroup>
73+
<Compile Include="HibernateDialog.cs">
74+
<SubType>Form</SubType>
75+
</Compile>
76+
<Compile Include="PerServerSettings.cs" />
77+
<Compile Include="ProcessingItem.cs" />
78+
<Compile Include="ProfileInfo.cs" />
79+
<Compile Include="Properties\Resources.Designer.cs">
80+
<DependentUpon>Resources.resx</DependentUpon>
81+
<AutoGen>True</AutoGen>
82+
<DesignTime>True</DesignTime>
83+
</Compile>
84+
<Compile Include="ServerInfo.cs" />
85+
<Compile Include="VCRNETControl.cs">
86+
<SubType>Form</SubType>
87+
</Compile>
88+
<Compile Include="VCRNETControl.Designer.cs">
89+
<DependentUpon>VCRNETControl.cs</DependentUpon>
90+
</Compile>
91+
<Compile Include="Program.cs" />
92+
<Compile Include="Properties\AssemblyInfo.cs" />
93+
<EmbeddedResource Include="Properties\Resources.de.resx">
94+
<Generator>ResXFileCodeGenerator</Generator>
95+
<LastGenOutput>Resources.de.Designer.cs</LastGenOutput>
96+
<SubType>Designer</SubType>
97+
</EmbeddedResource>
98+
<EmbeddedResource Include="VCRNETControl.resx">
99+
<SubType>Designer</SubType>
100+
<DependentUpon>VCRNETControl.cs</DependentUpon>
101+
</EmbeddedResource>
102+
<Compile Include="Properties\Resources.de.Designer.cs">
103+
<AutoGen>True</AutoGen>
104+
<DependentUpon>Resources.de.resx</DependentUpon>
105+
<DesignTime>True</DesignTime>
106+
</Compile>
107+
<None Include="app.config" />
108+
<Content Include="Properties\Settings.settings">
109+
<Generator>SettingsSingleFileGenerator</Generator>
110+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
111+
</Content>
112+
<Compile Include="Properties\Settings.Designer.cs">
113+
<AutoGen>True</AutoGen>
114+
<DependentUpon>Settings.settings</DependentUpon>
115+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
116+
</Compile>
117+
<Compile Include="VCRNETRestProxy.cs" />
118+
</ItemGroup>
119+
<ItemGroup>
120+
<EmbeddedResource Include="TrayIcons\Blue.ICO" />
121+
</ItemGroup>
122+
<ItemGroup>
123+
<EmbeddedResource Include="TrayIcons\Green.ICO" />
124+
</ItemGroup>
125+
<ItemGroup>
126+
<EmbeddedResource Include="TrayIcons\Red.ICO" />
127+
</ItemGroup>
128+
<ItemGroup>
129+
<EmbeddedResource Include="TrayIcons\Standard.ICO" />
130+
</ItemGroup>
131+
<ItemGroup>
132+
<EmbeddedResource Include="HibernateDialog.de.resx">
133+
<DependentUpon>HibernateDialog.cs</DependentUpon>
134+
<SubType>Designer</SubType>
135+
</EmbeddedResource>
136+
<EmbeddedResource Include="HibernateDialog.resx">
137+
<DependentUpon>HibernateDialog.cs</DependentUpon>
138+
<SubType>Designer</SubType>
139+
</EmbeddedResource>
140+
<EmbeddedResource Include="Properties\Resources.resx">
141+
<Generator>ResXFileCodeGenerator</Generator>
142+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
143+
<SubType>Designer</SubType>
144+
</EmbeddedResource>
145+
<EmbeddedResource Include="TrayIcons\Yellow.ICO" />
146+
<EmbeddedResource Include="VCRNETControl.de.resx">
147+
<SubType>Designer</SubType>
148+
<DependentUpon>VCRNETControl.cs</DependentUpon>
149+
</EmbeddedResource>
150+
</ItemGroup>
151+
<ItemGroup>
152+
<EmbeddedResource Include="Icons\Connected.ico" />
153+
</ItemGroup>
154+
<ItemGroup>
155+
<WebReferences Include="Web References\" />
156+
</ItemGroup>
157+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
158+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
159+
Other similar extension points exist, see Microsoft.Common.targets.
160+
<Target Name="BeforeBuild">
161+
</Target>
162+
<Target Name="AfterBuild">
163+
</Target>
164+
-->
165+
</Project>
Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
using System;
2+
using System.Drawing;
3+
using System.Collections;
4+
using System.ComponentModel;
5+
using System.Windows.Forms;
6+
7+
namespace VCRControlCenter
8+
{
9+
/// <summary>
10+
/// Summary description for HibernateDialog.
11+
/// </summary>
12+
public class HibernateDialog : System.Windows.Forms.Form
13+
{
14+
private System.Windows.Forms.Label lbInfo;
15+
private System.Windows.Forms.Button cmdCancl;
16+
/// <summary>
17+
/// Required designer variable.
18+
/// </summary>
19+
private System.ComponentModel.Container components = null;
20+
21+
private DateTime m_FinishTime = DateTime.UtcNow;
22+
private volatile bool m_Closed = false;
23+
private string m_Format = null;
24+
25+
/// <summary>
26+
/// Create a new dialog instance.
27+
/// </summary>
28+
public HibernateDialog()
29+
{
30+
// Required for Windows Form Designer support
31+
InitializeComponent();
32+
33+
// Remember
34+
m_Format = lbInfo.Text;
35+
}
36+
37+
/// <summary>
38+
/// Clean up any resources being used.
39+
/// </summary>
40+
protected override void Dispose(bool disposing)
41+
{
42+
if (disposing)
43+
{
44+
if (components != null)
45+
{
46+
components.Dispose();
47+
}
48+
}
49+
base.Dispose(disposing);
50+
}
51+
52+
#region Windows Form Designer generated code
53+
/// <summary>
54+
/// Required method for Designer support - do not modify
55+
/// the contents of this method with the code editor.
56+
/// </summary>
57+
private void InitializeComponent()
58+
{
59+
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HibernateDialog));
60+
this.lbInfo = new System.Windows.Forms.Label();
61+
this.cmdCancl = new System.Windows.Forms.Button();
62+
this.SuspendLayout();
63+
//
64+
// lbInfo
65+
//
66+
this.lbInfo.AccessibleDescription = null;
67+
this.lbInfo.AccessibleName = null;
68+
resources.ApplyResources(this.lbInfo, "lbInfo");
69+
this.lbInfo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
70+
this.lbInfo.Name = "lbInfo";
71+
//
72+
// cmdCancl
73+
//
74+
this.cmdCancl.AccessibleDescription = null;
75+
this.cmdCancl.AccessibleName = null;
76+
resources.ApplyResources(this.cmdCancl, "cmdCancl");
77+
this.cmdCancl.BackgroundImage = null;
78+
this.cmdCancl.Font = null;
79+
this.cmdCancl.Name = "cmdCancl";
80+
this.cmdCancl.Click += new System.EventHandler(this.cmdCancl_Click);
81+
//
82+
// HibernateDialog
83+
//
84+
this.AccessibleDescription = null;
85+
this.AccessibleName = null;
86+
resources.ApplyResources(this, "$this");
87+
this.BackgroundImage = null;
88+
this.Controls.Add(this.cmdCancl);
89+
this.Controls.Add(this.lbInfo);
90+
this.Font = null;
91+
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
92+
this.Icon = null;
93+
this.MaximizeBox = false;
94+
this.MinimizeBox = false;
95+
this.Name = "HibernateDialog";
96+
this.TopMost = true;
97+
this.Load += new System.EventHandler(this.HibernateDialog_Load);
98+
this.ResumeLayout(false);
99+
100+
}
101+
#endregion
102+
103+
private void cmdCancl_Click(object sender, System.EventArgs e)
104+
{
105+
// Hide me
106+
Visible = false;
107+
}
108+
109+
private void HibernateDialog_Load(object sender, System.EventArgs e)
110+
{
111+
}
112+
113+
/// <summary>
114+
/// Start the dialog with the indicated maximum wait time.
115+
/// </summary>
116+
/// <param name="minutesToWait">Time to wait for an user action.</param>
117+
public void Start(int minutesToWait)
118+
{
119+
// Remember the end time
120+
m_FinishTime = DateTime.UtcNow.AddMinutes(minutesToWait);
121+
122+
// Show
123+
bool bTest = MustHibernateNow;
124+
}
125+
126+
/// <summary>
127+
/// Check if we should hibernate the system right now.
128+
/// </summary>
129+
public bool MustHibernateNow
130+
{
131+
get
132+
{
133+
// We are closed
134+
if (m_Closed)
135+
return false;
136+
137+
// Calculate the time to wait
138+
TimeSpan tWait = m_FinishTime - DateTime.UtcNow;
139+
140+
// Get seconds
141+
int dSecs = (int)Math.Max(0, tWait.TotalSeconds);
142+
143+
// Get the number of minutes
144+
int nMins = (dSecs + 59) / 60;
145+
146+
// Check it
147+
lbInfo.Text = string.Format(m_Format, nMins);
148+
149+
// Go on
150+
return (dSecs <= 0) && Visible;
151+
}
152+
}
153+
154+
/// <summary>
155+
/// Sets <see cref="IsClosed"/>.
156+
/// </summary>
157+
/// <param name="e">Ignored.</param>
158+
protected override void OnClosing(CancelEventArgs e)
159+
{
160+
// We are closed
161+
m_Closed = true;
162+
163+
// Forward
164+
base.OnClosing(e);
165+
}
166+
167+
/// <summary>
168+
/// Report if this window has been closed
169+
/// </summary>
170+
public bool IsClosed
171+
{
172+
get
173+
{
174+
// Report
175+
return m_Closed;
176+
}
177+
}
178+
}
179+
}

0 commit comments

Comments
 (0)