ACAT.Lib.Extension.DialogUtils.ShowTaskSwitcherAltTab C# (CSharp) Méthode

ShowTaskSwitcherAltTab() public static méthode

Displays the task switcher form which is the Alt-Tab equivalent to switch between application windows. If taskname is not null, it only shows windows belonging to the task (eg notepad, word)
public static ShowTaskSwitcherAltTab ( String taskName = "" ) : void
taskName String filter by this process name
Résultat void
        public static void ShowTaskSwitcherAltTab(String taskName = "")
        {
            try
            {
                Context.AppTalkWindowManager.CloseTalkWindow();
                Form taskSwitcherForm = Context.AppPanelManager.CreatePanel("TaskSwitcherForm");
                if (taskSwitcherForm != null)
                {
                    if (!String.IsNullOrEmpty(taskName) && taskSwitcherForm is IExtension)
                    {
                        IExtension extension = taskSwitcherForm as IExtension;
                        extension.GetInvoker().SetValue("FilterProcessName", taskName);
                    }

                    Context.AppPanelManager.ShowDialog(taskSwitcherForm as IPanel);
                }
            }
            catch (Exception e)
            {
                Log.Debug("Error creating task switcher dialog. Exception: " + e);
            }
        }