Beispiel #1
0
 public sellReport()
 {
     InitializeComponent();
     this.alert = new Alert();
     comboBox2.DisplayMember = "Text";
     comboBox2.ValueMember   = "Value";
     this.sdt = new StockDataTable();
     dateTimePicker1.Hide();
     sData = new SellReportData();
     getData();
 }
Beispiel #2
0
        private void refresh_Click(object sender, EventArgs e)
        {
            this.sData     = new SellReportData();
            this.sdt       = new StockDataTable();
            Cursor.Current = Cursors.WaitCursor;
            if (this.sData.listMaker("select * from stock"))
            {
                if (!addData(this.sData.Datatables))
                {
                    Cursor.Current = Cursors.Default;
                    alert.Show(this.alert.Warning, "No Data Found........ ");
                }
            }
            else
            {
                Cursor.Current = Cursors.Default;
                MessageBox.Show("check your internet connection");
            }

            Cursor.Current = Cursors.Default;
        }