示例#1
0
        public async override Task <bool> ActionAsync(string action)
        {
            bool result = base.Action(action);

            if (result)
            {
                if (action == ACTION_SHOW)
                {
                    using (SettingsFolderForm dlg = new SettingsFolderForm(this, Core))
                    {
                        dlg.ShowDialog();
                    }
                }
                else
                {
                    string[] parts = action.Split(new char[] { '|' }, 2);
                    if (parts.Length == 2 && parts[0] == "Settings scope")
                    {
                        await SwitchSettingsFolder(parts[1]);
                    }
                }
            }
            return(result);
        }
示例#2
0
 public async override Task<bool> ActionAsync(string action)
 {
     bool result = base.Action(action);
     if (result)
     {
         if (action == ACTION_SHOW)
         {
             using (SettingsFolderForm dlg = new SettingsFolderForm(this, Core))
             {
                 dlg.ShowDialog();
             }
         }
         else
         {
             string[] parts = action.Split(new char[] { '|' }, 2);
             if (parts.Length == 2 && parts[0] == "Settings scope")
             {
                 await SwitchSettingsFolder(parts[1]);
             }
         }
     }
     return result;
 }