コード例 #1
0
        public void addRightCell(String str)
        {
            R_ListCell lc = new R_ListCell(str, lco);

            rightControl.Add(lc);
            handleMiddleCell();
        }
コード例 #2
0
 public RenameCommand(string sf, string df, R_ListCell cell)
 {
     sourceFileName = sf;
     destFileName   = df;
     rc             = cell;
     done           = false;
 }
コード例 #3
0
        public void moveCell(R_ListCell rc, int index)
        {
            List <R_ListCell> list = rightControl.Cast <R_ListCell>().ToList <R_ListCell>();

            list.Remove(rc);

            if (index < 0)
            {
                index = 0;
            }

            if (index < list.Count)
            {
                list.Insert(index, rc);
            }
            else
            {
                list.Add(rc);
            }

            rightControl.Clear();
            rightControl.AddRange(list.ToArray());
            lco.Refresh();
        }
コード例 #4
0
 public int getCellIndex(R_ListCell rc)
 {
     return(rightControl.IndexOf(rc));
 }
コード例 #5
0
 public void deleteCell(R_ListCell rc)
 {
     rightControl.Remove(rc);
     handleMiddleCell();
 }