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

ShowFileBrowser() public static méthode

Activates the File Browser functional agent.
public static ShowFileBrowser ( ) : void
Résultat void
        public static async void ShowFileBrowser()
        {
            try
            {
                Context.AppTalkWindowManager.CloseTalkWindow();

                IApplicationAgent fileBrowserAgent = Context.AppAgentMgr.GetAgentByName("FileBrowser Agent");
                if (fileBrowserAgent == null)
                {
                    return;
                }

                fileBrowserAgent.GetInvoker().SetValue("AutoLaunchFile", true);

                await Context.AppAgentMgr.ActivateAgent(fileBrowserAgent as IFunctionalAgent);
            }
            catch (Exception ex)
            {
                Log.Debug(ex.ToString());
            }
        }