private void miBorderX_Click(object sender, EventArgs e) { int borderStyle = UIHelper.GetMenuItemTag <int>(MenuBorders, sender); GlobalOptions.Instance.TreeChartOptions.BorderStyle = (GfxBorderStyle)borderStyle; fTreeBox.Invalidate(); }
private void miFillColor_Click(object sender, EventArgs e) { if (colorDialog1.ShowDialog() != DialogResult.OK) { return; } fTreeBox.BackgroundImage = null; fTreeBox.BackColor = colorDialog1.Color; fTreeBox.Invalidate(); }
private void miFillColor_Click(object sender, EventArgs e) { using (var colorDialog1 = new ColorDialog()) { if (colorDialog1.ShowDialog(this) != DialogResult.Ok) { return; } //fTreeBox.BackgroundImage = null; fTreeBox.BackgroundColor = colorDialog1.Color; fTreeBox.Invalidate(); } }