Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 public NotificationContainer(FormMain mainForm)
     : this()
 {
     _mainForm = mainForm;
     _mainForm.Resize += new EventHandler(_mainForm_Resize);
 }
Ejemplo n.º 3
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));
 }