Esempio n. 1
0
 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();
     }
 }
Esempio n. 2
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     PipeLineSystem.AddNewNetwork(saveFileDialog1, btnSave, btnSaveAs);
     this.Refresh();
 }