Exemplo n.º 1
0
 private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     foreach (DataGridViewRow row in dataGridView1.SelectedRows)
     {
         if (row != null)
         {
             DataRowView dataRowView = row.DataBoundItem as DataRowView;
             if (dataRowView != null)
             {
                 GestionMatosDataSet1.GetMaterialsRow dataRow = (GestionMatosDataSet1.GetMaterialsRow)dataRowView.Row;
                 if (dataRow != null)
                 {
                     m_selectedMaterial = dataRow;
                 }
             }
         }
     }
 }
Exemplo n.º 2
0
 public FormUpdateMateriel(FormHomepage form, GestionMatosDataSet1.GetMaterialsRow material)
 {
     try
     {
         if (material == null)
         {
             string warningCaption = "Warning: modification de matériel";
             string warningMsg     = "le matériel est invalide";
             MessageBox.Show(warningMsg, warningCaption, MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
         else
         {
             m_updatedMaterial = material;
         }
         s_formHomepage = form;
         InitializeComponent();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 3
0
 private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     foreach (DataGridViewRow row in dataGridView1.SelectedRows)
     {
         if (row != null)
         {
             DataRowView dataRowView = row.DataBoundItem as DataRowView;
             if (dataRowView != null)
             {
                 GestionMatosDataSet1.GetMaterialsRow dataRow = (GestionMatosDataSet1.GetMaterialsRow)dataRowView.Row;
                 if (dataRow != null)
                 {
                     m_selectedMaterial = dataRow;
                 }
             }
         }
     }
 }