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

Size: px
Start display at page:

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

Transcription

1 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 System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; using MySql.Data.MySqlClient; using System.Data; namespace ronianggara / <summary> / Description of MainForm. / </summary> public partial class MainForm : Form MySqlConnection c = new MySqlConnection("Server=localhost;Database=gym;Uid=root;"); public MainForm() The InitializeComponent() call is required for Windows Forms designer support. InitializeComponent(); call. TODO: Add constructor code after the InitializeComponent() void BAYESToolStripMenuItemClick(object sender, EventArgs e) Form pindah = new ProfileMatching(); pindah.showdialog(); void TOPSISToolStripMenuItemClick(object sender, EventArgs e)

2 A-2 Form pindah = new TOPSIS(); pindah.showdialog(); void MainFormLoad(object sender, EventArgs e) segar(); public void segar() c.open(); datagridview1.columns.clear(); DataTable dt = new DataTable(); MySqlDataAdapter da = new MySqlDataAdapter("select * from data", c); da.fill(dt); datagridview1.datasource = dt.defaultview; datagridview1.columns[0].width = 50; datagridview1.columns[0].defaultcellstyle.alignment = DataGridViewContentAlignment.MiddleCenter; datagridview1.columns[1].width = 150; datagridview1.columns[1].defaultcellstyle.alignment = DataGridViewContentAlignment.MiddleLeft; datagridview1.columns[2].width = 50; datagridview1.columns[2].defaultcellstyle.alignment = DataGridViewContentAlignment.MiddleCenter; datagridview1.columns[3].width = 40; datagridview1.columns[3].defaultcellstyle.alignment = DataGridViewContentAlignment.MiddleCenter; datagridview1.columns[4].width = 70; datagridview1.columns[4].defaultcellstyle.alignment = DataGridViewContentAlignment.MiddleCenter; datagridview1.columns[5].width = 60; datagridview1.columns[5].defaultcellstyle.alignment = DataGridViewContentAlignment.MiddleCenter; DataGridViewButtonColumn tambah_jumlah = new DataGridViewButtonColumn(); tambah_jumlah.text = "Edit Data"; tambah_jumlah.usecolumntextforbuttonvalue = true; datagridview1.columns.add(tambah_jumlah); DataGridViewButtonColumn tambah_jumlahh = new DataGridViewButtonColumn(); tambah_jumlahh.text = "Delete Data"; tambah_jumlahh.usecolumntextforbuttonvalue = true; datagridview1.columns.add(tambah_jumlahh); c.close(); void MetodeToolStripMenuItemClick(object sender, EventArgs e)

3 A-3 void Button3Click(object sender, EventArgs e) Form pindah = new editdata(); pindah.showdialog(); void PictureBox1Click(object sender, EventArgs e) void Button1Click(object sender, EventArgs e) Form pindah = new inputdata(); pindah.showdialog(); segar(); void Button2Click(object sender, EventArgs e) Form pindah = new deletedata(); pindah.showdialog(); void PerbandinganToolStripMenuItemClick(object sender, EventArgs e) Form pindah = new Perbandingan(); pindah.showdialog(); void DataGridView1CellContentClick(object sender, DataGridViewCellEve ntargs e) c.open(); int col = e.columnindex, row = e.rowindex; DialogResult dialogresult = MessageBox.Show("Sure", "Some Title", MessageBoxButtons.YesNo); if(col.equals(6)) if(dialogresult == DialogResult.Yes) MySqlCommand cmd = new MySqlCommand("update data set nama_gym ='" + datagridview1[1, row].value.tostring() + "', fasilitas = '" + datagridview1[2, row].value.tostring() + "', harga ='" + datagridview1[3, row].value.tostring() + "', kenyamanan ='" + datagridview1[4, row].value.tostring() + "', keamanan='" + datagridview1[5, row].value.tostring() + "'where no ='"+datagridview1[0, row].value.tostring()+"'", c); cmd.executenonquery(); MessageBox.Show("Data siswa berhasil

4 diubah","informasi",messageboxbuttons.ok,messageboxicon.information,messagebo xdefaultbutton.button1); else if (dialogresult == DialogResult.No) do something else else if(col.equals(7)) if(dialogresult == DialogResult.Yes) MySqlCommand cmd = new MySqlCommand("delete from data where no ='"+datagridview1[0, row].value.tostring()+"'", c); cmd.executenonquery(); else if (dialogresult == DialogResult.No) do something else c.close(); segar(); A-4 gs e) void MenuStrip1ItemClicked(object sender, ToolStripItemClickedEventAr void ContextMenuStrip1Opening(object sender, System.ComponentModel.Ca nceleventargs e) Form Inputdata /* * Created by SharpDevelop. * User: Roni Anggara * Date: 5/21/2016 * Time: 8:33 PM * * To change this template use Tools Options Coding Edit Standard Headers. */ using System; using System.Collections.Generic; using System.Drawing;

5 A-5 using System.Windows.Forms; using MySql.Data.MySqlClient; using System.Data; namespace ronianggara / <summary> / Description of inputdata. / </summary> public partial class inputdata : Form MySqlConnection c = new MySqlConnection("Server=localhost;Database=gym;Uid=root;"); public inputdata() The InitializeComponent() call is required for Windows Forms designer support. InitializeComponent(); call. TODO: Add constructor code after the InitializeComponent() void Button1Click(object sender, EventArgs e) if (textbox1.text == "" textbox2.text == "" textbox3.text == "" textbox4.text == "" textbox5.text == "" textbox6.text == "") MessageBox.Show("ada data yang belum terisi"); else c.open(); MySqlCommand cmd = new MySqlCommand("insert into data values('"+textbox1.text+"','" + textbox2.text + "','" + textbox3.text + "','" + textbox4.text + "','" + textbox5.text + "','" + textbox6.text + "')", c); cmd.executenonquery(); MessageBox.Show("data berhasil disimpan"); c.close(); textbox1.text = ""; textbox2.text = ""; textbox3.text = ""; textbox4.text = "";

6 A-6 Form ProfileMatching /* * Created by SharpDevelop. * User: Roni Anggara * Date: 11/3/2016 * Time: 7:53 PM * * To change this template use Tools Options Coding Edit Standard Headers. */ namespace ronianggara partial class ProfileMatching / <summary> / Designer variable used to keep track of non-visual components. / </summary> private System.ComponentModel.IContainer components = null; / <summary> / Disposes resources used by the form. / </summary> / <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) if (disposing) if (components!= null) components.dispose(); base.dispose(disposing); / <summary> / This method is required for Windows Forms designer support. / Do not change the method contents inside the source code editor. The Forms designer might / not be able to load this method if it was changed manually. / </summary> private void InitializeComponent() this.label1 = new System.Windows.Forms.Label(); this.textbox1 = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.textbox2 = new System.Windows.Forms.TextBox(); this.textbox3 = new System.Windows.Forms.TextBox(); this.textbox4 = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.textbox5 = new System.Windows.Forms.TextBox(); this.textbox6 = new System.Windows.Forms.TextBox();

