Resolve Mac build breaks

This commit is contained in:
John Lewin 2015-02-23 11:06:03 -08:00
parent 8ef3aba724
commit 0c08b3c96c
2 changed files with 34 additions and 27 deletions

View file

@ -75,38 +75,38 @@ namespace MatterHackers.MatterControl
int heightAdjust = -35;
bool layout1_Click()
{
UiThread.RunOnIdle((state) =>
{
double width = System.Windows.SystemParameters.FullPrimaryScreenWidth;
double height = System.Windows.SystemParameters.FullPrimaryScreenHeight;
MatterControlApplication.Instance.DesktopPosition = new Point2D(0, 0);
MatterControlApplication.Instance.Width = width / 3;
MatterControlApplication.Instance.Height = height;
PopOutManager.SetStates(ThirdPanelTabView.SliceSettingsTabName, true, width / 3, height + heightAdjust, width / 3 * 2 + widthAdjust, 0);
PopOutManager.SetStates(ThirdPanelTabView.ControlsTabName, false, width / 3, height / 2 + heightAdjust, width / 3 * 2 + widthAdjust, height / 2);
ApplicationController.Instance.ReloadAll(null, null);
});
// UiThread.RunOnIdle((state) =>
// {
// double width = System.Windows.SystemParameters.FullPrimaryScreenWidth;
// double height = System.Windows.SystemParameters.FullPrimaryScreenHeight;
//
// MatterControlApplication.Instance.DesktopPosition = new Point2D(0, 0);
// MatterControlApplication.Instance.Width = width / 3;
// MatterControlApplication.Instance.Height = height;
//
// PopOutManager.SetStates(ThirdPanelTabView.SliceSettingsTabName, true, width / 3, height + heightAdjust, width / 3 * 2 + widthAdjust, 0);
// PopOutManager.SetStates(ThirdPanelTabView.ControlsTabName, false, width / 3, height / 2 + heightAdjust, width / 3 * 2 + widthAdjust, height / 2);
// ApplicationController.Instance.ReloadAll(null, null);
//
// });
return true;
}
bool layout2_Click()
{
UiThread.RunOnIdle((state) =>
{
double width = System.Windows.SystemParameters.PrimaryScreenWidth;
double height = System.Windows.SystemParameters.PrimaryScreenHeight;
MatterControlApplication.Instance.DesktopPosition = new Point2D(0, 0);
MatterControlApplication.Instance.Width = width / 3;
MatterControlApplication.Instance.Height = height;
PopOutManager.SetStates(ThirdPanelTabView.SliceSettingsTabName, true, width / 3, height / 2 + heightAdjust, width / 3 * 2 + widthAdjust, 0);
PopOutManager.SetStates(ThirdPanelTabView.ControlsTabName, true, width / 3, height / 2 + heightAdjust * 2, width / 3 * 2 + widthAdjust, height / 2);
ApplicationController.Instance.ReloadAll(null, null);
});
// UiThread.RunOnIdle((state) =>
// {
// double width = System.Windows.SystemParameters.PrimaryScreenWidth;
// double height = System.Windows.SystemParameters.PrimaryScreenHeight;
//
// MatterControlApplication.Instance.DesktopPosition = new Point2D(0, 0);
// MatterControlApplication.Instance.Width = width / 3;
// MatterControlApplication.Instance.Height = height;
//
// PopOutManager.SetStates(ThirdPanelTabView.SliceSettingsTabName, true, width / 3, height / 2 + heightAdjust, width / 3 * 2 + widthAdjust, 0);
// PopOutManager.SetStates(ThirdPanelTabView.ControlsTabName, true, width / 3, height / 2 + heightAdjust * 2, width / 3 * 2 + widthAdjust, height / 2);
// ApplicationController.Instance.ReloadAll(null, null);
// });
return true;
}
}