LAMPIRAN A : LISTING PROGRAM

Size: px
Start display at page:

Download "LAMPIRAN A : LISTING PROGRAM"

Transcription

1 46 LAMPIRAN A : LISTING PROGRAM 1. Mainform /* * Created by SharpDevelop. * User: User7 * Date: 28/09/2015 * Time: 9:38 * * To change this template use Tools Options Coding Edit Standard Headers. */ using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; namespace home1 / <summary> / Description of MainForm. / </summary> public partial class MainForm : Form public MainForm() The InitializeComponent() call is required for Windows Forms designer support. InitializeComponent(); TODO: Add constructor code after the InitializeComponent() call. Args e) e) void KRITERIALAHANToolStripMenuItemClick(object sender, Event Form a=new databimbingan(); a.show(); void DATALAHANToolStripMenuItemClick(object sender, EventArgs

2 47 Form b=new kriteriabobot(); b.show(); void EXITToolStripMenuItemClick(object sender, EventArgs e) DialogResult button= MessageBox.Show("Are you sure want to EXIT?","EXIT", MessageBoxButtons.Ye sno,messageboxicon.question, MessageBoxDefaultBut ton.button2); if(button==dialogresult.yes) Application.Exit(); void ABOUTToolStripMenuItemClick(object sender, EventArgs e) Form c=new about(); c.show(); void HOMEToolStripMenuItemClick(object sender, EventArgs e) void METODEToolStripMenuItemClick(object sender, EventArgs e) Form f=new metode(); f.show(); void Label2Click(object sender, EventArgs e) void Label3Click(object sender, EventArgs e) void Label1Click(object sender, EventArgs e) void PictureBox2Click(object sender, EventArgs e)

3 48 void Label42Click(object sender, EventArgs e) 2. About /* * Created by SharpDevelop. * User: User7 * Date: 28/09/2015 * Time: 10:09 * * To change this template use Tools Options Coding Edit Standard Headers. */ using System; using System.Drawing; using System.Windows.Forms; namespace home1 / <summary> / Description of about. / </summary> public partial class about : Form public about() The InitializeComponent() call is required for Windows Forms designer support. InitializeComponent(); TODO: Add constructor code after the InitializeComponent() call. void AboutLoad(object sender, EventArgs e)

4 49 void Label2Click(object sender, EventArgs e) void PictureBox2Click(object sender, EventArgs e) void Label3Click(object sender, EventArgs e) void Label1Click(object sender, EventArgs e) void Label4Click(object sender, EventArgs e) void Label6Click(object sender, EventArgs e) void Label8Click(object sender, EventArgs e) 3.Metode /* * Created by SharpDevelop. * User: User7 * Date: 28/09/2015 * Time: 10:58 * * To change this template use Tools Options Coding Edit Standard Headers. */ using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; using MySql.Data.MySqlClient;

5 50 using System.Data; using System.Data.OleDb; namespace home1 / <summary> / Description of metode. / </summary> public partial class metode : Form MySqlConnection koneksi2 = new MySqlConnection("server=localhost;port=3306;username=root ;password="); double maxc1,maxc2,maxc3,maxc4,minc5,minc6,minc7,minc8; double tertinggi=0; string lahanterbaik,temp_pm; public metode() The InitializeComponent() call is required for Windows Forms designer support. InitializeComponent(); TODO: Add constructor code after the InitializeComponent() call. void Panel2Paint(object sender, PaintEventArgs e) void Button1Click(object sender, EventArgs e) try DateTime waktuawal,waktuakhir; waktuawal=datetime.now; double hc1,hc2,hc3,hc4,hc5,hc6,hc7,hc8; = "server=localhost;port=3306;username=root;password="; MySqlCommand MyCommand2 = new MySqlCommand(Query, MyConn2); MySqlCommand command1 = new MySqlCommand("select max(c1) from db_spk_bimbel.tb_bobot",myconn2);

6 51 ing()); maxc1=convert.todouble(command1.executescalar().tostr MySqlCommand command2 = new MySqlCommand("select max(c2) from db_spk_bimbel.tb_bobot",myconn2); maxc2=convert.todouble(command2.executescalar().tostr ing()); MySqlCommand command3 = new MySqlCommand("select max(c3) from db_spk_bimbel.tb_bobot",myconn2); maxc3=convert.todouble(command3.executescalar().tostr ing()); MessageBox.Show("min" + minc3.tostring()); MySqlCommand command4 = new MySqlCommand("select max(c4) from db_spk_bimbel.tb_bobot",myconn2); maxc4=convert.todouble(command4.executescalar().tostr ing()); MySqlCommand command5 = new MySqlCommand("select min(c5) from db_spk_bimbel.tb_bobot",myconn2); minc5=convert.todouble(command5.executescalar().tostr ing()); MySqlCommand kueri = new MySqlCommand("SELECT * FROM db_spk_bimbel.tb_bobot",myconn2); string temp; kueri.commandtext = qw; koneksi.open(); MySqlDataReader dr; dr = kueri.executereader(); while(dr.read()) temp = dr["nama"].tostring(); matriks normalisasi hc1 = (Convert.ToDouble(dr["c1"]))/maxc1; hc2 = (Convert.ToDouble(dr["c2"]))/maxc2; hc3 = (Convert.ToDouble(dr["c3"]))/maxc3; hc4 = (Convert.ToDouble(dr["c4"]))/maxc4; hc5 = (Convert.ToDouble(dr["c5"]))/minc5; perkalian dengan w MessageBox.Show(hc1.ToString()); double skor = (hc1*0.3)+(hc2*0.2)+(hc3*0.15)+(hc4*0.25)+(hc5*0.1); if (skor >= tertinggi) tertinggi=skor; lahanterbaik=temp;

7 52 updateskorsaw(temp,hc1,hc2,hc3,hc4,hc5,skor); koneksi.close(); MilliSeconds"; waktuakhir=datetime.now; TimeSpan lama =waktuakhir.subtract(waktuawal); textbox1.text=lama.totalmilliseconds.tostring()+" catch (Exception ex) MessageBox.Show(ex.Message); lihatperangkingan(); sawtinggi.text=lahanterbaik; datatertinggi_pm(); void lihatwpm() try = "server=localhost;port=3306;username=root;password="; Display query string Query = "select * from db_spk_bimbel.tb_wpm ORDER BY skor DESC;"; MySqlCommand MyCommand2 = new MySqlCommand(Query, MyConn2); For offline connection we weill use MySqlDataAdapter class. MySqlDataAdapter MyAdapter = new MySqlDataAdapter(); MyAdapter.SelectCommand = MyCommand2; DataTable dtable = new DataTable(); DataTable dtable = new DataTable(); MyAdapter.Fill(dTable); datagridview1.datasource = dtable; here i have assign dtable object to the datagridview1 object to display data. catch (Exception ex) MessageBox.Show(ex.Message);

8 53 void lihatperangkingan() try = "server=localhost;port=3306;username=root;password="; Display query string Query = "select * from db_spk_bimbel.tb_normalisasi_saw ORDER BY skor DESC;"; MySqlCommand MyCommand2 = new MySqlCommand(Query, MyConn2); For offline connection we weill use MySqlDataAdapter class. MySqlDataAdapter MyAdapter = new MySqlDataAdapter(); MyAdapter.SelectCommand = MyCommand2; DataTable dtable = new DataTable(); DataTable dtable = new DataTable(); MyAdapter.Fill(dTable); datagridview4.datasource = dtable; here i have assign dtable object to the datagridview1 object to display data. catch(exception) MessageBox.Show("Ada Error"); void updateskorsaw(string nama,double hc1,double hc2,double h c3,double hc4,double hc5, double skor) try = "datasource=localhost;port=3306;username=root;password="; string query2= "update db_spk_bimbel.tb_normalisasi_saw set normalisasi_c1='" + hc1+ "',normalisasi_c2='" +hc2+ "',normalisasi_c3 ='" +hc3+ "',normalisasi_c4='" + hc4+ "',normalisasi_c5='" + hc5+ "', skor='" + skor+ "' where nama='" + nama+ "';"; MySqlCommand MyCommand2 = new MySqlCommand(Query, MyConn2); MySqlCommand MyCommand3 = new MySqlCommand(query2, MyConn2); MySqlDataReader MyReader2;

9 54 MyReader2 = MyCommand2.ExecuteReader(); our query will be executed and data saved into the database. MyReader2 = MyCommand3.ExecuteReader(); MessageBox.Show("Save Data"); Here catch(exception) MessageBox.Show("Ada Error"); void updateskorwpm(string nama,double hc1,double hc2,double h c3,double hc4,double hc5, String skor) try = "datasource=localhost;port=3306;username=root;password="; string query2= "update db_spk_bimbel.tb_wpm set c1='" + hc1+ "',c2='" +hc2+ "',c3='" +hc3+ "',c4='" + hc4+ "',c5='" + hc5+ "',skor='" + skor+ "' where nama='" + nama+ "';"; MySqlCommand MyCommand2 = new MySqlCommand(Query, MyConn2); MySqlCommand MyCommand3 = new MySqlCommand(query2, MyConn2); MySqlDataReader MyReader2; MyReader2 = MyCommand2.ExecuteReader(); Here our query will be executed and data saved into the database. MyReader2 = MyCommand3.ExecuteReader(); MessageBox.Show("Save Data"); catch(exception) MessageBox.Show("Ada Error"); void Button2Click(object sender, EventArgs e) try DateTime waktuawal,waktuakhir; waktuawal=datetime.now; double hc1,hc2,hc3,hc4,hc5,skorwpm; double tinggi=0; = "server=localhost;port=3306;username=root;password="; MySqlCommand MyCommand2 = new MySqlCommand(Query,

10 55 MyConn2); MySqlCommand kueri = new MySqlCommand("SELECT * FROM db_spk_bimbel.tb_bobot",myconn2); string temp; kueri.commandtext = qw; koneksi.open(); MySqlDataReader dr; dr = kueri.executereader(); while(dr.read()) temp = dr["nama"].tostring(); matriks normalisasi hc1 =Math.Pow(0.3,(Convert.ToDouble(dr["c1"]))); hc2 = Math.Pow(0.2,(Convert.ToDouble(dr["c2"]))); hc3 =Math.Pow(0.15, (Convert.ToDouble(dr["c3"]))); hc4 =Math.Pow(0.25,(Convert.ToDouble(dr["c4"]))); hc5 =Math.Pow(0.1, (Convert.ToDouble(dr["c5"]))); skorwpm=hc1*hc2*hc3*hc4*hc5; String strskorwpm=skorwpm.tostring("0.####################"); MessageBox.Show(skorwpm.ToString()); if (skorwpm >= tinggi) tinggi=skorwpm; textbox2.text=temp; ); MilliSeconds"; updateskorwpm(temp,hc1,hc2,hc3,hc4,hc5,strskorwpm lihatwpm(); waktuakhir=datetime.now; TimeSpan lamawpm=waktuakhir.subtract(waktuawal); wpm_time.text=lamawpm.totalmilliseconds.tostring()+" catch(exception ex) MessageBox.Show(ex.Message); void MetodeLoad(object sender, EventArgs e) void Label4Click(object sender, EventArgs e)

11 56 void Panel1Paint(object sender, PaintEventArgs e) void TextBox1TextChanged(object sender, EventArgs e) void Label7Click(object sender, EventArgs e) void DataGridView4CellContentClick(object sender, DataGridVie wcelleventargs e) 4.Bobot Kriteria /* * Created by SharpDevelop. * User: User7 * Date: 28/09/2015 * Time: 9:54 * * To change this template use Tools Options Coding Edit Standard Headers. */ using System; using System.Collections.Generic; using System.Drawing; using System.Linq.Expressions; using System.Windows.Forms; using MySql.Data.MySqlClient; using System.Data; using System.Data.OleDb; namespace home1 / <summary> / Description of kriteriabobot. / </summary> public partial class kriteriabobot : Form

12 57 public kriteriabobot() The InitializeComponent() call is required for Windows Forms designer support. InitializeComponent(); lihat(); TODO: Add constructor code after the InitializeComponent() call. void lihat() = "server=localhost;port=3306;username=root;password="; Display query string Query = "select * from db_spk_bimbel.tb_kriteriabobot;"; MySqlCommand MyCommand2 = new MySqlCommand(Query, MyConn2); For offline connection we weill use MySqlDataAdapter class. MySqlDataAdapter MyAdapter = new MySqlDataAdapter(); MyAdapter.SelectCommand = MyCommand2; DataTable dtable = new DataTable(); DataTable dtable = new DataTable(); MyAdapter.Fill(dTable); datagridview1.datasource = dtable; here i have assign dtable object to the datagridview1 object to display data. void KriteriabobotLoad(object sender, EventArgs e) 5. Data Bimbingan /* * Created by SharpDevelop. * User: User7

13 58 * Date: 28/09/2015 * Time: 9:53 * * To change this template use Tools Options Coding Edit Standard Headers. */ using System; using System.Collections.Generic; using System.Drawing; using System.Linq.Expressions; using System.Windows.Forms; using MySql.Data.MySqlClient; using System.Data; using System.Data.OleDb; namespace home1 / <summary> / Description of datalahan. / </summary> public partial class databimbingan : Form double c1,c2,c3,c4,c5,c6,c7,c8,c9,c10; double c1_pm,c2_pm,c3_pm,c4_pm,c5_pm,c6_pm,c7_pm,c8_pm; double c1_pm_ideal,c2_pm_ideal,c3_pm_ideal,c4_pm_ideal,c5_pm_ ideal,c6_pm_ideal,c7_pm_ideal,c8_pm_ideal; double c1_pm_gap,c2_pm_gap,c3_pm_gap,c4_pm_gap,c5_pm_gap,c6_p m_gap,c7_pm_gap,c8_pm_gap; double cf,sf,skor; public databimbingan() The InitializeComponent() call is required for Windows Forms designer support. InitializeComponent(); TODO: Add constructor code after the InitializeComponent() call. void Button1Click(object sender, EventArgs e) try = "datasource=localhost;port=3306;username=root;password="; string Query = "insert into

14 59 db_spk_bimbel.data_bimbel(nama,biaya,fasilitas,jumlah_pertemuan,jumla h_lulus_ptn,jumlah_pengajar) values('" +this.namabimbel.text+ "','" +this.c1_biaya.text+ "','" +th is.c2_fasilitas.text+ "','" +this.c3_jlh_pert.text+ "','" +this.c4_jl h_lls.text+ "','" +this.c5_jlh_peng.text+ "');"; MySqlCommand MyCommand2 = new MySqlCommand(Query, MyConn2); MySqlCommand MyCommand3 = new MySqlCommand(query2, MyConn2); MySqlDataReader MyReader2; MyReader2 = MyCommand2.ExecuteReader(); ekskusi kueri masuk ke database. MyReader2 = MyCommand3.ExecuteReader(); MessageBox.Show("Data Tersimpan"); insertbobot(); insertsaw_normalisasi(); insertwpm(); resetisi(); catch (Exception ex) MessageBox.Show(ex.Message); void insertbobot() try = "datasource=localhost;port=3306;username=root;password="; string Query = "insert into db_padi.padisawah(nama,c1,c2,c3,c4,c5) values('" +this.namapadisawah.text+ "','" +c1+ "','" +c2+ "','" +c3+ "','" +c4+ "','" +c5+ "');"; string query2="insert into db_spk_bimbel.tb_bobot(nama,c1,c2,c3,c4,c5) values('" +this.namabimbel.text+ "','" +c1+ "','" +c2+ "','" +c3+ "', '" +c4+ "','" +c5+ "');";

15 60 MySqlCommand MyCommand2 = new MySqlCommand(Query, MyConn2); MySqlCommand MyCommand3 = new MySqlCommand(query2, MyConn2); MySqlDataReader MyReader2; MyReader2 = MyCommand2.ExecuteReader(); Here our query will be executed and data saved into the database. MyReader2 = MyCommand3.ExecuteReader(); MessageBox.Show("Save Data"); catch (Exception ex) MessageBox.Show(ex.Message); void insertsaw_normalisasi() try = "datasource=localhost;port=3306;username=root;password="; string Query = "insert into db_padi.padisawah(nama,c1,c2,c3,c4,c5) values('" +this.namapadisawah.text+ "','" +c1+ "','" +c2+ "','" +c3+ "','" +c4+ "','" +c5+ "');"; string query2="insert into db_spk_bimbel.tb_normalisasi_saw(nama,normalisasi_c1,normalisasi_c2,n ormalisasi_c3,normalisasi_c4,normalisasi_c5,skor) values('" +this.namabimbel.text+ "','" +c1+ "','" +c2+ "','" +c3+ "', '" +c4+ "','" +c5+ "','" +0+ "');"; MySqlCommand MyCommand2 = new MySqlCommand(Query, MyConn2); MySqlCommand MyCommand3 = new MySqlCommand(query2, MyConn2); MySqlDataReader MyReader2; MyReader2 = MyCommand2.ExecuteReader(); Here our query will be executed and data saved into the database. MyReader2 = MyCommand3.ExecuteReader(); MessageBox.Show("Save Data"); catch (Exception ex)

16 61 MessageBox.Show(ex.Message); void insertwpm() try = "datasource=localhost;port=3306;username=root;password="; string Query = "insert into db_padi.padisawah(nama,c1,c2,c3,c4,c5) values('" +this.namapadisawah.text+ "','" +c1+ "','" +c2+ "','" +c3+ "','" +c4+ "','" +c5+ "');"; string query2="insert into db_spk_bimbel.tb_wpm(nama,c1,c2,c3,c4,c5,skor) values('" +this.namabimbel.text+ "','" +c1+ "','" +c2+ "','" +c3+ "', '" +c4+ "','" +c5+ "','" +0+ "');"; MySqlCommand MyCommand2 = new MySqlCommand(Query, MyConn2); MySqlCommand MyCommand3 = new MySqlCommand(query2, MyConn2); MySqlDataReader MyReader2; MyReader2 = MyCommand2.ExecuteReader(); Here our query will be executed and data saved into the database. MyReader2 = MyCommand3.ExecuteReader(); MessageBox.Show("Save Data"); catch (Exception ex) MessageBox.Show(ex.Message); void Unsur1SelectedIndexChanged(object sender, EventArgs e) if (c2_fasilitas.selectedindex==0) c2=1; else if (c2_fasilitas.selectedindex==1)

17 62 c2=1.5; else if (c2_fasilitas.selectedindex==2) c2=3; else if (c2_fasilitas.selectedindex==3) c2=5; void Unsur2SelectedIndexChanged(object sender, EventArgs e) if (c3_jlh_pert.selectedindex==0) c3=1; else if (c3_jlh_pert.selectedindex==1) c3=2; else if (c3_jlh_pert.selectedindex==2) c3=2.5; else if (c3_jlh_pert.selectedindex==3) c3=3; else if (c3_jlh_pert.selectedindex==4) c3=4; void Unsur3SelectedIndexChanged(object sender, EventArgs e) if (c4_jlh_lls.selectedindex==0) c4=1;

18 63 else if (c4_jlh_lls.selectedindex==1) c4=1.5; else if (c4_jlh_lls.selectedindex==2) c4=2; else if (c4_jlh_lls.selectedindex==3) c4=4; else if (c4_jlh_lls.selectedindex==4) c4=5; void Button4Click(object sender, EventArgs e) try = "server=localhost;port=3306;username=root;password="; Display query string Query = "select * from db_spk_bimbel.data_bimbel;"; MySqlCommand MyCommand2 = new MySqlCommand(Query, MyConn2); For offline connection we weill use MySqlDataAdapter class. MySqlDataAdapter MyAdapter = new MySqlDataAdapter(); MyAdapter.SelectCommand = MyCommand2; DataTable dtable = new DataTable(); DataTable dtable = new DataTable(); MyAdapter.Fill(dTable); datagridview1.datasource = dtable; here i have assign dtable object to the datagridview1 object to display

19 64 data. string MyConnectionpm = "server=localhost;port=3306;username=root;password="; Display query string Querypm = "select * from db_spk_bimbel.tb_bobot;"; MySqlConnection MyConnpm = new MySqlConnection(MyConnectionpm); MySqlCommand MyCommandpm = new MySqlCommand(Querypm, MyConnpm); MyConnpm.Open(); For offline connection we weill use MySqlDataAdapter class. MySqlDataAdapter MyAdapterpm = new MySqlDataAdapter(); MyAdapterpm.SelectCommand = MyCommandpm; DataTable dtable = new DataTable(); DataTable dtablepm = new DataTable(); MyAdapterpm.Fill(dTablepm); datagridview2.datasource = dtablepm; here i have assign dtable object to the datagridview1 object to display data. MyConnpm.Close(); resetisi(); catch (Exception ex) MessageBox.Show(ex.Message); void Button2Click(object sender, EventArgs e) resetisi(); void resetisi() namabimbel.text=""; c1_biaya.text=null; c2_fasilitas.text=null; c3_jlh_pert.text=null; c4_jlh_lls.text=null; c5_jlh_peng.text=null; void Button3Click(object sender, EventArgs e)

20 65 try = "datasource=localhost;port=3306;username=root;password="; string Query = "delete from db_spk_bimbel.data_bimbel where nama='" + this.namabimbel.text + "';"; MySqlCommand MyCommand2 = new MySqlCommand(Query, MyConn2); MySqlDataReader MyReader2; MyReader2 = MyCommand2.ExecuteReader(); MessageBox.Show("Data Deleted"); deletebobot(); deletesaw(); deletewpm(); resetisi(); catch (Exception ex) MessageBox.Show(ex.Message); void deletebobot() try = "datasource=localhost;port=3306;username=root;password="; string Query = "delete from db_spk_bimbel.tb_bobot where nama='" + this.namabimbel.text + "';"; MySqlCommand MyCommand2 = new MySqlCommand(Query, MyConn2); MySqlDataReader MyReader2; MyReader2 = MyCommand2.ExecuteReader(); MessageBox.Show("Data Deleted"); catch (Exception ex) MessageBox.Show(ex.Message);

21 66 void deletesaw() try = "datasource=localhost;port=3306;username=root;password="; string Query = "delete from db_spk_bimbel.tb_normalisasi_saw where nama='" + this.namabimbel.text + "';"; MySqlCommand MyCommand2 = new MySqlCommand(Query, MyConn2); MySqlDataReader MyReader2; MyReader2 = MyCommand2.ExecuteReader(); MessageBox.Show("Data Deleted"); catch (Exception ex) MessageBox.Show(ex.Message); void deletewpm() try = "datasource=localhost;port=3306;username=root;password="; string Query = "delete from db_spk_bimbel.tb_wpm where nama='" + this.namabimbel.text + "';"; MySqlCommand MyCommand2 = new MySqlCommand(Query, MyConn2); MySqlDataReader MyReader2; MyReader2 = MyCommand2.ExecuteReader(); MessageBox.Show("Data Deleted"); catch (Exception ex) MessageBox.Show(ex.Message);

22 67 e) void statusbiayaselectedindexchanged(object sender, EventArgs if (c1_biaya.selectedindex==0) c1=5; else if (c1_biaya.selectedindex==1) c1=3; else if (c1_biaya.selectedindex==2) c1=2.5; else if (c1_biaya.selectedindex==3) c1=2; else if (c1_biaya.selectedindex==4) c1=1; e) void jlhpengajarselectedindexchanged(object sender, EventArgs if (c5_jlh_peng.selectedindex==0) c5=1; else if (c5_jlh_peng.selectedindex==1) c5=2; else if (c5_jlh_peng.selectedindex==2) c5=2.5; else if (c5_jlh_peng.selectedindex==3) c5=3.5;

23 68 else if (c5_jlh_peng.selectedindex==3) c5=4; else if (c5_jlh_peng.selectedindex==4) c5=5; void DataGridView1CellContentClick(object sender, DataGridVie wcelleventargs e) namabimbel.text= datagridview1.rows[e.rowindex].cells[0].value.tostring(); void DataGridView2CellContentClick(object sender, DataGridVie wcelleventargs e) namabimbel.text= datagridview1.rows[e.rowindex].cells[0].value.tostring(); void DatabimbinganLoad(object sender, EventArgs e) void GroupBox2Enter(object sender, EventArgs e)

24 69 CURRICULUM VITAE Data Pribadi Nama : M. Pristian R. Tempat/Tanggal Lahir: Lhokseumawe, 16 Oktober 1992 Jenis Kelamin : Laki-laki Tinggi/Berta Badan : 165 cm / 45 kg Agama : Islam Kewarganegaraan : Indonesia Status : Belum Menikah Alamat : Jl. Perjuangan No. 8, Setia Budi Medan, Sumatera Utara No Hp : pristian.mohd@yahoo.com Riwayat Pendidikan [ ] : SD Swasta Iskandar Muda [ ] : SMP Swasta Iskandar Muda [ ] : SMA Swasta Iskandar Muda [ ] : S-1 Ilmu Komputer Kemampuan IT : Mampu mengoperasikan Microsoft Office (Ms.Word, Ms.Excel, Ms.Power Point). Mampu mengoperasikan Adobe Photoshop Kemampuan Bahasa:

25 70 Bahasa Inggris Bahasa Indonesia

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent()

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent() A-1 LISTING PROGRAM Form Mainform /* * Created by SharpDevelop. * User: Roni Anggara * Date: 5/17/2016 * Time: 8:52 PM * * To change this template use Tools Options Coding Edit Standard Headers. */ using

More information

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent() call. //

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent() call. // 1. MainForm.cs using System.Collections.Generic; using System.Drawing; LISTING PROGRAM / / Description of MainForm. / public partial class MainForm : Form public MainForm() The InitializeComponent()

More information

LAMPIRAN A : LISTING PROGRAM

LAMPIRAN A : LISTING PROGRAM LAMPIRAN A : LISTING PROGRAM 1. Form Utama (Cover) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text;

More information

LAMPIRAN A LISTING PROGRAM

LAMPIRAN A LISTING PROGRAM A-1 LAMPIRAN A LISTING PROGRAM FUNGSI public void StopWatchStart() stopwatch.reset(); stopwatch.start(); Cursor.Current = Cursors.WaitCursor; txtlog.text = ""; public void StopWatchStop(string Title) stopwatch.stop();

More information

A-1 LISTING PROGRAM. 1. Form1.cs. Universitas Sumatera Utara

A-1 LISTING PROGRAM. 1. Form1.cs. Universitas Sumatera Utara A-1 LISTING PROGRAM 1. Form1.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using IronPython.Hosting; using Microsoft.Scripting;

More information

LISTING PROGRAM. void KOMPRESIToolStripMenuItemClick(object sender, EventArgs e) { Kompresi k = new Kompresi(); k.show(); this.

LISTING PROGRAM. void KOMPRESIToolStripMenuItemClick(object sender, EventArgs e) { Kompresi k = new Kompresi(); k.show(); this. A - 1 LISTING PROGRAM 1. Form Menu Utama using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; namespace KompresiCitra / / Description of MainForm.

More information

CALCULATOR APPLICATION

CALCULATOR APPLICATION CALCULATOR APPLICATION Form1.cs 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

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

LISTING PROGRAM. a = b; b = c; c = a + b; } fibs.reverse(); for (int i = 0; i < fibs.count; i++) { if (n >= fibs[i]) { n = n - fibs[i];

LISTING PROGRAM. a = b; b = c; c = a + b; } fibs.reverse(); for (int i = 0; i < fibs.count; i++) { if (n >= fibs[i]) { n = n - fibs[i]; A-1 A LISTING PROGRAM 1. Fibonacci Code //membuat fungsi Fibonacci Code public static String GetFibonacciCode(int n) { StringBuilder fib = new StringBuilder("1"); int a, b, c; List fibs = new List();

More information

LISTING PROGRAM. 1. Module SkripsiUmri.py. import sys, operator, codecs, time. class Timer(object): def init (self): self.t1= time.

LISTING PROGRAM. 1. Module SkripsiUmri.py. import sys, operator, codecs, time. class Timer(object): def init (self): self.t1= time. A1 LISTING PROGRAM 1. Module SkripsiUmri.py import sys, operator, codecs, time class Timer(object): def init (self): self.t1= time.time() def getelapsedltime(self): # gets total elapsed from class initialsation

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

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

private void closetoolstripmenuitem_click(object sender, EventArgs e) { this.close(); }

private void closetoolstripmenuitem_click(object sender, EventArgs e) { this.close(); } MEMBER PAYMENTS FORM public partial class MemberPaymentsForm : Form public MemberPaymentsForm() private void MemberPaymentsForm_Load(object sender, EventArgs e) // TODO: This line of code loads data into

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

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

Listing Program. private void exittoolstripmenuitem_click(object sender, EventArgs e) { Application.Exit(); }

Listing Program. private void exittoolstripmenuitem_click(object sender, EventArgs e) { Application.Exit(); } Listing Program Kode Program Menu Home: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using

More information

LISTING PROGRAM. void FilteringToolStripMenuItemClick(object sender, EventAr s e) { Filtering a = new Filtering(); this.hide(); a.

LISTING PROGRAM. void FilteringToolStripMenuItemClick(object sender, EventAr s e) { Filtering a = new Filtering(); this.hide(); a. 130 LISTING PROGRAM 1. Mainform.cs using System; using System.Drawing; using System.Windows.Forms; namespace AnalisisPerbandinganFilertingdanDeteksiTepi public partial class MainForm : Form public MainForm()

More information

Overview. Building a Web-Enabled Decision Support System. Integrating DSS in Business Curriculum. Introduction to DatabaseSupport Systems

Overview. Building a Web-Enabled Decision Support System. Integrating DSS in Business Curriculum. Introduction to DatabaseSupport Systems Excel and C# Overview Introduction to DatabaseSupport Systems Building a Web-Enabled Decision Support System Integrating DSS in Business Curriculum 2 Decision Support Systems (DSS) A decision support system

More information

LISTING PROGRAM. mainform.vb A-1. Universitas Sumatera Utara

LISTING PROGRAM. mainform.vb A-1. Universitas Sumatera Utara A-1 LISTING PROGRAM mainform.vb Imports System.IO Public Class mainform Private Sub mainform_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load enkripsirb.checked = True

More information

Team project 2017 Dony Pratidana S. Hum Bima Agus Setyawan S. IIP

Team project 2017 Dony Pratidana S. Hum Bima Agus Setyawan S. IIP Hak cipta dan penggunaan kembali: Lisensi ini mengizinkan setiap orang untuk menggubah, memperbaiki, dan membuat ciptaan turunan bukan untuk kepentingan komersial, selama anda mencantumkan nama penulis

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

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

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

بسم هللا الرحمن الرحيم المحاضرة السابعة مستوى ثالث علوم حاسوب برمجة مرئية 2 )عملي ) جامعة الجزيرة محافظة اب الجمهورية اليمنية النافذة الرئيسية

بسم هللا الرحمن الرحيم المحاضرة السابعة مستوى ثالث علوم حاسوب برمجة مرئية 2 )عملي ) جامعة الجزيرة محافظة اب الجمهورية اليمنية النافذة الرئيسية بسم هللا الرحمن الرحيم المحاضرة السابعة مستوى ثالث علوم حاسوب برمجة مرئية 2 )عملي ) جامعة الجزيرة محافظة اب الجمهورية اليمنية النافذة الرئيسية وتمتلك الشفرة البرمجية التالية : زر االقسام fr_dept fd = new

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

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

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

Lampiran 2 MASTER TABEL

Lampiran 2 MASTER TABEL 64 Lampiran 2 MASTER TABEL No. No. Responden Umur Pendidikan Pekerjaan Paritas Kanker 1 427363 35 S1 PNS 4 Tidak 2 504024 36 SMA IRT 4 Tidak 3 500316 35 SMA IRT 5 Tidak 4 504014 35 SMA PNS 1 Tidak 5 447158

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

LISTING PROGRAM. private void filetoolstripmenuitem_click(object sender, EventArgs e) { this.hide(); Form2 fr = new Form2(); fr.

LISTING PROGRAM. private void filetoolstripmenuitem_click(object sender, EventArgs e) { this.hide(); Form2 fr = new Form2(); fr. Kode Program Form Home namespace SkripsiLagi public partial class Form9 : Form public Form9() LISTING PROGRAM private void filetoolstripmenuitem_click(object sender, EventArgs e) Form2 fr = new Form2();

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

string spath; string sedifile = "277_005010X228.X12"; string sseffile = "277_005010X228.SemRef.EVAL0.SEF";

string spath; string sedifile = 277_005010X228.X12; string sseffile = 277_005010X228.SemRef.EVAL0.SEF; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Edidev.FrameworkEDI; 1 namespace

More information

MySQL Connector/NET Developer Guide

MySQL Connector/NET Developer Guide MySQL Connector/NET Developer Guide Abstract This manual describes how to install and configure MySQL Connector/NET, the connector that enables.net applications to communicate with MySQL servers, and how

More information

LISTING PROGRAM. namespace vigenere_des { public partial class MainPage : PhoneApplicationPage { public MainPage() { InitializeComponent(); }

LISTING PROGRAM. namespace vigenere_des { public partial class MainPage : PhoneApplicationPage { public MainPage() { InitializeComponent(); } 59 LISTING PROGRAM Form Utama : using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Navigation;

More information

عنوان مقاله : خواندن و نوشتن محتوای فایل های Excel بدون استفاده ازAutomation Excel تهیه وتنظیم کننده : مرجع تخصصی برنامه نویسان

عنوان مقاله : خواندن و نوشتن محتوای فایل های Excel بدون استفاده ازAutomation Excel تهیه وتنظیم کننده : مرجع تخصصی برنامه نویسان در این مقاله با دو روش از روشهای خواندن اطالعات از فایل های اکسل و نوشتن آنها در DataGridView بدون استفاده از ( Automation Excelبا استفاده از NPOI و( ADO.Net آشنا میشوید. راه اول : با استفاده از (xls)

More information

// Program 2 - Extra Credit // CIS // Spring // Due: 3/11/2015. // By: Andrew L. Wright. //Edited by : Ben Spalding

// Program 2 - Extra Credit // CIS // Spring // Due: 3/11/2015. // By: Andrew L. Wright. //Edited by : Ben Spalding // Program 2 - Extra Credit // CIS 200-01 // Spring 2015 // Due: 3/11/2015 // By: Andrew L. Wright //Edited by : Ben Spalding // File: Prog2Form.cs // This class creates the main GUI for Program 2. It

More information

UNIT - III BUILDING WINDOWS APPLICATION GENERAL WINDOWS CONTROLS FOR THE WINDOWS APPLICATION

UNIT - III BUILDING WINDOWS APPLICATION GENERAL WINDOWS CONTROLS FOR THE WINDOWS APPLICATION UNIT - III BUILDING WINDOWS APPLICATION GENERAL WINDOWS CONTROLS FOR THE WINDOWS APPLICATION 1 SLNO CONTROL NAME SLNO CONTROL NAME 1. Button 9. PictureBox 2. Checkbox 3. RadioButton 4. Label 5. Textbox

More information

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent()

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent() A- 1 LISTING PROGRAM Form1.cs (Pengirim) /* * Created by SharpDevelop. * User: Lia * Date: 3/13/2017 * Time: 9:43 PM * * To change this template use Tools Options Coding Edit Standard Headers. */ using

More information

First start a new Windows Form Application from C# and name it Interest Calculator. We need 3 text boxes. 4 labels. 1 button

First start a new Windows Form Application from C# and name it Interest Calculator. We need 3 text boxes. 4 labels. 1 button Create an Interest Calculator with C# In This tutorial we will create an interest calculator in Visual Studio using C# programming Language. Programming is all about maths now we don t need to know every

More information

LISTING PROGRAM. % UIWAIT makes pertama wait for user response (see UIRESUME) % uiwait(handles.figure1);

LISTING PROGRAM. % UIWAIT makes pertama wait for user response (see UIRESUME) % uiwait(handles.figure1); LISTING PROGRAM FORM PERTAMA : function varargout = pertama(varargin) gui_singleton = 1; gui_state = struct('gui_name', mfilename,... 'gui_singleton', gui_singleton,... 'gui_openingfcn', @pertama_openingfcn,...

More information

MySQL Connector/Net Developer Guide

MySQL Connector/Net Developer Guide MySQL Connector/Net Developer Guide Abstract This manual describes how to install and configure MySQL Connector/Net, the connector that enables.net applications to communicate with MySQL servers, and how

More information

LAMPIRAN. Universitas Sumatera Utara

LAMPIRAN. Universitas Sumatera Utara 67 LAMPIRAN Lampiran A-1 Listing Program Visual Basic Private Sub mn_isidata_click() frm_isi_data.show Me.Hide Private Sub mn_koneksiport_click() frm_koneksi_port.show Me.Hide Private Sub mn_tentang_click()

More information

Answer on Question# Programming, C#

Answer on Question# Programming, C# Answer on Question#38723 - Programming, C# 1. The development team of SoftSols Inc. has revamped the software according to the requirements of FlyHigh Airlines and is in the process of testing the software.

More information

MySQL Connector/Net Developer Guide

MySQL Connector/Net Developer Guide MySQL Connector/Net Developer Guide Abstract This manual describes how to install and configure MySQL Connector/Net, the connector that enables.net applications to communicate with MySQL servers, and how

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

// Specify SEF file to load. oschema = (edischema) oedidoc.loadschema(spath + sseffilename, SchemaTypeIDConstants. Schema_Standard_Exchange_Format);

// Specify SEF file to load. oschema = (edischema) oedidoc.loadschema(spath + sseffilename, SchemaTypeIDConstants. Schema_Standard_Exchange_Format); 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 Edidev.FrameworkEDI;

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

} } public void getir() { DataTable dt = vt.dtgetir("select* from stok order by stokadi");

} } public void getir() { DataTable dt = vt.dtgetir(select* from stok order by stokadi); Form1 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

Listing Progam. Universitas Sumatera Utara

Listing Progam. Universitas Sumatera Utara 60 Listing Progam Listing Program Tabel Index

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

// Precondition: None // Postcondition: The address' name has been set to the // specified value set;

// Precondition: None // Postcondition: The address' name has been set to the // specified value set; // File: Address.cs // This classes stores a typical US address consisting of name, // two address lines, city, state, and 5 digit zip code. using System; using System.Collections.Generic; using System.Linq;

More information

เว บแอพล เคช น. private void Back_Click(object sender, EventArgs e) { this.webbrowser2.goback(); }

เว บแอพล เคช น. private void Back_Click(object sender, EventArgs e) { this.webbrowser2.goback(); } เว บแอพล เคช น 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; namespace

More information

Chapter 12. Tool Strips, Status Strips, and Splitters

Chapter 12. Tool Strips, Status Strips, and Splitters Chapter 12 Tool Strips, Status Strips, and Splitters Tool Strips Usually called tool bars. The new ToolStrip class replaces the older ToolBar class of.net 1.1. Create easily customized, commonly employed

More information

Quick Guide for the ServoWorks.NET API 2010/7/13

Quick Guide for the ServoWorks.NET API 2010/7/13 Quick Guide for the ServoWorks.NET API 2010/7/13 This document will guide you through creating a simple sample application that jogs axis 1 in a single direction using Soft Servo Systems ServoWorks.NET

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

// Specify SEF file to load. edischema oschema = oedidoc.loadschema(spath + sseffilename, SchemaTypeIDConstants. Schema_Standard_Exchange_Format);

// Specify SEF file to load. edischema oschema = oedidoc.loadschema(spath + sseffilename, SchemaTypeIDConstants. Schema_Standard_Exchange_Format); 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 Edidev.FrameworkEDIx64;

More information

COMPUTER SCIENCE 260CT SOFTWARE ENGINEERING

COMPUTER SCIENCE 260CT SOFTWARE ENGINEERING COMPUTER SCIENCE 260CT SOFTWARE ENGINEERING Module Leader: Yih Ling AJR BOOKING SYSTEM CREATED A SKI BOOKING SYSTEM USING C# ACCORDING TO THE CLIENTS SPECIFICATION User: Jubad Miah Miahj5@uni.coventry.ac.uk

More information

namespace csharp_gen277x214 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }

namespace csharp_gen277x214 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } using System using System.Collections.Generic using System.ComponentModel using System.Data using System.Drawing using System.Text using System.Windows.Forms using Edidev.FrameworkEDI 1 namespace csharp_gen277x214

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

Conventions in this tutorial

Conventions in this tutorial This document provides an exercise using Digi JumpStart for Windows Embedded CE 6.0. This document shows how to develop, run, and debug a simple application on your target hardware platform. This tutorial

More information

namespace Gen837X222A1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }

namespace Gen837X222A1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Edidev.FrameworkEDI; 1 namespace

More information

Lampiran B. Program pengendali

Lampiran B. Program pengendali Lampiran B Program pengendali #pragma once namespace serial using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms;

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

LAMPIRAN A: Listing Program

LAMPIRAN A: Listing Program 78 LAMPIRAN A: Listing Program 1. Form Login Public Class FrmLogin Public user As String Private Sub CmdLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdLogin.Click Dim

More information

Network Operation System. netstat. ipconfig/tracert/ping. nslookup EEE 448 Computer Networks

Network Operation System. netstat. ipconfig/tracert/ping. nslookup EEE 448 Computer Networks EEE 448 Computer Networks with (Network Programming) Lecture #4 Dept of Electrical and Electronics Engineering Çukurova University Network Operation System When you are on the internet or are working in

More information

namespace csharp_gen837x223a2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }

namespace csharp_gen837x223a2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Edidev.FrameworkEDI; 1 namespace

More information

Class Test 4. Question 1. Use notepad to create a console application that displays a stick figure. See figure 1. Question 2

Class Test 4. Question 1. Use notepad to create a console application that displays a stick figure. See figure 1. Question 2 Class Test 4 Marks will be deducted for each of the following: -5 for each class/program that does not contain your name and student number at the top. -2 If program is named anything other than Question1,

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

Using Template Bookmarks for Automating Microsoft Word Reports

Using Template Bookmarks for Automating Microsoft Word Reports Using Template Bookmarks for Automating Microsoft Word Reports Darryl Bryk U.S. Army RDECOM-TARDEC Warren, MI 48397 Disclaimer: Reference herein to any specific commercial company, product, process, or

More information

Tutorial 5 Completing the Inventory Application Introducing Programming

Tutorial 5 Completing the Inventory Application Introducing Programming 1 Tutorial 5 Completing the Inventory Application Introducing Programming Outline 5.1 Test-Driving the Inventory Application 5.2 Introduction to C# Code 5.3 Inserting an Event Handler 5.4 Performing a

More information

LIGHT_P_TOGGLE, LIGHT_N_TOGGLE, BATTERY_TOGGLE, ALTERNATOR_TOGGLE, AVIONICS_TOGGLE, FLOAT_RETRACT, FLOAT_EXTEND }

LIGHT_P_TOGGLE, LIGHT_N_TOGGLE, BATTERY_TOGGLE, ALTERNATOR_TOGGLE, AVIONICS_TOGGLE, FLOAT_RETRACT, FLOAT_EXTEND } using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO.Ports; using Microsoft.FlightSimulator.SimConnect;

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

This is the start of the server code

This is the start of the server code This is the start of the server code using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Net; using System.Net.Sockets;

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

APÉNDICE J. CÓDIGO DEL ARCHIVO FORM1.CS EN LENGUAJE C# Comprende:

APÉNDICE J. CÓDIGO DEL ARCHIVO FORM1.CS EN LENGUAJE C# Comprende: APÉNDICE J. CÓDIGO DEL ARCHIVO FORM1.CS EN LENGUAJE C# Comprende: Interfaz gráfica de wiimocap. Obtención de las variables de los tres acelerómetros. Algoritmos de reconocimiento de posiciones. Inclinación

More information

User-Defined Controls

User-Defined Controls C# cont d (C-sharp) (many of these slides are extracted and adapted from Deitel s book and slides, How to Program in C#. They are provided for CSE3403 students only. Not to be published or publicly distributed

More information

private void Form1_Load(object sender, EventArgs e) {

private void Form1_Load(object sender, EventArgs e) { viii LAMPIRAN LISTING PROGRAM 1. Form Home using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using

More information

Representing Recursive Relationships Using REP++ TreeView

Representing Recursive Relationships Using REP++ TreeView Representing Recursive Relationships Using REP++ TreeView Author(s): R&D Department Publication date: May 4, 2006 Revision date: May 2010 2010 Consyst SQL Inc. All rights reserved. Representing Recursive

More information

Visual Basic/C# Programming (330)

Visual Basic/C# Programming (330) Page 1 of 16 Visual Basic/C# Programming (330) REGIONAL 2016 Program: Character Stats (400 points) TOTAL POINTS (400 points) Judge/Graders: Please double check and verify all scores and answer keys! Property

More information

Inheriting Windows Forms with Visual C#.NET

Inheriting Windows Forms with Visual C#.NET Inheriting Windows Forms with Visual C#.NET Overview In order to understand the power of OOP, consider, for example, form inheritance, a new feature of.net that lets you create a base form that becomes

More information

Create your own Meme Maker in C#

Create your own Meme Maker in C# Create your own Meme Maker in C# This tutorial will show how to create a meme maker in visual studio 2010 using C#. Now we are using Visual Studio 2010 version you can use any and still get the same result.

More information

Developing for Mobile Devices Lab (Part 1 of 2)

Developing for Mobile Devices Lab (Part 1 of 2) Developing for Mobile Devices Lab (Part 1 of 2) Overview Through these two lab sessions you will learn how to create mobile applications for Windows Mobile phones and PDAs. As developing for Windows Mobile

More information

Classes in C# namespace classtest { public class myclass { public myclass() { } } }

Classes in C# namespace classtest { public class myclass { public myclass() { } } } Classes in C# A class is of similar function to our previously used Active X components. The difference between the two is the components are registered with windows and can be shared by different applications,

More information

namespace Tst_Form { private: /// <summary> /// Required designer variable. /// </summary> System::ComponentModel::Container ^components;

namespace Tst_Form { private: /// <summary> /// Required designer variable. /// </summary> System::ComponentModel::Container ^components; Exercise 9.3 In Form1.h #pragma once #include "Form2.h" Add to the beginning of Form1.h #include #include For srand() s input parameter namespace Tst_Form using namespace System; using

More information

A-1 LAMPIRAN A LISTING PROGRAM. Kode Program Form Main: Universitas Sumatera Utara

A-1 LAMPIRAN A LISTING PROGRAM. Kode Program Form Main: Universitas Sumatera Utara A-1 LAMPIRAN A A LISTING PROGRAM Kode Program Form Main: #Region Project Attributes #ApplicationLabel: Samuel Panjaitan #VersionCode: 1 #VersionName: #SupportedOrientations: portrait #CanInstallToExternalStorage:

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

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

Yes, this is still a listbox!

Yes, this is still a listbox! Yes, this is still a listbox! Step 1: create a new project I use the beta 2 of Visual Studio 2008 ( codename Orcas ) and Expression Blend 2.0 September preview for this tutorial. You can download the beta2

More information

II. Programming Technologies

II. Programming Technologies II. Programming Technologies II.1 The machine code program Code of algorithm steps + memory addresses: MOV AX,1234h ;0B8h 34h 12h - number (1234h) to AX register MUL WORD PTR [5678h] ;0F7h 26h 78h 56h

More information

Click on the empty form and apply the following options to the properties Windows.

Click on the empty form and apply the following options to the properties Windows. Start New Project In Visual Studio Choose C# Windows Form Application Name it SpaceInvaders and Click OK. Click on the empty form and apply the following options to the properties Windows. This is the

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

IOSR Journal of Engineering (IOSRJEN) e-issn: , p-issn: Vol. 3, Issue 8 (August. 2013), V3 PP 25-33

IOSR Journal of Engineering (IOSRJEN) e-issn: , p-issn: Vol. 3, Issue 8 (August. 2013), V3 PP 25-33 IOSR Journal of Engineering (IOSRJEN) e-issn: 2250-3021, p-issn: 2278-8719 Vol. 3, Issue 8 (August. 2013), V3 PP 25-33 Designing and Prototyping Encryptions Algorithms: Working As Secure M-Commerce Transaction

More information

Tutorial 6 Enhancing the Inventory Application Introducing Variables, Memory Concepts and Arithmetic

Tutorial 6 Enhancing the Inventory Application Introducing Variables, Memory Concepts and Arithmetic Tutorial 6 Enhancing the Inventory Application Introducing Variables, Memory Concepts and Arithmetic Outline 6.1 Test-Driving the Enhanced Inventory Application 6.2 Variables 6.3 Handling the TextChanged

More information

NI USB-TC01 Thermocouple Measurement Device

NI USB-TC01 Thermocouple Measurement Device Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics NI USB-TC01 Thermocouple Measurement Device HANS- PETTER HALVORSEN, 2013.02.18 Faculty of Technology,

More information

Unity and MySQL. Versions: Unity 3.0.0f5; MySQL Author: Jonathan Wood. Alias: Zumwalt. Date: 10/8/2010. Updated: 10/12/2010 to include JS code

Unity and MySQL. Versions: Unity 3.0.0f5; MySQL Author: Jonathan Wood. Alias: Zumwalt. Date: 10/8/2010. Updated: 10/12/2010 to include JS code Versions: Unity 3.0.0f5; MySQL 5.2.28 Author: Jonathan Wood Alias: Zumwalt Date: 10/8/2010 Updated: 10/12/2010 to include JS code Document Version 1.0.1 Unity and MySQL Table of Contents Unity and MySQL...

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

Appendix A Programkod

Appendix A Programkod Appendix A Programkod ProgramForm.cs using System; using System.Text; using System.Windows.Forms; using System.Net; using System.IO; using System.Text.RegularExpressions; using System.Collections.Generic;

More information

1. Windows Forms 2. Event-Handling Model 3. Basic Event Handling 4. Control Properties and Layout 5. Labels, TextBoxes and Buttons 6.

1. Windows Forms 2. Event-Handling Model 3. Basic Event Handling 4. Control Properties and Layout 5. Labels, TextBoxes and Buttons 6. C# cont d (C-sharp) (many of these slides are extracted and adapted from Deitel s book and slides, How to Program in C#. They are provided for CSE3403 students only. Not to be published or publicly distributed

More information

C:\homeworks\PenAttention_v13_src\PenAttention_v13_src\PenAttention4\PenAttention\PenAttention.cs 1 using System; 2 using System.Diagnostics; 3 using

C:\homeworks\PenAttention_v13_src\PenAttention_v13_src\PenAttention4\PenAttention\PenAttention.cs 1 using System; 2 using System.Diagnostics; 3 using 1 using System; 2 using System.Diagnostics; 3 using System.Collections.Generic; 4 using System.ComponentModel; 5 using System.Data; 6 using System.Drawing; 7 using System.Text; 8 using System.Windows.Forms;

More information

PS2 Random Walk Simulator

PS2 Random Walk Simulator PS2 Random Walk Simulator Windows Forms Global data using Singletons ArrayList for storing objects Serialization to Files XML Timers Animation This is a fairly extensive Problem Set with several new concepts.

More information