Permalink
Browse files

Add default system actions to Tutorial 2

  • Loading branch information...
cwensley committed Sep 12, 2012
1 parent 2862fb2 commit b1d710205d7f465c4fa4be1fd45b5c2c90a62b3e
Showing with 3 additions and 0 deletions.
  1. +3 −0 Tutorials/Tutorial2/Main.cs
@@ -14,6 +14,7 @@ public MyAction ()
this.MenuText = "C&lick Me";
this.ToolBarText = "Click Me";
this.TooltipText = "This shows a dialog for no reason";
+ //this.Icon = Icon.FromResource ("MyResourceName.ico");
this.Accelerator = Application.Instance.CommonModifier | Key.M; // control+M or cmd+M
}
@@ -39,6 +40,8 @@ public MyForm()
void GenerateActions ()
{
var actions = new GenerateActionArgs(this);
+
+ Application.Instance.GetSystemActions (actions, true);
// define action
actions.Actions.Add (new MyAction());

0 comments on commit b1d7102

Please sign in to comment.