Exemple #1
0
 private void dgvRdsTransfer_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex >= 0 && e.RowIndex >= 0)
     {
         RdsTransfer pro = (TotalConfig_List[dgvTotal.SelectedRows[0].Index] as RdsTransfer);
         if (e.ColumnIndex == ColumnRdsAddressList.Index)
         {
             DailyBroadcastTerAddressInfo detail = new DailyBroadcastTerAddressInfo(pro.Program.list_Terminal_Address, (MdiParent as EBMMain).AdminAccount);
             DialogResult result = detail.ShowDialog();
             if (result == DialogResult.OK && (MdiParent as EBMMain).AdminAccount)
             {
                 pro.Program.list_Terminal_Address = detail.GetData() as List <string>;
             }
             detail.Dispose();
             dgvRdsTransfer.Invalidate();
         }
     }
 }
Exemple #2
0
 private void dgvChangeProgram_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex >= 0 && e.RowIndex >= 0)
     {
         ChangeProgram pro = (TotalConfig_List[dgvTotal.SelectedRows[0].Index] as ChangeProgram);
         if (e.ColumnIndex == Columnlist_Terminal_Address.Index)
         {
             DailyBroadcastTerAddressInfo detail = new DailyBroadcastTerAddressInfo(pro.Program.list_Terminal_Address, (MdiParent as EBMMain).AdminAccount);
             DialogResult result = detail.ShowDialog();
             if (result == DialogResult.OK && (MdiParent as EBMMain).AdminAccount)
             {
                 pro.Program.list_Terminal_Address = detail.GetData() as List <string>;
             }
             detail.Dispose();
         }
         if (e.ColumnIndex == ColumnShouldStop.Index)
         {
             ChanngeProgramState(e, pro);
         }
     }
 }