7 this.label7 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.datagridview1 = new System.Windows.Forms.DataGridView(); this.button1 = new System.Windows.Forms.Button(); this.datagridview2 = new System.Windows.Forms.DataGridView(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)). BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)). BeginInit(); this.suspendlayout(); label1 this.label1.location = new System.Drawing.Point(36, 89); this.label1.name = "label1"; this.label1.size = new System.Drawing.Size(72, 23); this.label1.tabindex = 0; this.label1.text = "fasilitas"; textbox1 this.textbox1.location = new System.Drawing.Point(164, 83); this.textbox1.name = "textbox1"; this.textbox1.size = new System.Drawing.Size(100, 20); this.textbox1.tabindex = 1; this.textbox1.text = "8"; label2 this.label2.location = new System.Drawing.Point(36, 112); this.label2.name = "label2"; this.label2.size = new System.Drawing.Size(72, 23); this.label2.tabindex = 2; this.label2.text = "harga"; label3 this.label3.location = new System.Drawing.Point(36, 135); this.label3.name = "label3"; this.label3.size = new System.Drawing.Size(72, 23); this.label3.tabindex = 3; this.label3.text = "kenyamanan"; label4 this.label4.location = new System.Drawing.Point(36, 158); this.label4.name = "label4"; this.label4.size = new System.Drawing.Size(72, 23); this.label4.tabindex = 4; this.label4.text = "keamanan"; textbox2 this.textbox2.location = new System.Drawing.Point(164, 109); this.textbox2.name = "textbox2"; A-7

8 A-8 this.textbox2.size = new System.Drawing.Size(100, 20); this.textbox2.tabindex = 5; this.textbox2.text = "7"; textbox3 this.textbox3.location = new System.Drawing.Point(164, 135); this.textbox3.name = "textbox3"; this.textbox3.size = new System.Drawing.Size(100, 20); this.textbox3.tabindex = 6; this.textbox3.text = "7"; textbox4 this.textbox4.location = new System.Drawing.Point(164, 161); this.textbox4.name = "textbox4"; this.textbox4.size = new System.Drawing.Size(100, 20); this.textbox4.tabindex = 7; this.textbox4.text = "6"; label5 this.label5.location = new System.Drawing.Point(36, 267); this.label5.name = "label5"; this.label5.size = new System.Drawing.Size(100, 23); this.label5.tabindex = 8; this.label5.text = "core factor"; label6 this.label6.location = new System.Drawing.Point(36, 304); this.label6.name = "label6"; this.label6.size = new System.Drawing.Size(100, 23); this.label6.tabindex = 9; this.label6.text = "secondary factor"; textbox5 this.textbox5.location = new System.Drawing.Point(164, 270); this.textbox5.name = "textbox5"; this.textbox5.size = new System.Drawing.Size(100, 20); this.textbox5.tabindex = 10; this.textbox5.text = "60"; textbox6 this.textbox6.location = new System.Drawing.Point(164, 307); this.textbox6.name = "textbox6"; this.textbox6.size = new System.Drawing.Size(100, 20); this.textbox6.tabindex = 11; this.textbox6.text = "40"; label7 this.label7.location = new System.Drawing.Point(82, 47);

