BorderlessGaming.BorderlessGaming.RemoveBorder C# (CSharp) Method

RemoveBorder() public method

remove the menu, resize the window, remove border, and maximize
public RemoveBorder ( BorderlessGaming.Common.ProcessDetails pd, Favorites favDetails = null, System.Boolean overrideTimeout = false ) : void
pd BorderlessGaming.Common.ProcessDetails
favDetails Favorites
overrideTimeout System.Boolean
return void
        public void RemoveBorder(ProcessDetails pd, Favorites.Favorite favDetails = null, Boolean overrideTimeout = false)
        {
            if(favDetails != null && favDetails.DelayBorderless == true && overrideTimeout == false)
            {
                //Wait 10 seconds before removing the border.
                Task task = new Task(() => RemoveBorder(pd, favDetails, true));
                task.Wait(TimeSpan.FromSeconds(10));
            }
            Manipulation.MakeWindowBorderless(pd, window, pd.WindowHandle, new Rectangle(), favDetails ?? _favorites.FromProcessDetails(pd));
        }