From 5506026df25872d30b0b351e2a1833d75dce9046 Mon Sep 17 00:00:00 2001 From: Alee14 Date: Wed, 10 May 2017 14:08:17 -0400 Subject: New Project! --- YouTube TV.sln | 6 +++++ YouTube TV/Form1.Designer.cs | 22 ++++++++++++++++++- YouTube TV/Form1.cs | 18 +++++++++++++++ YouTube TV/YouTube TV.csproj | 52 ++++++++++++++++++++++++++++++++++++++++++++ YouTube TV/packages.config | 7 ++++++ 5 files changed, 104 insertions(+), 1 deletion(-) create mode 100644 YouTube TV/packages.config 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 @@ /// 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 @@  + + Debug @@ -12,6 +14,8 @@ v4.5.2 512 true + + AnyCPU @@ -32,7 +36,39 @@ prompt 4 + + true + bin\x86\Debug\ + DEBUG;TRACE + full + x86 + prompt + MinimumRecommendedRules.ruleset + true + + + bin\x86\Release\ + TRACE + true + pdbonly + x86 + prompt + MinimumRecommendedRules.ruleset + true + + + False + bin\x86\Debug\CefSharp.dll + + + False + bin\x86\Debug\CefSharp.Core.dll + + + False + bin\x86\Debug\CefSharp.WinForms.dll + @@ -66,6 +102,7 @@ True Resources.resx + SettingsSingleFileGenerator Settings.Designer.cs @@ -80,6 +117,21 @@ + + + + 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}. + + + + + + + + + + +