9 this.label7.name = "label7"; this.label7.size = new System.Drawing.Size(100, 23); this.label7.tabindex = 12; this.label7.text = "Nilai Ideal"; label8 this.label8.location = new System.Drawing.Point(82, 227); this.label8.name = "label8"; this.label8.size = new System.Drawing.Size(100, 23); this.label8.tabindex = 13; this.label8.text = "Persentase"; datagridview1 this.datagridview1.columnheadersheightsizemode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.datagridview1.location = new System.Drawing.Point(287, 12); this.datagridview1.name = "datagridview1"; this.datagridview1.size = new System.Drawing.Size(439, 198); this.datagridview1.tabindex = 14; button1 this.button1.location = new System.Drawing.Point(426, 244); this.button1.name = "button1"; this.button1.size = new System.Drawing.Size(120, 46); this.button1.tabindex = 15; this.button1.text = "hitung"; this.button1.usevisualstylebackcolor = true; this.button1.click += new System.EventHandler(this.Button1Click); datagridview2 this.datagridview2.allowusertoaddrows = false; this.datagridview2.allowusertodeleterows = false; this.datagridview2.columnheadersheightsizemode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.datagridview2.location = new System.Drawing.Point(12, 12); this.datagridview2.name = "datagridview2"; this.datagridview2.size = new System.Drawing.Size(10, 10); this.datagridview2.tabindex = 16; this.datagridview2.visible = false; ProfileMatching this.autoscaledimensions = new System.Drawing.SizeF(6F, 13F); this.autoscalemode = System.Windows.Forms.AutoScaleMode.Font; this.clientsize = new System.Drawing.Size(754, 336); this.controls.add(this.datagridview2); this.controls.add(this.button1); this.controls.add(this.datagridview1); this.controls.add(this.label8); this.controls.add(this.label7); this.controls.add(this.textbox6); A-9

10 A-10 this.controls.add(this.textbox5); this.controls.add(this.label6); this.controls.add(this.label5); this.controls.add(this.textbox4); this.controls.add(this.textbox3); this.controls.add(this.textbox2); this.controls.add(this.label4); this.controls.add(this.label3); this.controls.add(this.label2); this.controls.add(this.textbox1); this.controls.add(this.label1); this.name = "ProfileMatching"; this.text = "ProfileMatching"; ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)). EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)). EndInit(); this.resumelayout(false); this.performlayout(); private System.Windows.Forms.DataGridView datagridview2; private System.Windows.Forms.Button button1; private System.Windows.Forms.DataGridView datagridview1; private System.Windows.Forms.Label label8; private System.Windows.Forms.Label label7; private System.Windows.Forms.TextBox textbox6; private System.Windows.Forms.TextBox textbox5; private System.Windows.Forms.Label label6; private System.Windows.Forms.Label label5; private System.Windows.Forms.TextBox textbox4; private System.Windows.Forms.TextBox textbox3; private System.Windows.Forms.TextBox textbox2; private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label2; private System.Windows.Forms.TextBox textbox1; private System.Windows.Forms.Label label1; Form TOPSIS /* * Created by SharpDevelop. * User: Roni Anggara * Date: 5/19/2016 * Time: 8:52 PM * * To change this template use Tools Options Coding Edit Standard Headers. */ using System;

11 A-11 using System.Drawing; using System.Windows.Forms; using System.ComponentModel; using System.Data; using MySql.Data.MySqlClient; namespace ronianggara / <summary> / Description of TOPSIS. / </summary> public partial class TOPSIS : Form string[] nama; double[] fasilitas,harga,kenyamanan,keamanan; MySqlConnection c = new MySqlConnection("Server=localhost;Database=gym;Uid=root;"); public TOPSIS() The InitializeComponent() call is required for Windows Forms designer support. InitializeComponent(); call. TODO: Add constructor code after the InitializeComponent() void Button1Click(object sender, EventArgs e) datagridview1.columns.clear(); c.open(); DataTable dt = new DataTable(); MySqlDataAdapter da = new MySqlDataAdapter("select nama_gym,fasilitas,harga,kenyamanan,keamanan from data", c); da.fill(dt); datagridview2.columns.clear(); datagridview2.datasource = dt.defaultview; c.close(); nama = new string[datagridview2.rows.count]; fasilitas = new double[datagridview2.rows.count]; harga = new double[datagridview2.rows.count]; kenyamanan = new double[datagridview2.rows.count]; keamanan = new double[datagridview2.rows.count]; for (int i = 0; i < datagridview2.rows.count; i++) nama[i] = datagridview2[0, i].value.tostring(); fasilitas[i] = Convert.ToDouble(dataGridView2[1, i].value.tostring()); harga[i] = Convert.ToDouble(dataGridView2[2, i].value.tostring()); kenyamanan[i] =

