private void btnChartStyle_Click(object sender, EventArgs e) { using (BorderAndBackEditor fd = new BorderAndBackEditor()) { fd.BorderColor = PMSChartAppearance.BorderlineColor; fd.BorderDashStyle = PMSChartAppearance.BorderlineDashStyle; fd.BorderWidth = PMSChartAppearance.BorderlineWidth; fd.BackColor = PMSChartAppearance.BackColor; fd.BackSecondColor = PMSChartAppearance.BackSecondaryColor; fd.BackHatchStyle = PMSChartAppearance.BackHatchStyle; fd.BackGradientStyle = PMSChartAppearance.BackGradientStyle; if (fd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { PMSChartAppearance.BorderlineColor = fd.BorderColor; PMSChartAppearance.BorderlineDashStyle = fd.BorderDashStyle; PMSChartAppearance.BorderlineWidth = fd.BorderWidth; PMSChartAppearance.BackColor = fd.BackColor; PMSChartAppearance.BackSecondaryColor = fd.BackSecondColor; PMSChartAppearance.BackHatchStyle = fd.BackHatchStyle; PMSChartAppearance.BackGradientStyle = fd.BackGradientStyle; } } }
private void btnLegendStyle_Click(object sender, EventArgs e) { using (BorderAndBackEditor fd = new BorderAndBackEditor()) { fd.BorderColor = legend1.BorderColor; fd.BorderDashStyle = legend1.BorderDashStyle; fd.BorderWidth = legend1.BorderWidth; fd.BackColor = legend1.BackColor; fd.BackSecondColor = legend1.BackSecondaryColor; fd.BackHatchStyle = legend1.BackHatchStyle; fd.BackGradientStyle = legend1.BackGradientStyle; if (fd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { legend1.BorderColor = fd.BorderColor; legend1.BorderDashStyle = fd.BorderDashStyle; legend1.BorderWidth = fd.BorderWidth; legend1.BackColor = fd.BackColor; legend1.BackSecondaryColor = fd.BackSecondColor; legend1.BackHatchStyle = fd.BackHatchStyle; legend1.BackGradientStyle = fd.BackGradientStyle; } } }
private void btnTitleStyle_Click(object sender, EventArgs e) { using (BorderAndBackEditor fd = new BorderAndBackEditor()) { fd.BorderColor = titleList[Convert.ToInt32(lvwTitle.SelectedItems[0].SubItems[0].Text)].BorderColor; fd.BorderDashStyle = titleList[Convert.ToInt32(lvwTitle.SelectedItems[0].SubItems[0].Text)].BorderDashStyle; fd.BorderWidth = titleList[Convert.ToInt32(lvwTitle.SelectedItems[0].SubItems[0].Text)].BorderWidth; fd.BackColor = titleList[Convert.ToInt32(lvwTitle.SelectedItems[0].SubItems[0].Text)].BackColor; fd.BackSecondColor = titleList[Convert.ToInt32(lvwTitle.SelectedItems[0].SubItems[0].Text)].BackSecondaryColor; fd.BackHatchStyle = titleList[Convert.ToInt32(lvwTitle.SelectedItems[0].SubItems[0].Text)].BackHatchStyle; fd.BackGradientStyle = titleList[Convert.ToInt32(lvwTitle.SelectedItems[0].SubItems[0].Text)].BackGradientStyle; if (fd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { titleList[Convert.ToInt32(lvwTitle.SelectedItems[0].SubItems[0].Text)].BorderColor = fd.BorderColor; titleList[Convert.ToInt32(lvwTitle.SelectedItems[0].SubItems[0].Text)].BorderDashStyle = fd.BorderDashStyle; titleList[Convert.ToInt32(lvwTitle.SelectedItems[0].SubItems[0].Text)].BorderWidth = fd.BorderWidth; titleList[Convert.ToInt32(lvwTitle.SelectedItems[0].SubItems[0].Text)].BackColor = fd.BackColor; titleList[Convert.ToInt32(lvwTitle.SelectedItems[0].SubItems[0].Text)].BackSecondaryColor = fd.BackSecondColor; titleList[Convert.ToInt32(lvwTitle.SelectedItems[0].SubItems[0].Text)].BackHatchStyle = fd.BackHatchStyle; titleList[Convert.ToInt32(lvwTitle.SelectedItems[0].SubItems[0].Text)].BackGradientStyle = fd.BackGradientStyle; } } }