예제 #1
0
        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);
                }
            }
        }
예제 #2
0
파일: Mainform.cs 프로젝트: qzlly/SETUNA2
        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;
            }
        }