예제 #1
0
 public object[] ToArrayTimeSliceGroupItem(int groupLength)
 {
     if (Target == null || Target.IsEmpty)
     {
         return(null);
     }
     return(new object[] { IsActive, Target.Name, Formaters.FormatTime(groupLength) });
 }
예제 #2
0
        /// <summary>
        /// Function:Edit a group info.
        /// Author  :Jerry Xu
        /// Date    :2008-7-14
        /// </summary>
        /// <param name="name"></param>
        public void EditGroup(string name)
        {
            //Show the edit form
            TimeSliceGroupEditForm group = new TimeSliceGroupEditForm(name);

            //group.GroupName = name;
            //if (this.ParentForm != null)
            //    this.ParentForm.TopMost = true;
            group.ShowModalDialog();
            //Refresh group info
            if (group.IsRefresh)
            {
                LoadGroup(group.GroupName);
                foreach (TreeListNode node in _nodesList)
                {
                    node[2] = Formaters.FormatTime(group.GroupLength);
                }
            }
        }