Ejemplo n.º 1
0
 public BonusLevelPage(String title, String objectname, BonusGoalForm form) : base(title)
 {
     _form          = form;
     b_add          = new Button();
     b_add.Text     = String.Format("Add new {0}", objectname);
     b_add.Clicked += delegate
     {
         _showForm();
     };
     _addToHeader(b_add);
 }
Ejemplo n.º 2
0
 public BonusLevelPage(String title, Type formtype) : base(title)
 {
     b_add          = new Button();
     b_add.Text     = String.Format("Add new {0}", title);
     b_add.Clicked += delegate
     {
         try
         {
             _form = (BonusGoalForm)Activator.CreateInstance(formtype);
             _showForm();
         }
         catch (InvalidCastException e)
         {
             //Debug.WriteLine(e.Message);
         }
     };
     _addToHeader(b_add);
 }