public CAngajat(VAngajat vAngajat)
 {
     indecsiGrid   = initializareIndecsi();
     this.vAngajat = vAngajat;
     model         = vAngajat.GetModelArtGallery();
     gestionareEvenimente();
 }
 public CVizitator(VVizitator vVizitator)
 {
     indecsiGrid     = initializareIndecsi();
     this.vVizitator = vVizitator;
     this.model      = vVizitator.GetModelArtGallery();
     this.GestionareEvenimente();
 }
Example #3
0
 public CAdministrator(VAdministrator vAdministrator)
 {
     indecsiGridPersoane = initializareIndecsiPersoane();
     this.vAdministrator = vAdministrator;
     model = vAdministrator.GetModelArtGallery();
     GestionareEvenimente();
 }
 public VSignup(ModelArtGallery model)
 {
     InitializeComponent();
     this.model = model;
     cSignup    = new CSignup(this);
     this.model.Attach(this);
     this.model.Attach(this.cSignup);
     updateLanguage();
 }
Example #5
0
 public VWelcome(ModelArtGallery model)
 {
     InitializeComponent();
     this.model = model;
     controller = new CWelcome(this);
     this.model.Attach(this);
     this.model.Attach(controller);
     updateLanguage();
 }
 public VVizitator(ModelArtGallery model)
 {
     InitializeComponent();
     this.dataGridView1.AllowUserToAddRows = false;
     for (int i = 0; i < dataGridView1.ColumnCount; i++)
     {
         this.dataGridView1.Columns[i].ReadOnly = true;
     }
     this.model = model;
     cVizitator = new CVizitator(this);
     model.Attach(this);
     model.Attach(cVizitator);
     updateLanguage();
 }
Example #7
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //model
            ModelArtGallery model = new ModelArtGallery();
            //view
            VWelcome vWelcome = new VWelcome(model);
            //controller
            CWelcome cWelcome = vWelcome.GetCWelcome();

            //pass the view of the controller
            Application.Run(cWelcome.GetVWelcome());
        }
Example #8
0
        public VAdministrator(ModelArtGallery model)
        {
            InitializeComponent();
            this.dataGridViewOpere.AllowUserToAddRows = false;
            this.dataGridViewUseri.AllowUserToAddRows = false;

            for (int i = 0; i < dataGridViewOpere.ColumnCount; i++)
            {
                this.dataGridViewOpere.Columns[i].ReadOnly = true;
            }

            for (int i = 0; i < dataGridViewUseri.ColumnCount; i++)
            {
                this.dataGridViewUseri.Columns[i].ReadOnly = true;
            }
            this.model     = model;
            cAdministrator = new CAdministrator(this);
            model.Attach(this);
            model.Attach(cAdministrator);
            updateLanguage();
        }
Example #9
0
 public CWelcome(VWelcome vWelcome)
 {
     this.vWelcome = vWelcome;
     this.model    = vWelcome.GetModel();
     this.gestionareEvenimente();
 }
Example #10
0
 public CSignup(VSignup vSignup)
 {
     this.vSignup = vSignup;
     this.model   = vSignup.GetModelArtGallery();
     this.gestionareEvenimente();
 }