예제 #1
0
 protected virtual void OnSelected(SelectFaceArgs e)
 {
     if (this.Selected != null)
     {
         this.Selected(this, e);
     }
 }
예제 #2
0
        void _faceForm_AddFace(object sender, SelectFaceArgs e)
        {
            string imgName = "";
            int?   imgInt  = null;

            imgName = e.Img.FullName.Replace(Application.StartupPath + "\\", "");
            imgInt  = Tools.GetNumberInt(imgName);
            int    i      = this.txtContents.SelectionStart;
            string result = this.txtContents.Text;

            imgName = "{[" + imgInt + "]}";
            result  = result.Insert(i, imgName);
            this.txtContents.Text           = result;
            this.txtContents.SelectionStart = i + imgName.Length;
        }