// Opens control to make your own room shape. private void vormZelfMakenToolStripMenuItem_Click(object sender, EventArgs e) { roomMaker1 = new RoomMaker(this); roomMaker1.Width = Width; roomMaker1.Height = Height; roomMaker1.Location = new Point(0, 22); Controls.Add(roomMaker1); roomMaker1.Show(); roomMaker1.BringToFront(); DesignPanel1.UnsetMightMode(); nightModeBool = false; }
private void wisselNachtmodusToolStripMenuItem_Click(object sender, EventArgs e) { if (!nightModeBool) { DesignPanel1.SetNightMode(); nightModeBool = true; } else { DesignPanel1.UnsetMightMode(); nightModeBool = false; } }
// Open shapeselector. public void ShapeSelect() { room = new Room(); ShapeSelector ss = new ShapeSelector(room); ss.ShowDialog(); if (ss.DialogResult == DialogResult.OK) { room.productList = new List <Product>(); DesignPanel1.rDesign = room; //mm.Hide(); if (roomMaker1 != null) { roomMaker1.Hide(); roomMaker1 = null; } Controls.Remove(roomMaker1); this.Show(); } DesignPanel1.UnsetMightMode(); nightModeBool = false; }