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

Size: px
Start display at page:

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

Transcription

1 1 LISTING PROGRAM using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace SortingApplication static class Program / <summary> / The main entry point for the application. / </summary> [STAThread] static void Main() Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new FormAplikasiSorting()); using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SortingApplication class BucketSort public static void bsort3(int[] integers) Verify input if (integers == null integers.length == 0) return; Find the maximum and minimum values in the array int maxvalue = integers[0]; start with first element int minvalue = integers[0]; Note: start from index 1 for (int i = 1; i < integers.length; i++) if (integers[i] > maxvalue) maxvalue = integers[i]; if (integers[i] < minvalue) minvalue = integers[i]; (minvalue) Create a temporary "bucket" to store the values in order each value will be stored in its corresponding index scooting everything over to the left as much as possible e.g. 34 => index at 34 - minvalue List<int>[] bucket = new List<int>[maxValue - minvalue + 1]; Initialize the bucket for (int i = 0; i < bucket.length; i++) bucket[i] = new List<int>();

2 2 Move items to bucket for (int i = 0; i < integers.length; i++) bucket[integers[i] - minvalue].add(integers[i]); Move items in the bucket back to the original array in order int k = 0; index for original array for (int i = 0; i < bucket.length; i++) if (bucket[i].count > 0) for (int j = 0; j < bucket[i].count; j++) integers[k] = bucket[i][j]; k++; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SortingApplication class StrandSort public int[] Sort(int[] data) int[] arr = data; for (int i = 1; i < arr.length; i++) int j = i - 1; int index = -1; while (arr[i] < arr[j]) index = j; j--; if (j < 0) break; if(index == -1) continue; int temp = arr[i]; for (int k = i; k > index; k--) arr[k] = arr[k - 1]; arr[index] = temp; return arr; using System; using System.Collections.Generic; using System.Linq; using System.Text;

3 3 namespace SortingApplication class QuickSortDualPivot public int[] sort(int[] input) int[] data = input; sort(data, 0, data.length - 1); return data; private void sort(int[] input, int lowindex, int highindex) if (highindex <= lowindex) return; int pivot1 = input[lowindex]; int pivot2 = input[highindex]; if (pivot1 > pivot2) exchange(input, lowindex, highindex); pivot1 = input[lowindex]; pivot2 = input[highindex]; sort(input, lowindex, highindex); if (pivot1 == pivot2) int swapindex = lowindex; while (pivot1 == pivot2 && swapindex <= highindex) swapindex++; exchange(input, swapindex, highindex); pivot2 = input[highindex]; if (pivot1 > pivot2) exchange(input, lowindex, highindex); pivot1 = input[lowindex]; pivot2 = input[highindex]; sort(input, lowindex, highindex); int i = lowindex + 1; int lt = lowindex + 1; int gt = highindex - 1; while (i <= gt) if (less(input[i], pivot1)) exchange(input, i++, lt++); if (less(pivot2, input[i])) exchange(input, i, gt--); i++;

4 4 exchange(input, lowindex, --lt); exchange(input, highindex, ++gt); sort(input, lowindex, lt - 1); if (less (input[lt], input[gt])) sort (input, lt+1, gt-1); sort(input, lt + 1, gt - 1); sort(input, gt + 1, highindex); public bool less(int a, int b) return a < b; public void exchange(int[] input, int i, int r) if (i >= input.length) return; if (input[i] == null) int temp = input[i]; input[i] = input[r]; input[r] = temp; int temp = input[i]; input[i] = input[r]; input[r] = temp; 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.Diagnostics; using System.Threading; using System.Windows.Forms.DataVisualization.Charting; namespace SortingApplication public partial class FormAplikasiSorting : Form int[] data,data2,data3,strand,quick,bucket; int n, nilaimaks; Random r = new Random(); ProgressDialog progresswindow; ToolTip tooltip = new ToolTip(); Point? prevposition = null; public FormAplikasiSorting() InitializeComponent(); Console.WriteLine("Bucket Sort"); int[] sortbucket = new BucketSort().sort(data); printarray(sortbucket);

