private void Base_Load(object sender, EventArgs e) { DispayButtonOnUserRight(); myTimer.Interval = 300; //Start timer myTimer.Start(); lblDate.Text = System.DateTime.Now.ToShortDateString(); FillGridBill(); SelectedButtonNew((int)Btn.Billing); this.pnlMiddle.Controls.Clear(); frmBilling obj = new frmBilling(this, BillNo); obj.TopLevel = false; obj.AutoScroll = true; this.pnlMiddle.Controls.Add(obj); obj.Show(); lblPageHead.Text = "Generate Bill"; //FrmLogin obj=new FrmLogin; //if (FrmLogin.Username=="A") // btnTransfer.Visible=true; //else // btnTransfer.Visible=false; pnlLeft2.Visible = false; }
private void btnBilling_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (fr8 == null) { fr8 = new frmBilling(); fr8.MdiParent = this; fr8.Show(); } }
private void btnBilling_Click(object sender, EventArgs e) { pnlLeft2.Visible = false; SelectedButtonNew((int)Btn.Billing); this.pnlMiddle.Controls.Clear(); frmBilling obj = new frmBilling(this, BillNo); obj.TopLevel = false; obj.AutoScroll = true; this.pnlMiddle.Controls.Add(obj); obj.Show(); lblPageHead.Text = "Generate Bill"; }
private void dgvBill_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { if ((dgvBill.SelectedRows.Count != 0) && (dgvBill.SelectedRows[0].Cells[0].Value != null) && (Convert.ToString(dgvBill.SelectedRows[0].Cells[0].Value) != "")) { BillNo = int.Parse(dgvBill.SelectedRows[0].Cells["BillNo"].Value.ToString()); //if (dgvBill.Rows[e.RowIndex].Cells["BillNo"].Value != null) //{ // BillNo = dgvBill.Rows[e.RowIndex].Cells["BillNo"].Value.ToString(); SelectedButtonNew((int)Btn.Billing); this.pnlMiddle.Controls.Clear(); frmBilling obj = new frmBilling(this, BillNo); obj.TopLevel = false; obj.AutoScroll = true; this.pnlMiddle.Controls.Add(obj); obj.Show(); lblPageHead.Text = "Generate Bill-" + BillNo; } }