Example #1
0
        private void newCtrlNToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string msg  = "Press OK if you want to proceed without saving your data";
            string msg2 = "Data not saved";

            //nollställa applikationen
            if (!saved)
            {
                MessageBoxButtons buttons = MessageBoxButtons.OKCancel;
                DialogResult      res     = MessageBox.Show(msg, msg2, buttons);
                if (res == DialogResult.OK)
                {
                    estateManager.DeleteAll();
                    estateManager.ClearFields(comboBoxLegalForm, comboBoxCountry, comboBoxCategory, comboBoxType, textBoxCity, textBoxZipCode, textBoxStreet, textBox6, textId, pictureBoxImage);
                }
            }
        }