예제 #1
0
        // starts a WPF Shell Task. (8.0.134.0+)

        // TODO: Multithreading. This will make it a lot easier to recover from crashes.
        public ShellTask InitTask(string[] Arguments, string WindowTitle, int sizeX, int sizeY) // Creates a shell task.
        {
            ShellTask ShellTask = new ShellTask(Arguments, "ShellTask", WindowTitle);


            ShellTaskList.Add(ShellTask);
            ShellAppManager.OpenTask(new Form[1] {
                ShellTask.WinForm
            });

            return(ShellTask);
        }
예제 #2
0
        public void CloseTask(int tid)
        {
            ShellTask ShellTask = GetTaskByTid(tid);

            ShellTask.Close();
        }