Ejemplo n.º 1
0
 private void RegisterVarientEvent(SelfAction value)
 {
     value.NameCheck += new NameCheckHandler(value_NameCheck);
     value.bDoubleClickActionEvent += new EventHandler(value_bDoubleClickActionEvent);
     value.CaptionCheck            += new NameCheckHandler(value_CaptionCheck);
     value.DesignLocaleID          += new DesignLocaleIDFatcher(value_DesignLocaleID);
 }
Ejemplo n.º 2
0
        public ICollectionEditType AddNew()
        {
            SelfAction sa = new SelfAction();

            Add(sa);
            return(sa);
        }
Ejemplo n.º 3
0
 public void Add(SelfAction value)
 {
     if (value.Name.Trim() == "")
     {
         CalcName(value);
     }
     UnRegisterVarientEvent(value);
     RegisterVarientEvent(value);
     this.InnerList.Add(value);
 }
Ejemplo n.º 4
0
        private void CalcName(SelfAction value)
        {
            int    count = 1;
            string name  = "Action" + count.ToString();

            while (FindName(name))
            {
                count++;
                name = "Action" + count.ToString();
            }
            value.Name    = name;
            value.Caption = name;
        }
Ejemplo n.º 5
0
 public SelfAction(SelfAction sa)
 {
     _name               = sa.Name;
     _caption            = sa.CnCaption;
     _imagestring        = sa.ImageString;
     _actionclass        = sa.ActionClass;
     _tooltip            = sa.CnTip;
     _bdoubleclickaction = sa.bDoubleClickAction;
     _bshowcaption       = sa.bShowCaptionOnToolBar;
     _bneedcontext       = sa.bNeedContext;
     _encaption          = sa.EnCaption;
     _twcaption          = sa.TwCaption;
     _entip              = sa.EnTip;
     _twtip              = sa.TwTip;
 }
Ejemplo n.º 6
0
 public bool Contains(SelfAction value)
 {
     return(this.InnerList.Contains(value));
 }
Ejemplo n.º 7
0
 public void Remove(SelfAction value)
 {
     this.InnerList.Remove(value);
 }