private void button_ImportFile_Click(object sender, EventArgs e) { DoubleSpawnsRemover.OpenFileDialog(openFileDialog); this.Cursor = Cursors.WaitCursor; button_ImportFileForRemoving.Enabled = false; if (openFileDialog.ShowDialog() == DialogResult.OK) { DoubleSpawnsRemover.RemoveDoubleSpawnsFromFile(openFileDialog.FileName, label_CreaturesRemoved, label_GameobjectsRemoved, checkBox_CreaturesRemover.Checked, checkBox_GameobjectsRemover.Checked, checkBox_DatabaseConsidering.Checked); button_ImportFileForRemoving.Enabled = true; this.Cursor = Cursors.Default; } else { label_CreaturesRemoved.Text = "No creatures removed"; label_GameobjectsRemoved.Text = "No gameobjects removed"; } button_ImportFileForRemoving.Enabled = true; this.Cursor = Cursors.Default; }
private void button_ImportFile_Click(object sender, EventArgs e) { DoubleSpawnsRemover.OpenFileDialog(openFileDialog); this.Cursor = Cursors.WaitCursor; button_DoubleSpawnsRemover_ImportFile.Enabled = false; if (openFileDialog.ShowDialog() == DialogResult.OK) { DoubleSpawnsRemover.RemoveDoubleSpawnsFromFile(openFileDialog.FileName, label_DoubleSpawnsRemover_CreaturesRemoved, label_DoubleSpawnsRemover_GameobjectsRemoved, checkBox_DoubleSpawnsRemover_Creatures.Checked, checkBox_DoubleSpawnsRemover_Gameobjects.Checked, toolStripStatusLabel_FileStatus, this); toolStripStatusLabel_FileStatus.Text = openFileDialog.FileName + " is selected for input."; button_DoubleSpawnsRemover_ImportFile.Enabled = true; this.Cursor = Cursors.Default; } else { label_DoubleSpawnsRemover_CreaturesRemoved.Text = "No creatures removed"; label_DoubleSpawnsRemover_GameobjectsRemoved.Text = "No gameobjects removed"; } button_DoubleSpawnsRemover_ImportFile.Enabled = true; this.Cursor = Cursors.Default; }