Esempio n. 1
0
        //
        public int SignalExternalCommandLineArgs(string[] args)
        {
            int exitCode = 0;

            if (!HandleCommandLineArgs(args, out exitCode))
            {
                //if not called with command line arguments, bring window to the fore
                MainWindow.RestoreAndBringToFront();
            }
            return(exitCode);
        }
Esempio n. 2
0
        //
        public int SignalExternalCommandLineArgs(string[] args)
        {
            int taskListResponse = HandleCommandLineJumplistCall(args, out int exitCode);

            if (taskListResponse == 1)
            {
                //just a new instance
                MainWindow.RestoreAndBringToFront();
            }
            return(0);
        }
Esempio n. 3
0
        //
        public int SignalExternalCommandLineArgs(string[] args)
        {
            var taskListResponse = HandleCommandLineJumplistCall(args, out _);

            if (taskListResponse != null && args.Length == 1) //no params
            {
                //just a new instance
                MainWindow.RestoreAndBringToFront();
            }
            else
            {
                taskListResponse?.Invoke();
            }

            return(0);
        }