From 966168d05432d5a625e14a664e0982acb1638181 Mon Sep 17 00:00:00 2001 From: MSX752 Date: Tue, 15 Nov 2016 21:07:02 +0300 Subject: [PATCH] minimize start while snipping --- MSniper/Program.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MSniper/Program.cs b/MSniper/Program.cs index 0405c03..ca5d394 100644 --- a/MSniper/Program.cs +++ b/MSniper/Program.cs @@ -31,8 +31,9 @@ static void Main(string[] _args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - frm = new FWindow(); - frm.Console.Arguments = _args; + frm = new FWindow {Console = {Arguments = _args}}; + if (_args.Length > 0) + frm.WindowState = FormWindowState.Minimized; Application.Run(frm); } #endregion