public void WClickStyle(ScrapBase scrap, Point clickpoint) { int wClickStyleID = this._mainform.optSetuna.Scrap.WClickStyleID; if (wClickStyleID != 0) { CStyle style = this._mainform.optSetuna.FindStyle(wClickStyleID); if (style != null) { style.Apply(ref scrap, clickpoint); } } }
public void ScrapCreated(object sender, ScrapEventArgs e) { CStyle style = this.optSetuna.FindStyle(this.optSetuna.Scrap.CreateStyleID); if (style != null) { e.scrap.Initialized = false; style.Apply(ref e.scrap); } else { e.scrap.Initialized = true; } }