From 5fdb4170c92072fa5a3ee32a779bea2ed83b8ef0 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Thu, 12 Dec 2019 13:00:45 +0200 Subject: Added more functionality to browser module. --- .../Tango.PPC.Browser/ViewModels/MainViewVM.cs | 56 ---------------------- 1 file changed, 56 deletions(-) delete mode 100644 Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/ViewModels/MainViewVM.cs (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/ViewModels/MainViewVM.cs') diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/ViewModels/MainViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/ViewModels/MainViewVM.cs deleted file mode 100644 index afea97f73..000000000 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/ViewModels/MainViewVM.cs +++ /dev/null @@ -1,56 +0,0 @@ -using CefSharp; -using CefSharp.Wpf; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Tango.PPC.Common; -using Tango.Touch.Keyboard; - -namespace Tango.PPC.Browser.ViewModels -{ - /// - /// Represents the main view VM and entry point for . - /// - /// - public class MainViewVM : PPCViewModel - { - public MainViewVM() - { - try - { - var settings = new CefSettings(); - settings.BrowserSubprocessPath = @"x86\CefSharp.BrowserSubprocess.exe"; - settings.UserAgent = "Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"; - - Cef.Initialize(settings, performDependencyCheck: false, browserProcessHandler: null); - } - catch (Exception ex) - { - //Log Here Not Throw! - throw; - } - } - - public override void OnNavigatedTo() - { - base.OnNavigatedTo(); - KeyboardView.Default.OutputMode = KeyboardOutputMode.Windows; - } - - public override void OnNavigatedFrom() - { - base.OnNavigatedFrom(); - KeyboardView.Default.OutputMode = KeyboardOutputMode.Wpf; - } - - /// - /// Called when the application has been started - /// - public override void OnApplicationStarted() - { - - } - } -} -- cgit v1.3.1