public sellReport() { InitializeComponent(); this.alert = new Alert(); comboBox2.DisplayMember = "Text"; comboBox2.ValueMember = "Value"; this.sdt = new StockDataTable(); dateTimePicker1.Hide(); sData = new SellReportData(); getData(); }
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; }