aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee14 <alee14498@gmail.com>2017-05-10 14:08:17 -0400
committerAlee14 <alee14498@gmail.com>2017-05-10 14:08:17 -0400
commit5506026df25872d30b0b351e2a1833d75dce9046 (patch)
tree8b71fce1dbef5eef9e4b0805f25e8e25253ce16d
parent2fe13434046140565816dc5ab094c55b16b78ce7 (diff)
downloadYouTube-TV-5506026df25872d30b0b351e2a1833d75dce9046.tar.gz
YouTube-TV-5506026df25872d30b0b351e2a1833d75dce9046.tar.bz2
YouTube-TV-5506026df25872d30b0b351e2a1833d75dce9046.zip
New Project!
-rw-r--r--YouTube TV.sln6
-rw-r--r--YouTube TV/Form1.Designer.cs22
-rw-r--r--YouTube TV/Form1.cs18
-rw-r--r--YouTube TV/YouTube TV.csproj52
-rw-r--r--YouTube TV/packages.config7
5 files changed, 104 insertions, 1 deletions
diff --git a/YouTube TV.sln b/YouTube TV.sln
index 2766d14..fd8a1de 100644
--- a/YouTube TV.sln
+++ b/YouTube TV.sln
@@ -8,13 +8,19 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
+ Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
+ Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{90894953-8235-499F-B90D-DB5326A32D5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{90894953-8235-499F-B90D-DB5326A32D5C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {90894953-8235-499F-B90D-DB5326A32D5C}.Debug|x86.ActiveCfg = Debug|x86
+ {90894953-8235-499F-B90D-DB5326A32D5C}.Debug|x86.Build.0 = Debug|x86
{90894953-8235-499F-B90D-DB5326A32D5C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{90894953-8235-499F-B90D-DB5326A32D5C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {90894953-8235-499F-B90D-DB5326A32D5C}.Release|x86.ActiveCfg = Release|x86
+ {90894953-8235-499F-B90D-DB5326A32D5C}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/YouTube TV/Form1.Designer.cs b/YouTube TV/Form1.Designer.cs
index 23247ec..cbabaab 100644
--- a/YouTube TV/Form1.Designer.cs
+++ b/YouTube TV/Form1.Designer.cs
@@ -28,20 +28,40 @@
/// </summary>
private void InitializeComponent()
{
+ this.panel1 = new System.Windows.Forms.Panel();
this.SuspendLayout();
//
+ // panel1
+ //
+ this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.panel1.Location = new System.Drawing.Point(0, 0);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(514, 421);
+ this.panel1.TabIndex = 0;
+ //
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(611, 452);
+ this.AutoSize = true;
+ this.ClientSize = new System.Drawing.Size(511, 421);
+ this.Controls.Add(this.panel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
this.Name = "Form1";
this.Text = "Form1";
+ this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
+ this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
}
#endregion
+
+ private System.Windows.Forms.Panel panel1;
}
}
diff --git a/YouTube TV/Form1.cs b/YouTube TV/Form1.cs
index f57d76c..a27692c 100644
--- a/YouTube TV/Form1.cs
+++ b/YouTube TV/Form1.cs
@@ -7,6 +7,9 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
+using CefSharp;
+using CefSharp.WinForms;
+using CefSharp.WinForms.Internals;
namespace YouTube_TV
{
@@ -16,5 +19,20 @@ namespace YouTube_TV
{
InitializeComponent();
}
+
+ public CefSharp.WinForms.ChromiumWebBrowser browser;
+
+ private void Form1_Load(object sender, EventArgs e)
+ {
+ MessageBox.Show("This project was created by AleeCorp! To exit press Alt+F4. This will take some time please wait...");
+
+ browser = new CefSharp.WinForms.ChromiumWebBrowser("www.youtube.com/tv");
+ {
+ Dock = DockStyle.Fill;
+ Size = new Size(514, 421);
+ Location = new Point(0, 0);
+ }
+ this.panel1.Controls.Add(browser);
+ }
}
}
diff --git a/YouTube TV/YouTube TV.csproj b/YouTube TV/YouTube TV.csproj
index af2518d..b1ac127 100644
--- a/YouTube TV/YouTube TV.csproj
+++ b/YouTube TV/YouTube TV.csproj
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="..\packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.props" Condition="Exists('..\packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.props')" />
+ <Import Project="..\packages\CefSharp.Common.57.0.0\build\CefSharp.Common.props" Condition="Exists('..\packages\CefSharp.Common.57.0.0\build\CefSharp.Common.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -12,6 +14,8 @@
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
+ <NuGetPackageImportStamp>
+ </NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -32,7 +36,39 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\x86\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <DebugType>full</DebugType>
+ <PlatformTarget>x86</PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
+ <OutputPath>bin\x86\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <Optimize>true</Optimize>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>x86</PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
<ItemGroup>
+ <Reference Include="CefSharp, Version=43.0.0.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=x86">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>bin\x86\Debug\CefSharp.dll</HintPath>
+ </Reference>
+ <Reference Include="CefSharp.Core, Version=43.0.0.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=x86">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>bin\x86\Debug\CefSharp.Core.dll</HintPath>
+ </Reference>
+ <Reference Include="CefSharp.WinForms, Version=43.0.0.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=x86">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>bin\x86\Debug\CefSharp.WinForms.dll</HintPath>
+ </Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
@@ -66,6 +102,7 @@
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
+ <None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
@@ -80,6 +117,21 @@
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <Import Project="..\packages\cef.redist.x64.3.2987.1601\build\cef.redist.x64.targets" Condition="Exists('..\packages\cef.redist.x64.3.2987.1601\build\cef.redist.x64.targets')" />
+ <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
+ <PropertyGroup>
+ <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
+ </PropertyGroup>
+ <Error Condition="!Exists('..\packages\cef.redist.x64.3.2987.1601\build\cef.redist.x64.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\cef.redist.x64.3.2987.1601\build\cef.redist.x64.targets'))" />
+ <Error Condition="!Exists('..\packages\cef.redist.x86.3.2987.1601\build\cef.redist.x86.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\cef.redist.x86.3.2987.1601\build\cef.redist.x86.targets'))" />
+ <Error Condition="!Exists('..\packages\CefSharp.Common.57.0.0\build\CefSharp.Common.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\CefSharp.Common.57.0.0\build\CefSharp.Common.props'))" />
+ <Error Condition="!Exists('..\packages\CefSharp.Common.57.0.0\build\CefSharp.Common.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\CefSharp.Common.57.0.0\build\CefSharp.Common.targets'))" />
+ <Error Condition="!Exists('..\packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.props'))" />
+ <Error Condition="!Exists('..\packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.targets'))" />
+ </Target>
+ <Import Project="..\packages\cef.redist.x86.3.2987.1601\build\cef.redist.x86.targets" Condition="Exists('..\packages\cef.redist.x86.3.2987.1601\build\cef.redist.x86.targets')" />
+ <Import Project="..\packages\CefSharp.Common.57.0.0\build\CefSharp.Common.targets" Condition="Exists('..\packages\CefSharp.Common.57.0.0\build\CefSharp.Common.targets')" />
+ <Import Project="..\packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.targets" Condition="Exists('..\packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
diff --git a/YouTube TV/packages.config b/YouTube TV/packages.config
new file mode 100644
index 0000000..92d8bc8
--- /dev/null
+++ b/YouTube TV/packages.config
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="cef.redist.x64" version="3.2987.1601" targetFramework="net452" />
+ <package id="cef.redist.x86" version="3.2987.1601" targetFramework="net452" />
+ <package id="CefSharp.Common" version="57.0.0" targetFramework="net452" />
+ <package id="CefSharp.WinForms" version="57.0.0" targetFramework="net452" />
+</packages> \ No newline at end of file