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

Size: px
Start display at page:

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

Transcription

1 // Program 2 - Extra Credit // CIS // 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 provides a // File menu with About and Exit items, an Insert menu with Patron and // Book items, an Item menu with Check Out and Return items, and a // Report menu with Patron List, Item List, and Checked Out Items items. // Extra Credit - Check Out and Return only show relevant items 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.IO; using System.Runtime.Serialization.Formatters.Binary; namespace LibraryItems

2 public partial class Prog2Form : Form private Library lib; // The library // Precondition: None // Postcondition: The form's GUI is prepared for display. A few test items and patrons // are added to the library public Prog2Form() InitializeComponent(); lib = new Library(); // Create the library // Insert test data - Magic numbers allowed here lib.addlibrarybook("the Wright Guide to C#", "UofL Press", 2010, 14, "ZZ225 3G", "Andrew Wright"); lib.addlibrarybook("harriet Pooter", "Stealer Books", 2000, 21, "AG773 ZF", "IP Thief"); lib.addlibrarymovie("andrew's Super-Duper Movie", "UofL Movies", 2011, 7, "MM33 2D", 92.5, "Andrew L. Wright", LibraryMediaItem.MediaType.BLURAY, LibraryMovie.MPAARatings.PG); lib.addlibrarymovie("pirates of the Carribean: The Curse of C#", "Disney Programming", 2011, 10, "MO93 4S", 122.5, "Steven Stealberg", LibraryMediaItem.MediaType.DVD, LibraryMovie.MPAARatings.G); lib.addlibrarymusic("c# - The Album", "UofL Music", 2011, 14, "CD44 4Z", 84.3, "Dr. A", LibraryMediaItem.MediaType.CD, 10); lib.addlibrarymusic("the Sounds of Programming", "Soundproof Music", 1996, 21, "VI64 1Z", 65.0, "Cee Sharpe", LibraryMediaItem.MediaType.VINYL, 12);

3 lib.addlibraryjournal("journal of C# Goodness", "UofL Journals", 2011, 14, "JJ12 7M", 1, 2, "Information Systems", "Andrew Wright"); lib.addlibraryjournal("journal of VB Goodness", "UofL Journals", 2007, 14, "JJ34 3F", 8, 4, "Information Systems", "Alexander Williams"); lib.addlibrarymagazine("c# Monthly", "UofL Mags", 2010, 14, "MA53 9A", 16, 7); lib.addlibrarymagazine("c# Monthly", "UofL Mags", 2010, 14, "MA53 9B", 16, 8); lib.addlibrarymagazine("c# Monthly", "UofL Mags", 2010, 14, "MA53 9C", 16, 9); lib.addlibrarymagazine("vb Magazine", "UofL Mags", 2011, 14, "MA21 5V", 1, 1); // Add 5 Patrons lib.addpatron("ima Reader", "12345"); lib.addpatron("jane Doe", "11223"); lib.addpatron("john Smith", "54321"); lib.addpatron("juarez Waldo", "98765"); lib.addpatron("jean-luc Picard", "33456"); // Precondition: File, About menu item activated // Postcondition: Information about author displayed in dialog box private void abouttoolstripmenuitem_click(object sender, EventArgs e) MessageBox.Show(String.Format("Program 2 - Extra Credit0By: Andrew L. Wright0Edited By : Ben Spalding" + "CIS Spring 2015", System.Environment.NewLine), "About Program 2");

4 // Precondition: File, Exit menu item activated // Postcondition: The application is exited private void exittoolstripmenuitem_click(object sender, EventArgs e) Application.Exit(); // Precondition: Report, Patron List menu item activated // Postcondition: The list of patrons is displayed in the reporttxt // text box private void patronlisttoolstripmenuitem_click(object sender, EventArgs e) StringBuilder result = new StringBuilder(); // Holds text as report being built // StringBuilder more efficient than String List<LibraryPatron> patrons; // List of patrons patrons = lib.getpatronslist(); result.append(string.format("patron List - 0 patrons", lib.getpatroncount())); result.append(system.environment.newline); // Remember, \n doesn't always work in GUIs result.append(system.environment.newline); foreach (LibraryPatron p in patrons) result.append(p.tostring()); result.append(system.environment.newline);