12 A-12 Convert.ToDouble(dataGridView2[3, i].value.tostring()); keamanan[i] = Convert.ToDouble(dataGridView2[4, i].value.tostring()); membangun matriks double[,] x = new double[nama.length,4]; x[i,0] = fasilitas[i]; x[i,1] = harga[i]; x[i,2] = kenyamanan[i]; x[i,3] = keamanan[i]; normalisasi matriks double[,] r = new double[nama.length,4]; for (int j = 0; j < 4; j++) double sigma=0; sigma = sigma + Math.Pow(x[i,j],2); r[i,j] = Math.Round(x[i,j]/Math.Sqrt(sigma),3); normalisasi bobot double[] bobot = 2,3,2,1; for (int j = 0; j < 4; j++) r[i,j] = Math.Round(r[i,j] * bobot[j],3); v- dan v+ double[] vmin = new double[4], vmax = new double[4]; for (int j = 0; j < 4; j++) vmin[j] = r[0,j]; vmax[j] = r[0,j]; for (int i = 1; i < nama.length; i++) if (vmin[j]>r[i,j]) vmin[j] = r[i,j]; if (vmax[j]<r[i,j]) vmax[j] = r[i,j];

13 A-13 d- dan d+ double[] dmin = new double[nama.length], dmax = new double[nama.length]; double totaldmax=0, totaldmin=0; for (int j = 0; j < 4; j++) totaldmax = totaldmax + Math.Pow(vmax[j]-r[i,j],2); totaldmin = totaldmin + Math.Pow(r[i,j]-vmin[j],2); dmax[i] = Math.Round(Math.Sqrt(totaldmax),3); dmin[i] = Math.Round(Math.Sqrt(totaldmin),3); RPI double[] rpi = new double[nama.length]; rpi[i] = Math.Round(dmin[i]/(dmax[i]+dmin[i]),3); datagridview1.columncount = 4; datagridview1.columns[0].name = "Nama"; datagridview1.columns[1].name = "d+"; datagridview1.columns[2].name = "d-"; datagridview1.columns[3].name = "RPI"; datagridview1.rows.add(nama[i],dmax[i],dmin[i],rpi[i]); datagridview1.sort(datagridview1.columns[3], ListSortDirection.De scending); Form Perbandingan /* * Created by SharpDevelop. * User: Roni Anggara * Date: 10/20/2016 * Time: 8:38 PM * * To change this template use Tools Options Coding Edit Standard Headers. */ using System; using System.Drawing; using System.Windows.Forms;

14 A-14 using System.ComponentModel; using System.Data; using System.Diagnostics; using MySql.Data.MySqlClient; namespace ronianggara / <summary> / Description of Perbandingan. / </summary> public partial class Perbandingan : Form string[] nama; double[] fasilitas,harga,kenyamanan,keamanan; MySqlConnection c = new MySqlConnection("Server=localhost;Database=gym;Uid=root;"); public Perbandingan() The InitializeComponent() call is required for Windows Forms designer support. InitializeComponent(); call. TODO: Add constructor code after the InitializeComponent() public double bobota(double n) if (n == 0) return 5; else if(n == 1) return 4.5; else if(n == -1) return 4; else if(n == 2) return 3.5; else if(n == -2) return 3; else if(n == 3) return 2.5; else if(n == -3) return 2; else if(n == 4) return 1.5; else return 1; void Button1Click(object sender, EventArgs e) int banyakdata = Convert.ToInt32(textBox1.Text);

15 A-15 Stopwatch watch1 = new Stopwatch(); datagridview1.columns.clear(); c.open(); DataTable dt = new DataTable(); MySqlDataAdapter da = new MySqlDataAdapter("select nama_gym,fasilitas,harga,kenyamanan,keamanan from data", c); da.fill(dt); datagridview3.columns.clear(); datagridview3.datasource = dt.defaultview; c.close(); nama = new string[banyakdata]; fasilitas = new double[banyakdata]; harga = new double[banyakdata]; kenyamanan = new double[banyakdata]; keamanan = new double[banyakdata]; for (int i = 0; i < banyakdata; i++) nama[i] = datagridview3[0, i].value.tostring(); fasilitas[i] = Convert.ToDouble(dataGridView3[1, i].value.tostring()); harga[i] = Convert.ToDouble(dataGridView3[2, i].value.tostring()); kenyamanan[i] = Convert.ToDouble(dataGridView3[3, i].value.tostring()); keamanan[i] = Convert.ToDouble(dataGridView3[4, i].value.tostring()); watch1.restart(); datagridview1.columncount = 2; datagridview1.columns[0].name = "Nama"; datagridview1.columns[1].name = "Nilai Akhir"; gap fasilitas[i] = fasilitas[i] - 8; harga[i] = harga[i] - 7; kenyamanan[i] = kenyamanan[i] - 7; keamanan[i] = keamanan[i] - 6; bobot fasilitas[i] = bobota(fasilitas[i]); harga[i] = bobota(harga[i]); kenyamanan[i] = bobota(kenyamanan[i]); keamanan[i] = bobota(keamanan[i]); nilai total double[] na = new double[nama.length], ni = new double[nama.length];

