private void pasteToolStripMenuItem_Click(object sender, EventArgs e) { if (this.tabControl1.SelectedIndex == 0) { this.currentSet.skill = this.copySet.skill; this.file.css[this.cbChar.SelectedIndex] = this.currentSet; this.lck = false; int selectedIndex = this.cbChar.SelectedIndex; this.cbChar.SelectedIndex = 0; this.cbChar.Items.Clear(); for (int index = 0; index < this.file.css.Count; ++index) { ComboBox.ObjectCollection items = this.cbChar.Items; string str1 = "Character "; charSkillSet charSkillSet = this.file.css[index]; string str2 = charSkillSet.charID.ToString("000"); string str3 = " - Costume "; charSkillSet = this.file.css[index]; string str4 = charSkillSet.costumeID.ToString("00"); string str5 = str1 + str2 + str3 + str4; items.Add((object)str5); } this.cbChar.SelectedIndex = selectedIndex; this.lck = true; } else { this.currentSkill = this.copySkill; this.UpdateCurrentSkill(); this.UpdateSkillList(); this.lck = false; this.txtShortName.Text = this.currentSkill.shortName; this.txtid.Text = this.currentSkill.id.ToString(); this.txtid2.Text = this.currentSkill.id2.ToString(); this.textBox1.Text = this.currentSkill.racelock.ToString(); this.txt1.Text = this.currentSkill.unk1.ToString(); this.txt2.Text = this.currentSkill.unk2.ToString(); this.txtHair.Text = this.currentSkill.hair.ToString(); this.txt3.Text = this.currentSkill.unk3.ToString(); this.txt4.Text = this.currentSkill.Paths[0]; this.txt5.Text = this.currentSkill.Paths[1]; this.txt6.Text = this.currentSkill.Paths[2]; this.txt7.Text = this.currentSkill.Paths[3]; this.txt8.Text = this.currentSkill.Paths[4]; this.txt9.Text = this.currentSkill.Paths[5]; this.txt10.Text = this.currentSkill.Paths[6]; this.txt11.Text = this.currentSkill.unk4.ToString(); this.txt12.Text = this.currentSkill.unk5.ToString(); this.txt13.Text = this.currentSkill.unk6.ToString(); this.txt14.Text = this.currentSkill.unk7.ToString(); this.txt15.Text = this.currentSkill.unk8.ToString(); this.txt16.Text = this.currentSkill.unk9.ToString(); this.txt17.Text = this.currentSkill.unk10.ToString(); this.txt18.Text = this.currentSkill.unk11.ToString(); this.lck = true; } this.lblStatus.Text = "Data has been pasted in"; }
private void cbChar_SelectedIndexChanged(object sender, EventArgs e) { lck = false; currentSet = file.css[cbChar.SelectedIndex]; txtCharID.Text = currentSet.charID.ToString(); txtCostID.Text = currentSet.costumeID.ToString(); txtVal.Text = currentSet.skill[9].ToString(); lck = true; }
private void copyToolStripMenuItem_Click(object sender, EventArgs e) { if (this.tabControl1.SelectedIndex == 0) { this.copySet = this.currentSet; } else { this.copySkill = this.currentSkill; } this.lblStatus.Text = "Data has been copied"; }