LINQ In C# LINQ LINQ In C# LINQ In C# 118 LINQ

Size: px
Start display at page:

Download "LINQ In C# LINQ LINQ In C# LINQ In C# 118 LINQ"

Transcription

1 LINQ In C# LINQ - LINQ In C# - LINQ In C# LINQ

2

3

4 PDF LINQ LINQ 31 25LINQ

5 DataSet DataAdapter ADONET Command DataAdapter Insert Update Delete Select SQL SQL SQL! SQL SQL LINQ LINQ! LINQ LINQ LINQ C# SQL LINQ

6

7 œ Ó " (Ó Î Ô ' Ú Ú C 7> 4 ( Ì Ú Úˇ Ú 3 / ( ( 4 Ú Ï - Ú ÚÚÚ ( ˇ ( 7 B0#& Ú Ô Ó fl ºªÆ ÿª æªæ Ì Ï

8 /! 5 Î Ú > ( ( 7/ Ú Ú Î

9 Ú B#& Ê f=/ Î Ê C Ú Ú 1 ( Z Ê Ú Z Ê Ú Ú Ú Ê Z0/ Ú Ú Í Ê Ú Ú Í

10 W Ú 7H Ú ÚÔ B#& ÚÓ Ú! ÚÌ (! Ú Ê œ Ú Ê Ú Ê Ú Ú Ê

11

12 Itnee Visual Studio (1 ) Server Explorer ServerExplorer -1

13 (2 ) Connect todatabase Connection String -2

14

15 (5 ) Server Explorer (6 Table ) - 5-6

16 (7 ) -7

17 (8 ) Stored Procedures - 8 Save (9 ) psave CREATE PROCEDURE nvarchar(30) AS INSERT INTO RETURN

18 9-9 Save pedit CREATE PROCEDURE nvarchar(30) AS UPDATE Table1 SET WHERE RETURN ) 4 ( Save CREATE PROCEDURE int AS DELETE FROM Table1 WHERE Row=@Row RETURN

19 - 10 LINQ To SQL LINQto SQL Project > Add New Item LINQ 11 LINQ tosql Classes LINQ - 11

20 LINQ (Table1, psave, pedit,pdelete) (12 ) (13 ) Connection String LINQ LINQ - 12 ConnectionString - 13

21 LINQ - 14 LINQ LINQdbml LINQ 15 Save - 15

22 Save var db = new LINQDataContext(); dbpsave(converttoint32(txrowtext), txnametext, txfamilytext);! LINQ psave LINQ (txrow) TextBox! ADONET ADONET //using SystemData; //using SystemDataSqlClient; Cn = new SqlConnection(@"Server=\SQLEXPRESS;AttachDbFilename=" + ApplicationStartupPath Security=True;User Instance=True"); CnOpen(); SqlCommand Cm = new SqlCommand("", Cn); CmCommandText = "INSERT INTO Table1(Row, Name, Family) VALUES(@Row,@Name,@Family)"; CmParametersAddWithValue("@Row",lbCodeText); CmParametersAddWithValue("@Name", txnametext); CmParametersAddWithValue("@Family", txfamilytext); CmExecuteNonQuery(); gvtable1 DataGridView Data Toolbox Save 16 gvtable1datasource = dbtable1s; ( Refresh ) Table1 Form1 Load private void Form1_Load(object sender, EventArgs e) var db = new LINQDataContext(); gvtable1datasource = dbtable1s;

23 private void btsave_click(object sender, EventArgs e) var db = new LINQDataContext(); dbpsave(converttoint32(txrowtext), txnametext, txfamilytext); gvtable1datasource = dbtable1s; Close bin > Debug Debug! Setup Itneeexe - 16 DataSet LINQ! TextBox Save ( ReadOnly txrow) ReadOnly Update Save Cancel Update pedit Save

24 TextBox fredit fredit txrow txname txfamily FormBorderStyle FixedSingle ReadOnly True Modifiers Public Modifiers Public MaximizeBox False Modifiers Public MinimizeBox StartPosition False CenterParent - 17 ) DoubleClick ( Modifiers=Public fredit TextBox private void gvtable1_doubleclick(object sender, EventArgs e) if (gvtable1rowcount > 0) var f = new fredit(); ftxrowtext = gvtable1currentrowcells["row"]valuetostring(); ftxnametext = gvtable1currentrowcells["name"]valuetostring(); ftxfamilytext = gvtable1currentrowcells["family"]valuetostring(); fshowdialog(); var db = new LINQDataContext(); gvtable1datasource = dbtable1s; //Refresh Grid After Edit btcancel btupdate fredit private void btupdate_click(object sender, EventArgs e) var db = new LINQDataContext(); dbpedit(converttoint32(txrowtext), txnametext, txfamilytext); Close(); private void btcancel_click(object sender, EventArgs e) Close();

25 btdelete private void btdelete_click(object sender, EventArgs e) if (gvtable1rowcount <= 0) return; if (MessageBoxShow("Do you want to delete?", "Delete", MessageBoxButtonsYesNo, MessageBoxIconQuestion) == DialogResultYes) var db = new LINQDataContext(); dbpdelete(converttoint32(gvtable1currentrowcells["row"]value)); gvtable1datasource = dbtable1s; //Refresh Grid After Delete - 18 LINQ SQL C# ) ADONET Database Application (

26 LINQ psearch ) 19 ( - 19 txfamilysearch TextChanged private void txfamilysearch_textchanged(object sender, EventArgs e) var db = new LINQDataContext(); if (txfamilysearchtext == "") gvtable1datasource = dbtable1s; //Load All Records to Grid else gvtable1datasource = dbtable1swhere(c => cfamilysubstring(0, txfamilysearchtextlength) == txfamilysearchtext)select(c => c); C LINQ Family Family (txfamilysearch )

27 Setup File > Add > New Project Itnee Setup - 20 Setup 21 Application Folder OK Setup 21

28 22 Shortcut Shortcut - 22 Setup (23 ) Application Folder Setup - 23 itnee_logldf itneemdf 2 Uninstall Setup Setup 24 Setup SolutionExplorer

29 Setup - 24 Setup Setup Debug < Setup < Setup Setupexe NET Windows7 Vista SQLExpress Net Framework 35 Setup NET Framework 35 XP Setup

30 Setup Property Pages Properties Solution Explorer Setup Prerequisites (25 ) Setup - 25 Prerequisites 26 Setup - 26 Download prerequisitesfrom the samelocation as my application! Setup Setup

31

32 LINQ LINQFast Visual Studio 1 LINQ 2 Project >Add New Item LINQ tosqlclasses - 1 LINQ tclass View >Server Explorer 3 ID Name Family Lesson Mark tclass int nvarchar(20) nvarchar(30) nvarchar(30) real

33 ! Connection String Yes gvclass cblesson lbresult btrun Form1 4 LINQ ( ) ( ) var db = new LINQDataContext(); gvclassdatasource = dbtclass ; Label var db = new LINQDataContext(); lbresulttext = dbtclassescount()tostring(); Count() -2

34 var db = new LINQDataContext(); lbresulttext = dbtclasseswhere(c => clesson == "Math")Count()ToString(); Where(c => clesson == "Math" clesson == "Computer") Where(c => cname == " " && cfamily == " ") Count() Count() null Max() Mark object var db = new LINQDataContext(); object mx = dbtclassesselect(c => cmark)max(); if (mx == null) lbresulttext = "No Mark"; else lbresulttext = mxtostring(); var db = new LINQDataContext(); object mx = dbtclassesselect(c => cmark)average(); if (mx == null) lbresulttext = "No Mark"; else lbresulttext = mxtostring(); Sum() Average() var db = new LINQDataContext(); gvclassdatasource = dbtclasseswhere(c => cid == 1)Select(c => c)first(); c Select 1 First() 2 Select! LINQ First

35 gvclassdatasource = dbtclasseswhere(c => cmark < 10)Select(c => c); First qfamily q q Family var db = new LINQDataContext(); var q = dbtclasseswhere(c => cid == 1)Select(c => c)first(); lbresulttext = qfamily; - 3! Select(c =>c) var q = dbtclasseswhere(c => cid == 1)Select(c => new cname, cfamily )First(); 2 q gvclassdatasource = dbtclasseswhere(c => cmark < 10)Select(c => c)orderby(c => cfamily); gvclassdatasource = dbtclassesselect(c => c)orderbydescending(c => cfamily);

36 gvclassdatasource = dbtclassesselect(c => c)orderby(c=>cfamily)thenby(c=>cname); For Take() Skip() for ( ) Skip() ( 1 ) SQL TOP Take() var q = dbtclassesselect(c => c)orderbydescending(c => cmark)take(3); if (3 <= dbtclassescount()) for (int i = 0; i < 3; i++) MessageBoxShow(qSelect(c => cfamily)skip(i)take(1)first()); if (dbtloginswhere(c => cpassword == txpasswordtext)count() == 0) MessageBoxShow("Invalid password!"); ComboBox cblessondatasource = dbtclassesselect(c => clesson)distinct(); Distinct()

37

38 Visual Studio (1 ) Server Explorer Server Explorer -1

39 (2 ) Connect to Database Connection String -2

40

41 (5 ) Server Explorer (6 Table ) - 5-6

42 (7 ) - 7

43 (8 ) Stored Procedures -8 Save (9 ) psave CREATE PROCEDURE nvarchar(30) AS INSERT INTO RETURN

44 - 9 Save pedit ) 4 ( Save CREATE PROCEDURE int AS DELETE FROM MyTable WHERE Row=@Row RETURN

45 - 10 LINQ To SQL LINQ to SQL Project > Add New Item LINQ 11 LINQ to SQL Classes LINQ - 11

46 C# Form1 Main ١ ٢ ٣ ۵

47

48 psave C# Form2 btncanecl // btnsave

49 pedie C# Form2 ٢ ١ ١ ١ ١ picture box btncanecl btnsave /

50 /

51

52 psave C# Form4

53

54

55 btncancel private void btncancel_click_1(object sender, EventArgs e) btnaddenabled = true;// btnsaveenabled = false;// btndelenabled = true;// btneditenabled = true;// btncancelenabled = false;// datagridview1refresh(); // thisnonetext();// thisdistxt();// void distxt()// txtaddenabled = false;// txtfamilyenabled = false;// txtnameenabled = false;// txtrowenabled = false;// txttelenabled = false;// void entxt()// txtaddenabled = true;// txtfamilyenabled = true;// txtnameenabled = true;// txtrowenabled = true;// txttelenabled = true;// void nonetext() txtaddtext = "";// txtfamilytext = "";// txtnametext = "";// txtrowtext = "";// txtteltext = "";//

56

57 - LINQ main DataBase

58 MoshakhasatTable PraimeryKey nvarchar 50 nvarchar 50 id_ integer integer date_st date vaziate_e nvarchar 10 ghes t bit 0 1 date name family _personely id_ozviat tart_ozviat estekhdami smate_kari tel_kari tel_mobile active date_end Not Null

59 Table Name mablaghe_mahane Praimery Key Not Null code_mablgh date_mahane mablagh Table Name sabte_vam Praimery Key Not Null integer date date id_vam date_start date_end money mablaghe_vam tedade_aghsat money mablaghe_ghest

60 Table Name table_vasete Table Name estekhdam integer nvarchar 50 nvarchar 50 integer vaziate_e nvarchar 10 dat date teda integer tedade_aghsat integer date integer vaziate_e nvarchar 10 id_ozviat name family id_vam estekhdami te_get_vam ade_aghsat t_pardakhti e_get_ghest estekhdami Not Null

61 SQL Options and settings Debug Table and Database Designers Database Tools Prevent saving changes that require table re-creation

62 add_mahane mablaghe_mahane ALTER PROCEDURE money AS insert into RETURN add_moshakhas moshakhasat ALTER PROCEDURE date as insert into moshakhasat values return add_new_vam sabte_vam ALTER PROCEDURE money AS insert into sabte_vam values return

63 add_vamgirandegan table_vasete ALTER PROCEDURE date as insert into return del_mablaghe_mahane mablaghe_mahane ALTER PROCEDURE int AS DELETE FROM mablaghe_mahane WHERE RETURN del_moshakhsat moshakhasat ALTER PROCEDURE int AS DELETE FROM moshakhasat WHERE RETURN

64 del_vam_girandegan table_vasete ALTER PROCEDURE int AS DELETE FROM table_vasete WHERE RETURN del_vam_sabt_shde sabte_vam ALTER PROCEDURE int AS DELETE FROM sabte_vam WHERE RETURN as malaghe_mahane display_sabte_haghe_ozviat ALTER PROCEDURE display_sabte_haghe_ozviat as select date_mahane as " ", mablaghe_mahane1 as " ", tedade_azaie_active as " ", jame_mahane_akhz_shode as " ", jame_mahane_pardakhti as " " from mablaghe_mahane

65 as sabte_vam display_sabte_vam ALTER PROCEDURE display_sabte_vam as select id_vamas as " ", date_start as " ", mablaghe_vam as " ", tedade_aghsat as " ", mablaghe_aghsat as " " from sabet_vam moshakhasat display_vam_girandegan sabte_vam table_vasete ALTER PROCEDURE display_vam_girandegan as select moshakhasatid_ozviat, moshakhasatname, moshakhasatfamily, sabte_vamid_vam, sabte_vamdate_start, sabte_vammablaghe_vam, table_vasetedate_get_vam from moshakhasat, table_vasete, sabte_vam where table_vaseteid_vam = sabte_vamid_vam and moshakhasatid_ozviat = table_vaseteid_ozviat

66 edit_dore_vam sabte_vam ALTER PROCEDURE money as Update sabte_vam Set where return edit_mahane mablaghe_mahane ALTER PROCEDURE money as Update mablaghe_mahane Set date_mahane=date_mahane, Where return

67 edit_moshakhasat moshakhasat ALTER PROCEDURE nvarchar(10) as Update moshakhasat Set Where return edit_vam_girandegan table_vasete ALTER PROCEDURE date as update table_vasete set where RETURN

68

69 main C# Form_main Lable PicturBox ButtonName = button_sabte_moshakhasa t ButtonName = button_sabte_vamgirandegan ButtonName = button_haghe_ozviat Button Name = button sabte_vam button_sabte_moshakhasat Form_sabte moshakhasat private void button_open_moshakhasat_click(object sender, EventArgs e) Form_sabte_moshakhasatt open_form1 = new Form_sabte_moshakhasat(); open_form1showdialog( (); button_sabte_vam Form_sabte_vamgirandegan private void button_sabte_vam_girande_click(object sender, EventArgs e) Form_sabte_vamgirandegan open_form3 = new Form_sabte_vamgirandegan(); open_form3showdialog();

70 button_haghe_ozviat sabte_mablaghe_mahane private void button_haghe_ozviat_click(object sender, EventArgs e) Form_sabte_mablaghe_mahane open_form4 = new Form_sabte_mablaghe_mahane(); open_form4showdialog(); button_sabt_vam sabte_mablaghe_mahane private void button_sabt_vam_click(object sender, EventArgs e) Form_sabte_vam open_form5 = new Form_sabte_vam(); open_form5showdialog();

71 C# Form_sabte_moshakhasat TextBox Name = box_date_ozviat TextBox Name = box_id_ozviat TextBox Name = box_id_personely TextBox Name = box_family TextBoxName = box_name heckboxname= heck_active extbox Name = box_date_end extbox Name = box_tel_mobile extbox Name = box_tel_kari ButtonName= button_delet TextBox Name = box_mahale_kar ComboBox Name = combo_estekhdami ButtonName = button_sabte_jadid ButtonName= button_sabte_taghira Lable Name = lable7 Lable Name = lable6 TextBox Name = box_inset_serch Lable Name = lable9 DateGridView Name = datagridview_moshakhasat ButtonName= button_serch Lable Name = label natije_serch

72 Form1_Load Main Load private void Form1_Load(object sender, EventArgs e)// var om = new LinqDataContext();// datagridview_moshakhastdatasource = ommoshakhasats OrderBy(c => cid_ozviat); // combo_estekhdamdatasource = omestekhdamsselect(c => cvaziat_estekhdam); label_natije_serchtext = " ";// label9text = ommoshakhasatscount()tostring();// label6text = ommoshakhasatswhere(c => cactive == false) Count()ToString();// label7text = ommoshakhasatswhere(c => cactive == true ) Count()ToString();// button_sabte_jadid add_moshakhsat private void button_sabte_jadid_click(object sender, EventArgs e)// var om = new LinqDataContext();// omadd_moshakhasat (Box_nameText, Box_familyText, ConvertToInt32(Box_id_personelyText),ConvertToInt32(Box_id_ozviatText), ConvertToDateTime(Box_date_ozviatText),combo_estekhdamText, Box_mahale_karText, Box_tel_kariText, Box_tel_mobileText, check_activechecked,converttodatetime(box_date_endtext)); datagridview_moshakhastdatasource = ommoshakhasatsorderby(c => cid_ozviat);// Box_nameText="";// Box_familyText = "";// Box_id_personelyText = "";// Box_id_ozviatText = "";// Box_date_ozviatText = "";// Box_mahale_karText = "";// Box_tel_kariText = "";// Box_tel_mobileText = "";// label9text = ommoshakhasatscount()tostring();// label6text = ommoshakhasatswhere(c => cactive == false) Count()ToString();// label7text = ommoshakhasatswhere(c => cactive == true) Count()ToString();//

73 box_insert_serch DataGridView_moshakhasat button_serch label_natije_serch private void button_serch_click(object sender, EventArgs e)// var om = new LinqDataContext();// if (box_insert_serchtext == "") label_natije_serchtext = "! "; else if (box_insert_serchtext!= "") datagridview_moshakhastdatasource = null; datagridview_moshakhastdatasource = ommoshakhasats Where(c => cfamily == box_insert_serchtext)select(c => c); label_natije_serchtext = " "; else label_natije_serchtext = " "; button_sabte_taghirat edit_moshakhsat private void button_sabte_taghirat_click(object sender, EventArgs e)// var om = new LinqDataContext();// omedit_moshakhasat(box_nametext, Box_familyText, ConvertToInt32(Box_id_personelyText), ConvertToInt32(Box_id_ozviatText), ConvertToDateTime(Box_date_ozviat), combo_estekhdamtext, Box_mahale_karText, Box_tel_kariText, Box_tel_mobileText); // datagridview_moshakhastdatasource = ommoshakhasatsorderby(c => cid_ozviat);//

74 DataGridView_moshakhasat Form_sabte_moshakhasat TextBox private void datagridview1_cellcontentclick(object sender,datagridviewcelleventargs e) if (datagridview_moshakhastrowcount>0) var gv=new Form_sabte_moshakhasat();// gvbox_nametext=datagridview_moshakhastcurrentrowcells ["name"]valuetostring(); gvbox_familytext = datagridview_moshakhastcurrentrowcells ["family"]valuetostring(); gvbox_id_personelytext = datagridview_moshakhastcurrentrowcells ["id_personely"] ValueToString(); gvbox_id_ozviattext = datagridview_moshakhastcurrentrowcells ["id_ozviat"]valuetostring(); gvbox_date_ozviattext = datagridview_moshakhastcurrentrowcells ["date_start_ozviat"]valuetostring(); gvcombo_estekhdamtext = datagridview_moshakhastcurrentrowcells ["vaziate_estekhdami"]valuetostring(); gvbox_mahale_kartext = datagridview_moshakhastcurrentrowcells ["gesmate_kari"]valuetostring(); gvbox_tel_karitext = datagridview_moshakhastcurrentrowcells ["tel_kari"]valuetostring(); gvbox_tel_mobiletext = datagridview_moshakhastcurrentrowcells ["tel_mobile"]valuetostring();

75 ) button_delete del_moshkhasat ( private void button_delete_click(object sender, EventArgs e) var om = new LinqDataContext();// omdel_moshakhasat(converttoint32(box_id_ozviattext));// datagridview_moshakhastdatasource = ommoshakhasatsorderby(c => cid_ozviat);// Box_nameText = "";// Box_familyText = "";// Box_id_personelyText = "";// Box_id_ozviatText = "";// Box_date_ozviatText = "";// Box_mahale_karText = "";// Box_tel_kariText = "";// Box_tel_mobileText = "";// label9text = ommoshakhasatscount()tostring();// label6text = ommoshakhasatswhere(c => cactive == false ) Count()ToString();// label7text = ommoshakhasatswhere(c => cactive == true) Count()ToString();// check_active true box_date_end false private void check_active_checkedchanged(object sender, EventArgs e) if (check_activechecked == true)// Box_date_endReadOnly = false;//

76 C# Form_sabte_mablaghe_mahane TextBox Name = box_mablaghe_mahane TextBox Name = box_date_start TextBox Name = box_code_mahane ButtonName = button_delete ButtonName = button_sabte_edit ButtonName = button_sabte_new Load Form_sabte_mablaghe_mahane Load private void Form_mablaghe_haghe ozviat_load(object sender, EventArgs e) var om = new LinqDataContext();// datagridview_mahanedatasource = ommablaghe_mahanes;//

77 button_sabte_new add_mahane private void button_sabte_new_click(object sender, EventArgs e) var om = new LinqDataContext();// omadd_mahane(converttoint32(box_code_mahanetext), ConvertToDateTime(Box_date_startText), ConvertToInt64(Box_mablaghe_mahaneText)); datagridview_mahanedatasource = ommablaghe_mahanes; // Box_code_mahaneText = ""; Box_date_startText = ""; Box_mablaghe_mahaneText = ""; button_sabte_edit edit_mahane private void button_sabte_edit_click(object sender, EventArgs e) var om = new LinqDataContext();// omedit_mahane(converttoint32(box_code_mahanetext), ConvertToDateTime(Box_date_startText), ConvertToInt64(Box_mablaghe_mahaneText)); datagridview_mahanedatasource = ommablaghe_mahanes; // Box_code_mahaneText = ""; Box_date_startText = ""; Box_mablaghe_mahaneText = ""; button_delete del_mablaghe_mahane private void button_delete_click(object sender, EventArgs e) var om = new LinqDataContext();// omdel_mablaghe_mahane(converttoint32(box_code_mahanetext)); // datagridview_mahanedatasource = ommablaghe_mahanes;// Box_code_mahaneText = ""; Box_date_startText = ""; Box_mablaghe_mahaneText = "";

78 DataGridView_moshakhasat button_haghe_ozviat TextBox private void datagridview_mahane_cellcontentclick(object sender, DataGridViewCellEventArgs e) if (datagridview_mahanerowcount > 0) var gv_mahane = new Form_kasre_haghe_ozviat_mahane(); gv_mahanebox_code_mahanetext = datagridview_mahanecurrentrowcells ["code_mahane"]valuetostring(); gv_mahanebox_date_starttext = datagridview_mahanecurrentrowcells ["date_mahane"]valuetostring();// gv_mahanebox_mablaghe_mahanetext = datagridview_mahanecurrentrowcells ["mablagh"]valuetostring();//

79 C# Form_sabte_mablaghe_mahane TextBoxName= date_akhze_vam ComboBox Name = combo_id_vam TextBoxName= box_family TextBox Name = box_name ComboBox Name= combo_id_ozvit ButtonName = button_sabte_edit ButtonName= button_delete ButtonName = button _sabe_new_vam ComboBox Name = combo_view_vam TextBoxName= button_serch_id_ozvit TextBox Name = box_serch_id_ozviat Lable Name = lable_natije_serch DataGridViewName= DataGridView_vam_ girandegan Load Form_sabte_vamgirandegan Load private void Form_sabte_vamgirandegan_Load(object sender, EventArgs e) var om = new LinqDataContext(); datagridview_vam_girandegandatasource = omdisplay_vam_girandegan( ()Select(c=> c)orderby(c =>cdate_get_vam); // combo_id_ozviatdatasource = ommoshakhasatsselect(c => c)orderby( c => cid_ozviat);// combo_id_vamdatasource = omsabte_vamsselect(c => c)orderby(c => cid_vam); label_natije_serchtext = " ";// label_tedadtext = " "; label_text_tedadtextt = "0";

80 combo_id_ozvit private void combobox2_selectedvaluechanged(object sender, EventArgs e) var om = new LinqDataContext();// // if (ConvertToInt32(combo_id_ozviatText)== ConvertToInt32(combo_id_ozviatDataSource)) Box_nameText = ommoshakhasatsselect(c => cname)tostring(); Box_familyText = ommoshakhasatsselect(c => cfamily)tostring(); button_sabte_new add_vamgirandegan_table_vasete private void button_sabe_new_vam_click(object sender, EventArgs e) var om = new LinqDataContext();// omadd_vamgirandegan_table_vasete(converttoint32(combo_id_ozviattext), Box_nameText, Box_familyText, ConvertToInt32(combo_id_vamText), ConvertToDateTime(Box_date_akhze_vamText)); combo_id_ozviattext = ""; Box_nameText = ""; Box_familyText = ""; combo_id_vamtext = ""; Box_date_akhze_vamText = ""; button_sabte_edit edit_vamgirandegan private void button_sabte_edit_click(object sender, EventArgs e) var om = new LinqDataContext(); omedit_vam_girandegan(converttoint32(combo_id_ozviattext),box_nametext, Box_familyText,ConvertToInt32(combo_id_vamText), ConvertToDateTime(Box_date_akhze_vamText)); combo_id_ozviattext = ""; Box_nameText = ""; Box_familyText = ""; combo_id_vamtext = ""; Box_date_akhze_vamText = "";

81 button_delete del_vamgirandegan private void button_delete_click(object sender, EventArgs e) var om = new LinqDataContext(); omdel_vam_girande(converttoint32(combo_id_ozviattext)); box_serch_id_ozviat button_serch_id_ozviat DataGridView_vamgirandegan label_natije_serch private void button serch_id_ozviat_click(object sender, EventArgs e) var om = new LinqDataContext();// if (Box_serch_id_ozviatText == "") label_natije_serchtext = " "; else if (Box_serch_id_ozviatText!= "") datagridview_vam_girandegandatasource = omtable_vaseteswhere(c => cid_ozviat == ConvertToInt32(Box_serch_id_ozviatText))Select(c => c); label_natije_serchtext = " "; else label_natije_serchtext = " "; combo_view_vam private void combo_view_vam_selectedindexchanged(object sender, EventArgs e) var om = new LinqDataContext();// if (ConvertToInt32(combo_view_vamText) == ConvertToInt32(combo_view_vamDataSource)) datagridview_vam_girandegandatasource = omtable_vasetesselect(c => c)where(c => cid_vam == ConvertToInt32(combo_view_vamDataSource)); label_tedadtext = omtable_vaseteswhere(c => cid_vam == ConvertToInt32(combo_view_vamDataSource))Count()ToString(); label_text_tedadtext = " ";

82 C# Form_sabt_vam TextBoxName= box_end_dore TextBox Name = box_tedade_aghsat TextBox Name = box_date_start TextBox Name = box_mablaghe_vam TextBox Name = box id_vam TextBox Name = box_malaghe_ghest ButtonName = button_sabe_new ButtonName = button_delete ButtonName = button_sabe_edit DataGridViewName= DataGridView_sbte_vam Load Form_sabte_vam Load private void Form_sabte_vam_Load(object sender, EventArgs e) var om = new LinqDataContext();// datagridview_sbte_vamdatasource = omsabte_vamsselect(c => c) OrderBy(c => cid_vam);

83 button_sabte_edit edit_dore_vam private void button_sabte_edit_click(object sender, EventArgs e) var om = new LinqDataContext();// omedit_dore_vam (ConvertToInt32(Box_id_vamText), ConvertToDateTime(Box_date_startText), ConvertToDateTime(Box_end_doreText), ConvertToInt64(Box_mablaghe_vamText), ConvertToInt32(Box_tedade_aghsatText), ConvertToInt64(ConvertToInt64(Box_mablaghe_vamText) / ConvertToInt64(Box_mablaghe_gest))); datagridview_sbte_vamdatasource = omsabte_vamsselect(c=>c) OrderBy(c=> cid_vam);// Box_id_vamText = "";// Box_date_startText = "";// Box_end_doreText = "";// Box_mablaghe_vamText = "";// Box_tedade_aghsatText = "";// Box_mablaghe_gestText = "";// button_sabte_new add_new_vam private void button_sabte_new_click(object sender, EventArgs e) var om = new LinqDataContext();// omadd_new_vam(converttoint32(box_id_vamtext), ConvertToDateTime(Box_date_startText), ConvertToDateTime(Box_end_doreText), ConvertToInt64(Box_mablaghe_vamText), ConvertToInt32(Box_tedade_aghsatText), ConvertToInt64(ConvertToInt64(Box_mablaghe_vamText) / ConvertToInt64(Box_mablaghe_gest))); datagridview_sbte_vamdatasource = omsabte_vamsselect(c => c) OrderBy(c => cid_vam); Box_id_vamText = "";// Box_date_startText = "";// Box_end_doreText = "";// Box_mablaghe_vamText = "";// Box_tedade_aghsatText = "";// Box_mablaghe_gestText = "";//

84 button_delete del_vam_sabt_shode private void button_delete_click(object sender, EventArgs e) var om = new LinqDataContext();// omdel_vam_sabt_shode(converttoint32(box_id_vamtext)); datagridview_sbte_vamdatasource = omsabte_vamsselect(c => c) OrderBy(c => cid_vam); Box_id_vamText = "";// Box_date_startText = "";// Box_end_doreText = "";// Box_mablaghe_vamText = "";// Box_tedade_aghsatText = "";// Box_mablaghe_gestText = "";// DataGridView_sbte_vam button_haghe_ozviat TextBox private void datagridview_sbte_vam_cellcontentclick(object sender, DataGridViewCellEventArgs e) if (datagridview_sbte_vamrowcount > 0) var gv_sabte_vam = new Form_sabte_vam(); gv_sabte_vambox_id_vamtext = datagridview_sbte_vamcurrentrowcells ["id_vam"]valuetostring(); gv_sabte_vambox_date_starttext = datagridview_sbte_vamcurrentrowcells ["date_start"]valuetostring(); gv_sabte_vambox_end_doretext = datagridview_sbte_vamcurrentrowcells ["date_end"]valuetostring(); gv_sabte_vambox_mablaghe_vamtext = datagridview_sbte_vamcurrentrowcells ["mablaghe_vam"]valuetostring(); gv_sabte_vambox_tedade_aghsattext = daagridview_sbte_vamcurrentrowcells ["tedade_aghsat"]valuetostring(); gv_sabte_vambox_mablaghe_gesttext=datagridview_sbte_vamcurrentrowcells ["mablaghe_ghest"]valuetostring();

85

C# winforms gridview

C# winforms gridview C# winforms gridview using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

More information

ADO.NET 2.0. database programming with

ADO.NET 2.0. database programming with TRAINING & REFERENCE murach s ADO.NET 2.0 database programming with (Chapter 3) VB 2005 Thanks for downloading this chapter from Murach s ADO.NET 2.0 Database Programming with VB 2005. We hope it will

More information

3 Customer records. Chapter 3: Customer records 57

3 Customer records. Chapter 3: Customer records 57 Chapter 3: Customer records 57 3 Customer records In this program we will investigate how records in a database can be displayed on a web page, and how new records can be entered on a web page and uploaded

More information

Visual Studio.NET enables quick, drag-and-drop construction of form-based applications

Visual Studio.NET enables quick, drag-and-drop construction of form-based applications Visual Studio.NET enables quick, drag-and-drop construction of form-based applications Event-driven, code-behind programming Visual Studio.NET WinForms Controls Part 1 Event-driven, code-behind programming

More information

In the previous chapter we created a web site with images programmed into HTML page code using commands such as: <img src="images/train.

In the previous chapter we created a web site with images programmed into HTML page code using commands such as: <img src=images/train. Chapter 6: Mountain Bike Club 113 6 Mountain Bike Club In the previous chapter we created a web site with images programmed into HTML page code using commands such as: In

More information

ADO.NET Overview. Connected Architecture. SqlConnection, SqlCommand, DataReader class. Disconnected Architecture

ADO.NET Overview. Connected Architecture. SqlConnection, SqlCommand, DataReader class. Disconnected Architecture Topics Data is Everywhere ADO.NET Overview Connected Architecture EEE-474 DATABASE PROGRAMMİNG FOR İNTERNET INTRODUCTION TO ADO.NET Mustafa Öztoprak-2013514055 ASSOC.PROF.DR. TURGAY İBRİKÇİ ÇUKUROVA UNİVERSTY

More information

> ADO.NET: ActiveX Data Objects for.net, set of components used to interact with any DB/ XML docs

> ADO.NET: ActiveX Data Objects for.net, set of components used to interact with any DB/ XML docs > ADO.NET: ActiveX Data Objects for.net, set of components used to interact with any DB/ XML docs It supports 2 models for interacting with the DB: 1. Disconnected Model 2. Connection Oriented Model Note:

More information

Lab 4 (Introduction to C# and windows Form Applications)

Lab 4 (Introduction to C# and windows Form Applications) Lab 4 (Introduction to C# and windows Form Applications) In this the following goals will be achieved: 1. C# programming language is introduced 2. Creating C# console application using visual studio 2008

More information

Huw Talliss Data Structures and Variables. Variables

Huw Talliss Data Structures and Variables. Variables Data Structures and Variables Variables The Regex class represents a read-only regular expression. It also contains static methods that allow use of other regular expression classes without explicitly

More information

IT3101 -Rapid Application Development Second Year- First Semester. Practical 01. Visual Basic.NET Environment.

IT3101 -Rapid Application Development Second Year- First Semester. Practical 01. Visual Basic.NET Environment. IT3101 -Rapid Application Development Second Year- First Semester Practical 01 Visual Basic.NET Environment. Main Area Menu bar Tool bar Run button Solution Explorer Toolbox Properties Window Q1) Creating

More information

Philadelphia University Faculty of Information Technology. Visual Programming. Using C# -Work Sheets-

Philadelphia University Faculty of Information Technology. Visual Programming. Using C# -Work Sheets- Philadelphia University Faculty of Information Technology Visual Programming Using C# -Work Sheets- Prepared by: Dareen Hamoudeh Eman Al Naji 2018 Work Sheet 1 Hello World! 1. Create a New Project, Name

More information

Advanced Programming C# Lecture 5. dr inż. Małgorzata Janik

Advanced Programming C# Lecture 5. dr inż. Małgorzata Janik Advanced Programming C# Lecture 5 dr inż. malgorzata.janik@pw.edu.pl Today you will need: Classes #6: Project I 10 min presentation / project Presentation must include: Idea, description & specification

More information

Introduction. Create a New Project. Create the Main Form. Assignment 1 Lights Out! in C# GUI Programming 10 points

Introduction. Create a New Project. Create the Main Form. Assignment 1 Lights Out! in C# GUI Programming 10 points Assignment 1 Lights Out! in C# GUI Programming 10 points Introduction In this lab you will create a simple C# application with a menu, some buttons, and an About dialog box. You will learn how to create

More information

CST242 Windows Forms with C# Page 1

CST242 Windows Forms with C# Page 1 CST242 Windows Forms with C# Page 1 1 2 4 5 6 7 9 10 Windows Forms with C# CST242 Visual C# Windows Forms Applications A user interface that is designed for running Windows-based Desktop applications A

More information

if (say==0) { k.commandtext = "Insert into kullanici(k_adi,sifre) values('" + textbox3.text + "','" + textbox4.text + "')"; k.

if (say==0) { k.commandtext = Insert into kullanici(k_adi,sifre) values(' + textbox3.text + ',' + textbox4.text + '); k. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient;

More information

STEP 1: CREATING THE DATABASE

STEP 1: CREATING THE DATABASE Date: 18/02/2013 Procedure: Creating a simple registration form in ASP.NET (Programming) Source: LINK Permalink: LINK Created by: HeelpBook Staff Document Version: 1.0 CREATING A SIMPLE REGISTRATION FORM

More information

How to use data sources with databases (part 1)

How to use data sources with databases (part 1) Chapter 14 How to use data sources with databases (part 1) 423 14 How to use data sources with databases (part 1) Visual Studio 2005 makes it easier than ever to generate Windows forms that work with data

More information

Accessing Databases 7/6/2017 EC512 1

Accessing Databases 7/6/2017 EC512 1 Accessing Databases 7/6/2017 EC512 1 Types Available Visual Studio 2017 does not ship with SQL Server Express. You can download and install the latest version. You can also use an Access database by installing

More information

Overview Describe the structure of a Windows Forms application Introduce deployment over networks

Overview Describe the structure of a Windows Forms application Introduce deployment over networks Windows Forms Overview Describe the structure of a Windows Forms application application entry point forms components and controls Introduce deployment over networks 2 Windows Forms Windows Forms are classes

More information

The Open Core Interface SDK has to be installed on your development computer. The SDK can be downloaded at:

The Open Core Interface SDK has to be installed on your development computer. The SDK can be downloaded at: This document describes how to create a simple Windows Forms Application using some Open Core Interface functions in C# with Microsoft Visual Studio Express 2013. 1 Preconditions The Open Core Interface

More information

You can call the project anything you like I will be calling this one project slide show.

You can call the project anything you like I will be calling this one project slide show. C# Tutorial Load all images from a folder Slide Show In this tutorial we will see how to create a C# slide show where you load everything from a single folder and view them through a timer. This exercise

More information

MVC CRUD. Tables: 1) Dinners (First Table)

MVC CRUD. Tables: 1) Dinners (First Table) Tables: First create one database and name it NerdDinner. Now run following code to generate tables or create by your own if you know how to create and give relationship between two tables. 1) Dinners

More information

Hands-On Lab. Lab: Client Object Model. Lab version: Last updated: 2/23/2011

Hands-On Lab. Lab: Client Object Model. Lab version: Last updated: 2/23/2011 Hands-On Lab Lab: Client Object Model Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 EXERCISE 1: RETRIEVING LISTS... 4 EXERCISE 2: PRINTING A LIST... 8 EXERCISE 3: USING ADO.NET DATA

More information

How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample.

How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample. How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample. Author: Carlos Kassab Date: July/24/2006 First install BOBS(BaaN Ole Broker Server), you

More information

Create a Windows Application that Reads- Writes PI Data via PI OLEDB. Page 1

Create a Windows Application that Reads- Writes PI Data via PI OLEDB. Page 1 Create a Windows Application that Reads- Writes PI Data via PI OLEDB Page 1 1.1 Create a Windows Application that Reads-Writes PI Data via PI OLEDB 1.1.1 Description The goal of this lab is to learn how

More information

Eyes of the Dragon - XNA Part 37 Map Editor Revisited

Eyes of the Dragon - XNA Part 37 Map Editor Revisited Eyes of the Dragon - XNA Part 37 Map Editor Revisited I'm writing these tutorials for the XNA 4.0 framework. Even though Microsoft has ended support for XNA it still runs on all supported operating systems

More information

1 Dept: CE.NET Programming ( ) Prof. Akash N. Siddhpura. Working with Form: properties, methods and events

1 Dept: CE.NET Programming ( ) Prof. Akash N. Siddhpura. Working with Form: properties, methods and events Working with Form: properties, methods and events To create a New Window Forms Application, Select File New Project. It will open one dialog box which is shown in Fig 2.1. Fig 2.1 The New Project dialog

More information

Developing an app using Web Services, DB2, and.net

Developing an app using Web Services, DB2, and.net Developing an app using Web Services, DB2, and.net http://www7b.software.ibm.com/dmdd/ Table of contents If you're viewing this document online, you can click any of the topics below to link directly to

More information

8 Library loan system

8 Library loan system Chapter 8: Library loan system 153 8 Library loan system In previous programs in this book, we have taken a traditional procedural approach in transferring data directly between web pages and the ASP database.

More information

Now find the button component in the tool box. [if toolbox isn't present click VIEW on the top and click toolbox]

Now find the button component in the tool box. [if toolbox isn't present click VIEW on the top and click toolbox] C# Tutorial - Create a Tic Tac Toe game with Working AI This project will be created in Visual Studio 2010 however you can use any version of Visual Studio to follow along this tutorial. To start open

More information

Bachelor s Thesis: Building Web Application for Mahabad University Graduate Affairs Afsaneh Nezami Savojbolaghi

Bachelor s Thesis: Building Web Application for Mahabad University Graduate Affairs Afsaneh Nezami Savojbolaghi Bachelor s Thesis: Building Web Application for Mahabad University Graduate Affairs Afsaneh Nezami Savojbolaghi Turku University of Applied Sciences Degree Programme in Business Information Technology

More information

Re-installing SQL Server 2012 Express

Re-installing SQL Server 2012 Express Re-installing SQL Server 2012 Express This document helps you in re-installing SQL Server 2012 Express edition without losing data on the current TM1000 database (Other databases on SQL will be removed).

More information

Events. Event Handler Arguments 12/12/2017. EEE-425 Programming Languages (2016) 1

Events. Event Handler Arguments 12/12/2017. EEE-425 Programming Languages (2016) 1 Events Events Single Event Handlers Click Event Mouse Events Key Board Events Create and handle controls in runtime An event is something that happens. Your birthday is an event. An event in programming

More information

Programming with ADO.NET

Programming with ADO.NET Programming with ADO.NET The Data Cycle The overall task of working with data in an application can be broken down into several top-level processes. For example, before you display data to a user on a

More information

CompuCal Version 6 Installation Guide (Windows 2008/R2) Release

CompuCal Version 6 Installation Guide (Windows 2008/R2) Release CompuCal Version 6 Installation Guide (Windows 2008/R2) Release 6.3.0.4 Copyright CompuCal Calibration Solutions 2015 Page 1 of 17 Table of Contents 1. MINIMUM SPECIFICATIONS... 3 1.1 Client Server Spec...

More information

Step 1: Start a GUI Project. Start->New Project->Visual C# ->Windows Forms Application. Name: Wack-A-Gopher. Step 2: Add Content

Step 1: Start a GUI Project. Start->New Project->Visual C# ->Windows Forms Application. Name: Wack-A-Gopher. Step 2: Add Content Step 1: Start a GUI Project Start->New Project->Visual C# ->Windows Forms Application Name: Wack-A-Gopher Step 2: Add Content Download the Content folder (content.zip) from Canvas and unzip in a location

More information

%& # * + + *, - * - *. / $ / $ 0 $ 1 " + " +!" "!" #$ 2 * 3 4! #% &" #' * - #5-6$7.8)$ 68$ - $" -

%& # * + + *, - * - *. / $ / $ 0 $ 1  +  +! ! #$ 2 * 3 4! #% & #' * - #5-6$7.8)$ 68$ - $ - !" #$ %& # '() * + + *, - * - *. / $ / $ 0 $ 1 () " + " +!" "!" #$ 2 * 3 4! #% # &" #' * - #5-6$7.8)$ 68$ - $" - () #* + + ) 9%: ) )) );" $

More information

To start we will be using visual studio Start a new C# windows form application project and name it motivational quotes viewer

To start we will be using visual studio Start a new C# windows form application project and name it motivational quotes viewer C# Tutorial Create a Motivational Quotes Viewer Application in Visual Studio In this tutorial we will create a fun little application for Microsoft Windows using Visual Studio. You can use any version

More information

Web Database Programming

Web Database Programming Web Database Programming Web Database Programming 2011 Created: 2011-01-21 Last update: 2014-01-14 Contents Introduction... 2 Use EasyDataSet as Data Source... 2 Add EasyDataSet to web page... 3 Make Database

More information

For this example, we will set up a small program to display a picture menu for a fast food take-away shop.

For this example, we will set up a small program to display a picture menu for a fast food take-away shop. 146 Programming with C#.NET 9 Fast Food This program introduces the technique for uploading picture images to a C# program and storing them in a database table, in a similar way to text or numeric data.

More information

Centra Workbench (V3.12 onwards)

Centra Workbench (V3.12 onwards) Workbench Installation Guide Centra Workbench (V3.12 onwards) Create and Customize User Interfaces for Router Control snellgroup.com Introduction Description This guide describes the system requirements

More information

Radius= 10 cm, Color= Red, Weight= 200g, X= 3m, Y= 5m, Z= 2m. Radius= 10 cm, Color= Blue, Weight= 200g, X= 3m, Y= 5m, Z= 0m

Radius= 10 cm, Color= Red, Weight= 200g, X= 3m, Y= 5m, Z= 2m. Radius= 10 cm, Color= Blue, Weight= 200g, X= 3m, Y= 5m, Z= 0m C# property method Radius= 10 cm, Color= Red, Weight= 200g, X= 3m, Y= 5m, Z= 0m Radius= 10 cm, Color= Red, Weight= 200g, X= 3m, Y= 5m, Z= 2m Radius= 10 cm, Color= Blue, Weight= 200g, X= 3m, Y= 5m, Z= 0m

More information

Tutorial 03 understanding controls : buttons, text boxes

Tutorial 03 understanding controls : buttons, text boxes Learning VB.Net Tutorial 03 understanding controls : buttons, text boxes Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple

More information

Assignment 10 SQL/CLR

Assignment 10 SQL/CLR 1. CLR is common runtime language A. Same framework used by.net.. B. Why: Security, Reliability, Performance C. Now SQL hosts the CLR as a virtual machine inside SQL Server. D. Applications run in the

More information

TuneTown Lab Instructions

TuneTown Lab Instructions TuneTown Lab Instructions Purpose: Practice creating a modal dialog. Incidentally, learn to use a list view control. Credit: This program was designed by Jeff Prosise and published in MSDN Magazine. However,

More information

Working with SQL SERVER EXPRESS

Working with SQL SERVER EXPRESS Table of Contents How to Install SQL Server 2012 Express Edition... 1 Step 1.... 1 Step 2.... 2 Step 3.... 3 Step 4.... 3 Step 5.... 4 Step 6.... 5 Step 7.... 5 Step 8.... 6 Fixing Database Start-up Connection

More information

HelpAndManual_unregistered_evaluation_copy NET Reports 3.0

HelpAndManual_unregistered_evaluation_copy NET Reports 3.0 HelpAndManual_unregistered_evaluation_copy NET Reports 3.0 HelpAndManual_unregistered_evaluation_copy NET Reports 3.0 All rights reserved. No parts of this work may be reproduced in any form or by any

More information

UNIT-3. Prepared by R.VINODINI 1

UNIT-3. Prepared by R.VINODINI 1 Prepared by R.VINODINI 1 Prepared by R.VINODINI 2 Prepared by R.VINODINI 3 Prepared by R.VINODINI 4 Prepared by R.VINODINI 5 o o o o Prepared by R.VINODINI 6 Prepared by R.VINODINI 7 Prepared by R.VINODINI

More information

Volume CREATIVE DATA TECHNOLOGIES, INC. DATALAYER.NET. Getting Started Guide

Volume CREATIVE DATA TECHNOLOGIES, INC. DATALAYER.NET. Getting Started Guide Volume 1 CREATIVE DATA TECHNOLOGIES, INC. DATALAYER.NET Getting Started Guide TABLE OF CONTENTS Table of Contents Table of Contents... 1 Chapter 1 - Installation... 2 1.1 Installation Steps... 2 1.1 Creating

More information

ComponentOne Data Source for Entity Framework 1

ComponentOne Data Source for Entity Framework 1 1 ComponentOne Data Source for Entity Framework Overview ComponentOne Data Source for Entity Framework adds ease-of-use and performance enhancements to the Entity Framework and RIA Services. It improves

More information

VERTECH. VERTECH Central Station Software Installation Manual

VERTECH. VERTECH Central Station Software Installation Manual VERTECH Central Station Software Installation Manual Installation Manual July 2006 1 Table of Contents 1.0 Introduction... 3 2.0 Vertx Access Control System 1.0 Installation Guide... 3 3.0 Vertx Access

More information

Mainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below.

Mainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below. APPENDIX 1 TABLE DETAILS Mainly three tables namely Teacher, Student and Class for small database of a school are used. The snapshots of all three tables are shown below. Details of Class table are shown

More information

CSIS 1624 CLASS TEST 6

CSIS 1624 CLASS TEST 6 CSIS 1624 CLASS TEST 6 Instructions: Use visual studio 2012/2013 Make sure your work is saved correctly Submit your work as instructed by the demmies. This is an open-book test. You may consult the printed

More information

PcZealous [Professional] User Manual

PcZealous [Professional] User Manual STEPS TO INSTALL PcZEALOUS [Professional]: Double Click on the PcZealous [Professional] Setup.exe file. In the welcome screen as shown below, Click the Next button Read the Software License Agreement,

More information

Start Visual Studio and create a new windows form application under C# programming language. Call this project YouTube Alarm Clock.

Start Visual Studio and create a new windows form application under C# programming language. Call this project YouTube Alarm Clock. C# Tutorial - Create a YouTube Alarm Clock in Visual Studio In this tutorial we will create a simple yet elegant YouTube alarm clock in Visual Studio using C# programming language. The main idea for this

More information

Hands-On Lab. Introduction to SQL Azure. Lab version: Last updated: 12/15/2010

Hands-On Lab. Introduction to SQL Azure. Lab version: Last updated: 12/15/2010 Hands-On Lab Introduction to SQL Azure Lab version: 2.0.0 Last updated: 12/15/2010 Contents OVERVIEW... 3 EXERCISE 1: PREPARING YOUR SQL AZURE ACCOUNT... 5 Task 1 Retrieving your SQL Azure Server Name...

More information

Lecture 10: Database. Lisa (Ling) Liu

Lecture 10: Database. Lisa (Ling) Liu Chair of Software Engineering C# Programming in Depth Prof. Dr. Bertrand Meyer March 2007 May 2007 Lecture 10: Database Lisa (Ling) Liu Database and Data Representation Database Management System (DBMS):

More information

"!#... )*! "!# )+, -./ 01 $

!#... )*! !# )+, -./ 01 $ Email engauday@hotmail.com! "!#... $ %&'... )*! "!# )+, -./ 01 $ ) 1+ 2#3./ 01 %.. 7# 89 ; )! 5/< 3! = ;, >! 5 6/.?

More information

Visual Basic/C# Programming (330)

Visual Basic/C# Programming (330) Page 1 of 12 Visual Basic/C# Programming (330) REGIONAL 2017 Production Portion: Program 1: Calendar Analysis (400 points) TOTAL POINTS (400 points) Judge/Graders: Please double check and verify all scores

More information

Industrial Programming

Industrial Programming Industrial Programming Lecture 6: C# Data Manipulation Industrial Programming 1 The Stream Programming Model File streams can be used to access stored data. A stream is an object that represents a generic

More information

IBSDK Quick Start Tutorial for C# 2010

IBSDK Quick Start Tutorial for C# 2010 IB-SDK-00003 Ver. 3.0.0 2012-04-04 IBSDK Quick Start Tutorial for C# 2010 Copyright @2012, lntegrated Biometrics LLC. All Rights Reserved 1 QuickStart Project C# 2010 Example Follow these steps to setup

More information

1. We insert elements inside (CompoBox) tool through Items property ( ) 2. ComboBox tool use to choose just one item from the list ( )

1. We insert elements inside (CompoBox) tool through Items property ( ) 2. ComboBox tool use to choose just one item from the list ( ) st Q: Put ( ) or ( ) for the following sentence:. We insert elements inside (CompoBox) tool through Items property ( ) 2. ComboBox tool use to choose just one item from the list ( ) 3. VB.Net allows adding

More information

Lesson 13 Transcript: User-Defined Functions

Lesson 13 Transcript: User-Defined Functions Lesson 13 Transcript: User-Defined Functions Slide 1: Cover Welcome to Lesson 13 of DB2 ON CAMPUS LECTURE SERIES. Today, we are going to talk about User-defined Functions. My name is Raul Chong, and I'm

More information

The first program we write will display a picture on a Windows screen, with buttons to make the picture appear and disappear.

The first program we write will display a picture on a Windows screen, with buttons to make the picture appear and disappear. 4 Programming with C#.NET 1 Camera The first program we write will display a picture on a Windows screen, with buttons to make the picture appear and disappear. Begin by loading Microsoft Visual Studio

More information

CSC 330 Object-Oriented

CSC 330 Object-Oriented CSC 330 Object-Oriented Oriented Programming Using ADO.NET and C# CSC 330 Object-Oriented Design 1 Implementation CSC 330 Object-Oriented Design 2 Lecture Objectives Use database terminology correctly

More information

Project 7: Northwind Traders Order Entry

Project 7: Northwind Traders Order Entry Project 7: Northwind Traders Order Entry 1 Northwinds Order Entry Extend the Select Customer program from Project 6 to permit the user to enter orders. Add orders to the database. Print invoices. Refer

More information

Start Visual Studio, start a new Windows Form project under the C# language, name the project BalloonPop MooICT and click OK.

Start Visual Studio, start a new Windows Form project under the C# language, name the project BalloonPop MooICT and click OK. Start Visual Studio, start a new Windows Form project under the C# language, name the project BalloonPop MooICT and click OK. Before you start - download the game assets from above or on MOOICT.COM to

More information

ASP.net. Microsoft. Getting Started with. protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable();

ASP.net. Microsoft. Getting Started with. protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable(); Getting Started with protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable(); string connectionstring = System.Configuration.ConfigurationManager.ConnectionStrings ["default"].connectionstring;!

More information

Enzo Framework API Reference Guide

Enzo Framework API Reference Guide Enzo Framework API Reference Guide This document provides a programmatic reference guide for the Enzo Framework API. BETA DOCUMENTATION Blue Syntax Consulting specializes in the Microsoft Azure platform

More information

BUILDING APPLICATIONS USING C# AND.NET FRAMEWORK (OBJECT-ORIENTED PROGRAMMING, X428.6)

BUILDING APPLICATIONS USING C# AND.NET FRAMEWORK (OBJECT-ORIENTED PROGRAMMING, X428.6) Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 7 Professional Program: Data Administration and Management BUILDING APPLICATIONS USING C# AND.NET FRAMEWORK (OBJECT-ORIENTED

More information

Main Game Code. //ok honestly im not sure, if i guess its a class ment for this page called methodtimer that //either uses the timer or set to timer..

Main Game Code. //ok honestly im not sure, if i guess its a class ment for this page called methodtimer that //either uses the timer or set to timer.. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms;

More information

EXAMGOOD QUESTION & ANSWER. Accurate study guides High passing rate! Exam Good provides update free of charge in one year!

EXAMGOOD QUESTION & ANSWER. Accurate study guides High passing rate! Exam Good provides update free of charge in one year! EXAMGOOD QUESTION & ANSWER Exam Good provides update free of charge in one year! Accurate study guides High passing rate! http://www.examgood.com Exam : 070-548(VB) Title : PRO:Design & Develop Wdws-Based

More information

WIRELESS DATABASE VIEWER PLUS (ENTERPRISE EDITION) SERVER SIDE USER GUIDE

WIRELESS DATABASE VIEWER PLUS (ENTERPRISE EDITION) SERVER SIDE USER GUIDE WIRELESS DATABASE VIEWER PLUS (ENTERPRISE EDITION) SERVER SIDE USER GUIDE PRODUCT VERSION: 4.2 Wireless Database Viewer Plus(Enterprise Edition) Page 1 CONTENTS 1 INTRODUCTION...4 1.1 FEATURES...4 2 INSTALLATION...5

More information

Microsoft Official Courseware Course Introduction to Web Development with Microsoft Visual Studio

Microsoft Official Courseware Course Introduction to Web Development with Microsoft Visual Studio Course Overview: This five-day instructor-led course provides knowledge and skills on developing Web applications by using Microsoft Visual Studio 2010. Prerequisites Before attending this course, students

More information

Using Active Reports to Create Reports for Interaction Reporter

Using Active Reports to Create Reports for Interaction Reporter Using Active Reports to Create Reports for Interaction Reporter Developer's Guide 2018 R2 Last updated 2018-01-23 (See Change Log for summary of changes.) Abstract This document is a reference to author

More information

Getting Started with ComponentOne LiveLinq

Getting Started with ComponentOne LiveLinq Getting Started with ComponentOne LiveLinq What is LINQ? LINQ, or Language Integrated Query, is a set of features in.net 3.5 used for writing structured type-safe queries over local object collections

More information

EXAM Web Development Fundamentals. Buy Full Product.

EXAM Web Development Fundamentals. Buy Full Product. Microsoft EXAM - 98-363 Web Development Fundamentals Buy Full Product http://www.examskey.com/98-363.html Examskey Microsoft 98-363 exam demo product is here for you to test the quality of the product.

More information

Programming Logic -Intermediate

Programming Logic -Intermediate Programming Logic -Intermediate 152-102 Database Access Text References Data Access Concepts No book references Diagram Connected vs. Disconnected Adding a Data Source View Data in Grid View Data in Fields

More information

MATFOR In Visual C# ANCAD INCORPORATED. TEL: +886(2) FAX: +886(2)

MATFOR In Visual C# ANCAD INCORPORATED. TEL: +886(2) FAX: +886(2) Quick Start t t MATFOR In Visual C# ANCAD INCORPORATED TEL: +886(2) 8923-5411 FAX: +886(2) 2928-9364 support@ancad.com www.ancad.com 2 MATFOR QUICK START Information in this instruction manual is subject

More information

System Pages (Setup Admins Only)

System Pages (Setup Admins Only) System Pages (Setup Admins Only) 1 Primary System Pages 2 More on Page Views & Sub Page Views 3 4 System Lookup Pages 5 6 7 Distinguishing Tables, Pages, Filtered Pages, & Page Views 8 9 Reasons to Create

More information

Chapter 10. Database Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 10. Database Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 10 Database Applications McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Chapter Objectives Use database terminology correctly Create Windows and Web projects that display

More information

n Group of statements that are executed repeatedly while some condition remains true

n Group of statements that are executed repeatedly while some condition remains true Looping 1 Loops n Group of statements that are executed repeatedly while some condition remains true n Each execution of the group of statements is called an iteration of the loop 2 Example counter 1,

More information

Experiment 5 : Creating a Windows application to interface with 7-Segment LED display

Experiment 5 : Creating a Windows application to interface with 7-Segment LED display Experiment 5 : Creating a Windows application to interface with 7-Segment LED display Objectives : 1) To understand the how Windows Forms in the Windows-based applications. 2) To create a Window Application

More information

3-tier Architecture Step by step Exercises Hans-Petter Halvorsen

3-tier Architecture Step by step Exercises Hans-Petter Halvorsen https://www.halvorsen.blog 3-tier Architecture Step by step Exercises Hans-Petter Halvorsen Software Architecture 3-Tier: A way to structure your code into logical parts. Different devices or software

More information

Writing Your First Autodesk Revit Model Review Plug-In

Writing Your First Autodesk Revit Model Review Plug-In Writing Your First Autodesk Revit Model Review Plug-In R. Robert Bell Sparling CP5880 The Revit Model Review plug-in is a great tool for checking a Revit model for matching the standards your company has

More information

Object oriented lab /second year / review/lecturer: yasmin maki

Object oriented lab /second year / review/lecturer: yasmin maki 1) Examples of method (function): Note: the declaration of any method is : method name ( parameters list ).. Method body.. Access modifier : public,protected, private. Return

More information

Controls. By the end of this chapter, student will be able to:

Controls. By the end of this chapter, student will be able to: Controls By the end of this chapter, student will be able to: Recognize the (Properties Window) Adjust the properties assigned to Controls Choose the appropriate Property Choose the proper value for the

More information

Deploying the ClientDashboard Web Site

Deploying the ClientDashboard Web Site Deploying the ClientDashboard Web Site June 2013 Contents Introduction... 2 Installing and configuring IIS... 2 Software installations... 2 Opening a firewall port... 2 Adding the SCSWebDashboard Web site...

More information

Chapter 6 Dialogs. Creating a Dialog Style Form

Chapter 6 Dialogs. Creating a Dialog Style Form Chapter 6 Dialogs We all know the importance of dialogs in Windows applications. Dialogs using the.net FCL are very easy to implement if you already know how to use basic controls on forms. A dialog is

More information

Contents Getting Started... 3 About Scribe Online and Connectors... 3 Scribe Online Services... 3 CDK Components... 3 Audience... 4 Prerequisites...

Contents Getting Started... 3 About Scribe Online and Connectors... 3 Scribe Online Services... 3 CDK Components... 3 Audience... 4 Prerequisites... Contents Getting Started... 3 About Scribe Online and Connectors... 3 Scribe Online Services... 3 CDK Components... 3 Audience... 4 Prerequisites... 4 Requirements... 4 CDK Workflow... 5 Scribe Online

More information

Server Manager User and Permissions Setup

Server Manager User and Permissions Setup Login and Security Once you successfully create your company databases, the next step is to define the groups and users that can access the TRAVERSE data and the functionality they will have within the

More information

UNIVERSITY OF THE FREE STATE DEPARTMENT OF COMPUTER SCIENCE AND INFORMATICS CSIS1614. DATE: 5 March 2015 MARKS: 100 SECTION A (36)

UNIVERSITY OF THE FREE STATE DEPARTMENT OF COMPUTER SCIENCE AND INFORMATICS CSIS1614. DATE: 5 March 2015 MARKS: 100 SECTION A (36) UNIVERSITY OF THE FREE STATE DEPARTMENT OF COMPUTER SCIENCE AND INFORMATICS CSIS1614 DATE: 5 March 2015 MARKS: 100 ASSESSOR: Prof. P.J. Blignaut TIME: 180 minutes MODERATOR: Dr. L. de Wet SECTION A (36)

More information

How to work with data sources and datasets

How to work with data sources and datasets Chapter 14 How to work with data sources and datasets Objectives Applied Use a data source to get the data that an application requires. Use a DataGridView control to present the data that s retrieved

More information

create database ABCD use ABCD create table bolumler ( bolumkodu int primary key, bolumadi varchar(20) )

create database ABCD use ABCD create table bolumler ( bolumkodu int primary key, bolumadi varchar(20) ) create database ABCD use ABCD create table bolumler ( bolumkodu int primary key, bolumadi varchar(20) ) insert into bolumler values(1,'elektrik') insert into bolumler values(2,'makina') insert into bolumler

More information

Database Communication in Visual Studio/C# using Web Services

Database Communication in Visual Studio/C# using Web Services https://www.halvorsen.blog Database Communication in Visual Studio/C# using Web Services Hans-Petter Halvorsen Background With Web Services you can easily get your data through Internet We will use Web

More information

About the Authors Introduction p. 1 Exploring Application Architectures p. 9 Introduction p. 9 Choosing the "Right" Architecture p.

About the Authors Introduction p. 1 Exploring Application Architectures p. 9 Introduction p. 9 Choosing the Right Architecture p. Foreword p. xxi Acknowledgments p. xxiii About the Authors p. xxv Introduction p. 1 Exploring Application Architectures p. 9 Introduction p. 9 Choosing the "Right" Architecture p. 10 Understanding Your

More information

Update Table Schema Sql Server 2008 Add Column Default Value

Update Table Schema Sql Server 2008 Add Column Default Value Update Table Schema Sql Server 2008 Add Column Default Value In SQL Server 2008, I am adding a non-nullable column to an existing table, and INTO MyTable DEFAULT VALUES GO 1000 ALTER TABLE MyTable ADD.

More information

OneStop Reporting 4.5 OSR Administration User Guide

OneStop Reporting 4.5 OSR Administration User Guide OneStop Reporting 4.5 OSR Administration User Guide Doc. Version 1.2 Updated: 10-Dec-14 Copyright OneStop Reporting AS Contents Introduction... 1 Who should read this manual... 1 What s included in this

More information

Introduction to the Visual Studio 2005

Introduction to the Visual Studio 2005 Chapter 1 Introduction to the Visual Studio 2005 1 INTRODUCTION Included in Visual Studio.NET Visual Basic (VB.Net, VB 7.0) C++ C# (đọc là CSharp) J# (J Sharp).NET Framework 2 CÀI ĐẶT Visual Studio.NET

More information

Introduction. What is Recursive Data? Reporting on Hierarchical Recursive data using MS Reporting Services Asif Sayed

Introduction. What is Recursive Data? Reporting on Hierarchical Recursive data using MS Reporting Services Asif Sayed Introduction I will start with a question here. How many of you had chance to interact with Employee table from sample database Northwind? There you go I can imagine countless hands in air, and why not

More information