Esempio n. 1
0
 private void Addcinstructorbtn_Click(object sender, EventArgs e)
 {
     newmaterial = new AddNewMaterial(this)
     {
         Anchor = AnchorStyles.Top | AnchorStyles.Bottom
     };
     newmaterial.Size = this.Size;
     this.Controls.Add(newmaterial);
     newmaterial.BringToFront();
 }
Esempio n. 2
0
 public MaterialPanel()
 {
     InitializeComponent();
     materialdatas = new List <MaterialDataPanel>();
     newmaterial   = new AddNewMaterial(this)
     {
         Anchor = AnchorStyles.Top | AnchorStyles.Bottom
     };
     materials = Task.Run(() => Connector.connections[0].GetMaterials()).Result;
     Initialize();
 }