Beispiel #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);
 }
Beispiel #2
0
        public ICollectionEditType AddNew()
        {
            SelfAction sa = new SelfAction();

            Add(sa);
            return(sa);
        }
Beispiel #3
0
 public void Add(SelfAction value)
 {
     if (value.Name.Trim() == "")
     {
         CalcName(value);
     }
     UnRegisterVarientEvent(value);
     RegisterVarientEvent(value);
     this.InnerList.Add(value);
 }
Beispiel #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;
        }
Beispiel #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;
 }
Beispiel #6
0
 public bool Contains(SelfAction value)
 {
     return(this.InnerList.Contains(value));
 }
Beispiel #7
0
 public void Remove(SelfAction value)
 {
     this.InnerList.Remove(value);
 }