private void ShopMaterialsStep2_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Escape) { if (!hasSaved) { if (MessageBox.Show("Сохранить данные?", "Вопрос", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes) { General.SaveData(DataFilePath, ShopMatResultsDaa); General.SaveData(DataFilePath2, ShopMatResultsDaa); this.Close(); } else { this.Close(); } } else { this.Close(); } } General.FormBlock(e, this); }
private void HumanEditorDataResults_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Escape) { this.Close(); } General.FormBlock(e, this); }
private void RawMatFormStep1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Escape) { this.Close(); } General.FormBlock(e, this); }
private void ShopMaterialsData_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Escape) { this.Close(); } General.FormBlock(e, this); }
private void BasarAndProdovecForm_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Escape) { this.Close(); } General.FormBlock(e, this); }
private void HumanEditorStep2_KeyDown(object sender, KeyEventArgs e) { /* * if (e.KeyCode == Keys.Escape) * { * this.Close(); * } */ General.FormBlock(e, this); }
private void RawMatResultsDaa_KeyDown(object sender, KeyEventArgs e) { General.FormBlock(e, this); }
private void HumanEditorStep2_KeyDown(object sender, KeyEventArgs e) { General.FormBlock(e, this); }