Ejemplo n.º 1
0
 private void ShowIdleScreen()
 {
     // pictureBox1.BackgroundImage = aSlideShow[0];
     pictureBox1.Show();
     RightPanel.Hide();
     CustDGView.Hide();
 }
Ejemplo n.º 2
0
        private void ThreadExecute(object aThreadData)
        {
            if (InvokeRequired)
            {
                SetMessageCallback d = new SetMessageCallback(ThreadExecute);
                this.BeginInvoke(d, new object[] { aThreadData });
                //Thread.CurrentThread.Abort();
            }
            else
            {
                ThreadData aData = aThreadData as ThreadData;
                DataTable  __DGViewTableItems = aData.aTable;

                CustDGView.DataSource = __DGViewTableItems;
                CustDGView.Columns["Description"].HeaderText   = "Description";
                CustDGView.Columns["Description"].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
                CustDGView.Columns["UnitPrice"].AutoSizeMode   = DataGridViewAutoSizeColumnMode.AllCells;
                CustDGView.Columns["TaxLevel"].HeaderText      = "Tax Level %";
                CustDGView.Columns["TaxLevel"].AutoSizeMode    = DataGridViewAutoSizeColumnMode.AllCells;
                CustDGView.Columns["Quantity"].HeaderText      = "Quantity";
                CustDGView.Columns["Quantity"].AutoSizeMode    = DataGridViewAutoSizeColumnMode.AllCells;
                CustDGView.Columns["Total"].HeaderText         = "Total Price";
                CustDGView.Columns["Total"].AutoSizeMode       = DataGridViewAutoSizeColumnMode.Fill;
                CustDGView.ClearSelection();
                CustDGView.FirstDisplayedScrollingRowIndex = __DGViewTableItems.Rows.Count - 1;

                //Thread.CurrentThread.Abort();
            }
        }
Ejemplo n.º 3
0
 private void HideIdleScreen()
 {
     pictureBox1.Hide();
     RightPanel.Show();
     CustDGView.Show();
 }