Пример #1
0
        ////////////////////////////////////////////////////////////////////////////  

        //////////////////////////////////////////////////////////////////////////// 
        void BtnLoadClick(object sender, TomShane.Neoforce.Controls.EventArgs e)
        {
            MapLoadDialog tmp = new MapLoadDialog(Manager);
            //tmp.Closed += SelectMapLoadDialogClosed;
            tmp.Init();
            Manager.Add(tmp);
            tmp.ShowModal();

        }
Пример #2
0
 void MainChoose_Click(object sender, EnumChooseEventArgs e)
 {
     switch ((MainOptionChoises)e.SelectedEnum)
     {
         case MainOptionChoises.New:
             GameFacade.getInstance().SendNotification(GameNotification.CreateMap, _startupSettings);
             break;
         case MainOptionChoises.Load:
             MapLoadDialog tmp = new MapLoadDialog(Manager);
             tmp.ShowModal();
             Manager.Add(tmp);
             break;
         case MainOptionChoises.Check:
             break;
         case MainOptionChoises.Exit:
             Close();
             break;
     }
 }