AdjustDisplay() публичный статический Метод

public static AdjustDisplay ( DisplayInfo displayInfo, GameInfo game = null ) : void
displayInfo DisplayInfo
game GameInfo
Результат void
Пример #1
0
        public bool run()
        {
            if (!IsPathExist)
            {
                return(false);
            }
            DisplaySettings.AdjustDisplay(DisplayInfo, this);
            ProcessStartInfo start = new ProcessStartInfo(ExecPath);

            start.CreateNoWindow         = false;
            start.RedirectStandardOutput = true;
            start.RedirectStandardInput  = true;
            start.UseShellExecute        = false;
            start.WorkingDirectory       = new FileInfo(ExecPath).DirectoryName;
            try {
                Process p = Process.Start(start);
            } catch {
                return(false);
            }
            return(true);
        }