예제 #1
0
 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);
     }
 }
예제 #2
0
 public Item(ItemInfo.Type t, float amount)
 {
     ItemType = t;
     Amount   = amount;
     ItemName = ItemInfo.GetItemName(t);
 }