16 A-16 na[i] = 0.6*fasilitas[i] + 0.4*harga[i]; ni[i] = 0.6*kenyamanan[i] + 0.4*keamanan[i]; nilai akhir double[] nt = new double[nama.length]; nt[i] = 0.6*na[i] + 0.4*ni[i]; datagridview1.rows.add(nama[i],nt[i]); datagridview1.sort(datagridview1.columns[1], ListSortDirection.De scending); watch1.stop(); textbox3.text = Math.Round(Convert.ToDecimal(watch1.Elapsed.TotalMilliseconds),4).ToString(); datagridview2.columns.clear(); nama = new string[banyakdata]; fasilitas = new double[banyakdata]; harga = new double[banyakdata]; kenyamanan = new double[banyakdata]; keamanan = new double[banyakdata]; for (int i = 0; i < banyakdata; i++) nama[i] = datagridview3[0, i].value.tostring(); fasilitas[i] = Convert.ToDouble(dataGridView3[1, i].value.tostring()); harga[i] = Convert.ToDouble(dataGridView3[2, i].value.tostring()); kenyamanan[i] = Convert.ToDouble(dataGridView3[3, i].value.tostring()); keamanan[i] = Convert.ToDouble(dataGridView3[4, i].value.tostring()); watch1.restart(); membangun matriks double[,] x = new double[nama.length,4]; x[i,0] = fasilitas[i]; x[i,1] = harga[i]; x[i,2] = kenyamanan[i]; x[i,3] = keamanan[i]; normalisasi matriks

17 A-17 double[,] r = new double[nama.length,4]; for (int j = 0; j < 4; j++) double sigma=0; sigma = sigma + Math.Pow(x[i,j],2); r[i,j] = Math.Round(x[i,j]/Math.Sqrt(sigma),3); normalisasi bobot double[] bobot = 2,3,2,1; for (int j = 0; j < 4; j++) r[i,j] = Math.Round(r[i,j] * bobot[j],3); v- dan v+ double[] vmin = new double[4], vmax = new double[4]; for (int j = 0; j < 4; j++) vmin[j] = r[0,j]; vmax[j] = r[0,j]; for (int i = 1; i < nama.length; i++) if (vmin[j]>r[i,j]) vmin[j] = r[i,j]; if (vmax[j]<r[i,j]) vmax[j] = r[i,j]; d- dan d+ double[] dmin = new double[nama.length], dmax = new double[nama.length]; double totaldmax=0, totaldmin=0; for (int j = 0; j < 4; j++) totaldmax = totaldmax + Math.Pow(vmax[j]-r[i,j],2); totaldmin = totaldmin + Math.Pow(r[i,j]-vmin[j],2); dmax[i] = Math.Round(Math.Sqrt(totaldmax),3); dmin[i] = Math.Round(Math.Sqrt(totaldmin),3); RPI

18 A-18 double[] rpi = new double[nama.length]; rpi[i] = Math.Round(dmin[i]/(dmax[i]+dmin[i]),3); datagridview2.columncount = 2; datagridview2.columns[0].name = "Nama"; datagridview2.columns[1].name = "RPI"; datagridview2.rows.add(nama[i],rpi[i]); datagridview2.sort(datagridview2.columns[1], ListSortDirection.De scending); watch1.stop(); textbox2.text = Math.Round(Convert.ToDecimal(watch1.Elapsed.TotalMilliseconds),4).ToString();

19 B-1 CURRICULUM VITAE Data Pribadi Nama : Roni Anggara Sipahutar Jenis Kelamin : Laki-laki Tempat,Tanggal Lahir : Medan, 14 September 1993 Kewarganegaraan : Indonesia Agama : Islam Alamat Sekarang : Jl. K.S.Ketaren g.maninjau no.11a Telp/Hp : roni.anggara35@yahoo.com Riwayat Pendidikan : S1 Ilmu Komputer : SMA Negeri 7 Medan : SMP Negri 13 Medan : SD Swasta Budi Satria Keahlian Bahasa : Indonesia, Inggris Bahasa Pemrograman : C#, Jaringan Database : MySql Pengalaman Organisasi : Anggota Pramuka SMA N 7 Medan : UKMI AL-QUARISMI : Anggota IMILKOM : Sekretaris Jendral Sapma PP Sub-komisariat FASILKOM-TI Pengalaman Kepanitiaan 2011 : Panitia Dies Natalis Ilmu Komputer ke : Ketua Panitia Acara Ilmu Komputer Goes to School 2013 : Panitia Pelatihan Dasar Organisasi IMILKOM : Anggota HUMAS Porseni IMILKOM 2013 : Koordinator Dana PMB Ilmu Komputer USU 2013 : Koordinator Keamanan PMB Fakultas FASILKOM-TI USU 2013 : Panitia Pemilihan Umum Ketua IMILKOM 2014 : Koordinator Keamanan PMB Fakultas FASILKOM-TI USU 2014 : Panitia SENARAI 2014

