예제 #1
0
 public void SetListView()
 {
     iL_actions.Images.Clear();
     iL_gestures.Images.Clear();
     iL_actions.Images.Add("alert", Properties.Resources.alert);
     iL_gestures.Images.Add("alert", Properties.Resources.alert);
     foreach (MyGesture gesture in m_gestures.GetAll())
     {
         gesture.SetActionIcon(iL_actions);
         gesture.SetGestureIcon(iL_gestures);
     }
     listView_GesturesActions.ILActions  = iL_actions;
     listView_GesturesActions.ILGestures = iL_gestures;
     listView_GesturesActions.AddGesturesCollection(m_gestures);
     cLV_matchedGestures.SmallImageList = iL_actions;
 }
예제 #2
0
        public void AddGesturesCollection(GesturesCollection gestures)
        {
            m_gestures    = gestures;
            this.ViewMode = (ViewModes)Config.User.LW_viewMode;
            this.Items.AddRange(gestures.GetAll().ToArray());
            //m_gestures.UpdateCollapsedGroups();

            //this.Columns[this.Columns.Count - 1].Width = -2;
            foreach (MyGesture group in m_gestures.Groups)
            {
                CollapseExpandGroup(this.Items[group.Index]);
            }
            SetLastColumnWidthToEnd();
        }
        public void AddGesturesCollection(GesturesCollection gestures)
        {            
            m_gestures = gestures;
            this.ViewMode = (ViewModes)Config.User.LW_viewMode;            
            this.Items.AddRange(gestures.GetAll().ToArray());
            //m_gestures.UpdateCollapsedGroups();    

            //this.Columns[this.Columns.Count - 1].Width = -2; 
            foreach (MyGesture group in m_gestures.Groups)
                CollapseExpandGroup(this.Items[group.Index]);
            SetLastColumnWidthToEnd();
        }