protected void DeleteDepositEntry(string arg)
 {
     string[] vals = arg.Split(new char[] { ';' });
     int depositEntryIndex;
     if (!int.TryParse(vals[1], out depositEntryIndex))
     {
         return;
     }
     QuickPM.Deposit deposit = new QuickPM.Deposit(long.Parse(vals[0]));
     deposit.DeleteFromAR(deposit.DepositEntries[depositEntryIndex]);
     deposit.DepositEntries.RemoveAt(depositEntryIndex);
     deposit.Save();
 }
 protected void DeleteDeposit(string depositId)
 {
     QuickPM.Deposit d = new QuickPM.Deposit(long.Parse(depositId));
     d.DeleteFromAR();
     d.Delete();
 }