Beispiel #1
0
        private void SetBackButton_Click(object sender, EventArgs e)
        {
            BackFormcs dialog = new BackFormcs();

            dialog.Owner         = this;
            dialog.ApplyHandler += new EventHandler(setColour);
            dialog.Show();
        }
Beispiel #2
0
        private void setColour(object sender, System.EventArgs e)
        {
            BackFormcs dialog = (BackFormcs)sender;

            this.BackColor = Color.FromArgb(dialog.Red, dialog.Green, dialog.Blue);
        }