// ** ICloneable public object Clone() { ReportStyle clone = (ReportStyle)this.MemberwiseClone(); for (int i = 0; i < _sections.Length; i++) { clone._sections[i] = (SectionStyle)_sections[i].Clone(); } clone._builtIn = false; return(clone); }
private void btnSelectStyle_Click(object sender, EventArgs e) { StyleSelector rw = new StyleSelector(); if (_style != null) { rw.SelectedStyle = _style; } if (rw.ShowDialog() == DialogResult.OK) { _style = rw.SelectedStyle; if (_style != null && _rep != null) { _style.Apply(_rep); _rep.Render(); } } }
private void lbStyles_SelectedIndexChanged(object sender, System.EventArgs e) { ReportStyle style = lbStyles.SelectedItem as ReportStyle; picStyle.Image = (style != null) ? style.GetPreview(false) : null; }