Blank Form. Industrial Programming. Discussion. First Form Code. Lecture 8: C# GUI Development

Blank Form. Industrial Programming. Discussion. First Form Code. Lecture 8: C# GUI Development Blank Form Industrial Programming Lecture 8: C# GUI Development Industrial Programming 1 Industrial Programming 2 First Form Code using System; using System.Drawing; using System.Windows.Forms; public

More information

Sub To Srt Converter. This is the source code of this program. It is made in C# with.net 2.0.

Sub To Srt Converter. This is the source code of this program. It is made in C# with.net 2.0. Sub To Srt Converter This is the source code of this program. It is made in C# with.net 2.0. form1.css /* * Name: Sub to srt converter * Programmer: Paunoiu Alexandru Dumitru * Date: 5.11.2007 * Description:

More information

LISTING PROGRAM. //Find the maximum and minimum values in the array int maxvalue = integers[0]; //start with first element int minvalue = integers[0];

LISTING PROGRAM. //Find the maximum and minimum values in the array int maxvalue = integers[0]; //start with first element int minvalue = integers[0]; 1 LISTING PROGRAM using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace SortingApplication static class Program / / The main entry point for

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

LAMPIRAN A : LISTING PROGRAM

LAMPIRAN A : LISTING PROGRAM 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

More information

CIS 3260 Sample Final Exam Part II

CIS 3260 Sample Final Exam Part II CIS 3260 Sample Final Exam Part II Name You may now use any text or notes you may have. Computers may NOT be used. Vehicle Class VIN Model Exhibit A Make Year (date property/data type) Color (read-only

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

this.openfiledialog = new System.Windows.Forms.OpenFileDialog(); this.label4 = new System.Windows.Forms.Label(); this.

this.openfiledialog = new System.Windows.Forms.OpenFileDialog(); this.label4 = new System.Windows.Forms.Label(); this. form.designer.cs namespace final { partial class Form1 { private System.ComponentModel.IContainer components = null; should be disposed; otherwise, false. protected override void Dispose(bool disposing)

More information

Visual Studio Windows Form Application #1 Basic Form Properties

Visual Studio Windows Form Application #1 Basic Form Properties Visual Studio Windows Form Application #1 Basic Form Properties Dr. Thomas E. Hicks Computer Science Department Trinity University Purpose 1] The purpose of this tutorial is to show how to create, and

More information

ListBox. Class ListBoxTest. Allows users to add and remove items from ListBox Uses event handlers to add to, remove from, and clear list

ListBox. Class ListBoxTest. Allows users to add and remove items from ListBox Uses event handlers to add to, remove from, and clear list 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

Avoiding KeyStrokes in Windows Applications using C#

Avoiding KeyStrokes in Windows Applications using C# Avoiding KeyStrokes in Windows Applications using C# In keeping with the bcrypt.exe example cited elsewhere on this site, we seek a method of avoiding using the keypad to enter pass words and/or phrases.

More information

SMITE API Developer Guide TABLE OF CONTENTS

SMITE API Developer Guide TABLE OF CONTENTS SMITE API Developer Guide TABLE OF CONTENTS TABLE OF CONTENTS DOCUMENT CHANGE HISTORY GETTING STARTED Introduction Registration Credentials Sessions API Access Limits API METHODS & PARAMETERS APIs Connectivity

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

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

C# and.net (1) cont d

C# and.net (1) cont d C# and.net (1) cont d Acknowledgements and copyrights: these slides are a result of combination of notes and slides with contributions from: Michael Kiffer, Arthur Bernstein, Philip Lewis, Hanspeter Mφssenbφck,

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

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 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

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

In order to create your proxy classes, we have provided a WSDL file. This can be located at the following URL:

In order to create your proxy classes, we have provided a WSDL file. This can be located at the following URL: Send SMS via SOAP API Introduction You can seamlessly integrate your applications with aql's outbound SMS messaging service via SOAP using our SOAP API. Sending messages via the SOAP gateway WSDL file

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

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

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

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

Nasosoft Barcode for.net

Nasosoft Barcode for.net Nasosoft Barcode for.net Table of Contents Overview of Nasosoft Barcode for.net 1 Nasosoft Barcode for.net Features... 1 Install Nasosoft Barcode for.net... 4 System Requirements... 4 Install and Uninstall

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

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

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

Web Services in.net (2)

Web Services in.net (2) Web Services in.net (2) These slides are meant to be for teaching purposes only and only for the students that are registered in CSE4413 and should not be published as a book or in any form of commercial

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

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

Introduction to.net. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1)

Introduction to.net. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1) Andrew Cumming, SoC Bill Buchanan, SoC W.Buchanan (1) Course Outline Day 1: Morning Introduction to Object-Orientation, Introduction to.net, Overview of.net Framework,.NET Components. C#. Day 1: Afternoon

More information

UNIT III APPLICATION DEVELOPMENT ON.NET

UNIT III APPLICATION DEVELOPMENT ON.NET UNIT III APPLICATION DEVELOPMENT ON.NET Syllabus: Building Windows Applications, Accessing Data with ADO.NET. Creating Skeleton of the Application Select New->Project->Visual C# Projects->Windows Application

More information

Classes and Objects. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1)

