Пример #1
0
        private void newToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (isChanged)
            {
                if (MessageBox.Show("Save file?", "Error", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    ShapeData.Save(ref shapes, ref fileName, ref isChanged);
                }
                isChanged = false;
            }
            string tempText = "";

            ShapeData.New(ref shapes, ref fileName, ref tempText);
            Text = tempText;
            Refresh();
        }