Esempio n. 1
0
        internal static string GetModName(ApplicationLauncherButton button, out string Tooltip)
        {
            Tooltip = "";
            if (button == null)
            {
                return("None");
            }
            string nameSpace, id, toolTip;

            if (ToolbarControl.IsStockButtonManaged(button, out nameSpace, out id, out toolTip))
            {
                if (toolTip != "")
                {
                    Tooltip = toolTip;
                }
                else
                {
                    Tooltip = nameSpace;
                }
                return(id +
                       button.GetInstanceID().ToString());
            }
            Tooltip = button.onTrue.Method.Module.Assembly.GetName().Name;
            return(Tooltip +
                   button.GetInstanceID().ToString());
        }