示例#1
0
 public void OnClick(object sender, EventArgs e)
 {
     if (((Button)sender).Tag is LogicalGame.Militia)
     {
         Militia uc = new Militia(_contextForm, _world);
         _contextForm.ToMenu(uc, true);
     }
     else if (((Button)sender).Tag is LogicalGame.Mortuary)
     {
         Mortuary uc = new Mortuary(_world.Team, _contextForm, ((LogicalGame.Mortuary)((Button)sender).Tag));
         _contextForm.ToMenu(uc, true);
     }
     else if (((Button)sender).Tag is LogicalGame.Merchant)
     {
         Merchant uc = new Merchant(_contextForm, ((LogicalGame.Merchant)((Button)sender).Tag), _world.Team.Invent);
         _contextForm.ToMenu(uc, true);
     }
     else if (((Button)sender).Tag is LogicalGame.Taverne)
     {
         Taverne uc = new Taverne(_world.Team, _contextForm, null);
         _contextForm.ToMenu(uc, true);
     }
 }
示例#2
0
 private void Retour_Click(object sender, EventArgs e)
 {
     GraphicalInterface.Taverne uc = new GraphicalInterface.Taverne(t, _contextForm, _listCha);
     _contextForm.ChangeUC(uc, true, true);
 }