private void cmb_ForeColor_SelectItemChanged(object sender, EventArgs e) { FontStu fstu = this.fs[this.OldIndex]; fstu.fc = this.cmb_ForeColor.SelectedItem; this.fs[this.OldIndex] = fstu; this.lb_Display.ForeColor = this.cmb_ForeColor.SelectedItem; }
private void pg_Font_PropertyValueChanged(object s, PropertyValueChangedEventArgs e) { FontStu fstu = this.fs[this.OldIndex]; fstu.f = (Font)this.pg_Font.SelectedObject; this.fs[this.OldIndex] = fstu; this.lb_Display.Font = fstu.f; }
private FontStu NewFontStu(string type) { FontStu fstu = new FontStu(); fstu.f = BaseControls.CtlSettings.GetFontValue(type); fstu.fc = BaseControls.CtlSettings.GetForeColorValue(type); fstu.type = type; return(fstu); }