示例#1
0
        } // build the main grid view

        // Double on the table row
        private void tableRow_DoubleClick(object sender, EventArgs e)
        {
            DataGridViewRow    currentRow  = dataGridViewOutput.CurrentRow;
            DataRow            row         = ((DataRowView)currentRow.DataBoundItem).Row;
            long               valDelivery = Int64.Parse(row.ItemArray[5].ToString());
            decimal            amount      = decimal.Parse(row.ItemArray[6].ToString());
            IList <ResultView> output      = sapReader.GetOutgoingDelivery(valDelivery, amount);
            ReceiptUI          outputUI    = new ReceiptUI();

            outputUI.Delivery      = valDelivery;
            outputUI.OutputView    = output;
            outputUI.ReceiptAmount = amount;
            outputUI.ShowDialog();
        }
示例#2
0
        static void Main(string[] args)
        {
            ReceiptUI ui = new ReceiptUI();

            ui.ProcessOrder();
        }