Adding support for mini touch screen
This commit is contained in:
parent
d8c056c088
commit
2770e353e4
2 changed files with 13 additions and 2 deletions
|
|
@ -82,6 +82,17 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
ApplicationController.Instance.MainView = this;
|
||||
}
|
||||
|
||||
public override void OnLoad(EventArgs args)
|
||||
{
|
||||
if (Application.MiniTouchScreen.Enabled)
|
||||
{
|
||||
var miniTouchScreen = new SystemWindow(800, 480);
|
||||
|
||||
miniTouchScreen.ShowAsSystemWindow();
|
||||
}
|
||||
|
||||
base.OnLoad(args);
|
||||
}
|
||||
|
||||
private void AddStandardUi(ThemeConfig theme)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -148,8 +148,8 @@ namespace MatterHackers.MatterControl
|
|||
Slicer.RunInProcess = config.GetValue<bool>("MatterControl:Slicer:Debug");
|
||||
Application.EnableF5Collect = config.GetValue<bool>("MatterControl:Application:EnableF5Collect");
|
||||
Application.EnableNetworkTraffic = config.GetValue<bool>("MatterControl:Application:EnableNetworkTraffic", true);
|
||||
Application.MiniTouchScreen.Make = config.GetValue<string>("MatterControl:MiniTouchScreen.Make", "");
|
||||
Application.MiniTouchScreen.Model = config.GetValue<string>("MatterControl:MiniTouchScreen.Model", "");
|
||||
Application.MiniTouchScreen.Make = config.GetValue<string>("MatterControl:MiniTouchScreen:Make", "");
|
||||
Application.MiniTouchScreen.Model = config.GetValue<string>("MatterControl:MiniTouchScreen:Model", "");
|
||||
|
||||
// Make sure we have the right working directory as we assume everything relative to the executable.
|
||||
Directory.SetCurrentDirectory(Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue