public void GameOver(int points) //вывод результатов игры { m_gameMusic.Stop(); m_endMusic.PlayLooping(); GameOverLabel.Show(); RetryButton.Show(); ExitButton.Show(); MartianBattleLabel.Show(); PointsLabel.Text = "POINTS: " + points.ToString(); PointsLabel.Show(); }
private void RetryButtonHandler(object sender, EventArgs e) //кнопка повторного запуска игры { //скрытие всех лишних элементов формы GameOverLabel.Hide(); RetryButton.Hide(); ExitButton.Hide(); MartianBattleLabel.Hide(); PointsLabel.Hide(); NumbersOfLives.Value = 100; m_endMusic.Stop(); m_gameMusic.PlayLooping(); m_controlGame.StartGame(); //повторный запуск игры }
void ReleaseDesignerOutlets() { if (AcqTaxField != null) { AcqTaxField.Dispose(); AcqTaxField = null; } if (AcqTaxLabel != null) { AcqTaxLabel.Dispose(); AcqTaxLabel = null; } if (AddressComboBox != null) { AddressComboBox.Dispose(); AddressComboBox = null; } if (BorrowerComboBox != null) { BorrowerComboBox.Dispose(); BorrowerComboBox = null; } if (BorrowerLabel != null) { BorrowerLabel.Dispose(); BorrowerLabel = null; } if (ClosingDateLabel != null) { ClosingDateLabel.Dispose(); ClosingDateLabel = null; } if (ClosingDatePicker != null) { ClosingDatePicker.Dispose(); ClosingDatePicker = null; } if (ConcessionField != null) { ConcessionField.Dispose(); ConcessionField = null; } if (ConcessionLabel != null) { ConcessionLabel.Dispose(); ConcessionLabel = null; } if (HOIField != null) { HOIField.Dispose(); HOIField = null; } if (HOILabel != null) { HOILabel.Dispose(); HOILabel = null; } if (InitialDrawField != null) { InitialDrawField.Dispose(); InitialDrawField = null; } if (InitialDrawLabel != null) { InitialDrawLabel.Dispose(); InitialDrawLabel = null; } if (LenderComboBox != null) { LenderComboBox.Dispose(); LenderComboBox = null; } if (LenderLabel != null) { LenderLabel.Dispose(); LenderLabel = null; } if (PriceField != null) { PriceField.Dispose(); PriceField = null; } if (PriceLabel != null) { PriceLabel.Dispose(); PriceLabel = null; } if (ProcessingField != null) { ProcessingField.Dispose(); ProcessingField = null; } if (ProcessingLabel != null) { ProcessingLabel.Dispose(); ProcessingLabel = null; } if (PropertyTaxField != null) { PropertyTaxField.Dispose(); PropertyTaxField = null; } if (PropertyTaxLabel != null) { PropertyTaxLabel.Dispose(); PropertyTaxLabel = null; } if (RecordingField != null) { RecordingField.Dispose(); RecordingField = null; } if (RecordingLabel != null) { RecordingLabel.Dispose(); RecordingLabel = null; } if (SummaryMessageField != null) { SummaryMessageField.Dispose(); SummaryMessageField = null; } if (TitlePolicyField != null) { TitlePolicyField.Dispose(); TitlePolicyField = null; } if (TitlePolicyLabel != null) { TitlePolicyLabel.Dispose(); TitlePolicyLabel = null; } if (TotalCostLabel != null) { TotalCostLabel.Dispose(); TotalCostLabel = null; } if (UpdateAcquisitionButton != null) { UpdateAcquisitionButton.Dispose(); UpdateAcquisitionButton = null; } if (PointsLabel != null) { PointsLabel.Dispose(); PointsLabel = null; } if (UpdatedPointsLabel != null) { UpdatedPointsLabel.Dispose(); UpdatedPointsLabel = null; } }