private void mainForm_Load(object sender, EventArgs e) { FormMovement.Subscribe(menuPanel, this); spell = new List <int>(); getMagick(); this.FormClosing += new FormClosingEventHandler(MainForm_Closing); }
private void StatForm_Load(object sender, EventArgs e) { FormMovement.Subscribe(menuPanel, this); this.Location = location; this.Refresh(); statBox.MouseWheel += new MouseEventHandler(statBox_MouseMove); this.FormClosing += new FormClosingEventHandler(StatForm_Closing); }
private void MainForm_Closing(object sender, FormClosingEventArgs e) { FormMovement.Unsubscribe(this); }