5 5 public void printarray(int[] input) for (int i = 0; i < input.length; i++) Console.Write(input[i] + ", "); Console.WriteLine(); private void button1_click(object sender, EventArgs e) richtextbox1.text = null; richtextbox2.text = null; richtextbox3.text = null; Thread thread = new Thread(new ThreadStart(GenerateData)); progresswindow = new ProgressDialog(); progresswindow.settitle("generating random data"); progresswindow.setlabelmessage("generating..."); thread.start(); progresswindow.showdialog(); private void GenerateData() StringBuilder sb = new StringBuilder(); n = Convert.ToInt32(maxitem.Text); nilaimaks = Convert.ToInt32(maxitemvalue.Text); data = new int[n]; data2 = new int[n]; data3 = new int[n]; for (int i = 0; i < n; i++) int j = r.next(1, nilaimaks); data[i] = j; data2[i] = j; data3[i] = j; sb.append(j); if (i!= n - 1) sb.append(", "); progresswindow.setlabelmessage("displaying data..."); this.begininvoke(new Action(() => richtextbox1.text = sb.tostring(); )); this.begininvoke(new Action(() => richtextbox2.text = sb.tostring(); )); this.begininvoke(new Action(() => richtextbox3.text = sb.tostring(); )); Close the dialog if it hasn't been already if (progresswindow.invokerequired) progresswindow.begininvoke(new Action(() => progresswindow.close())); void Button2Click(object sender, EventArgs e) txtbucketsort.text = ""; txtstrandsort.text = ""; txtquicksort.text = "";

