Beispiel #1
0
        public static DataGridView update(DataGridView dgv)
        {
            int[] keys = remBook.getOrdersId();
            Order order;

            dgv.Rows.Clear();

            foreach (int id in keys)
            {
                order = remBook.getOrder(id);
                dgv.Rows.Add(order.id, order.book.title, order.status, order.requestDate, order.replyDate);
            }

            return(dgv);
        }
Beispiel #2
0
        public Orders(Form callback)
        {
            InitializeComponent();
            this.callback = callback;
            remBook       = (IRemBook)GetRemote.New(typeof(IRemBook));

            int[] keys = remBook.getOrdersId();
            Order order;


            foreach (int id in keys)
            {
                order = remBook.getOrder(id);
                this.dataGridView1.Rows.Add(order.id, order.book.title, order.status, order.requestDate, order.replyDate);
            }
        }