Exemple #1
0
        private void SetAllIcons()
        {
            icons = new List <List <ToolStripButton> >();

            icons.Add(ToolstripIcons.GetInstance().GetClient().ToList());
            icons.Add(ToolstripIcons.GetInstance().GetDevices().ToList());
            icons.Add(ToolstripIcons.GetInstance().GetServices().ToList());
            icons.Add(ToolstripIcons.GetInstance().GetRegistry().ToList());
            icons.Add(ToolstripIcons.GetInstance().GetUslugi().ToList());
            icons.Add(ToolstripIcons.GetInstance().GetModel().ToList());

            icons[0][0].Click += AddClient;
            icons[0][1].Click += EditClient;
            icons[0][2].Click += ClientDetails;

            icons[1][0].Click += AddDeviceClick;
            icons[1][1].Click += EditDeviceClick;
            icons[1][2].Click += DeviceDetails;

            icons[2][0].Click += ShowServiceDetails;

            icons[3][0].Click += ShowDoneService;

            icons[4][0].Click += AddUslugaClick;
            icons[4][1].Click += EditUslugaClick;

            icons[5][0].Click += AddModelClick;
            icons[5][1].Click += EditModelClick;
        }
Exemple #2
0
        public static ToolstripIcons GetInstance()
        {
            if (ins == null)
            {
                ins = new ToolstripIcons();
            }

            return(ins);
        }