Example #1
0
        public static SnapService StartNewSnap()
        {
            var srv = new SnapService();

            srv.TakeSnap(false, false);
            return(srv);
        }
Example #2
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            args = new string[] { "lol" };


            // var snapSrv = new SnapSrv();


            if (args != null && args.Any())
            {
                if (args[0] == "-auto")
                {
                    Application.Run(new SnapForm(true));
                }
                else
                {
                    Application.Run(new SnapForm());
                }
            }
            else
            {
                SnapService.StartNewSnap();
            }

            //Application.Run(maform);
        }