예제 #1
0
        private void buttonAskBuyer_Click(object sender, EventArgs e)
        {
            DataTable dtTrans = EbayTransactionDAL.GetOneTransactionTable(EbayTransaction.TransactionId);

            if (dtTrans == null || dtTrans.Rows.Count == 0)
            {
                return;
            }

            DataTable orderTable = dtTrans.Clone();
            DataRow   newRow     = orderTable.NewRow();

            newRow.ItemArray = dtTrans.Rows[0].ItemArray;
            orderTable.Rows.Add(newRow);

            FrmSendMessage frm = new FrmSendMessage();

            frm.OrdersDataTable = orderTable;
            frm.StartPosition   = FormStartPosition.CenterScreen;
            frm.ShowDialog();

            if (frm.MessageSent)
            {
                LoadMsgData();
            }
        }