private void ButtonBack_Click(object sender, EventArgs e) { this.Close(); form.Enabled = true; form.Show(); DamnedFiles.DeleteWorkshopTempDirectories(); }
private void ButtonModifyStages_Click(object sender, EventArgs e) { if (damnedNewStage.count > 0) { if (damnedNewStage.count != 5) { MessageBox.Show("You did not select a loading screen image or a lobby button image for your new stages(s). Finish selecting those first before adding them into the game.", "Finish Selecting", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } } ModifyStages(); DamnedFiles.DeleteWorkshopTempDirectories(); }
private void DamnedMappingForm_FormClosed(object sender, FormClosedEventArgs e) { if (changesMade) { DialogResult result = MessageBox.Show("You have unsaved changes. Do you wish to close this window?", "Unsaved changes", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (result != DialogResult.Yes) { return; } } mainForm.Enabled = true; mainForm.Show(); DamnedFiles.DeleteWorkshopTempDirectories(); }
private void DamnedCommunityStagesForm_FormClosed(object sender, FormClosedEventArgs e) { form.Enabled = true; form.Show(); DamnedFiles.DeleteWorkshopTempDirectories(); }