Esempio n. 1
0
    static void Main()
    {
        ComboXP [] Arr = new ComboXP[4];
        Arr[0] = new ComboXP();
        Arr[1] = new ComboXP();
        Arr[2] = new ComboVista();
        Arr[3] = new ComboVista();

        foreach (ComboXP com in Arr)
        {
            if (com is IComboVista)
            {
                IComboVista Icv = (IComboVista)com;
                Icv.SortAdvanced();
            }
            else if (com is IComboXP)
            {
                IComboXP Ixp = (IComboXP)com;
                Ixp.Sort();
            }
        }
    }
Esempio n. 2
0
        static void Main()
        {
            ComboXP[] arr = new ComboXP[4];
            arr[0] = new ComboXP();
            arr[1] = new ComboXP();
            arr[2] = new ComboVista();
            arr[3] = new ComboVista();

            foreach (ComboXP com in arr)
            {
                if (com is IComboVista)
                {
                    IComboVista icv = (IComboVista)com;
                    icv.SortAdvanced();
                }
                else if (com is IComboXP)
                {
                    IComboXP ixp = (IComboXP)com;
                    ixp.Sort();
                }
            }
        }
Esempio n. 3
0
        static void Main()
        {
            ComboXP[] arr = new ComboXP[4];
            arr[0] = new ComboXP();
            arr[1] = new ComboXP();
            arr[2] = new ComboVista();
            arr[3] = new ComboVista();

            foreach (ComboXP com in arr)
            {
                IComboVista combo = com as IComboVista;
                if (combo == null)
                {
                    IComboXP comboxp = com as IComboXP;
                    comboxp.Sort();
                }
                else
                {
                    combo.SortAdvanced();
                }
            }
        }
Esempio n. 4
0
 public ComboControlador(IComboVista vista)
 {
     _vista = vista;
     SuscribirEventos();
 }