/// <summary> /// Конструктор RPGForm /// </summary> public RPGForm() { InitializeComponent(); form = this; game = new Game(ref form); Text = "В поисках сокровищ!"; Icon = Properties.Resources.ResourceManager.GetObject("khorne") as System.Drawing.Icon; }
/// <summary> /// Конструктор Game /// </summary> /// <param name="form"></param> public Game(ref RPGForm form) { this.Form = form; LabelHelp(); //Form.checkBoxMusic.CheckedChanged +=checkBoxMusic_CheckedChanged; rand = new Random(); StartGame(); }