5 result.append(system.environment.newline); reporttxt.text = result.tostring(); // Put cursor at start of report reporttxt.selectionstart = 0; // Precondition: Report, Item List menu item activated // Postcondition: The list of items is displayed in the reporttxt // text box private void itemlisttoolstripmenuitem_click(object sender, EventArgs e) StringBuilder result = new StringBuilder(); // Holds text as report being built // StringBuilder more efficient than String List<LibraryItem> items; // List of library items items = lib.getitemslist(); result.append(string.format("item List - 0 items", lib.getitemcount())); result.append(system.environment.newline); // Remember, \n doesn't always work in GUIs result.append(system.environment.newline); foreach (LibraryItem item in items) result.append(item.tostring());

6 result.append(system.environment.newline); result.append(system.environment.newline); reporttxt.text = result.tostring(); // Put cursor at start of report reporttxt.selectionstart = 0; // Precondition: Report, Checked Out Items menu item activated // Postcondition: The list of checked out items is displayed in the // reporttxt text box private void checkedoutitemstoolstripmenuitem_click(object sender, EventArgs e) StringBuilder result = new StringBuilder(); // Holds text as report being built // StringBuilder more efficient than String List<LibraryItem> items; // List of library items items = lib.getitemslist(); // LINQ: selects checked out items var checkedoutitems = from item in items where item.ischeckedout() select item;

7 result.append(string.format("checked Out Items - 0 items", checkedoutitems.count())); result.append(system.environment.newline); // Remember, \n doesn't always work in GUIs result.append(system.environment.newline); foreach (LibraryItem item in checkedoutitems) result.append(item.tostring()); result.append(system.environment.newline); result.append(system.environment.newline); reporttxt.text = result.tostring(); // Put cursor at start of report reporttxt.selectionstart = 0; // Precondition: Insert, Patron menu item activated // Postcondition: The Patron dialog box is displayed. If data entered // are OK, a LibraryPatron is created and added to the library private void patrontoolstripmenuitem_click(object sender, EventArgs e) PatronForm patronform = new PatronForm(); // The patron dialog box form DialogResult result = patronform.showdialog(); // Show form as dialog and store result if (result == DialogResult.OK) // Only add if OK

8 // Use form's properties to get patron info to send to library lib.addpatron(patronform.patronname, patronform.patronid); patronform.dispose(); // Good.NET practice - will get garbage collected anyway // Precondition: Insert, Book menu item activated // Postcondition: The Book dialog box is displayed. If data entered // are OK, a LibraryBook is created and added to the library private void booktoolstripmenuitem_click(object sender, EventArgs e) BookForm bookform = new BookForm(); // The book dialog box form DialogResult result = bookform.showdialog(); // Show form as dialog and store result if (result == DialogResult.OK) // Only add if OK try // Use form's properties to get book info to send to library lib.addlibrarybook(bookform.itemtitle, bookform.itempublisher, int.parse(bookform.itemcopyrightyear), int.parse(bookform.itemloanperiod), bookform.itemcallnumber, bookform.bookauthor); catch (FormatException) // This should never happen if form validation works!

9 MessageBox.Show("Problem with Book Validation!", "Validation Error"); bookform.dispose(); // Good.NET practice - will get garbage collected anyway // Precondition: Item, Check Out menu item activated // Postcondition: The Checkout dialog box is displayed. If data entered // are OK, an item is checked out from the library by a patron private void checkouttoolstripmenuitem_click(object sender, EventArgs e) // Extra Credit - Only display items that aren't already checked out List<LibraryItem> notcheckedoutlist; // List of items not checked out List<int> notcheckedoutindices; List<LibraryItem> items; List<LibraryPatron> patrons; // List of index values of items not checked out // List of library items // List of patrons items = lib.getitemslist(); patrons = lib.getpatronslist(); notcheckedoutlist = new List<LibraryItem>(); notcheckedoutindices = new List<int>(); for (int i = 0; i < items.count(); ++i) if (!items[i].ischeckedout()) // Not checked out