6 6 Thread thread = new Thread(new ThreadStart(Sort)); progresswindow = new ProgressDialog(); progresswindow.settitle("sorting Data"); progresswindow.setlabelmessage("sorting..."); progresswindow.setindeterminate(true); thread.start(); progresswindow.showdialog(); private void Sort() chart1.series.clear(); while(chart1.series.count > 0) foreach (var series in chart1.series) series.points.clear(); MessageBox.Show("ada"); StringBuilder sb1 = new StringBuilder(); StringBuilder sb2 = new StringBuilder(); StringBuilder sb3 = new StringBuilder(); decimal rtmquick = 0; decimal rtmstrand = 0; decimal rtmbucket = 0; Stopwatch watch1 = new Stopwatch(); running time Stopwatch watch2 = new Stopwatch(); running time Stopwatch watch3 = new Stopwatch(); running time progresswindow.setlabelmessage("sorting using QuickSortDualPivot"); watch1 = Stopwatch.StartNew(); watch1.restart(); quick = new QuickSortDualPivot().sort(data); watch1.stop(); this.begininvoke(new Action(() => rtmquick = Math.Round(Convert.ToDecimal(watch1.Elapsed.TotalMilliseconds * 1000), 4); textbox9.text = rtmquick.tostring(); )); progresswindow.setlabelmessage("sorting using StrandSort"); watch2 = Stopwatch.StartNew(); watch2.restart(); strand = new StrandSort().Sort(data2); watch2.stop(); this.begininvoke(new Action(() => rtmstrand = Math.Round(Convert.ToDecimal(watch2.Elapsed.TotalMilliseconds * 1000), 4); textbox10.text = rtmstrand.tostring(); )); progresswindow.setlabelmessage("sorting using BucketSort"); watch3 = Stopwatch.StartNew(); watch3.restart(); bucket = data3; BucketSort.bsort3(bucket); watch3.stop(); this.begininvoke(new Action(() => rtmbucket = Math.Round(Convert.ToDecimal(watch3.Elapsed.TotalMilliseconds * 1000), 4); textbox11.text = rtmbucket.tostring();

7 7 )); for (int i = 0; i < n; i++) sb1.append(data[i].tostring()); sb2.append(data2[i].tostring()); sb3.append(data3[i].tostring()); if (i!= n - 1) sb1.append(", "); sb2.append(", "); sb3.append(", "); this.begininvoke(new Action(() => rtmquick); )); txtstrandsort.text += sb2.tostring(); txtbucketsort.text += sb3.tostring(); txtquicksort.text += sb1.tostring(); foreach (var series in chart1.series) series.points.clear(); chart1.series[0].points.addxy("bucket Sort", rtmbucket); chart1.series[0].points.addxy("strand Sort", rtmstrand); chart1.series[0].points.addxy("quick Sort 2 Pivot", Close the dialog if it hasn't been already if (progresswindow.invokerequired) progresswindow.begininvoke(new Action(() => progresswindow.close())); private void FormAplikasiSorting_Load(object sender, EventArgs e) 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 SortingApplication public partial class ProgressDialog : Form public ProgressDialog() InitializeComponent(); SetIndeterminate(true); public void UpdateProgress(int progress) if (progressbar.invokerequired) progressbar.begininvoke(new Action(() => progressbar.value = progress));

8 8 progressbar.value = progress; text)); public void SetLabelMessage(string text) if (progressbar.invokerequired) progressbar.begininvoke(new Action(() => lbltext.text = lbltext.text = text; public void SetTitle(string text) if (progressbar.invokerequired) progressbar.begininvoke(new Action(() => this.text = text)); this.text = text; public void SetIndeterminate(bool isindeterminate) if (progressbar.invokerequired) progressbar.begininvoke(new Action(() => if (isindeterminate) progressbar.style = ProgressBarStyle.Marquee; progressbar.style = ProgressBarStyle.Blocks; )); if (isindeterminate) progressbar.style = ProgressBarStyle.Marquee; progressbar.style = ProgressBarStyle.Blocks; private void ProgressDialog_Load(object sender, EventArgs e) namespace SortingApplication partial class FormAplikasiSorting / <summary> / Required designer variable. / </summary> private System.ComponentModel.IContainer components = null; / <summary> / Clean up any resources being used. / </summary> / <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) if (disposing && (components!= null))

9 9 components.dispose(); base.dispose(disposing); #region Windows Form Designer generated code / <summary> / Required method for Designer support - do not modify / the contents of this method with the code editor. / </summary> private void InitializeComponent() System.Windows.Forms.DataVisualization.Charting.ChartArea chartarea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.maxitem = new System.Windows.Forms.TextBox(); this.maxitemvalue = new System.Windows.Forms.TextBox(); this.button1 = new System.Windows.Forms.Button(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label(); this.label11 = new System.Windows.Forms.Label(); this.textbox9 = new System.Windows.Forms.TextBox(); this.textbox10 = new System.Windows.Forms.TextBox(); this.textbox11 = new System.Windows.Forms.TextBox(); this.button2 = new System.Windows.Forms.Button(); this.richtextbox1 = new System.Windows.Forms.RichTextBox(); this.richtextbox2 = new System.Windows.Forms.RichTextBox(); this.richtextbox3 = new System.Windows.Forms.RichTextBox(); this.txtbucketsort = new System.Windows.Forms.RichTextBox(); this.txtstrandsort = new System.Windows.Forms.RichTextBox(); this.txtquicksort = new System.Windows.Forms.RichTextBox(); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.label12 = new System.Windows.Forms.Label(); this.label13 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.suspendlayout(); label1 this.label1.autosize = true; this.label1.font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.location = new System.Drawing.Point(22, 51); this.label1.name = "label1"; this.label1.size = new System.Drawing.Size(97, 15); this.label1.tabindex = 0; this.label1.text = "Max Item "; label2 this.label2.autosize = true;

10 10 this.label2.font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.location = new System.Drawing.Point(22, 75); this.label2.name = "label2"; this.label2.size = new System.Drawing.Size(92, 15); this.label2.tabindex = 1; this.label2.text = "Max Item Value"; maxitem this.maxitem.location = new System.Drawing.Point(125, 51); this.maxitem.name = "maxitem"; this.maxitem.size = new System.Drawing.Size(96, 20); this.maxitem.tabindex = 2; this.maxitem.text = "1000"; maxitemvalue this.maxitemvalue.location = new System.Drawing.Point(125, 75); this.maxitemvalue.name = "maxitemvalue"; this.maxitemvalue.size = new System.Drawing.Size(96, 20); this.maxitemvalue.tabindex = 3; this.maxitemvalue.text = "1000"; button1 this.button1.location = new System.Drawing.Point(257, 71); this.button1.name = "button1"; this.button1.size = new System.Drawing.Size(75, 23); this.button1.tabindex = 5; this.button1.text = "Data Acak"; this.button1.usevisualstylebackcolor = true; this.button1.click += new System.EventHandler(this.button1_Click); label3 this.label3.autosize = true; this.label3.location = new System.Drawing.Point(18, 104); this.label3.name = "label3"; this.label3.size = new System.Drawing.Size(63, 13); this.label3.tabindex = 10; this.label3.text = "Bucket Sort"; label4 this.label4.autosize = true; this.label4.location = new System.Drawing.Point(241, 104); this.label4.name = "label4"; this.label4.size = new System.Drawing.Size(60, 13); this.label4.tabindex = 13; this.label4.text = "Strand Sort"; label5 this.label5.autosize = true; this.label5.location = new System.Drawing.Point(468, 104); this.label5.name = "label5"; this.label5.size = new System.Drawing.Size(93, 13); this.label5.tabindex = 14; this.label5.text = "Quick Sort 2 Pivot"; label6 this.label6.autosize = true; this.label6.location = new System.Drawing.Point(18, 310);

11 11 this.label6.name = "label6"; this.label6.size = new System.Drawing.Size(125, 13); this.label6.tabindex = 15; this.label6.text = "Hasil Sorting Bucket Sort"; label7 this.label7.autosize = true; this.label7.location = new System.Drawing.Point(241, 310); this.label7.name = "label7"; this.label7.size = new System.Drawing.Size(122, 13); this.label7.tabindex = 16; this.label7.text = "Hasil Sorting Strand Sort"; label8 this.label8.autosize = true; this.label8.location = new System.Drawing.Point(468, 310); this.label8.name = "label8"; this.label8.size = new System.Drawing.Size(155, 13); this.label8.tabindex = 17; this.label8.text = "Hasil Sorting Quick Sort 2 Pivot"; label9 this.label9.autosize = true; this.label9.location = new System.Drawing.Point(22, 506); this.label9.name = "label9"; this.label9.size = new System.Drawing.Size(73, 13); this.label9.tabindex = 18; this.label9.text = "Running Time"; label10 this.label10.autosize = true; this.label10.location = new System.Drawing.Point(241, 506); this.label10.name = "label10"; this.label10.size = new System.Drawing.Size(73, 13); this.label10.tabindex = 19; this.label10.text = "Running Time"; label11 this.label11.autosize = true; this.label11.location = new System.Drawing.Point(468, 506); this.label11.name = "label11"; this.label11.size = new System.Drawing.Size(73, 13); this.label11.tabindex = 20; this.label11.text = "Running Time"; textbox9 this.textbox9.location = new System.Drawing.Point(471, 522); this.textbox9.name = "textbox9"; this.textbox9.size = new System.Drawing.Size(96, 20); this.textbox9.tabindex = 21; textbox10 this.textbox10.location = new System.Drawing.Point(244, 522); this.textbox10.name = "textbox10"; this.textbox10.size = new System.Drawing.Size(96, 20); this.textbox10.tabindex = 22; textbox11 this.textbox11.location = new System.Drawing.Point(25, 522);

12 12 this.textbox11.name = "textbox11"; this.textbox11.size = new System.Drawing.Size(96, 20); this.textbox11.tabindex = 23; button2 this.button2.location = new System.Drawing.Point(348, 71); this.button2.name = "button2"; this.button2.size = new System.Drawing.Size(75, 23); this.button2.tabindex = 24; this.button2.text = "Sorting"; this.button2.usevisualstylebackcolor = true; this.button2.click += new System.EventHandler(this.Button2Click); richtextbox1 this.richtextbox1.location = new System.Drawing.Point(22, 120); this.richtextbox1.name = "richtextbox1"; this.richtextbox1.size = new System.Drawing.Size(196, 173); this.richtextbox1.tabindex = 25; this.richtextbox1.text = ""; richtextbox2 this.richtextbox2.location = new System.Drawing.Point(244, 120); this.richtextbox2.name = "richtextbox2"; this.richtextbox2.size = new System.Drawing.Size(196, 173); this.richtextbox2.tabindex = 26; this.richtextbox2.text = ""; richtextbox3 this.richtextbox3.location = new System.Drawing.Point(471, 120); this.richtextbox3.name = "richtextbox3"; this.richtextbox3.size = new System.Drawing.Size(196, 173); this.richtextbox3.tabindex = 27; this.richtextbox3.text = ""; txtbucketsort this.txtbucketsort.location = new System.Drawing.Point(22, 326); this.txtbucketsort.name = "txtbucketsort"; this.txtbucketsort.size = new System.Drawing.Size(196, 173); this.txtbucketsort.tabindex = 28; this.txtbucketsort.text = ""; txtstrandsort this.txtstrandsort.location = new System.Drawing.Point(244, 326); this.txtstrandsort.name = "txtstrandsort"; this.txtstrandsort.size = new System.Drawing.Size(196, 173); this.txtstrandsort.tabindex = 29; this.txtstrandsort.text = ""; txtquicksort this.txtquicksort.location = new System.Drawing.Point(471, 326); this.txtquicksort.name = "txtquicksort"; this.txtquicksort.size = new System.Drawing.Size(196, 173); this.txtquicksort.tabindex = 30; this.txtquicksort.text = ""; chart1 chartarea2.name = "ChartArea1"; this.chart1.chartareas.add(chartarea2); legend2.name = "Legend1";

13 13 this.chart1.legends.add(legend2); this.chart1.location = new System.Drawing.Point(78, 551); this.chart1.name = "chart1"; series2.chartarea = "ChartArea1"; series2.legend = "Legend1"; series2.legendtext = "Running Time"; series2.name = "Series1"; this.chart1.series.add(series2); this.chart1.size = new System.Drawing.Size(545, 155); this.chart1.tabindex = 31; this.chart1.text = "chart1"; label12 this.label12.autosize = true; this.label12.font = new System.Drawing.Font("MS Reference Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label12.location = new System.Drawing.Point(23, 9); this.label12.name = "label12"; this.label12.size = new System.Drawing.Size(676, 15); this.label12.tabindex = 32; this.label12.text = "IMPLEMENTASI DAN ANALISIS ALGORITMA BUCKET SORT, STRAND SORT DAN QUICK SORT 2 PIV" + "OT"; label13 this.label13.autosize = true; this.label13.font = new System.Drawing.Font("MS Reference Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label13.location = new System.Drawing.Point(170, 24); this.label13.name = "label13"; this.label13.size = new System.Drawing.Size(372, 15); this.label13.tabindex = 33; this.label13.text = "DALAM PENSORTIRAN DATA YANG BERJUMLAH BANYAK"; FormAplikasiSorting this.autoscaledimensions = new System.Drawing.SizeF(6F, 13F); this.autoscalemode = System.Windows.Forms.AutoScaleMode.Font; this.clientsize = new System.Drawing.Size(708, 702); this.controls.add(this.label13); this.controls.add(this.label12); this.controls.add(this.chart1); this.controls.add(this.txtquicksort); this.controls.add(this.txtstrandsort); this.controls.add(this.txtbucketsort); this.controls.add(this.richtextbox3); this.controls.add(this.richtextbox2); this.controls.add(this.richtextbox1); this.controls.add(this.button2); this.controls.add(this.textbox11); this.controls.add(this.textbox10); this.controls.add(this.textbox9); this.controls.add(this.label11); this.controls.add(this.label10); this.controls.add(this.label9); this.controls.add(this.label8); this.controls.add(this.label7); this.controls.add(this.label6); this.controls.add(this.label5); this.controls.add(this.label4); this.controls.add(this.label3); this.controls.add(this.button1);

14 14 this.controls.add(this.maxitemvalue); this.controls.add(this.maxitem); this.controls.add(this.label2); this.controls.add(this.label1); this.name = "FormAplikasiSorting"; this.startposition = System.Windows.Forms.FormStartPosition.CenterScreen; this.text = "Aplikasi Sorting Data"; this.load += new System.EventHandler(this.FormAplikasiSorting_Load); ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); this.resumelayout(false); this.performlayout(); private System.Windows.Forms.RichTextBox txtquicksort; private System.Windows.Forms.RichTextBox txtstrandsort; private System.Windows.Forms.RichTextBox txtbucketsort; private System.Windows.Forms.RichTextBox richtextbox3; private System.Windows.Forms.RichTextBox richtextbox2; private System.Windows.Forms.RichTextBox richtextbox1; #endregion private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.TextBox maxitem; private System.Windows.Forms.TextBox maxitemvalue; private System.Windows.Forms.Button button1; private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label6; private System.Windows.Forms.Label label7; private System.Windows.Forms.Label label8; private System.Windows.Forms.Label label9; private System.Windows.Forms.Label label10; private System.Windows.Forms.Label label11; private System.Windows.Forms.TextBox textbox9; private System.Windows.Forms.TextBox textbox10; private System.Windows.Forms.TextBox textbox11; private System.Windows.Forms.Button button2; private System.Windows.Forms.DataVisualization.Charting.Chart chart1; private System.Windows.Forms.Label label12; private System.Windows.Forms.Label label13;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Your Company Name. Tel: Fax: Microsoft Visual Studio C# Project Source Code Output

Your Company Name. Tel: Fax: Microsoft Visual Studio C# Project Source Code Output General Date Your Company Name Tel: +44 1234 567 9898 Fax: +44 1234 545 9999 email: info@@company.com Microsoft Visual Studio C# Project Source Code Output Created using VScodePrint Macro Variables Substitution

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

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

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

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

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

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

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

.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

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

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

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

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

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

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

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

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

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

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

Your Company Name. Tel: Fax: Microsoft Visual Studio C# Project Source Code Output

Your Company Name. Tel: Fax: Microsoft Visual Studio C# Project Source Code Output General Date Your Company Name Tel: +44 1234 567 9898 Fax: +44 1234 545 9999 email: info@@company.com Microsoft Visual Studio C# Project Source Code Output Created using VScodePrint Macro Variables Substitution

More information

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

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

More information

Writing Your First Autodesk Revit Model Review Plug-In

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

More information

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

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

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

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

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

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

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

#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

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

FDSc in ICT. Building a Program in C#

FDSc in ICT. Building a Program in C# FDSc in ICT Building a Program in C# Objectives To build a complete application in C# from scratch Make a banking app Make use of: Methods/Functions Classes Inheritance Scenario We have a bank that has

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

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

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

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

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

This is the empty form we will be working with in this game. Look under the properties window and find the following and change them.

This is the empty form we will be working with in this game. Look under the properties window and find the following and change them. We are working on Visual Studio 2010 but this project can be remade in any other version of visual studio. Start a new project in Visual Studio, make this a C# Windows Form Application and name it zombieshooter.

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

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

We are going to use some graphics and found a nice little batman running GIF, off course you can use any image you want for the project.

We are going to use some graphics and found a nice little batman running GIF, off course you can use any image you want for the project. C# Tutorial - Create a Batman Gravity Run Game Start a new project in visual studio and call it gravityrun It should be a windows form application with C# Click OK Change the size of the to 800,300 and

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

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

Form Properties Window

Form Properties Window C# Tutorial Create a Save The Eggs Item Drop Game in Visual Studio Start Visual Studio, Start a new project. Under the C# language, choose Windows Form Application. Name the project savetheeggs and click

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

The contents of this document are directly taken from the EPiServer SDK. Please see the SDK for further technical information about EPiServer.

The contents of this document are directly taken from the EPiServer SDK. Please see the SDK for further technical information about EPiServer. Web Services Product version: 4.50 Document version: 1.0 Document creation date: 04-05-2005 Purpose The contents of this document are directly taken from the EPiServer SDK. Please see the SDK for further

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

เว บแอพล เคช น. 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

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

Start Visual Studio, create a new project called Helicopter Game and press OK

Start Visual Studio, create a new project called Helicopter Game and press OK C# Tutorial Create a helicopter flying and shooting game in visual studio In this tutorial we will create a fun little helicopter game in visual studio. You will be flying the helicopter which can shoot

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

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

Web Services in.net (6) cont d

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

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

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

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

Web Services in.net (7)

Web Services in.net (7) Web Services in.net (7) 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

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

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

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

Professional ASP.NET Web Services : Asynchronous Programming

Professional ASP.NET Web Services : Asynchronous Programming Professional ASP.NET Web Services : Asynchronous Programming To wait or not to wait; that is the question! Whether or not to implement asynchronous processing is one of the fundamental issues that a developer

More information

Brian Kiser November Vigilant C# 2.5. Commonwealth of Kentucky Frankfort, Kentucky

Brian Kiser November Vigilant C# 2.5. Commonwealth of Kentucky Frankfort, Kentucky Brian Kiser November 2010 Vigilant C# 2.5 Commonwealth of Kentucky Frankfort, Kentucky Table of Contents 1.0 Work Sample Description Page 3 2.0 Skills Demonstrated 2.1 Software development competency using

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

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

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

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

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

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

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

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

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

Lab - 1. Solution : 1. // Building a Simple Console Application. class HelloCsharp. static void Main() System.Console.WriteLine ("Hello from C#.

Lab - 1. Solution : 1. // Building a Simple Console Application. class HelloCsharp. static void Main() System.Console.WriteLine (Hello from C#. Lab - 1 Solution : 1 // Building a Simple Console Application class HelloCsharp static void Main() System.Console.WriteLine ("Hello from C#."); Solution: 2 & 3 // Building a WPF Application // Verifying

More information