private void menu_Main_Tools_Colors_Click(object sender, EventArgs e) { ColorChangerForm colorForm = new ColorChangerForm(GridColor, CellColor, BackgroundColor); switch (colorForm.ShowDialog(this)) { case DialogResult.OK: GridColor = colorForm.GridColor; CellColor = colorForm.CellColor; BackgroundColor = colorForm.BackgroundColor; RefreshColors(); break; case DialogResult.Cancel: break; } }
private void menu_Main_Tools_Colors_Click(object sender, EventArgs e) { ColorChangerForm colorForm = new ColorChangerForm(GridColor, CellColor, BackgroundColor); switch (colorForm.ShowDialog(this)) { case DialogResult.OK: GridColor = colorForm.GridColor; CellColor = colorForm.CellColor; BackgroundColor = colorForm.BackgroundColor; RefreshColors(); break; case DialogResult.Cancel: break; } }