Beispiel #1
0
        public static bool GetToolbarPropertySelected(FormMain.ToolbarActionProperties tbp)
        {
            bool result = false;

            if (PluginSettings.Instance.ToolbarCustomButtons != null && PluginSettings.Instance.ToolbarCustomButtons.Count > 0)
            {
                result = PluginSettings.Instance.ToolbarCustomButtons.Contains(string.Format("{0}|{1}|{2}", tbp.PluginType.ToString(), tbp.Action ?? "", tbp.SubAction ?? ""));
            }
            return(result);
        }
Beispiel #2
0
 private string getToolbarPropertyText(FormMain.ToolbarActionProperties tbp)
 {
     return(string.IsNullOrEmpty(tbp.SubAction) ? Utils.LanguageSupport.Instance.GetTranslation(tbp.Action ?? "") : string.Format("{0} -> {1}", Utils.LanguageSupport.Instance.GetTranslation(tbp.Action ?? ""), Utils.LanguageSupport.Instance.GetTranslation(tbp.SubAction)));
 }