Exemple #1
0
        public void addRightCell(String str)
        {
            R_ListCell lc = new R_ListCell(str, lco);

            rightControl.Add(lc);
            handleMiddleCell();
        }
 public RenameCommand(string sf, string df, R_ListCell cell)
 {
     sourceFileName = sf;
     destFileName   = df;
     rc             = cell;
     done           = false;
 }
Exemple #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();
        }
Exemple #4
0
 public int getCellIndex(R_ListCell rc)
 {
     return(rightControl.IndexOf(rc));
 }
Exemple #5
0
 public void deleteCell(R_ListCell rc)
 {
     rightControl.Remove(rc);
     handleMiddleCell();
 }