public void InitComplet() { //propriétés du datagridview engagement dgvEngagement.AutoGenerateColumns = false; dgvEngagement.RowHeadersVisible = false; dgvEngagement.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.None; dgvEngagement.AllowUserToResizeRows = false; dgvEngagement.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvEngagement.MultiSelect = false; dgvEngagement.AllowUserToAddRows = false; dgvEngagement.ReadOnly = true; dgvEngagement.AllowUserToDeleteRows = false; //propriétés du datagridview exigence dgvExigence.AutoGenerateColumns = false; dgvExigence.RowHeadersVisible = false; dgvExigence.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.None; dgvExigence.AllowUserToResizeRows = false; dgvExigence.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvExigence.MultiSelect = false; dgvExigence.AllowUserToAddRows = false; dgvExigence.ReadOnly = true; dgvExigence.AllowUserToDeleteRows = false; conContrat = new Controleur.Details.DetailContrat(); conSomAgence = new Controleur.Sommaires.SommaireAgence(); conArtiste = new Controleur.Details.DetailArtiste(); validation = new Controleur.Validation(); conSomExi = new Controleur.Sommaires.SommaireExigence(); conSomEng = new Controleur.Sommaires.SommaireEngagement(); conStatut = new Controleur.Details.DetailStatut(); }
public DetailArtiste(int _idArtiste) { InitializeComponent(); artiste = new Controleur.Details.DetailArtiste(); conDetailFichiers = new Controleur.Details.DetailFichiers(); conSomCatArtiste = new Controleur.Sommaires.SommaireCategorieArtiste(); lstCatArtiste.SelectionMode = SelectionMode.MultiSimple; cmbContrat.DataSource = artiste.ChargerContrat(); cmbContrat.DisplayMember = "noContrat"; lstCatArtiste.DataSource = conSomCatArtiste.Tout(); lstCatArtiste.DisplayMember = "nom"; txtNomArtiste.Text = artiste.SelectArtiste(_idArtiste).nom; lstFiches.DataSource = artiste.Fiches(_idArtiste); lstFichier.DataSource = artiste.Fichiers(_idArtiste); lstPhotoOfficiel.DataSource = artiste.PhotoOfficielles(_idArtiste); idartiste = _idArtiste; loadCatArtiste(); }
public DetailArtiste() { InitializeComponent(); conDetailFichiers = new Controleur.Details.DetailFichiers(); artiste = new Controleur.Details.DetailArtiste(); conSomCatArtiste = new Controleur.Sommaires.SommaireCategorieArtiste(); lstCatArtiste.SelectionMode = SelectionMode.MultiSimple; cmbContrat.DataSource = artiste.ChargerContrat(); cmbContrat.DisplayMember = "noContrat"; lstCatArtiste.DataSource = conSomCatArtiste.Tout(); lstCatArtiste.DisplayMember = "nom"; idartiste = null; selection = null; lstFiches.DataSource = new List <Modele.tblFichierPersonnel>(); lstFichier.DataSource = new List <Modele.tblFichierPersonnel>(); lstPhotoOfficiel.DataSource = new List <Modele.tblFichierOfficiel>(); }
public SommaireArtiste() { InitializeComponent(); conSommaireArtiste = new Controleur.Sommaires.SommaireArtiste(); conDetailArtiste = new Controleur.Details.DetailArtiste(); conCatArt = new Controleur.Sommaires.SommaireCategorieArtiste(); dgvArtiste.AutoGenerateColumns = false; dgvArtiste.RowHeadersVisible = false; dgvArtiste.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.None; dgvArtiste.AllowUserToResizeRows = false; dgvArtiste.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgvArtiste.MultiSelect = false; dgvArtiste.AllowUserToAddRows = false; dgvArtiste.ReadOnly = true; dgvArtiste.AllowUserToDeleteRows = false; dgvArtiste.DataSource = conSommaireArtiste.Tout().ToSortableBindingList(); txtRecherche.GotFocus += TxtRecherche_GotFocus; txtRecherche.LostFocus += TxtRecherche_LostFocus; }