private void btnOpen_Click(object sender, EventArgs e) { PipeLineSystem.AddNewNetwork(saveFileDialog1, btnSave, btnSaveAs); if (PipeLineSystem.OpenNetwork(openFileDialog1, btnLine)) { PipeLineSystem.Saved = true; this.btnSaveAs.Enabled = false; this.btnSave.Enabled = false; //Draw all components methods MessageBox.Show("Your drawing is loaded"); this.Refresh(); } }
private void btnNew_Click(object sender, EventArgs e) { PipeLineSystem.AddNewNetwork(saveFileDialog1, btnSave, btnSaveAs); this.Refresh(); }