查看完整版本: 有关.net打印预揽窗口的代码

tianhuo 2007-9-19 11:19

有关.net打印预揽窗口的代码

各位开发的高手们,我现在急需有关.net打印预揽窗口的代码?能帮忙提供一下吗?谢谢!:handshake

Nothing 2007-9-19 11:29

[color=#000000][color=#0000FF]using[/color] [color=#FF0000]System[/color][color=#0000CC];[/color]
[color=#0000FF]using[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Drawing[/color][color=#0000CC];[/color]
[color=#0000FF]using[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Collections[/color][color=#0000CC];[/color]
[color=#0000FF]using[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]ComponentModel[/color][color=#0000CC];[/color]
[color=#0000FF]using[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC];[/color]
[color=#0000FF]using[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC];[/color]
[color=#0000FF]using[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]OleDb[/color][color=#0000CC];[/color]

[color=#0000FF]namespace[/color] DataGridPrint
[color=#0000CC]{[/color]
[color=#FF9900]/// <summary>
[/color]
[color=#FF9900]/// Summary description for Form1.
[/color]
[color=#FF9900]/// </summary>
[/color]
[color=#0000FF]public[/color] [color=#0000FF]class[/color] Form1 [color=#0000CC]:[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]Form[/color]
[color=#0000CC]{[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]Panel[/color] panel1[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGrid[/color] dgTest[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]Button[/color] btnFillDataGrid[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]MainMenu[/color] mnuFile[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]MenuItem[/color] menuItem1[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]MenuItem[/color] miPrintPreview[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]MenuItem[/color] miPrint[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]MenuItem[/color] menuItem4[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]MenuItem[/color] miExit[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTableStyle[/color] dgtsCustomers[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color] dataGridTextBoxColumn1[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color] dataGridTextBoxColumn2[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color] dataGridTextBoxColumn3[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color] dataGridTextBoxColumn4[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color] dataGridTextBoxColumn6[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color] dataGridTextBoxColumn7[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color] dataGridTextBoxColumn8[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color] dataGridTextBoxColumn9[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color] dataGridTextBoxColumn10[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color] dataGridTextBoxColumn11[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color] dataGridTextBoxColumn5[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlDataAdapter[/color] sqlDataAdapter1[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlCommand[/color] sqlSelectCommand1[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlCommand[/color] sqlInsertCommand1[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlCommand[/color] sqlUpdateCommand1[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlCommand[/color] sqlDeleteCommand1[color=#0000CC];[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlConnection[/color] sqlConnection1[color=#0000CC];[/color]
  [color=#FF9900]/// <summary>
[/color]
  [color=#FF9900]/// Required designer variable.
[/color]
  [color=#FF9900]/// </summary>
[/color]
  [color=#0000FF]private[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]ComponentModel[/color][color=#0000CC].[/color][color=#FF0000]Container[/color] components [color=#0000CC]=[/color] [color=#0000FF]null[/color][color=#0000CC];[/color]

  [color=#0000FF]public[/color] Form1[color=#0000CC]([/color][color=#0000CC])[/color]
  [color=#0000CC]{[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// Required for Windows Form Designer support
[/color]
   [color=#FF9900]//
[/color]
   InitializeComponent[color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]

   [color=#FF9900]//
[/color]
   [color=#FF9900]// TODO: Add any constructor code after InitializeComponent call
[/color]
   [color=#FF9900]//
[/color]
  [color=#0000CC]}[/color]

  [color=#FF9900]/// <summary>
[/color]
  [color=#FF9900]/// Clean up any resources being used.
[/color]
  [color=#FF9900]/// </summary>
[/color]
  [color=#0000FF]protected[/color] [color=#0000FF]override[/color] [color=#0000FF]void[/color] Dispose[color=#0000CC]([/color] [color=#0000FF]bool[/color] disposing [color=#0000CC])[/color]
  [color=#0000CC]{[/color]
   [color=#0000FF]if[/color][color=#0000CC]([/color] disposing [color=#0000CC])[/color]
   [color=#0000CC]{[/color]
    [color=#0000FF]if[/color] [color=#0000CC]([/color]components [color=#0000CC]![/color][color=#0000CC]=[/color] [color=#0000FF]null[/color][color=#0000CC])[/color]
    [color=#0000CC]{[/color]
     components[color=#0000CC].[/color]Dispose[color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
    [color=#0000CC]}[/color]
   [color=#0000CC]}[/color]
   [color=#0000FF]base[/color][color=#0000CC].[/color]Dispose[color=#0000CC]([/color] disposing [color=#0000CC])[/color][color=#0000CC];[/color]
  [color=#0000CC]}[/color]

  [color=#0000CC]#[/color][color=#FF0000]region[/color] [color=#FF0000]Windows[/color] [color=#FF0000]Form[/color] Designer generated code
  [color=#FF9900]/// <summary>
[/color]
  [color=#FF9900]/// Required method for Designer support - do not modify
[/color]
  [color=#FF9900]/// the contents of this method with the code editor.
[/color]
  [color=#FF9900]/// </summary>
[/color]
  [color=#0000FF]private[/color] [color=#0000FF]void[/color] InitializeComponent[color=#0000CC]([/color][color=#0000CC])[/color]
  [color=#0000CC]{[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]panel1 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]Panel[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dgTest [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGrid[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dgtsCustomers [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTableStyle[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn1 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn2 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn3 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn4 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn5 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn6 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn7 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn8 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn9 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn10 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn11 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTextBoxColumn[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]btnFillDataGrid [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]Button[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]mnuFile [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]MainMenu[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]menuItem1 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]MenuItem[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]miPrintPreview [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]MenuItem[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]miPrint [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]MenuItem[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]menuItem4 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]MenuItem[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]miExit [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]MenuItem[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDataAdapter1 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlDataAdapter[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlSelectCommand1 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlCommand[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlInsertCommand1 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlCommand[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlCommand[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDeleteCommand1 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlCommand[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlConnection1 [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlConnection[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]panel1[color=#0000CC].[/color]SuspendLayout[color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]ComponentModel[/color][color=#0000CC].[/color][color=#FF0000]ISupportInitialize[/color][color=#0000CC])[/color][color=#0000CC]([/color][color=#0000FF]this[/color][color=#0000CC].[/color]dgTest[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC].[/color]BeginInit[color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]SuspendLayout[color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// panel1
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]panel1[color=#0000CC].[/color]Anchor [color=#0000CC]=[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]AnchorStyles[/color][color=#0000CC].[/color]Top [color=#0000CC]|[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]AnchorStyles[/color][color=#0000CC].[/color]Bottom[color=#0000CC])[/color]
    [color=#0000CC]|[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]AnchorStyles[/color][color=#0000CC].[/color]Left[color=#0000CC])[/color]
    [color=#0000CC]|[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]AnchorStyles[/color][color=#0000CC].[/color]Right[color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]panel1[color=#0000CC].[/color]Controls[color=#0000CC].[/color]AddRange[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]Control[/color][color=#0000CC][[/color][color=#0000CC]][/color] [color=#0000CC]{[/color]
                     [color=#0000FF]this[/color][color=#0000CC].[/color]dgTest[color=#0000CC]}[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]panel1[color=#0000CC].[/color]Location [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Drawing[/color][color=#0000CC].[/color][color=#FF0000]Point[/color][color=#0000CC]([/color]0[color=#0000CC],[/color] 9[color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]panel1[color=#0000CC].[/color]Name [color=#0000CC]=[/color] [color=#FF00FF]"panel1"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]panel1[color=#0000CC].[/color][color=#FF0000]Size[/color] [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Drawing[/color][color=#0000CC].[/color][color=#FF0000]Size[/color][color=#0000CC]([/color]788[color=#0000CC],[/color] 398[color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]panel1[color=#0000CC].[/color]TabIndex [color=#0000CC]=[/color] 1[color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// dgTest
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dgTest[color=#0000CC].[/color]DataMember [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dgTest[color=#0000CC].[/color]Dock [color=#0000CC]=[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DockStyle[/color][color=#0000CC].[/color]Fill[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dgTest[color=#0000CC].[/color]HeaderForeColor [color=#0000CC]=[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Drawing[/color][color=#0000CC].[/color][color=#FF0000]SystemColors[/color][color=#0000CC].[/color]ControlText[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dgTest[color=#0000CC].[/color]Name [color=#0000CC]=[/color] [color=#FF00FF]"dgTest"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dgTest[color=#0000CC].[/color][color=#FF0000]Size[/color] [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Drawing[/color][color=#0000CC].[/color][color=#FF0000]Size[/color][color=#0000CC]([/color]788[color=#0000CC],[/color] 398[color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dgTest[color=#0000CC].[/color]TabIndex [color=#0000CC]=[/color] 0[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dgTest[color=#0000CC].[/color]TableStyles[color=#0000CC].[/color]AddRange[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridTableStyle[/color][color=#0000CC][[/color][color=#0000CC]][/color] [color=#0000CC]{[/color]
                          [color=#0000FF]this[/color][color=#0000CC].[/color]dgtsCustomers[color=#0000CC]}[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// dgtsCustomers
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dgtsCustomers[color=#0000CC].[/color][color=#FF0000]DataGrid[/color] [color=#0000CC]=[/color] [color=#0000FF]this[/color][color=#0000CC].[/color]dgTest[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dgtsCustomers[color=#0000CC].[/color]GridColumnStyles[color=#0000CC].[/color]AddRange[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]DataGridColumnStyle[/color][color=#0000CC][[/color][color=#0000CC]][/color] [color=#0000CC]{[/color]
                           [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn1[color=#0000CC],[/color]
                           [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn2[color=#0000CC],[/color]
                           [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn3[color=#0000CC],[/color]
                           [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn4[color=#0000CC],[/color]
                           [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn5[color=#0000CC],[/color]
                           [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn6[color=#0000CC],[/color]
                           [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn7[color=#0000CC],[/color]
                           [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn8[color=#0000CC],[/color]
                           [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn9[color=#0000CC],[/color]
                           [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn10[color=#0000CC],[/color]
                           [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn11[color=#0000CC]}[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dgtsCustomers[color=#0000CC].[/color]HeaderForeColor [color=#0000CC]=[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Drawing[/color][color=#0000CC].[/color][color=#FF0000]SystemColors[/color][color=#0000CC].[/color]ControlText[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dgtsCustomers[color=#0000CC].[/color]MappingName [color=#0000CC]=[/color] [color=#FF00FF]"Customers"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dgtsCustomers[color=#0000CC].[/color][color=#0000FF]ReadOnly[/color] [color=#0000CC]=[/color] [color=#0000FF]true[/color][color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// dataGridTextBoxColumn1
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn1[color=#0000CC].[/color]Format [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn1[color=#0000CC].[/color]FormatInfo [color=#0000CC]=[/color] [color=#0000FF]null[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn1[color=#0000CC].[/color]HeaderText [color=#0000CC]=[/color] [color=#FF00FF]"Customer Id"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn1[color=#0000CC].[/color]MappingName [color=#0000CC]=[/color] [color=#FF00FF]"CustomerId"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn1[color=#0000CC].[/color]NullText [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn1[color=#0000CC].[/color]Width [color=#0000CC]=[/color] 75[color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// dataGridTextBoxColumn2
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn2[color=#0000CC].[/color]Format [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn2[color=#0000CC].[/color]FormatInfo [color=#0000CC]=[/color] [color=#0000FF]null[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn2[color=#0000CC].[/color]HeaderText [color=#0000CC]=[/color] [color=#FF00FF]"Company Name"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn2[color=#0000CC].[/color]MappingName [color=#0000CC]=[/color] [color=#FF00FF]"CompanyName"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn2[color=#0000CC].[/color]NullText [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn2[color=#0000CC].[/color]Width [color=#0000CC]=[/color] 200[color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// dataGridTextBoxColumn3
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn3[color=#0000CC].[/color]Format [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn3[color=#0000CC].[/color]FormatInfo [color=#0000CC]=[/color] [color=#0000FF]null[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn3[color=#0000CC].[/color]HeaderText [color=#0000CC]=[/color] [color=#FF00FF]"Contact Name"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn3[color=#0000CC].[/color]MappingName [color=#0000CC]=[/color] [color=#FF00FF]"ContactName"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn3[color=#0000CC].[/color]NullText [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn3[color=#0000CC].[/color]Width [color=#0000CC]=[/color] 125[color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// dataGridTextBoxColumn4
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn4[color=#0000CC].[/color]Format [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn4[color=#0000CC].[/color]FormatInfo [color=#0000CC]=[/color] [color=#0000FF]null[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn4[color=#0000CC].[/color]HeaderText [color=#0000CC]=[/color] [color=#FF00FF]"Contact Title"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn4[color=#0000CC].[/color]MappingName [color=#0000CC]=[/color] [color=#FF00FF]"ContactTitle"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn4[color=#0000CC].[/color]NullText [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn4[color=#0000CC].[/color]Width [color=#0000CC]=[/color] 170[color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// dataGridTextBoxColumn5
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn5[color=#0000CC].[/color]Format [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn5[color=#0000CC].[/color]FormatInfo [color=#0000CC]=[/color] [color=#0000FF]null[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn5[color=#0000CC].[/color]HeaderText [color=#0000CC]=[/color] [color=#FF00FF]"Address"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn5[color=#0000CC].[/color]MappingName [color=#0000CC]=[/color] [color=#FF00FF]"Address"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn5[color=#0000CC].[/color]NullText [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn5[color=#0000CC].[/color]Width [color=#0000CC]=[/color] 250[color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// dataGridTextBoxColumn6
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn6[color=#0000CC].[/color]Format [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn6[color=#0000CC].[/color]FormatInfo [color=#0000CC]=[/color] [color=#0000FF]null[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn6[color=#0000CC].[/color]HeaderText [color=#0000CC]=[/color] [color=#FF00FF]"City"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn6[color=#0000CC].[/color]MappingName [color=#0000CC]=[/color] [color=#FF00FF]"City"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn6[color=#0000CC].[/color]NullText [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn6[color=#0000CC].[/color]Width [color=#0000CC]=[/color] 150[color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// dataGridTextBoxColumn7
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn7[color=#0000CC].[/color]Format [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn7[color=#0000CC].[/color]FormatInfo [color=#0000CC]=[/color] [color=#0000FF]null[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn7[color=#0000CC].[/color]HeaderText [color=#0000CC]=[/color] [color=#FF00FF]"Region"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn7[color=#0000CC].[/color]MappingName [color=#0000CC]=[/color] [color=#FF00FF]"Region"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn7[color=#0000CC].[/color]NullText [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn7[color=#0000CC].[/color]Width [color=#0000CC]=[/color] 150[color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// dataGridTextBoxColumn8
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn8[color=#0000CC].[/color]Format [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn8[color=#0000CC].[/color]FormatInfo [color=#0000CC]=[/color] [color=#0000FF]null[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn8[color=#0000CC].[/color]HeaderText [color=#0000CC]=[/color] [color=#FF00FF]"Postal Code"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn8[color=#0000CC].[/color]MappingName [color=#0000CC]=[/color] [color=#FF00FF]"PostalCode"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn8[color=#0000CC].[/color]NullText [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn8[color=#0000CC].[/color]Width [color=#0000CC]=[/color] 150[color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// dataGridTextBoxColumn9
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn9[color=#0000CC].[/color]Format [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn9[color=#0000CC].[/color]FormatInfo [color=#0000CC]=[/color] [color=#0000FF]null[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn9[color=#0000CC].[/color]HeaderText [color=#0000CC]=[/color] [color=#FF00FF]"Country"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn9[color=#0000CC].[/color]MappingName [color=#0000CC]=[/color] [color=#FF00FF]"Country"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn9[color=#0000CC].[/color]NullText [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn9[color=#0000CC].[/color]Width [color=#0000CC]=[/color] 125[color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// dataGridTextBoxColumn10
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn10[color=#0000CC].[/color]Format [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn10[color=#0000CC].[/color]FormatInfo [color=#0000CC]=[/color] [color=#0000FF]null[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn10[color=#0000CC].[/color]HeaderText [color=#0000CC]=[/color] [color=#FF00FF]"Phone"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn10[color=#0000CC].[/color]MappingName [color=#0000CC]=[/color] [color=#FF00FF]"Phone"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn10[color=#0000CC].[/color]NullText [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn10[color=#0000CC].[/color]Width [color=#0000CC]=[/color] 125[color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// dataGridTextBoxColumn11
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn11[color=#0000CC].[/color]Format [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn11[color=#0000CC].[/color]FormatInfo [color=#0000CC]=[/color] [color=#0000FF]null[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn11[color=#0000CC].[/color]HeaderText [color=#0000CC]=[/color] [color=#FF00FF]"Fax"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn11[color=#0000CC].[/color]MappingName [color=#0000CC]=[/color] [color=#FF00FF]"Fax"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn11[color=#0000CC].[/color]NullText [color=#0000CC]=[/color] [color=#FF00FF]""[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]dataGridTextBoxColumn11[color=#0000CC].[/color]Width [color=#0000CC]=[/color] 125[color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// btnFillDataGrid
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]btnFillDataGrid[color=#0000CC].[/color]Anchor [color=#0000CC]=[/color] [color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]AnchorStyles[/color][color=#0000CC].[/color]Bottom [color=#0000CC]|[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]AnchorStyles[/color][color=#0000CC].[/color]Right[color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]btnFillDataGrid[color=#0000CC].[/color]Location [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Drawing[/color][color=#0000CC].[/color][color=#FF0000]Point[/color][color=#0000CC]([/color]645[color=#0000CC],[/color] 426[color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]btnFillDataGrid[color=#0000CC].[/color]Name [color=#0000CC]=[/color] [color=#FF00FF]"btnFillDataGrid"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]btnFillDataGrid[color=#0000CC].[/color][color=#FF0000]Size[/color] [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Drawing[/color][color=#0000CC].[/color][color=#FF0000]Size[/color][color=#0000CC]([/color]133[color=#0000CC],[/color] 28[color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]btnFillDataGrid[color=#0000CC].[/color]TabIndex [color=#0000CC]=[/color] 2[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]btnFillDataGrid[color=#0000CC].[/color][color=#FF0000]Text[/color] [color=#0000CC]=[/color] [color=#FF00FF]"&Fill DataGrid"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]btnFillDataGrid[color=#0000CC].[/color]Click [color=#0000CC]+[/color][color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]EventHandler[/color][color=#0000CC]([/color][color=#0000FF]this[/color][color=#0000CC].[/color]btnFillDataGrid_Click[color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// mnuFile
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]mnuFile[color=#0000CC].[/color]MenuItems[color=#0000CC].[/color]AddRange[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]MenuItem[/color][color=#0000CC][[/color][color=#0000CC]][/color] [color=#0000CC]{[/color]
                     [color=#0000FF]this[/color][color=#0000CC].[/color]menuItem1[color=#0000CC]}[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// menuItem1
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]menuItem1[color=#0000CC].[/color]Index [color=#0000CC]=[/color] 0[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]menuItem1[color=#0000CC].[/color]MenuItems[color=#0000CC].[/color]AddRange[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]MenuItem[/color][color=#0000CC][[/color][color=#0000CC]][/color] [color=#0000CC]{[/color]
                       [color=#0000FF]this[/color][color=#0000CC].[/color]miPrintPreview[color=#0000CC],[/color]
                       [color=#0000FF]this[/color][color=#0000CC].[/color]miPrint[color=#0000CC],[/color]
                       [color=#0000FF]this[/color][color=#0000CC].[/color]menuItem4[color=#0000CC],[/color]
                       [color=#0000FF]this[/color][color=#0000CC].[/color]miExit[color=#0000CC]}[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]menuItem1[color=#0000CC].[/color][color=#FF0000]Text[/color] [color=#0000CC]=[/color] [color=#FF00FF]"&File"[/color][color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// miPrintPreview
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]miPrintPreview[color=#0000CC].[/color]Index [color=#0000CC]=[/color] 0[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]miPrintPreview[color=#0000CC].[/color][color=#FF0000]Text[/color] [color=#0000CC]=[/color] [color=#FF00FF]"Print Pre&view"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]miPrintPreview[color=#0000CC].[/color]Click [color=#0000CC]+[/color][color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]EventHandler[/color][color=#0000CC]([/color][color=#0000FF]this[/color][color=#0000CC].[/color]miPrintPreview_Click[color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// miPrint
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]miPrint[color=#0000CC].[/color]Index [color=#0000CC]=[/color] 1[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]miPrint[color=#0000CC].[/color][color=#FF0000]Text[/color] [color=#0000CC]=[/color] [color=#FF00FF]"&Print"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]miPrint[color=#0000CC].[/color]Click [color=#0000CC]+[/color][color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]EventHandler[/color][color=#0000CC]([/color][color=#0000FF]this[/color][color=#0000CC].[/color]miPrint_Click[color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// menuItem4
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]menuItem4[color=#0000CC].[/color]Index [color=#0000CC]=[/color] 2[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]menuItem4[color=#0000CC].[/color][color=#FF0000]Text[/color] [color=#0000CC]=[/color] [color=#FF00FF]"-"[/color][color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// miExit
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]miExit[color=#0000CC].[/color]Index [color=#0000CC]=[/color] 3[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]miExit[color=#0000CC].[/color][color=#FF0000]Text[/color] [color=#0000CC]=[/color] [color=#FF00FF]"E&xit"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]miExit[color=#0000CC].[/color]Click [color=#0000CC]+[/color][color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]EventHandler[/color][color=#0000CC]([/color][color=#0000FF]this[/color][color=#0000CC].[/color]miExit_Click[color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// sqlDataAdapter1
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDataAdapter1[color=#0000CC].[/color]DeleteCommand [color=#0000CC]=[/color] [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDeleteCommand1[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDataAdapter1[color=#0000CC].[/color]InsertCommand [color=#0000CC]=[/color] [color=#0000FF]this[/color][color=#0000CC].[/color]sqlInsertCommand1[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDataAdapter1[color=#0000CC].[/color]SelectCommand [color=#0000CC]=[/color] [color=#0000FF]this[/color][color=#0000CC].[/color]sqlSelectCommand1[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDataAdapter1[color=#0000CC].[/color]TableMappings[color=#0000CC].[/color]AddRange[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]Common[/color][color=#0000CC].[/color][color=#FF0000]DataTableMapping[/color][color=#0000CC][[/color][color=#0000CC]][/color] [color=#0000CC]{[/color]
                           [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]Common[/color][color=#0000CC].[/color][color=#FF0000]DataTableMapping[/color][color=#0000CC]([/color][color=#FF00FF]"Table"[/color][color=#0000CC],[/color] [color=#FF00FF]"Customers"[/color][color=#0000CC],[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]Common[/color][color=#0000CC].[/color][color=#FF0000]DataColumnMapping[/color][color=#0000CC][[/color][color=#0000CC]][/color] [color=#0000CC]{[/color]
                                                       [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]Common[/color][color=#0000CC].[/color][color=#FF0000]DataColumnMapping[/color][color=#0000CC]([/color][color=#FF00FF]"CustomerID"[/color][color=#0000CC],[/color] [color=#FF00FF]"CustomerID"[/color][color=#0000CC])[/color][color=#0000CC],[/color]
                                                       [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]Common[/color][color=#0000CC].[/color][color=#FF0000]DataColumnMapping[/color][color=#0000CC]([/color][color=#FF00FF]"CompanyName"[/color][color=#0000CC],[/color] [color=#FF00FF]"CompanyName"[/color][color=#0000CC])[/color][color=#0000CC],[/color]
                                                       [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]Common[/color][color=#0000CC].[/color][color=#FF0000]DataColumnMapping[/color][color=#0000CC]([/color][color=#FF00FF]"ContactName"[/color][color=#0000CC],[/color] [color=#FF00FF]"ContactName"[/color][color=#0000CC])[/color][color=#0000CC],[/color]
                                                       [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]Common[/color][color=#0000CC].[/color][color=#FF0000]DataColumnMapping[/color][color=#0000CC]([/color][color=#FF00FF]"ContactTitle"[/color][color=#0000CC],[/color] [color=#FF00FF]"ContactTitle"[/color][color=#0000CC])[/color][color=#0000CC],[/color]
                                                       [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]Common[/color][color=#0000CC].[/color][color=#FF0000]DataColumnMapping[/color][color=#0000CC]([/color][color=#FF00FF]"Address"[/color][color=#0000CC],[/color] [color=#FF00FF]"Address"[/color][color=#0000CC])[/color][color=#0000CC],[/color]
                                                       [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]Common[/color][color=#0000CC].[/color][color=#FF0000]DataColumnMapping[/color][color=#0000CC]([/color][color=#FF00FF]"City"[/color][color=#0000CC],[/color] [color=#FF00FF]"City"[/color][color=#0000CC])[/color][color=#0000CC],[/color]
                                                       [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]Common[/color][color=#0000CC].[/color][color=#FF0000]DataColumnMapping[/color][color=#0000CC]([/color][color=#FF00FF]"Region"[/color][color=#0000CC],[/color] [color=#FF00FF]"Region"[/color][color=#0000CC])[/color][color=#0000CC],[/color]
                                                       [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]Common[/color][color=#0000CC].[/color][color=#FF0000]DataColumnMapping[/color][color=#0000CC]([/color][color=#FF00FF]"PostalCode"[/color][color=#0000CC],[/color] [color=#FF00FF]"PostalCode"[/color][color=#0000CC])[/color][color=#0000CC],[/color]
                                                       [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]Common[/color][color=#0000CC].[/color][color=#FF0000]DataColumnMapping[/color][color=#0000CC]([/color][color=#FF00FF]"Country"[/color][color=#0000CC],[/color] [color=#FF00FF]"Country"[/color][color=#0000CC])[/color][color=#0000CC],[/color]
                                                       [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]Common[/color][color=#0000CC].[/color][color=#FF0000]DataColumnMapping[/color][color=#0000CC]([/color][color=#FF00FF]"Phone"[/color][color=#0000CC],[/color] [color=#FF00FF]"Phone"[/color][color=#0000CC])[/color][color=#0000CC],[/color]
                                                       [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]Common[/color][color=#0000CC].[/color][color=#FF0000]DataColumnMapping[/color][color=#0000CC]([/color][color=#FF00FF]"Fax"[/color][color=#0000CC],[/color] [color=#FF00FF]"Fax"[/color][color=#0000CC])[/color][color=#0000CC]}[/color][color=#0000CC])[/color][color=#0000CC]}[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDataAdapter1[color=#0000CC].[/color]UpdateCommand [color=#0000CC]=[/color] [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// sqlSelectCommand1
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlSelectCommand1[color=#0000CC].[/color]CommandText [color=#0000CC]=[/color] [color=#FF00FF]"SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region,"[/color] [color=#0000CC]+[/color]
    [color=#FF00FF]" PostalCode, Country, Phone, Fax FROM Customers"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlSelectCommand1[color=#0000CC].[/color]Connection [color=#0000CC]=[/color] [color=#0000FF]this[/color][color=#0000CC].[/color]sqlConnection1[color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// sqlInsertCommand1
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlInsertCommand1[color=#0000CC].[/color]CommandText [color=#0000CC]=[/color] @[color=#FF00FF]"INSERT INTO Customers(CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax) VALUES (@CustomerID, @CompanyName, @ContactName, @ContactTitle, @Address, @City, @Region, @PostalCode, @Country, @Phone, @Fax); SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax FROM Customers WHERE (CustomerID = @CustomerID)"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlInsertCommand1[color=#0000CC].[/color]Connection [color=#0000CC]=[/color] [color=#0000FF]this[/color][color=#0000CC].[/color]sqlConnection1[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlInsertCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@CustomerID"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 5[color=#0000CC],[/color] [color=#FF00FF]"CustomerID"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlInsertCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@CompanyName"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 40[color=#0000CC],[/color] [color=#FF00FF]"CompanyName"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlInsertCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@ContactName"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 30[color=#0000CC],[/color] [color=#FF00FF]"ContactName"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlInsertCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@ContactTitle"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 30[color=#0000CC],[/color] [color=#FF00FF]"ContactTitle"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlInsertCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Address"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 60[color=#0000CC],[/color] [color=#FF00FF]"Address"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlInsertCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@City"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 15[color=#0000CC],[/color] [color=#FF00FF]"City"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlInsertCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Region"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 15[color=#0000CC],[/color] [color=#FF00FF]"Region"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlInsertCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@PostalCode"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 10[color=#0000CC],[/color] [color=#FF00FF]"PostalCode"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlInsertCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Country"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 15[color=#0000CC],[/color] [color=#FF00FF]"Country"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlInsertCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Phone"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 24[color=#0000CC],[/color] [color=#FF00FF]"Phone"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlInsertCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Fax"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 24[color=#0000CC],[/color] [color=#FF00FF]"Fax"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// sqlUpdateCommand1
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]CommandText [color=#0000CC]=[/color] @[color=#FF00FF]"UPDATE Customers SET CustomerID = @CustomerID, CompanyName = @CompanyName, ContactName = @ContactName, ContactTitle = @ContactTitle, Address = @Address, City = @City, Region = @Region, PostalCode = @PostalCode, Country = @Country, Phone = @Phone, Fax = @Fax WHERE (CustomerID = @Original_CustomerID) AND (Address = @Original_Address OR @Original_Address IS NULL AND Address IS NULL) AND (City = @Original_City OR @Original_City IS NULL AND City IS NULL) AND (CompanyName = @Original_CompanyName) AND (ContactName = @Original_ContactName OR @Original_ContactName IS NULL AND ContactName IS NULL) AND (ContactTitle = @Original_ContactTitle OR @Original_ContactTitle IS NULL AND ContactTitle IS NULL) AND (Country = @Original_Country OR @Original_Country IS NULL AND Country IS NULL) AND (Fax = @Original_Fax OR @Original_Fax IS NULL AND Fax IS NULL) AND (Phone = @Original_Phone OR @Original_Phone IS NULL AND Phone IS NULL) AND (PostalCode = @Original_PostalCode OR @Original_PostalCode IS NULL AND PostalCode IS NULL) AND (Region = @Original_Region OR @Original_Region IS NULL AND Region IS NULL); SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax FROM Customers WHERE (CustomerID = @CustomerID)"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Connection [color=#0000CC]=[/color] [color=#0000FF]this[/color][color=#0000CC].[/color]sqlConnection1[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@CustomerID"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 5[color=#0000CC],[/color] [color=#FF00FF]"CustomerID"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@CompanyName"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 40[color=#0000CC],[/color] [color=#FF00FF]"CompanyName"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@ContactName"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 30[color=#0000CC],[/color] [color=#FF00FF]"ContactName"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@ContactTitle"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 30[color=#0000CC],[/color] [color=#FF00FF]"ContactTitle"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Address"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 60[color=#0000CC],[/color] [color=#FF00FF]"Address"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@City"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 15[color=#0000CC],[/color] [color=#FF00FF]"City"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Region"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 15[color=#0000CC],[/color] [color=#FF00FF]"Region"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@PostalCode"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 10[color=#0000CC],[/color] [color=#FF00FF]"PostalCode"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Country"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 15[color=#0000CC],[/color] [color=#FF00FF]"Country"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Phone"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 24[color=#0000CC],[/color] [color=#FF00FF]"Phone"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Fax"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 24[color=#0000CC],[/color] [color=#FF00FF]"Fax"[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_CustomerID"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 5[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"CustomerID"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_Address"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 60[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"Address"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_City"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 15[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"City"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_CompanyName"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 40[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"CompanyName"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_ContactName"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 30[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"ContactName"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_ContactTitle"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 30[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"ContactTitle"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_Country"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 15[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"Country"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_Fax"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 24[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"Fax"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_Phone"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 24[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"Phone"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_PostalCode"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 10[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"PostalCode"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlUpdateCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_Region"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 15[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"Region"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// sqlDeleteCommand1
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDeleteCommand1[color=#0000CC].[/color]CommandText [color=#0000CC]=[/color] @[color=#FF00FF]"DELETE FROM Customers WHERE (CustomerID = @Original_CustomerID) AND (Address = @Original_Address OR @Original_Address IS NULL AND Address IS NULL) AND (City = @Original_City OR @Original_City IS NULL AND City IS NULL) AND (CompanyName = @Original_CompanyName) AND (ContactName = @Original_ContactName OR @Original_ContactName IS NULL AND ContactName IS NULL) AND (ContactTitle = @Original_ContactTitle OR @Original_ContactTitle IS NULL AND ContactTitle IS NULL) AND (Country = @Original_Country OR @Original_Country IS NULL AND Country IS NULL) AND (Fax = @Original_Fax OR @Original_Fax IS NULL AND Fax IS NULL) AND (Phone = @Original_Phone OR @Original_Phone IS NULL AND Phone IS NULL) AND (PostalCode = @Original_PostalCode OR @Original_PostalCode IS NULL AND PostalCode IS NULL) AND (Region = @Original_Region OR @Original_Region IS NULL AND Region IS NULL)"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDeleteCommand1[color=#0000CC].[/color]Connection [color=#0000CC]=[/color] [color=#0000FF]this[/color][color=#0000CC].[/color]sqlConnection1[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDeleteCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_CustomerID"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 5[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"CustomerID"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDeleteCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_Address"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 60[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"Address"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDeleteCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_City"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 15[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"City"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDeleteCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_CompanyName"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 40[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"CompanyName"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDeleteCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_ContactName"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 30[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"ContactName"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDeleteCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_ContactTitle"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 30[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"ContactTitle"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDeleteCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_Country"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 15[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"Country"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDeleteCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_Fax"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 24[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"Fax"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDeleteCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_Phone"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 24[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"Phone"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDeleteCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_PostalCode"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 10[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"PostalCode"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlDeleteCommand1[color=#0000CC].[/color]Parameters[color=#0000CC].[/color]Add[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlClient[/color][color=#0000CC].[/color][color=#FF0000]SqlParameter[/color][color=#0000CC]([/color][color=#FF00FF]"@Original_Region"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]SqlDbType[/color][color=#0000CC].[/color]NVarChar[color=#0000CC],[/color] 15[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]ParameterDirection[/color][color=#0000CC].[/color]Input[color=#0000CC],[/color] [color=#0000FF]false[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#0000FF]Byte[/color][color=#0000CC])[/color][color=#0000CC]([/color]0[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC],[/color] [color=#FF00FF]"Region"[/color][color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Data[/color][color=#0000CC].[/color][color=#FF0000]DataRowVersion[/color][color=#0000CC].[/color]Original[color=#0000CC],[/color] [color=#0000FF]null[/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// sqlConnection1
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]sqlConnection1[color=#0000CC].[/color]ConnectionString [color=#0000CC]=[/color] [color=#FF00FF]"data source=QIEYJ;initial catalog=Northwind;persist security info=False;user id=s"[/color] [color=#0000CC]+[/color]
    [color=#FF00FF]"a;workstation id=QIEYJ;packet size=4096"[/color][color=#0000CC];[/color]
   [color=#FF9900]//
[/color]
   [color=#FF9900]// Form1
[/color]
   [color=#FF9900]//
[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]AutoScaleBaseSize [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Drawing[/color][color=#0000CC].[/color][color=#FF0000]Size[/color][color=#0000CC]([/color]6[color=#0000CC],[/color] 14[color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]ClientSize [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Drawing[/color][color=#0000CC].[/color][color=#FF0000]Size[/color][color=#0000CC]([/color]788[color=#0000CC],[/color] 463[color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]Controls[color=#0000CC].[/color]AddRange[color=#0000CC]([/color][color=#0000FF]new[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Windows[/color][color=#0000CC].[/color][color=#FF0000]Forms[/color][color=#0000CC].[/color][color=#FF0000]Control[/color][color=#0000CC][[/color][color=#0000CC]][/color] [color=#0000CC]{[/color]
                    [color=#0000FF]this[/color][color=#0000CC].[/color]btnFillDataGrid[color=#0000CC],[/color]
                    [color=#0000FF]this[/color][color=#0000CC].[/color]panel1[color=#0000CC]}[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color][color=#FF0000]Menu[/color] [color=#0000CC]=[/color] [color=#0000FF]this[/color][color=#0000CC].[/color]mnuFile[color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]Name [color=#0000CC]=[/color] [color=#FF00FF]"Form1"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color][color=#FF0000]Text[/color] [color=#0000CC]=[/color] [color=#FF00FF]"DataGrid Print Sample"[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]panel1[color=#0000CC].[/color]ResumeLayout[color=#0000CC]([/color][color=#0000FF]false[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000CC]([/color][color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]ComponentModel[/color][color=#0000CC].[/color][color=#FF0000]ISupportInitialize[/color][color=#0000CC])[/color][color=#0000CC]([/color][color=#0000FF]this[/color][color=#0000CC].[/color]dgTest[color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC].[/color]EndInit[color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]this[/color][color=#0000CC].[/color]ResumeLayout[color=#0000CC]([/color][color=#0000FF]false[/color][color=#0000CC])[/color][color=#0000CC];[/color]

  [color=#0000CC]}[/color]
  [color=#0000CC]#[/color][color=#FF0000]endregion[/color]

  [color=#FF9900]/// <summary>
[/color]
  [color=#FF9900]/// The main entry point for the application.
[/color]
  [color=#FF9900]/// </summary>
[/color]
  [color=#0000CC][[/color]STAThread[color=#0000CC]][/color]
  [color=#0000FF]static[/color] [color=#0000FF]void[/color] Main[color=#0000CC]([/color][color=#0000CC])[/color]
  [color=#0000CC]{[/color]
   [color=#FF0000]Application[/color][color=#0000CC].[/color]Run[color=#0000CC]([/color][color=#0000FF]new[/color] Form1[color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC])[/color][color=#0000CC];[/color]
  [color=#0000CC]}[/color]

  [color=#0000FF]private[/color] [color=#0000FF]void[/color] btnFillDataGrid_Click[color=#0000CC]([/color][color=#0000FF]object[/color] sender[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]EventArgs[/color] e[color=#0000CC])[/color]
  [color=#0000CC]{[/color]
   [color=#FF0000]DataTable[/color] dt [color=#0000CC]=[/color] [color=#0000FF]new[/color] [color=#FF0000]DataTable[/color][color=#0000CC]([/color][color=#FF00FF]"Customers"[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]try[/color]
   [color=#0000CC]{[/color]   
    sqlDataAdapter1[color=#0000CC].[/color]Fill[color=#0000CC]([/color]dt[color=#0000CC])[/color][color=#0000CC];[/color]
    dgTest[color=#0000CC].[/color]DataSource [color=#0000CC]=[/color] dt[color=#0000CC];[/color]
   [color=#0000CC]}[/color]
   [color=#0000FF]catch[/color] [color=#0000CC]([/color][color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]Exception[/color] ex[color=#0000CC])[/color]
   [color=#0000CC]{[/color]
    [color=#FF0000]MessageBox[/color][color=#0000CC].[/color]Show[color=#0000CC]([/color][color=#0000FF]this[/color][color=#0000CC],[/color]ex[color=#0000CC].[/color][color=#FF0000]Message[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000CC]}[/color]     
  [color=#0000CC]}[/color]

  [color=#0000FF]private[/color] [color=#0000FF]void[/color] miPrintPreview_Click[color=#0000CC]([/color][color=#0000FF]object[/color] sender[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]EventArgs[/color] e[color=#0000CC])[/color]
  [color=#0000CC]{[/color]
   DataGridPrintDocument dpd [color=#0000CC]=[/color] [color=#0000FF]new[/color] DataGridPrintDocument[color=#0000CC]([/color]dgTest[color=#0000CC])[/color][color=#0000CC];[/color]
   dpd[color=#0000CC].[/color]ColumnHeaderFont[color=#0000CC]=[/color][color=#0000FF]new[/color] [color=#FF0000]Font[/color][color=#0000CC]([/color][color=#FF00FF]"Arial"[/color][color=#0000CC],[/color]8[color=#0000CC],[/color][color=#FF0000]FontStyle[/color][color=#0000CC].[/color]Bold[color=#0000CC])[/color][color=#0000CC];[/color]
   dpd[color=#0000CC].[/color]DefaultPageSettings[color=#0000CC].[/color]Landscape [color=#0000CC]=[/color] [color=#0000FF]true[/color][color=#0000CC];[/color]  
   
   [color=#FF0000]PrintPreviewDialog[/color] PrintPrevDlg[color=#0000CC]=[/color][color=#0000FF]new[/color] [color=#FF0000]PrintPreviewDialog[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]   
   PrintPrevDlg[color=#0000CC].[/color]Document [color=#0000CC]=[/color] dpd[color=#0000CC];[/color]  
   PrintPrevDlg[color=#0000CC].[/color]ShowDialog[color=#0000CC]([/color][color=#0000FF]this[/color][color=#0000CC])[/color][color=#0000CC];[/color]
  [color=#0000CC]}[/color]

  [color=#0000FF]private[/color] [color=#0000FF]void[/color] miPrint_Click[color=#0000CC]([/color][color=#0000FF]object[/color] sender[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]EventArgs[/color] e[color=#0000CC])[/color]
  [color=#0000CC]{[/color]
   
   DataGridPrintDocument dpd [color=#0000CC]=[/color] [color=#0000FF]new[/color] DataGridPrintDocument[color=#0000CC]([/color]dgTest[color=#0000CC])[/color][color=#0000CC];[/color]
   dpd[color=#0000CC].[/color]DefaultPageSettings[color=#0000CC].[/color]Landscape [color=#0000CC]=[/color] [color=#0000FF]true[/color][color=#0000CC];[/color]

   [color=#FF0000]PrintDialog[/color] PrintDlg[color=#0000CC]=[/color][color=#0000FF]new[/color] [color=#FF0000]PrintDialog[/color][color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
   PrintDlg[color=#0000CC].[/color]Document [color=#0000CC]=[/color] dpd[color=#0000CC];[/color]

   [color=#FF0000]DialogResult[/color] dlgresult[color=#0000CC]=[/color]PrintDlg[color=#0000CC].[/color]ShowDialog[color=#0000CC]([/color][color=#0000FF]this[/color][color=#0000CC])[/color][color=#0000CC];[/color]
   [color=#0000FF]if[/color] [color=#0000CC]([/color]dlgresult[color=#0000CC]=[/color][color=#0000CC]=[/color][color=#FF0000]DialogResult[/color][color=#0000CC].[/color]OK[color=#0000CC])[/color]
    dpd[color=#0000CC].[/color]Print[color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]   
   
  [color=#0000CC]}[/color]

  [color=#0000FF]private[/color] [color=#0000FF]void[/color] miExit_Click[color=#0000CC]([/color][color=#0000FF]object[/color] sender[color=#0000CC],[/color] [color=#FF0000]System[/color][color=#0000CC].[/color][color=#FF0000]EventArgs[/color] e[color=#0000CC])[/color]
  [color=#0000CC]{[/color]
   [color=#FF0000]Application[/color][color=#0000CC].[/color]Exit[color=#0000CC]([/color][color=#0000CC])[/color][color=#0000CC];[/color]
  [color=#0000CC]}[/color]
[color=#0000CC]}[/color]
[color=#0000CC]}[/color][/color]
页: [1]
查看完整版本: 有关.net打印预揽窗口的代码