Classes and Objects. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1) Classes and Objects Andrew Cumming, SoC Bill Buchanan, SoC W.Buchanan (1) Course Outline 11-12am 12-1pm: 1-1:45pm 1:45-2pm:, Overview of.net Framework,.NET Components, C#. C# Language Elements Classes,

More information

Classes and Objects. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1)

Classes and Objects. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1) Classes and Objects Andrew Cumming, SoC Introduction to.net Bill Buchanan, SoC W.Buchanan (1) Course Outline Introduction to.net Day 1: Morning Introduction to Object-Orientation, Introduction to.net,

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

Introduction to.net. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1)

Introduction to.net. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1) Andrew Cumming, SoC Bill Buchanan, SoC W.Buchanan (1) Course Outline 11-12am 12-1pm: 1-1:45pm 1:45-2pm:, Overview of.net Framework,.NET Components, C#. C# Language Elements Classes, Encapsulation, Object-Orientation,

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

Convertor Binar -> Zecimal Rosu Alin, Calculatoare, An2 Mod de Functionare: Am creat un program, in Windows Form Application, care converteste un

Convertor Binar -> Zecimal Rosu Alin, Calculatoare, An2 Mod de Functionare: Am creat un program, in Windows Form Application, care converteste un Convertor Binar -> Zecimal Rosu Alin, Calculatoare, An2 Mod de Functionare: Am creat un program, in Windows Form Application, care converteste un numar binar, in numar zecimal. Acest program are 4 numericupdown-uri

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

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

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

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

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

ABSTRACT. In Windows Operating system, Registry is core component and it contains

ABSTRACT. In Windows Operating system, Registry is core component and it contains ABSTRACT In Windows Operating system, Registry is core component and it contains significant information which is useful for a forensic analyst. It is a repository of the central database in a hierarchal

More information

Introduction to.net. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1)

Introduction to.net. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1) Andrew Cumming, SoC Bill Buchanan, SoC W.Buchanan (1) Course Outline Day 1: Morning Introduction to Object-Orientation, Introduction to.net, Overview of.net Framework,.NET Components. C#. Day 1: Afternoon

More information

% --- Executes on button press in btn_gsn. function btn_gsn_callback(hobject, eventdata, handles) GaussianSpeckleNoise close AiSoftware;

% --- Executes on button press in btn_gsn. function btn_gsn_callback(hobject, eventdata, handles) GaussianSpeckleNoise close AiSoftware; A-2 'gui_openingfcn', @AiSoftware_OpeningFcn,... 'gui_outputfcn', @AiSoftware_OutputFcn,... 'gui_layoutfcn', [],... 'gui_callback', []); if nargin && ischar(varargin{1}) gui_state.gui_callback = str2func(varargin{1});

More information

.NET XML Web Services

.NET XML Web Services .NET XML Web Services Bill Buchanan Course Outline Day 1: Introduction to Object-Orientation, Introduction to.net, Overview of.net Framework,.NET Components. C#. Introduction to Visual Studio Environment..

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. 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

C# Forms and Events. Evolution of GUIs. Macintosh VT Datavetenskap, Karlstads universitet 1

C# Forms and Events. Evolution of GUIs. Macintosh VT Datavetenskap, Karlstads universitet 1 C# Forms and Events VT 2009 Evolution of GUIs Until 1984, console-style user interfaces were standard Mostly dumb terminals as VT100 and CICS Windows command prompt is a holdover In 1984, Apple produced

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

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

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

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

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

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

Towards More Comprehensive Information Retrieval Systems: Entity Extraction Using XSLT

Towards More Comprehensive Information Retrieval Systems: Entity Extraction Using XSLT UNF Digital Commons UNF Theses and Dissertations Student Scholarship 2005 Towards More Comprehensive Information Retrieval Systems: Entity Extraction Using XSLT Chris A. McManigal University of North Florida

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

Operatii pop si push-stiva

Operatii pop si push-stiva Operatii pop si push-stiva Aplicatia realizata in Microsoft Visual Studio C++ 2010 permite simularea operatiilor de introducere si extragere a elementelor dintr-o structura de tip stiva.pentru aceasta

More information

Lucrare pentru colocviu de practică

Lucrare pentru colocviu de practică Roman Radu-Alexandru Calculatoare an II Lucrare pentru colocviu de practică Descriere: Aplicatia are ca scop functionalitatea unui decodificator si a unui codificator. Converteste un numar din zecimal

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

