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; }
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(); }
public int getCellIndex(R_ListCell rc) { return(rightControl.IndexOf(rc)); }
public void deleteCell(R_ListCell rc) { rightControl.Remove(rc); handleMiddleCell(); }