Example #1
0
        private void TolMenuData_Click(object sender, EventArgs e)
        {
            if (sender is ToolStripDropDownItem && ((ToolStripDropDownItem)sender).Tag != null)
            {
                string TypeValue = ((ToolStripDropDownItem)sender).Tag.ToString();
                switch (TypeValue)
                {
                case "1":
                    ProductManagerFrm pdmanagerfrm = new ProductManagerFrm(false);
                    pdmanagerfrm.ShowDialog();
                    break;

                case "2":
                    UnitManagerFrm unitmanagerfrm = new UnitManagerFrm(false);
                    unitmanagerfrm.ShowDialog();
                    break;

                case "3":
                    ManufacturerFrm manufactfrm = new ManufacturerFrm(false);
                    manufactfrm.ShowDialog();
                    break;

                case "4":
                    SupperManagerFrm spmanagerfrm = new SupperManagerFrm(false);
                    spmanagerfrm.ShowDialog();
                    break;

                case "5":
                    DeviceTypeManagerFrm devicmanagerfrm = new DeviceTypeManagerFrm(false);
                    devicmanagerfrm.ShowDialog();
                    break;

                default:
                    break;
                }
            }
        }
Example #2
0
 private void TolMenuData_Click(object sender, EventArgs e)
 {
     if (sender is ToolStripDropDownItem && ((ToolStripDropDownItem)sender).Tag!=null)
     {
         string TypeValue = ((ToolStripDropDownItem)sender).Tag.ToString();
         switch (TypeValue)
         {
             case "1":
                 ProductManagerFrm pdmanagerfrm = new ProductManagerFrm(false);
                 pdmanagerfrm.ShowDialog();
                 break;
             case "2":
                 UnitManagerFrm unitmanagerfrm = new UnitManagerFrm(false);
                 unitmanagerfrm.ShowDialog();
                 break;
             case "3":
                 ManufacturerFrm manufactfrm = new ManufacturerFrm(false);
                 manufactfrm.ShowDialog();
                 break;
             case "4":
                 SupperManagerFrm spmanagerfrm = new SupperManagerFrm(false);
                 spmanagerfrm.ShowDialog();
                 break;
             case "5":
                 DeviceTypeManagerFrm devicmanagerfrm = new DeviceTypeManagerFrm(false);
                 devicmanagerfrm.ShowDialog();
                 break;
             default:
                 break;
         }
     }
 }