private void buttonParseTransactions_Click(object sender, EventArgs e)
        {
            TransactionParser parser = GetTransactionParser();

            if (parser != null)
            {
                string currencyPair = textBoxCurrencyPair.Text;
                if (currencyPair == null)
                {
                    MessageBox.Show("Please provide the desired currency pair you'd like to parse the transactions for.");
                    return;
                }
                Dictionary <string, string> parameters = new Dictionary <string, string> {
                    { "time", comboBoxParseWithinTime.Text.ToLower() }
                };
                List <PublicTransaction> transactions = parser.UpdatedPublicTransactions(currencyPair.ToLower(), parameters);
                transactions.ForEach(t => {
                    PublicTransactionType type = (PublicTransactionType)t.type;
                    ListViewItem item          = new ListViewItem(t.tid.ToString());
                    item.SubItems.Add(TimestampToDateTime(t.date).ToString());
                    item.SubItems.Add(t.amount.ToString());
                    item.SubItems.Add(t.price.ToString());
                    item.SubItems.Add(type.ToString());
                    tableTransactions.Items.Add(item);
                }
                                     );
            }
        }
 private void buttonLoadTransactions_Click(object sender, EventArgs e)
 {
     tableTransactions.Items.Clear();
     using (var ctx = new TransactionHistoriesEntities()) {
         foreach (var t in ctx.PublicTransactions)
         {
             PublicTransactionType type = (PublicTransactionType)t.type;
             ListViewItem          item = new ListViewItem(t.tid.ToString());
             item.SubItems.Add(t.date.ToString());
             item.SubItems.Add(t.amount.ToString());
             item.SubItems.Add(t.price.ToString());
             item.SubItems.Add(type.ToString());
             tableTransactions.Items.Add(item);
         }
     }
 }