Beispiel #1
0
 public ColorsDialog(ColorParameters parameters)
     : this()
 {
     taggedBlockLabel.BackColor   = parameters.TaggedBlockColor;
     untaggedBlockLabel.BackColor = parameters.UntaggedBlockColor;
     actorLabel.BackColor         = parameters.ActorColor;
 }
        private void SetColors(ColorParameters colorParameters)
        {
            simulationPanel.ActorColor    = colorParameters.ActorColor;
            simulationPanel.TaggedColor   = colorParameters.TaggedBlockColor;
            simulationPanel.UntaggedColor = colorParameters.UntaggedBlockColor;

            simulationPanel.RedrawSimulation(); // need a full redraw if changing colors
            simulationPanel.Invalidate();
        }