xtBox2. Text + «» »;
кнігіBindingSource. Filter=filter;
} void button5_Click (object sender, EventArgs e)
{filter=«»; (textBox3. Text!="")=«Видавництво =« »+ textBox3. Text + «» »;
кнігіBindingSource. Filter=filter;
} void button6_Click (object sender, EventArgs e)
{filter=«»; (textBox4. Text!="") (Regex. IsMatch (textBox4. Text, «^ d + $»)) +=«Рік =« »+ textBox4 . Text + «» »;
кнігіBindingSource. Filter=filter;
} void button9_Click (object sender, EventArgs e)
{[] myarray=new object [2] {dataGridView2. CurrentRow. Cells [8]. Value. ToString (), dataGridView1. CurrentRow. Cells [0]. Value. ToString ()}; (dataGridView2. CurrentRow!=Null && dataGridView1. CurrentRow!=Null && libDataSet1. Tables [«Взятие_кнігі»]. Rows. Find (myarray) == null)
{book_row=(DataRowView) dataGridView1. CurrentRow. DataBoundItem; ((int) book_row. Row [4] <(int) book_row. Row [5])
{. Tables [«Взятие_кнігі»]. Rows. Add (dataGridView2. CurrentRow. Cells [8]. Value. ToString (), dataGridView1. CurrentRow. Cells [0]. Value. ToString (), RetDate. Value. Date. ToString ()); ab_row=(DataRowView) dataGridView2. CurrentRow. DataBoundItem; _row. Row [9]=(int) ab_row. Row [9] + 1; _row. Row [4]=(int) book_row. Row [4] + 1;
}
}
} void dataGridView2_CursorChanged (object sender, EventArgs e)
{
} void dataGridView2_SelectionChanged (object sender, EventArgs e)
{filter=«»; (dataGridView2. CurrentRow!=null) +=«Паспорт =« »+ dataGridView2. CurrentRow. Cells [8]. Value. ToString () + «» »;
взятиекнігіBindingSource. Filter=filter;
} void groupBox1_Enter (object sender, EventArgs e)
{
} void button10_Click (object sender, EventArgs e)
{(dataGridView3. CurrentRow!=null && dataGridView2. CurrentRow!=null && dataGridView1. CurrentRow!=null)
{ab_row=(DataRowView) dataGridView2. CurrentRow. DataBoundItem; _row. Row [9]=(int) ab_row. Row [9] - 1; ind=кнігіBindingSource. Find («Найменування», dataGridView3. CurrentRow. Cells [0]. Value. ToString ()); bo_row=(DataRowView) кнігіBindingSource. List [ind]; _row. Row [4]=(int) bo_row. Row [4] - 1;. Rows. RemoveAt (dataGridView3. CurrentRow. Index);
}
} void label5_Click (object sender, EventArgs e)
{
} void button11_Click (object sender, EventArgs e)
{(); a=new Form7 ();. ShowDialog ();. Close ();
}
}
}
3.7 Form 7 - Боржники
System; System. Collections. Generic; System. ComponentModel; System. Data; System. Drawing; System. Text; System. Windows. Forms; WindowsApplication1
{partial class Form7: Form
{Form7 ()
{();
} void Fo...