private void btn_EditStructure_Click(object sender, EventArgs e) { Structure structure = (Structure)lstbx_Structures.SelectedItem; this.Hide(); EnterStructInfo enterStructInfo = new EnterStructInfo(structure); enterStructInfo.MdiParent = Program.StartScrn; enterStructInfo.Show(); }
private void btn_AddStructure_Click(object sender, EventArgs e) { Structure structure = new Structure(); Program.CurrentJob.Structures.Add(structure); EnterStructInfo enterStructInfo = new EnterStructInfo(structure); enterStructInfo.MdiParent = Program.StartScrn; enterStructInfo.Show(); }
private void sketchArea_MouseClickNormal(object sender, MouseEventArgs e) { foreach (Structure s in Program.CurrentJob.Structures) { if (s.Rect.Contains(sketchArea.PointToClient(MousePosition))) { EnterStructInfo structInfo = new EnterStructInfo(s); structInfo.Show(); break; } } }