public override void Execute()
        {
            string fileName;

            if (!DialogUtils.OpenFile(mainForm, out fileName))
            {
                return;
            }

            var data = ReadData(fileName);

            if (data == null)
            {
                return;
            }

            var designer = new FormDesign();

            designer.MdiParent = mainForm;
            designer.SetCircuitData(data);

            mainForm.AddOpenedDesigner(designer);
            designer.Closed += (sender, args) => mainForm.RemoveOpenedDesigner(designer);

            designer.IsModified    = false;
            designer.FilePath      = fileName;
            designer.IsFileNameSet = true;

            designer.Show();
        }
        public override void Execute()
        {
            var designer = new FormDesign {
                MdiParent = mainForm
            };

            mainForm.AddOpenedDesigner(designer);
            designer.Closed += (sender, args) => mainForm.RemoveOpenedDesigner(designer);

            designer.IsModified = true;
            designer.FilePath   = "Untitled " + newCircuitNumber++ + ".cir";

            designer.Show();
        }