Ejemplo n.º 1
0
        public static RegistrationHandler GetInstance()
        {
            if (instance == null)
                instance = new RegistrationHandler();

            return instance;
        }
Ejemplo n.º 2
0
        public static RegistrationHandler GetInstance()
        {
            if (instance == null)
            {
                instance = new RegistrationHandler();
            }

            return(instance);
        }
Ejemplo n.º 3
0
        public Registration(Competitor competitor, Theme theme, string category, IFotoaparat camera, Photo photo)
        {
            RegistrationHandler registrationHandler = RegistrationHandler.GetInstance();

            id = "PRIJAVA " + registrationHandler.Counter.ToString();
            registrationHandler.Counter++;

            disqualified    = false;
            this.competitor = competitor;
            this.theme      = theme;
            this.category   = category;
            this.camera     = camera;
            this.photo      = photo;
        }