コード例 #1
0
 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();
 }
コード例 #2
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();
        }