10 notcheckedoutlist.add(items[i]); notcheckedoutindices.add(i); if ((notcheckedoutlist.count() == 0) (patrons.count() == 0)) // Must have items and patrons MessageBox.Show("Must have items and patrons to check out!", "Check Out Error"); else CheckoutForm checkoutform = new CheckoutForm(notCheckedOutList, patrons); // The check out dialog box form DialogResult result = checkoutform.showdialog(); // Show form as dialog and store result if (result == DialogResult.OK) // Only add if OK try int itemindex; // Index of item from full list of items itemindex = notcheckedoutindices[checkoutform.itemindex]; // Look up index from full list lib.checkout(itemindex, checkoutform.patronindex); catch (ArgumentOutOfRangeException) // This should never happen MessageBox.Show("Problem with Check Out Index!", "Check Out Error");

11 checkoutform.dispose(); // Good.NET practice - will get garbage collected anyway // Precondition: Item, Return menu item activated // Postcondition: The Return dialog box is displayed. If data entered // are OK, an item is returned to the library private void returntoolstripmenuitem_click(object sender, EventArgs e) // Extra Credit - Only display items that are already checked out List<LibraryItem> checkedoutlist; // List of items checked out List<int> checkedoutindices; List<LibraryItem> items; List<LibraryPatron> patrons; // List of index values of items checked out // List of library items // List of patrons items = lib.getitemslist(); patrons = lib.getpatronslist(); checkedoutlist = new List<LibraryItem>(); checkedoutindices = new List<int>(); for (int i = 0; i < items.count(); ++i) if (items[i].ischeckedout()) // Checked out checkedoutlist.add(items[i]); checkedoutindices.add(i);

12 if ((checkedoutlist.count() == 0)) // Must have checked out items MessageBox.Show("Must have checked out items to return!", "Return Error"); else ReturnForm returnform = new ReturnForm(checkedOutList); // The return dialog box form DialogResult result = returnform.showdialog(); // Show form as dialog and store result if (result == DialogResult.OK) // Only add if OK try int itemindex; // Index of item from full list of items itemindex = checkedoutindices[returnform.itemindex]; // Look up index from full list //use this logic except replace checkout and return with book lib.returntoshelf(itemindex); catch (ArgumentOutOfRangeException) // This should never happen MessageBox.Show("Problem with Return Index!", "Return Error"); returnform.dispose(); // Good.NET practice - will get garbage collected anyway

13 // Precondition : A list of Library items // Postcondition : Saves the file to the folder //gotta redo private void savetoolstripmenuitem_click(object sender, EventArgs e) BinaryFormatter formatter = new BinaryFormatter(); DialogResult result; string filename = "Gorbatron.dat"; using (SaveFileDialog filechooser = new SaveFileDialog()) //make all classes [Serializable] filechooser.checkfileexists = false; result = filechooser.showdialog(); filename = filechooser.filename; // FileMode.Create creates a new file if (result == DialogResult.OK) try FileStream filestream = new FileStream(fileName, FileMode.Create,FileAccess.Write);

14 formatter.serialize(filestream, lib); filestream.close(); catch (IOException) MessageBox.Show("Did not write to file try again."); this.close(); // Precondition : a save file from the serialization // Postcondition : opens the list and erases the old one to replace it with private void opentoolstripmenuitem_click(object sender, EventArgs e) //a formatter to deserialize with BinaryFormatter formatter = new BinaryFormatter(); // a new instance of the library to replace the old one and store the new one lib = new Library(); //clears existing lib // stores the result of the serialization DialogResult result;

