//WIFI private void WIFI_Click(object sender, EventArgs e) { XtraForm1 xf = new XtraForm1(); xf.ShowDialog(); xf.Dispose(); }
private void rptBalanceSheet_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Reports.Accountbooks.Grids.BalanceSheetGrd frm; frm = new Reports.Accountbooks.Grids.BalanceSheetGrd(); //generate new instance frm.Owner = this; frm.TopLevel = false; splitContainerControl1.Panel2.Controls.Add(frm); frm.Show(); }
private void VatJournal_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Transactions.VATJournal frm; frm = new Transactions.VATJournal(); //generate new instance frm.Owner = this; frm.TopLevel = false; splitContainerControl1.Panel2.Controls.Add(frm); frm.Show(); }
private void barButtonItem18_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Transactions.Adjustexciseamounts frm; frm = new Transactions.Adjustexciseamounts(); //generate new instance frm.Owner = this; frm.TopLevel = false; spCtrlTransMenu.Panel2.Controls.Add(frm); frm.Show(); }
private void barbtnGSTDetails_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Administration.GSTDetails frm; frm = new Administration.GSTDetails(); //generate new instance frm.Owner = this; frm.TopLevel = false; sptCtrlMastermenu.Panel2.Controls.Add(frm); frm.Show(); }
protected internal override void ButtonClick(string tag) { switch (tag) { case "NewUser1": XtraForm1 form = new XtraForm1(); form.ShowDialog(); break; } }
private void FormIssued_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Transactions.formsissuedvoucher frm; frm = new Transactions.formsissuedvoucher(); //generate new instance frm.Owner = this; frm.TopLevel = false; splitContainerControl1.Panel2.Controls.Add(frm); frm.Show(); }
private void Callreceipt_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Transactions.CallReceipt frm; frm = new Transactions.CallReceipt(); //generate new instance frm.Owner = this; frm.TopLevel = false; spCtrlTransMenu.Panel2.Controls.Add(frm); frm.Show(); }
private void FormsRecevied_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Transactions.formsreceivedvoucher frm; frm = new Transactions.formsreceivedvoucher(); //generate new instance frm.Owner = this; frm.TopLevel = false; spCtrlTransMenu.Panel2.Controls.Add(frm); frm.Show(); }
private void Physicalstockvch_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Transactions.PhysicalStockvoucher frm; frm = new Transactions.PhysicalStockvoucher(); //generate new instance frm.Owner = this; frm.TopLevel = false; spCtrlTransMenu.Panel2.Controls.Add(frm); frm.Show(); }
private void MatIssuedparty_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Transactions.Matissuedtopartyvoucher frm; frm = new Transactions.Matissuedtopartyvoucher(); //generate new instance frm.Owner = this; frm.TopLevel = false; spCtrlTransMenu.Panel2.Controls.Add(frm); frm.Show(); }
private void MatRcvdpary_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Transactions.Matreceivedfromparty frm; frm = new Transactions.Matreceivedfromparty(); //generate new instance frm.Owner = this; frm.TopLevel = false; spCtrlTransMenu.Panel2.Controls.Add(frm); frm.Show(); }
private void PurchaseretVoucher_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Transactions.PurhcaseReturnvoucher frm; frm = new Transactions.PurhcaseReturnvoucher(); //generate new instance frm.Owner = this; frm.TopLevel = false; spCtrlTransMenu.Panel2.Controls.Add(frm); frm.Show(); }
private void btnMarkupStructure_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Administration.MarkupStructureMaster frm; frm = new Administration.MarkupStructureMaster(); //generate new instance frm.Owner = this; frm.TopLevel = false; sptCtrlMastermenu.Panel2.Controls.Add(frm); frm.Show(); }
private void Inventory_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Settings.Inventorysettings frm; frm = new Settings.Inventorysettings(); //generate new instance //frm.Owner = this; //frm.TopLevel = false; //spli.Panel2.Controls.Add(frm); frm.ShowDialog(); }
private void SalesOrder_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { //MessageBox.Show("Under Progeress........."); Transactions.Salesorder frm; frm = new Transactions.Salesorder(); //generate new instance frm.Owner = this; frm.TopLevel = false; spCtrlTransMenu.Panel2.Controls.Add(frm); frm.Show(); }
private void PurchaseQuotation_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { //MessageBox.Show("Under Progeress........."); Transactions.purchaseQuotation frm; frm = new Transactions.purchaseQuotation(); //generate new instance frm.Owner = this; frm.TopLevel = false; splitContainerControl1.Panel2.Controls.Add(frm); frm.Show(); }
private void btnLogIN_Click(object sender, EventArgs e) { string emailUser = txtEmailLogIN.Text; using (var mes = new DataContext()) { mes.Database.CreateIfNotExists(); var logInUser = mes.SenderUsers.Where(s => s.Username.ToLower() == emailUser.ToLower()).FirstOrDefault(); if (logInUser == null) { MessageBox.Show("UsernameIncorrect"); } else { if (logInUser.Password == txtPasswordLogIN.Text) { // MessageBox.Show("Welcome"); //var contextChat = new DataContext(); //LogUser currentLog = new LogUser(); //currentLog.ID = Guid.NewGuid(); //currentLog.IsLogIn = true; //currentLog.IsLogOut = false; //currentLog.CreationDate = DateTime.UtcNow; //currentLog.UpdatedDate = DateTime.UtcNow; //currentLog.userId = logInUser.ID; //contextChat.Entry(currentLog).State = System.Data.Entity.EntityState.Added; //contextChat.SaveChanges(); //// update status User //statusUser stUser = mes.StatusUser.Where(s => s.UserID == logInUser.ID).FirstOrDefault(); //if(stUser!=null) //{ // if(!stUser.IsOnline) // { // stUser.IsOnline = true; // stUser.UpdateDate = DateTime.UtcNow; // mes.Entry(stUser).State = System.Data.Entity.EntityState.Modified; // } //} //mes.SaveChanges(); // end update Status User this.Hide(); XtraForm1 usertChat = new XtraForm1(logInUser); usertChat.ShowDialog(); this.Close(); } else { MessageBox.Show("Password InCorrect"); } } } }
private void barbtnAccGroup_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Administration.Accountgroup frm; frm = new Administration.Accountgroup(); //generate new instance frm.Owner = this; frm.TopLevel = false; sptCtrlMastermenu.Panel2.Controls.Add(frm); frm.Show(); //if (this.ActiveMdiChild != null) // this.ActiveMdiChild.Close(); //Administration.Accountgroup frmaccgrp = new Administration.Accountgroup(); //frmaccgrp.MdiParent = this; //frmaccgrp.Show(); //sptCtrlMastermenu.Panel2.Controls.Add(frmaccgrp); }
public void LoadForms(string name) { string selectedPage = name; switch (selectedPage) { case "Unit Master": Administration.Unitmaster frm; frm = new Administration.Unitmaster(); //generate new instance frm.Owner = this; frm.TopLevel = false; sptCtrlMastermenu.Panel2.Controls.Add(frm); frm.Show(); break; //case "Reports": // this.Hide(); // IPCAUI.Menu.ReportMenu frmReport = new IPCAUI.Menu.ReportMenu(this); // frmReport.Show(); // break; //case "Transactions": // this.Hide(); // IPCAUI.Menu.TransactionsMenu frmTransMenu = new IPCAUI.Menu.TransactionsMenu(this); // frmTransMenu.Show(); // break; //case "Master": // this.Hide(); // IPCAUI.Menu.MastersMenu frmMasterMenu = new IPCAUI.Menu.MastersMenu(this); // frmMasterMenu.Show(); // break; //case "Configuration": // this.Hide(); // IPCAUI.Menu.ConfigurationMenu frmConfigMenu = new IPCAUI.Menu.ConfigurationMenu(this); // frmConfigMenu.Show(); // break; //case "Merged Accounts": // break; //case "Single Column": // break; //case "Multiple Column": // break; //case "Bank Book(As per Clr.Date)": // break; default: break; } }
private void Payment_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Transactions.PaymentVoucher frm; frm = new Transactions.PaymentVoucher(); //generate new instance //frm.Owner = this; frm.TopLevel = false; spCtrlTransMenu.Panel2.Controls.Add(frm); frm.Show(); //if (this.ActiveMdiChild != null) // //this.MdiChild.Clone(); // this.ActiveMdiChild.Close(); //IPCAUI.Transactions.PaymentVoucher frmPayment = new Transactions.PaymentVoucher(); //frmPayment.StartPosition = FormStartPosition.WindowsDefaultLocation; //frmPayment.MdiParent = this; //frmPayment.Show(); //splitContainerControl1.Panel2.Controls.Add(frmPayment); }
private void SalesEntry_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { //MessageBox.Show("Under Progeress........."); Transactions.Purchaseindentvoucher frm; frm = new Transactions.Purchaseindentvoucher(); //generate new instance frm.Owner = this; frm.TopLevel = false; spCtrlTransMenu.Panel2.Controls.Add(frm); frm.Show(); //} //else //{ // frm = new Transactions.SalesVoucher(); //generate new instance // frm.Owner = this; // frm.TopLevel = false; // splitContainerControl1.Panel2.Controls.Add(frm); // frm.Show(); //} //if (this.ActiveMdiChild != null) //// this.ActiveMdiChild.Close(); //{ // Transactions.SalesVoucher frmSales = new Transactions.SalesVoucher(); // frmSales.StartPosition = FormStartPosition.WindowsDefaultLocation; // frmSales.MdiParent = this.ParentForm; // frmSales.Show(); // splitContainerControl1.Panel2.Controls.Add(frmSales); // } //else //{ //Transactions.SalesVoucher frmSales = new Transactions.SalesVoucher(); //frmSales.StartPosition = FormStartPosition.WindowsDefaultLocation; //frmSales.MdiParent = this; //frmSales.Show(); //splitContainerControl1.Panel2.Controls.Add(frmSales); //} }
//XtraForm1 frmMainObj = null; public OpenCompany(XtraForm1 frmMain) { InitializeComponent(); // this.frmMainObj = frmMain; }
public TransactionsMenu(XtraForm1 frm) { InitializeComponent(); this.frm = frm; }
public MastersMenu(XtraForm1 frm) { InitializeComponent(); this.frm = frm; }
public CompanyMenu(XtraForm1 frm) { InitializeComponent(); this.frm = frm; }
public ReportMenu(XtraForm1 frm) { InitializeComponent(); this.frm = frm; }
public ConfigurationMenu(XtraForm1 frm) { InitializeComponent(); this.frm = frm; }
private void barButtonItem4_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { XtraForm1 frm = new XtraForm1(); frm.ShowDialog(); }