コード例 #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.txtContent.SelectionStart;
            string result = this.txtContent.Text;

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