private String UpdateData(ItemInfo.Type type) { if (type == ItemInfo.Type.Clip) { return(txtClipboard.Text); } else if (type == ItemInfo.Type.File) { return(txtFilePath.Text); } else { return(txtProgramPath.Text); } }
public Item(ItemInfo.Type t, float amount) { ItemType = t; Amount = amount; ItemName = ItemInfo.GetItemName(t); }