Ejemplo n.º 1
0
 private void logONLogOFFToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Dispose(true);
     //Form.ActiveForm.Hide();
     BILLING_SYSTEM.FRM_LOGIN f1 = new FRM_LOGIN();
     f1.Show();
 }
Ejemplo n.º 2
0
        private void ChildMenu_Click(object sender, EventArgs e) //For Event Handeler Of Menu
        {
            try{
                if (((ToolStripMenuItem)sender).Text.Trim().CompareTo("Exit") == 0)
                {
                    Application.Exit();
                }

                else if (((ToolStripMenuItem)sender).Text.Trim().CompareTo("Backup") == 0)
                {
                    bl_back.select(bl_back);
                    MessageBox.Show("Backup Generated Successfully");
                }
                //else if (((ToolStripMenuItem)sender).Text.Trim().CompareTo("Tax Report") == 0)
                //{
                //    module_Rpt function = new module_Rpt();
                //    BUSSINESS_LAYER.BL bl_obj = new BUSSINESS_LAYER.BL();
                //    DataSet ds = new DataSet();
                //    List<string> para_name = new List<string>();
                //    para_name.Add("@flag");
                //    List<string> para_value = new List<string>();
                //    para_value.Add("TX");
                //    ds = bl_obj.blFill_para_name(para_name, para_value, "SP_Report");
                //    function.Show_Report("RptTax", ds, 0);
                //}
                //else if (((ToolStripMenuItem)sender).Text.Trim().CompareTo("Collection Report") == 0)
                //{

                //    module_Rpt function = new module_Rpt();
                //    BUSSINESS_LAYER.BL bl_obj = new BUSSINESS_LAYER.BL();
                //    List<string> para_name = new List<string>();

                //    para_name.Add("@flag");
                //    List<string> para_value = new List<string>();

                //    para_value.Add("ACTD");

                //    DataSet ds = bl_obj.blFill_para_name(para_name, para_value, "SP_Report");

                //    function.Show_Report("rptDateWiseAllCustTotal", ds,0);

                //}
                else if (((ToolStripMenuItem)sender).Name.ToString().Trim().CompareTo("LogONOff") == 0)
                {
                    Dispose(true);
                    //Form.ActiveForm.Hide();
                    BILLING_SYSTEM.FRM_LOGIN f1 = new FRM_LOGIN();
                    f1.Show();
                }
                else
                {
                    if (((ToolStripMenuItem)sender).Name.ToString().Trim().Length > 2)
                    {
                        if (((ToolStripMenuItem)sender).Name.ToString().Substring(2, 6).Trim().CompareTo("Report") == 0)
                        {
                            MODULE.is_rpt = true;
                            open_form(this, false, ((ToolStripMenuItem)sender).Name.ToString().Substring(9));
                        }
                        else
                        {
                            MODULE.is_rpt = false;
                            open_form(this, false, ((ToolStripMenuItem)sender).Name.ToString().Substring(2));
                        }
                    }
                }
            }
            catch (Exception Ex)
            {
                Application.Exit();
            }
        }