private void buttonNextTab2_Click(object sender, EventArgs e) { if (this.listBoxImported.SelectedItems.Count == 0 || this.listBoxExported.SelectedItems.Count == 0) { MessageBox.Show("Please select one row in each client", "Error", MessageBoxButtons.OK); } else if (this.ImportedSTB.EmptyRow(this.listBoxImported.SelectedIndex)) { MessageBox.Show("An empty row can't be import", "Error", MessageBoxButtons.OK); } else if (this.listBoxExported.SelectedIndex >= this.ExportedMZSC.listObject.Count && !this.comboBoxObjetType.Text.Equals("NPC")) { MessageBox.Show("Your zsc file haven't enough entry to add this item !!! Please add more empty entry in your zsc with your favorite zsc editor", "Error", MessageBoxButtons.OK); } else if (this.comboBoxObjetType.Text.Equals("NPC") && this.listBoxExported.SelectedIndex >= this.ExportedCHR.list_character.Count) { MessageBox.Show("Your chr file haven't enough entry to add this item !!! Please add more empty entry in your chr with your favorite zsc editor", "Error", MessageBoxButtons.OK); } else { this.ImportedItemIndex = this.listBoxImported.SelectedIndex; this.ExportedItemIndex = this.listBoxExported.SelectedIndex; this.previewForm.Close(); this.previewForm.Dispose(); this.iconForm = new IconForm(this.textBoxImportedFolder.Text, this.textBoxExportedFolder.Text); this.iconForm.Show(); this.LoadThirdTab(); this.tabControl.SelectedIndex++; } }
private void buttonIcon_Click(object sender, EventArgs e) { this.iconForm = new IconForm(this.textBoxImportedFolder.Text, this.textBoxExportedFolder.Text); this.iconForm.Show(); }