15 //stores the file name string filename; using (OpenFileDialog filechooser = new OpenFileDialog()) //opens the file explorer result = filechooser.showdialog(); //sets the filename to the name of the file filename = filechooser.filename; // if the ok button was pressed if (result == DialogResult.OK) //if the file name is empty if (filename == string.empty) //closes the form this.close(); else FileStream input; input = new FileStream(fileName, FileMode.Open, FileAccess.Read); //opens the file and reads it //deserializes the file

16 lib = (Library)formatter.Deserialize(input); input.close(); // Precondition : a patron list // Postcondition : replaces the index in the patron list with an edited one private void patrontoolstripmenuitem1_click(object sender, EventArgs e) //the list of library patrons List<LibraryPatron> patrons = lib.getpatronslist(); //an EditPatron form object EditPatron editpatron = new EditPatron(patrons); //a resuilt that whether tthey pressed ok or not DialogResult result = editpatron.showdialog(); //if they pressed ok if (result == DialogResult.OK) try //holds the index of the item you are editing int itemindex = editpatron.getitemindex;

17 LibraryPatron apatron = patrons[itemindex]; // makes a patron object to store the info in that index of the list PatronForm patronform = new PatronForm(); // opens the patron form //these next two lines fill the fields on the patron form with the // info stored in the apatron object patronform.patronname = apatron.patronname; patronform.patronid = apatron.patronid; //a second dialog result for the patron form DialogResult resulttwo = patronform.showdialog(); //did they press ok if (resulttwo == DialogResult.OK) //the next two lines will fill in the patron list apatron.patronname = patronform.patronname; apatron.patronid = patronform.patronid; //closes the form patronform.close(); //actually swaps the data in the selected index patrons[itemindex] = apatron; catch (ArgumentOutOfRangeException)

18 this.close(); // Precondition : a library item list // Postcondition : swaps the data of certain books private void booktoolstripmenuitem1_click(object sender, EventArgs e) //list of items List<LibraryItem> items = lib.getitemslist(); //a new EditBook form object EditBook editbook = new EditBook(items); //opens the editbook form and stores the result DialogResult result = editbook.showdialog(); //list of the indexes List<int> bookindexs = new List<int>(); //if they hit ok if (result == DialogResult.OK) try //list of library books List<LibraryBook> bookitems = new List<LibraryBook>();

19 //a loop that finds library books and stores them and their indexes in two seperate lists for(int i = 0; i < items.count(); ++i) if (items[i] is LibraryBook) LibraryBook newitem = (LibraryBook)items[i]; bookitems.add(newitem); bookindexs.add(i); //stores the partiicular item index int itemindex = bookindexs[editbook.getitemindex]; //a new library book object LibraryBook abook = bookitems[itemindex]; //a bookform object BookForm bookform = new BookForm(); //fills the text boxes with the properties bookform.itemtitle = abook.title; bookform.itempublisher = abook.publisher; bookform.itemloanperiod = abook.loanperiod.tostring(); bookform.itemcopyrightyear = abook.copyrightyear.tostring(); bookform.itemcallnumber = abook.callnumber; bookform.bookauthor = abook.author;

20 DialogResult resulttwo = bookform.showdialog(); if (resulttwo == DialogResult.OK) //sets the propeties equal to the new information abook.title = bookform.itemtitle; abook.publisher = bookform.itempublisher; abook.loanperiod = int.parse(bookform.itemloanperiod); abook.copyrightyear = int.parse(bookform.itemcopyrightyear); abook.callnumber = bookform.itemcallnumber; abook.author = bookform.bookauthor; catch (ArgumentOutOfRangeException) this.close();

// Program 4 // CIS // Due: 4/12/2015 // By: Ben Spalding

// Program 4 // CIS // Due: 4/12/2015 // By: Ben Spalding // Program 4 // CIS 200-01 // Due: 4/12/2015 // By: Ben Spalding //This program was created to use the Icomparer and IComparable interfaces to sort objects of the library item class // the sorts are at

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

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

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

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

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

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

