public static void ResetWorkspaceArea() { if (!SEBWorkingAreaHandler._originalWorkingAreaSet) { return; } SEBWorkingAreaHandler.SetWorkspace(SEBWorkingAreaHandler._originalWorkingArea); }
public static void SetTaskBarSpaceHeight(int taskbarHeight) { if (!SEBWorkingAreaHandler._originalWorkingAreaSet) { SEBWorkingAreaHandler._originalWorkingArea.Bottom = Screen.PrimaryScreen.WorkingArea.Bottom; SEBWorkingAreaHandler._originalWorkingArea.Left = Screen.PrimaryScreen.WorkingArea.Left; SEBWorkingAreaHandler._originalWorkingArea.Right = Screen.PrimaryScreen.WorkingArea.Right; SEBWorkingAreaHandler._originalWorkingArea.Top = Screen.PrimaryScreen.WorkingArea.Top; SEBWorkingAreaHandler._originalWorkingAreaSet = true; } SEBWorkingAreaHandler.SetWorkspace(new SEBWorkingAreaHandler.RECT() { Bottom = Screen.PrimaryScreen.Bounds.Height - taskbarHeight, Left = 0, Right = Screen.PrimaryScreen.Bounds.Width, Top = 0 }); }