/// <summary> /// /// </summary> /// <param name="fighter"></param> public void SetFighter(MEXFighter fighter) { _fighter = fighter; _costumes = fighter.Costumes; _kirbyCostumes = fighter.KirbyCostumes; // kirby costume editing if (MEX.Fighters.IndexOf(_fighter) == KirbyIndex || MEX.Fighters.IndexOf(_fighter) == GAWIndex) { enableKirbyButton.Enabled = false; _costumes.ListChanged -= CostumeUpdated; _costumes.ListChanged += CostumeUpdated; } else { enableKirbyButton.Enabled = true; } // general editing mxListBox1.DataSource = _costumes; kirbyListbox.DataSource = _kirbyCostumes; KirbyEnabled = _kirbyCostumes.Count != 0; ResizeKirbyPanel(); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void importButton_Click_1(object sender, EventArgs e) { using (OpenFileDialog d = new OpenFileDialog()) { d.Filter = "MEX Fighter (*.zip)|*.zip"; if (d.ShowDialog() == DialogResult.OK) { MEXFighter.InstallFighterFromFile(d.FileName); fighterListBox.Invalidate(); } } }