XNA 4.0 RPG Tutorials. Part 24. Level Editor Continued

XNA 4.0 RPG Tutorials. Part 24. Level Editor Continued XNA 4.0 RPG Tutorials Part 24 Level Editor Continued 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

More information

UNIVERSITY OF THE FREE STATE MAIN & QWA-QWA CAMPUS RIS 124 DEPARTMENT: COMPUTER SCIENCE AND INFORMATICS CONTACT NUMBER:

UNIVERSITY OF THE FREE STATE MAIN & QWA-QWA CAMPUS RIS 124 DEPARTMENT: COMPUTER SCIENCE AND INFORMATICS CONTACT NUMBER: UNIVERSITY OF THE FREE STATE MAIN & QWA-QWA CAMPUS RIS 124 DEPARTMENT: COMPUTER SCIENCE AND INFORMATICS CONTACT NUMBER: 4012754 EXAMINATION: Main End-of-year Examination 2013 PAPER 1 ASSESSORS: Prof. P.J.

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

namespace Prog1A { public abstract class LibraryItem {

namespace Prog1A { public abstract class LibraryItem { //Program 1a //ben spalding //2/17/15 //this is a complex class heierarchy //cis200 01 using System; public abstract class LibraryItem private Int32 _copyrightyear; //the backing field for the copyrightyear

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

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

Chapter 8 Advanced GUI Features

Chapter 8 Advanced GUI Features 159 Chapter 8 Advanced GUI Features There are many other features we can easily add to a Windows C# application. We must be able to have menus and dialogs along with many other controls. One workhorse

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

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

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

Appendix A Programkod

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

More information

In-Class Worksheet #4

In-Class Worksheet #4 CSE 459.24 Programming in C# Richard Kidwell In-Class Worksheet #4 Creating a Windows Forms application with Data Binding You should have Visual Studio 2008 open. 1. Create a new Project either from the

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

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

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

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

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

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

Chapter 6 Dialogs. Creating a Dialog Style Form

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

More information

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

ENGR/CS 101 CS Session Lecture 13

ENGR/CS 101 CS Session Lecture 13 ENGR/CS 101 CS Session Lecture 13 Log into Windows/ACENET (reboot if in Linux) Start Microsoft Visual Studio 2012 and open the Substitution Cipher Project Has everyone finished the program from last class

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

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

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

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

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

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

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

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

JOURNAL OF OBJECT TECHNOLOGY

JOURNAL OF OBJECT TECHNOLOGY JOURNAL OF OBJECT TECHNOLOGY Online at http://www.jot.fm. Published by ETH Zurich, Chair of Software Engineering JOT, 2009 Vol. 8, No. 1, January-February 2009 EDUCATOR S CORNER A Model-View Implementation

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

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

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

More information

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

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

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

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

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

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

More information

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

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

XNA 4.0 RPG Tutorials. Part 25. Level Editor Continued

XNA 4.0 RPG Tutorials. Part 25. Level Editor Continued XNA 4.0 RPG Tutorials Part 25 Level Editor Continued 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

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

Windows File I/O. Files. Collections of related data stored on external storage media and assigned names so that they can be accessed later

Windows File I/O. Files. Collections of related data stored on external storage media and assigned names so that they can be accessed later Windows File I/O Files Collections of related data stored on external storage media and assigned names so that they can be accessed later Entire collection is a file A file is made up of records One record

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

Lecture 8 Building an MDI Application

Lecture 8 Building an MDI Application Lecture 8 Building an MDI Application Introduction The MDI (Multiple Document Interface) provides a way to display multiple (child) windows forms inside a single main(parent) windows form. In this example

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

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

Huw Talliss Data Structures and Variables. Variables

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

More information

// Specify SEF file to load. 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

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

Developing for Mobile Devices Lab (Part 1 of 2)

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

More information

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

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

More information

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

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

Creating a Role Playing Game with XNA Game Studio Part 50 Items - Part 4b

Creating a Role Playing Game with XNA Game Studio Part 50 Items - Part 4b Creating a Role Playing Game with XNA Game Studio Part 50 Items - Part 4b To follow along with this tutorial you will have to have read the previous tutorials to understand much of what it going on. You

More information

IST311 Chapter13.NET Files (Part2)

IST311 Chapter13.NET Files (Part2) IST311 Chapter13.NET Files (Part2) using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text;

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

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

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

More information

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

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

A Summoner's Tale MonoGame Tutorial Series. Chapter 10. Creating Avatars

A Summoner's Tale MonoGame Tutorial Series. Chapter 10. Creating Avatars A Summoner's Tale MonoGame Tutorial Series Chapter 10 Creating Avatars This tutorial series is about creating a Pokemon style game with the MonoGame Framework called A Summoner's Tale. The tutorials will

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

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

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

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

UNIVERSITY OF THE FREE STATE DEPARTMENT OF COMPUTER SCIENCE AND INFORMATICS RIS 214 MODULE TEST 1

UNIVERSITY OF THE FREE STATE DEPARTMENT OF COMPUTER SCIENCE AND INFORMATICS RIS 214 MODULE TEST 1 UNIVERSITY OF THE FREE STATE DEPARTMENT OF COMPUTER SCIENCE AND INFORMATICS RIS 214 MODULE TEST 1 DATE: 12 March 2014 TIME: 4 hours MARKS: 220 ASSESSORS: Prof. P.J. Blignaut & Mr G.J. Dollman BONUS MARKS:

More information

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

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

More information

Hands-On Lab (MBL04) Lab Manual Incorporating COM Objects into Your.NET Compact Framework 2.0 Application

Hands-On Lab (MBL04) Lab Manual Incorporating COM Objects into Your.NET Compact Framework 2.0 Application Hands-On Lab (MBL04) Lab Manual Incorporating COM Objects into Your.NET Compact Framework 2.0 Application Please do not remove this manual from the lab Information in this document is subject to change

More information

Chapter 12. Tool Strips, Status Strips, and Splitters

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

More information

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

EEE-448 COMPUTER NETWORKS (Programming) Week -6 C# & IP Programming. The StringBuilder Class. StringBuilder Classes. StringBuilder with Append

EEE-448 COMPUTER NETWORKS (Programming) Week -6 C# & IP Programming. The StringBuilder Class. StringBuilder Classes. StringBuilder with Append EEE-448 COMPUTER NETWORKS (Programming) Week -6 C# & IP Programming Turgay IBRIKCI, PhD EEE448 Computer Networks Spring 2011 EEE448 Computer Networks Spring 2011 The StringBuilder Class The StringBuilder

More information

This is an open-book test. You may use the text book Be Sharp with C# but no other sources, written or electronic, will be allowed.

This is an open-book test. You may use the text book Be Sharp with C# but no other sources, written or electronic, will be allowed. UNIVERSITY OF THE FREE STATE DEPARTMENT OF COMPUTER SCIENCE AND INFORMATICS RIS 124 DATE: 5 September 2011 TIME: 3½ hours MARKS: 150 ASSESSORS: Prof. P.J. Blignaut & Mr. M.B. Mase MODERATOR: Dr. A. van

More information

TuneTown Lab Instructions

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

More information

Class Test 5. Create a simple paint program that conforms to the following requirements.

Class Test 5. Create a simple paint program that conforms to the following requirements. Class Test 5 Question 1 Use visual studio 2012 ultimate to create a C# windows forms application. Create a simple paint program that conforms to the following requirements. The control box is disabled

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

NI USB-TC01 Thermocouple Measurement Device

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

More information

Визуал програмчлал. Багш: Ж. Шинэбаяр /Маг/

Визуал програмчлал. Багш: Ж. Шинэбаяр /Маг/ Визуал програмчлал Лабораторийн ажил 13. NotePad /Forms Application/. Олон форм үүсгэх; Формуудыг хэлбэршүүлэх; Бусад формуудаас утга авах. Лабораторын ажлыг гүйцэтгэх дараалал: 1. Шинэ project үүсгэн

More information

EECE.3220: Data Structures Spring 2017

EECE.3220: Data Structures Spring 2017 EECE.3220: Data Structures Spring 2017 Lecture 14: Key Questions February 24, 2017 1. Describe the characteristics of an ADT to store a list. 2. What data members would be necessary for a static array-based

More information

Chapter 8 Files. File Streams

Chapter 8 Files. File Streams Chapter 8 Files Few programs are written that don t involve some type of file input/output. Way back in the days when the C language became popular a set of library functions were designed that have been

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

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

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

Advanced Programming C# Lecture 2. dr inż. Małgorzata Janik Advanced Programming C# Lecture 2 dr inż. Małgorzata Janik majanik@if.pw.edu.pl Winter Semester 2017/2018 C# Classes, Properties, Controls Constructions of Note using namespace like import in Java: bring

More information

Computer measurement and control

Computer measurement and control Computer measurement and control Instructors: András Magyarkuti, Zoltán Kovács-Krausz BME TTK, Department of Physics 2017/2018 spring semester Copyright 2008-2018 András Magyarkuti, Attila Geresdi, András

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

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

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

HIDING PACKET SEND THROUGH MULTIPLE TRANSMISSION LINE BY VIRTUALLY IN AD HOC

HIDING PACKET SEND THROUGH MULTIPLE TRANSMISSION LINE BY VIRTUALLY IN AD HOC HIDING PACKET SEND THROUGH MULTIPLE TRANSMISSION LINE BY VIRTUALLY IN AD HOC N. MOHAMED BAYAS 1, Mr. S.Rajesh 2 1 PG Student, 2 Assistant Professor, Department of Computer Science and Engineering, Abstract

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

2.3 Add GDS Google Map to Visual Studio Toolbox and create a simple map project

2.3 Add GDS Google Map to Visual Studio Toolbox and create a simple map project 1. Introduction GDS Google Map is a Desktop.Net User Control, which can be embedded in Windows Forms Applications or hosted in WPF Applications. It integrates an interactive Google Map into your desktop

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

Silverlight memory board ( Part 2 )

Silverlight memory board ( Part 2 ) Silverlight memory board ( Part 2 ) In the first part this tutorial we created a new Silverlight project and designed the user interface. In this part, we will add some code to the project to make the

More information

Hands-On Lab. Lab 05: LINQ to SharePoint. Lab version: Last updated: 2/23/2011

Hands-On Lab. Lab 05: LINQ to SharePoint. Lab version: Last updated: 2/23/2011 Hands-On Lab Lab 05: LINQ to SharePoint Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 EXERCISE 1: CREATING LIST DATA... 3 EXERCISE 2: CREATING ENTITIES USING THE SPMETAL UTILITY...

More information

Chair of Software Engineering. Java and C# in Depth. Prof. Dr. Bertrand Meyer. Exercise Session 9. Nadia Polikarpova

Chair of Software Engineering. Java and C# in Depth. Prof. Dr. Bertrand Meyer. Exercise Session 9. Nadia Polikarpova Chair of Software Engineering Java and C# in Depth Prof. Dr. Bertrand Meyer Exercise Session 9 Nadia Polikarpova Quiz 1: scrolling a ResultSet (JDBC) How do you assess the following code snippet that iterates

More information

private string sconnection = ConfigurationManager.ConnectionStrings["Development"].ConnectionString

private string sconnection = ConfigurationManager.ConnectionStrings[Development].ConnectionString using System; using System.Configuration; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Text; using System.Windows.Forms;

More information

Session 10. Microsoft and The DigiPen Institute of Technology Webcast Series

Session 10. Microsoft and The DigiPen Institute of Technology Webcast Series Session 10 Microsoft and The DigiPen Institute of Technology Webcast Series HOW TO USE THIS DOCUMENT This e-textbook has been distributed electronically using the Adobe Portable Document Format (PDF) format.

More information