Exemplo n.º 1
0
        private void btnAjout_Click(object sender, EventArgs e)
        {
            var frmDetails = new frmDetPlateforme();

            frmDetails.txtID.Enabled = false;

            frmDetails.btnActiverModif.Enabled = false;

            frmDetails.ShowDialog();
            updateDonnees();
        }
Exemplo n.º 2
0
        private void btnAjout_Click(object sender, EventArgs e)
        {
            var frmDetails = new frmDetPlateforme();

            frmDetails.txtID.Enabled = false;

            frmDetails.btnActiverModif.Enabled = false;
            frmDetails.btnActiverModif.Visible = false;

            frmDetails.ShowDialog();
        }
Exemplo n.º 3
0
        private void afficherDetails()
        {
            string rowSelect = gridPlateforme.SelectedRows[0].Cells[0].Value.ToString();
            plateforme selectP = (plateforme)gridPlateforme.SelectedRows[0].Tag;
            var frmDetails = new frmDetPlateforme(selectP, lvlAcces);

            frmDetails.modifierChamp("m");
            frmDetails.ShowDialog();
            updateDonnees();
            selectLigne(rowSelect);
        }
Exemplo n.º 4
0
        private void afficherDetails()
        {
            //int index = gridPlateforme.SelectedRows.;
            plateforme selectP = (plateforme)gridPlateforme.SelectedRows[0].Tag;
            var frmDetails = new frmDetPlateforme(selectP);

            frmDetails.modifierChamp("m");

            frmDetails.ShowDialog();
            updateDonnees();
        }
Exemplo n.º 5
0
        private void btnDetails_Click(object sender, EventArgs e)
        {
            var frmDetails = new frmDetPlateforme();

            frmDetails.txtID.Enabled        = false;
            frmDetails.txtCode.Enabled      = false;
            frmDetails.txtCartemere.Enabled = false;
            frmDetails.txtCPU.Enabled       = false;
            frmDetails.txtNom.Enabled       = false;
            frmDetails.txtRam.Enabled       = false;
            frmDetails.txtStockage.Enabled  = false;
            frmDetails.rTxtDesc.Enabled     = false;
            frmDetails.rTxtInfoSup.Enabled  = false;

            frmDetails.cboxCateg.Enabled = false;

            frmDetails.btnAjoutOS.Enabled     = false;
            frmDetails.btnEnregistrer.Enabled = false;

            frmDetails.ShowDialog();
        }
Exemplo n.º 6
0
        private void btnDetails_Click(object sender, EventArgs e)
        {
            var frmDetails = new frmDetPlateforme();

            frmDetails.txtID.Enabled = false;
            frmDetails.txtCode.Enabled = false;
            frmDetails.txtCartemere.Enabled = false;
            frmDetails.txtCPU.Enabled = false;
            frmDetails.txtNom.Enabled = false;
            frmDetails.txtRam.Enabled = false;
            frmDetails.txtStockage.Enabled = false;
            frmDetails.rTxtDesc.Enabled = false;
            frmDetails.rTxtInfoSup.Enabled = false;

            frmDetails.cboxCateg.Enabled = false;

            //frmDetails.btnAjoutOS.Enabled = false;
            frmDetails.btnEnregistrer.Enabled = false;

            frmDetails.ShowDialog();
        }
Exemplo n.º 7
0
        private void btnCopier_Click(object sender, EventArgs e)
        {
            var copiePlate = new plateforme();
            var lstSysExp = new List<SystemeExploitation>();
            frmDetPlateforme frmDetails;

            copiePlate.codePlate = txtCode.Text.Trim();
            copiePlate.nomPlate = txtNom.Text.Trim();
            copiePlate.codeCateg = ((Categorie)cboxCateg.SelectedItem).codeCateg;
            copiePlate.cpuPlate = txtCPU.Text.Trim();
            copiePlate.carteMerePlate = txtCartemere.Text.Trim();
            copiePlate.ramPlate = txtRam.Text.Trim();
            copiePlate.stockage = txtStockage.Text.Trim();
            copiePlate.infoSupPlate = rTxtInfoSup.Text.Trim();
            copiePlate.descPlate = rTxtDesc.Text.Trim();

            foreach (var item in lstTreeSelect.Nodes)
            {
                lstSysExp.Add(((SystemeExploitation)((TreeNode)item).Tag));
            }

            copiePlate.lstSysExpPlate = lstSysExp;
            frmDetails = new frmDetPlateforme(copiePlate);

            frmDetails.modifierChamp("a");
            frmDetails.type = "copie";

            frmDetails.ShowDialog();
        }