private void SetDoorColor(object sender, EventArgs e) { string color = this.avaiblableDoorColor.GetChecked(); if (color is null) { color = "No door"; } if (color == "No door") { this.layer.DoorType = null; } else { if (color != "Verre") { this.layer.DoorType = new ClassicDoor(Color.FromName(ColorMapper.MapColor(color))); this.blockViewer.DoorColor = Color.FromName(ColorMapper.MapColor(color)); } else { this.layer.DoorType = new GlassDoor(); } } }
private void SetPanelColor(object sender, EventArgs e) { Color color = Color.FromName(ColorMapper.MapColor(this.availablePanelColor.GetChecked())); this.blockViewer.PanelColor = color; this.layer.PanelColor = color; this.blockViewer.BackColor = Color.FromArgb(125, color); }
public override string GetCode() { Console.WriteLine("classic door"); return(string.Concat(attribute, this.height.ToString(), WidthMapper.MapDoorWidth(this.width), ColorMapper.MapPrefix(this.color))); }
public override string GetCode() { return(attribute + secAttribute + this.Depth.ToString() + this.Height.ToString() + ColorMapper.MapPrefix(this.color)); }