CHAPTER 3. Writing Windows C# Programs. Objects in C#

CHAPTER 3. Writing Windows C# Programs. Objects in C# 90 01 pp. 001-09 r5ah.ps 8/1/0 :5 PM Page 9 CHAPTER 3 Writing Windows C# Programs 5 9 Objects in C# The C# language has its roots in C++, Visual Basic, and Java. Both C# and VB.Net use the same libraries

More information

Tutorial 19 - Microwave Oven Application Building Your Own Classes and Objects

Tutorial 19 - Microwave Oven Application Building Your Own Classes and Objects 1 Tutorial 19 - Microwave Oven Application Building Your Own Classes and Objects Outline 19.1 Test-Driving the Microwave Oven Application 19.2 Designing the Microwave Oven Application 19.3 Adding a New

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

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

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

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 CODE A-1. Indo_to_jawa_Fragments.java. package studio.arti.kamusjawaindonesia;

LISTING CODE A-1. Indo_to_jawa_Fragments.java. package studio.arti.kamusjawaindonesia; LISTING CODE A-1 Indo_to_jawa_Fragments.java package studio.arti.kamusjawaindonesia; import android.content.dialoginterface; import android.database.cursor; import android.database.sqlite.sqlitedatabase;

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

Listing Progam. Universitas Sumatera Utara

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

More information

BackgroundWorker Component Overview 1 Multithreading with the BackgroundWorker Component 3 Walkthrough Running an Operation in the Background 10 How

BackgroundWorker Component Overview 1 Multithreading with the BackgroundWorker Component 3 Walkthrough Running an Operation in the Background 10 How BackgroundWorker Component Overview 1 Multithreading with the BackgroundWorker Component 3 Walkthrough Running an Operation in the Background 10 How to Download a File in the Background 15 How to Implement

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

#pragma comment(lib, "irrklang.lib") #include <windows.h> namespace SuperMetroidCraft {

#pragma comment(lib, irrklang.lib) #include <windows.h> namespace SuperMetroidCraft { Downloaded from: justpaste.it/llnu #pragma comment(lib, "irrklang.lib") #include namespace SuperMetroidCraft using namespace System; using namespace System::ComponentModel; using namespace

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

// 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

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

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

pojedinačnom elementu niza se pristupa imeniza[indeks] indeks od 0 do n-1

pojedinačnom elementu niza se pristupa imeniza[indeks] indeks od 0 do n-1 NIZOVI Niz deklarišemo navođenjemtipa elemenata za kojim sledi par srednjih zagrada[] i naziv niza. Ako je niz višedimenzionalni između zagrada[] se navode zarezi, čiji je broj za jedan manji od dimenzija

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

and event handlers Murach's C# 2012, C6 2013, Mike Murach & Associates, Inc. Slide 1

and event handlers Murach's C# 2012, C6 2013, Mike Murach & Associates, Inc. Slide 1 Chapter 6 How to code methods and event handlers Murach's C# 2012, C6 2013, Mike Murach & Associates, Inc. Slide 1 Objectives Applied 1. Given the specifications for a method, write the method. 2. Give

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

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

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

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

// 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

Flag Quiz Application

Flag Quiz Application T U T O R I A L 17 Objectives In this tutorial, you will learn to: Create and initialize arrays. Store information in an array. Refer to individual elements of an array. Sort arrays. Use ComboBoxes to

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

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

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

XNA 4.0 RPG Tutorials. Part 11b. Game Editors

XNA 4.0 RPG Tutorials. Part 11b. Game Editors XNA 4.0 RPG Tutorials Part 11b Game Editors I'm writing these tutorials for the new XNA 4.0 framework. The tutorials will make more sense if they are read in order. You can find the list of tutorials on

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

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

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

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. if nargout [varargout{1:nargout}] = gui_mainfcn(gui_state, varargin{:}); else gui_mainfcn(gui_state, varargin{:}); end

LISTING PROGRAM. if nargout [varargout{1:nargout}] = gui_mainfcn(gui_state, varargin{:}); else gui_mainfcn(gui_state, varargin{:}); end A-1 LISTING PROGRAM 1. Form Cover function varargout = cover(varargin) gui_singleton = 1; gui_state = struct('gui_name', mfilename,... 'gui_singleton', gui_singleton,... 'gui_openingfcn', @cover_openingfcn,...

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

Adapting a Grid to REP++

Adapting a Grid to REP++ Adapting a Grid to REP++ Author: R&D Department Publication date: April 28 2006 2006 Consyst SQL Inc. All rights reserved. Adapting a Grid to REP++ Overview The REP++toolkit for Windows provides a good

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

Instructions for writing Web Services using Microsoft.NET:

Instructions for writing Web Services using Microsoft.NET: Instructions for writing Web Services using Microsoft.NET: Pre-requisites: Operating System: Microsoft Windows XP Professional / Microsoft Windows 2000 Professional / Microsoft Windows 2003 Server.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