示例#1
0
 private void showNewEventControl()
 {
     if (currentEventControl != null)
     {
         this.Controls.Remove(currentEventControl);
         currentEventControl.Dispose();
     }
     currentEvent             = current_biom.getRandomEventObject().getRandomEvent();
     currentEventControl      = new EventControl(currentEvent.FileNameImage, currentEvent.getActions(), currentEvent.Description, OnEventControlResultChanged);
     currentEventControl.Dock = DockStyle.Fill;
     this.Controls.Add(currentEventControl);
     showControl(currentEventControl);
 }