public bool Add(PrinterAttachCell attachCell, string key) { if (!attachs.ContainsKey(key)) { if (attachCell.Properties.Value == null) { attachCell.Properties.Value = ""; } attachs.Add(key, attachCell); return(true); } else { return(false); } }
public bool AttachCell(string key, PrinterAttachCell newCell) { return(attachs.SetItem(key, newCell)); }
public bool AttachCell(int index, PrinterAttachCell newCell) { return(attachs.SetItem(index - 1, newCell)); }