Пример #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     /*CityDrawingKit = new DrawingClassCityCreator(_ctrlPicBxCity, (int)(_ctrlNumCityWidth.Value), (int)(_ctrlNumCityHeight.Value));
       CityDrawingKit.ClearCanvas();*/
       CityCreationKit = new CityCreatorLogicsClass((int)(_ctrlNumCityWidth.Value), (int)(_ctrlNumCityHeight.Value), _ctrlTxbCityName.Text, _ctrlPicBxCity);
       //CityCreationKit.MainDraw();
 }
Пример #2
0
 private void _ctrlButReady_Click(object sender, EventArgs e)
 {
     CityCreationKit.CreateCity();
       CityCreationKit.DestroyCreator();
       CityCreationKit = null;
       bool a = MainUnitProcessor.CityIsPresent();
       loaded = false;
       Close();
 }
Пример #3
0
 private void _FormCity_Load(object sender, EventArgs e)
 {
     if (MainUnitProcessor.CityIsPresent())
       {
     if (!loaded)
     {
       CityCreationKit = new CityCreatorLogicsClass(_ctrlPicBxCity);
       loaded = true;
     }
       }
 }