public static void AddToolBarItem(string label, ToolBarAction function)
 {
     if (graphEditorWindow)
     {
         graphEditorWindow._toolbarItems.Add(new KeyValuePair <string, ToolBarAction>(label, function));
     }
 }
Esempio n. 2
0
 /// <summary>
 ///		Lanza un evento
 /// </summary>
 private void ExecuteAction(ToolBarAction intAction, string strURL)
 {
     if (Explorer != null)
         switch (intAction)
             { case ToolBarAction.ChangeUrl:
                         if (!string.IsNullOrEmpty(strURL))
                             Explorer.LoadURL(strURL);
                     break;
                 case ToolBarAction.GoForward:
                         Explorer.GoForward();
                     break;
                 case ToolBarAction.GoPrevious:
                         Explorer.GoBack();
                     break;
                 case ToolBarAction.Refresh:
                         Explorer.Refresh();
                     break;
                 case ToolBarAction.Stop:
                         Explorer.Stop();
                     break;
                 default:
                     throw new NotImplementedException();
             }
 }