Chapter 14 WCF Client WPF Implementation. Screen Layout

Size: px
Start display at page:

Download "Chapter 14 WCF Client WPF Implementation. Screen Layout"

Transcription

1 Chapter 14 WCF Client WPF Implementation Screen Layout

2 Window1.xaml <Window x:class="chap14wcfclient.window1" xmlns=" xmlns:x=" xmlns:vc="clrnamespace:wpfcommonlib.valueconverters;assembly=wpfcommonlib" Title="Window1" Height="376" Width="496" Loaded="Window_Loaded"> <Window.Resources> <vc:currencyconverter x:key="currencyconverter"/> </Window.Resources> <Grid x:name="gridmain"> <StackPanel Name="stackPanel1" Height="27" VerticalAlignment="Top" Orientation="Horizontal"> <Label Height="28" Name="label1" Width="70">Customers:</Label> <ComboBox Name="_comboBoxCustomers" DisplayMemberPath="Name" SelectedValuePath="ContactID" Height="23" Width="151" SelectionChanged="_comboBoxCustomers_SelectionChanged" /> <TextBlock Height="28" Name="textBlock1" Width="74" /> <Button Height="23" Name="_buttonSave" Width="75" HorizontalAlignment="Right" Click="_buttonSave_Click">Save</Button> <StackPanel Margin="0,27,0,0" Name="stackPanel2" HorizontalAlignment="Left" Width="154" Height="125" VerticalAlignment="Top"> <Label Height="25" Name="label2" Width="154">Title:</Label> <Label Height="25" Name="label3" Width="156">FirstName:</Label> <Label Height="25" Name="label4" Width="156">LastName:</Label> <Label Height="25" Name="label5" Width="156">Notes:</Label> <Label Height="25" Name="label6" Width="156">Initial Date:</Label> <StackPanel Margin="154,27,0,0" Name="stackPanel3" Height="125" VerticalAlignment="Top" HorizontalAlignment="Left" Width="217"> <TextBox Height="25" Name="_textBoxTitle" Text="Binding Path=Title" Width="215" /> <TextBox Height="25" Name="_textBoxFirstName" Text="Binding Path=FirstName" Width="215" /> <TextBox Height="25" Name="_textBoxLastName" Text="Binding Path=LastName" Width="217" /> <TextBox Height="25" Name="_textBoxNotes" Text ="Binding Path=Notes" Width="215" /> <TextBox Height="25" Name="_textBoxInitialDate" Text="Binding Path=InitialDate, StringFormat=dd/MM/yyyy" Width="215" /> <StackPanel Margin="370,0,-1,186" Name="stackPanel4" Height="125" VerticalAlignment="Bottom"> <Button Height="23" Name="_newCustomer" Width="90" VerticalAlignment="Center" Click="_newCustomer_Click">New Customer</Button> <StackPanel Margin="0,152,0,0" Name="stackPanel5" Orientation="Horizontal" VerticalAlignment="Top"> <Label Height="102" Name="label7" Width="79" HorizontalAlignment="Left">Reservations:</Label> <ListBox Height="107" Name="_listBoxReservations" Width="208"> <ListBox.ItemTemplate>

3 <DataTemplate> <Border BorderThickness="2" CornerRadius="4" BorderBrush="Red"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> </Grid.RowDefinitions> <TextBlock Grid.ColumnSpan="2" FontWeight="Bold" Foreground="Blue" Text="Binding Path=ReservationDate, StringFormat=dd/MM/yyyy"/> <TextBlock Grid.Row="1" FontWeight="Bold" Text="StartDate :"/> <TextBlock Grid.Row="1" Grid.Column="1" Text="Binding Path=Trip.StartDate, StringFormat=dd/MM/yyyy"/> <TextBlock Grid.Row="2" FontWeight="Bold" Text="EndDate :"/> <TextBlock Grid.Row="2" Grid.Column="1" Text="Binding Path=Trip.EndDate, StringFormat=dd/MM/yyyy"/> <TextBlock Grid.Row="3" FontWeight="Bold" Text="Destination :"/> <TextBlock Grid.Row="3" Grid.Column="1" Text="Binding Path=Trip.Destination.DestinationName"/> </Grid> </Border> </DataTemplate> </ListBox.ItemTemplate> </ListBox> <ComboBox Height="23" Name="_comboBoxTrips" Width="185" VerticalAlignment="Top" StaysOpenOnEdit="True"> <ComboBox.ItemTemplate> <DataTemplate> <Border BorderThickness="2" CornerRadius="4" BorderBrush="Blue" Width="200"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> </Grid.RowDefinitions>

4 <TextBlock FontWeight="Bold" Text="Destination: "/> <TextBlock Grid.Column="1" Text="Binding Path=Destination.DestinationName"/> <TextBlock Grid.Row="1" Text="StartDate: "/> <TextBlock Grid.Row="1" Grid.Column="1" Text="Binding Path=StartDate, StringFormat=dd/MM/yyyy "/> <TextBlock Grid.Row="2" Text="EndDate: "/> <TextBlock Grid.Row="2" Grid.Column="1" Text="Binding Path=EndDate, StringFormat=dd/MM/yyyy "/> <TextBlock Grid.Row="3" Text="Trip Cost: "/> <TextBlock Grid.Row="3" Grid.Column="1" Text="Binding Path=TripCostUSD, Converter=StaticResource CurrencyConverter"/> </Grid> </Border> </DataTemplate> </ComboBox.ItemTemplate> </ComboBox> <Button Height="23" HorizontalAlignment="Left" Margin="4,0,0,39" Name="_buttonAddReservation" VerticalAlignment="Bottom" Width="113" Click="_buttonAddReservation_Click">Add Reservation</Button> <Button Height="23" Margin="117,0,179,39" Name="_buttonDeleteReservation" VerticalAlignment="Bottom" Click="_buttonDeleteReservation_Click">Delete Selected Reservation</Button> </Grid> </Window> Window1.xaml.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using Chap14WcfClient.BAWCFService; using WpfCommonLib.ValueConverters; namespace Chap14WcfClient /// <summary> /// Project : Programming Entity Framework (Julia Lerman) /// Author : Emmanuel Nuyttens /// Purpose : Errata on Chapter 14 - WPF Implementation. /// </summary> public partial class Window1 : Window

5 List<int> _resdeletelist; Customer _currentcustomer; public Window1() InitializeComponent(); private void Window_Loaded(object sender, RoutedEventArgs e) FillCombo(); private void FillCombo() var custtrips = GetCustsAndTrips(); this._comboboxcustomers.itemssource = custtrips.custs; this._comboboxtrips.itemssource = custtrips.trips; private void _comboboxcustomers_selectionchanged(object sender, SelectionChangedEventArgs e) if (_comboboxcustomers.selectedindex > -1 && _comboboxcustomers.selectedvalue!= null) _currentcustomer = GetCustomer((Int32)_comboBoxCustomers.SelectedValue); if (_currentcustomer!= null) this.datacontext = _currentcustomer; _resdeletelist = new List<int>(); this.showreservations(); private void ShowReservations() _listboxreservations.itemssource = null; if (_currentcustomer.reservations.count > 0) _listboxreservations.itemssource = _currentcustomer.reservations; private void _newcustomer_click(object sender, RoutedEventArgs e) _currentcustomer = new Customer(); _currentcustomer.timestamp = System.Text.Encoding.Default.GetBytes("0x123");

6 _currentcustomer.timestamp1 = System.Text.Encoding.Default.GetBytes("0x123"); _currentcustomer.reservations = new List<Reservation>(); this.datacontext = _currentcustomer; _resdeletelist = new List<int>(); ShowReservations(); private void _buttonaddreservation_click(object sender, RoutedEventArgs e) var seltrip = (Trip)_comboBoxTrips.SelectedItem; if (seltrip!= null) Reservation newres = new Reservation(); // get the trip + location newres.trip = seltrip; newres.tripdetails = seltrip.tripdetails; newres.reservationdate = System.DateTime.Now; newres.timestamp = System.Text.Encoding.Default.GetBytes("0x123"); _currentcustomer.reservations.add(newres); // Refresh the ListBox of the Reservations ShowReservations(); private void _buttondeletereservation_click(object sender, RoutedEventArgs e) if (_listboxreservations.selectedindex >= 0) // Add reservationid to the deletedlist Int32 id = (_listboxreservations.selecteditem as Reservation).ReservationID; _resdeletelist.add(id); // Find the reservation in the customer's reservations Reservation delres = _currentcustomer.reservations.where(r => r.reservationid == id).firstordefault(); if (delres!= null) _currentcustomer.reservations.remove(delres); ShowReservations(); private void _buttonsave_click(object sender, RoutedEventArgs e) var status = UpdateCustomer(); // in case of insert customer, new id of customer is returned if (string.isnullorempty(status) == false) // did the update return an id?

7 int newid = 0; if (int.tryparse(status, out newid)) _currentcustomer.contactid = newid; FillCombo(); _comboboxcustomers.selectedvalue = newid; #region WCF Service Related Data Loader and Data Persistance Methods private CustsandTrips GetCustsAndTrips() using (CustomerServiceClient proxy = new CustomerServiceClient()) return proxy.getcustsandtrips(); private Customer GetCustomer(int p_customerid) using (CustomerServiceClient proxy = new CustomerServiceClient()) return proxy.getcustomer(p_customerid); private string UpdateCustomer() string status = null; using (CustomerServiceClient proxy = new CustomerServiceClient()) if (_currentcustomer.contactid == 0) status = proxy.insertcustomer(_currentcustomer); else CusttoEdit custedit = new CusttoEdit(); custedit.customer = _currentcustomer; custedit.reservationstodelete = _resdeletelist; status = proxy.updatecustomer(custedit); return status; #endregion

8 CurrencyConverter using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Data; using System.Globalization; namespace WpfCommonLib.ValueConverters [ValueConversion(typeof(decimal),typeof(string))] public class CurrencyConverter : IValueConverter #region IValueConverter Members public object Convert(object value, Type targettype, object parameter, System.Globalization.CultureInfo culture) if (value!= null && value.tostring()!= string.empty) decimal money = Decimal.Parse(value.ToString()); return money.tostring("c",culture); return null; public object ConvertBack(object value, Type targettype, object parameter, System.Globalization.CultureInfo culture) string money = value.tostring(); decimal result; result)) if (Decimal.TryParse(money, NumberStyles.Any, null, out return result; return value; #endregion

wpf5concat Start Microsoft Visual Studio. File New Project WPF Application, Name= wpf5concat OK.

wpf5concat Start Microsoft Visual Studio. File New Project WPF Application, Name= wpf5concat OK. Start Microsoft Visual Studio. wpf5concat File New Project WPF Application, Name= wpf5concat OK. The Solution Explorer displays: Solution wpf5concat, wpf5concat, Properties, References, App.xaml, MainWindow.xaml.

More information

Microsoft Virtual Labs. Building Windows Presentation Foundation Applications - C# - Part 1

Microsoft Virtual Labs. Building Windows Presentation Foundation Applications - C# - Part 1 Microsoft Virtual Labs Building Windows Presentation Foundation Applications - C# - Part 1 Table of Contents Building Windows Presentation Foundation Applications - C# - Part 1... 1 Exercise 1 Creating

More information

This tutorial has been designed for all those readers who want to learn WPF and to apply it instantaneously in different type of applications.

This tutorial has been designed for all those readers who want to learn WPF and to apply it instantaneously in different type of applications. About the Tutorial WPF stands for Windows Presentation Foundation. It is a powerful framework for building Windows applications. This tutorial explains the features that you need to understand to build

More information

טכנולוגיית WPF מספקת למפתחים מודל תכנות מאוחד לחוויית בניית יישומיי. ניהול התצוגה מתבצע בשפת הסימון Extensible Application Markup ) XAML

טכנולוגיית WPF מספקת למפתחים מודל תכנות מאוחד לחוויית בניית יישומיי. ניהול התצוגה מתבצע בשפת הסימון Extensible Application Markup ) XAML WPF-Windows Presentation Foundation Windows WPF טכנולוגיית WPF מספקת למפתחים מודל תכנות מאוחד לחוויית בניית יישומיי Client חכמים המשלב ממשקי משתמש,תקשורת ומסמכים..(Behavior) לבין התנהגותו (User Interface)

More information

APPLICATION NOTE. Atmel AVR10006: XDK User Guide. Atmel Microcontrollers. Features. Description

APPLICATION NOTE. Atmel AVR10006: XDK User Guide. Atmel Microcontrollers. Features. Description APPLICATION NOTE Atmel AVR10006: XDK User Guide Atmel Microcontrollers Features Extension Developer s Kit user guide Generate and publish an Atmel Studio extension Atmel Studio IDE SDK Embedded SDK Description

More information

Conexión SQL Server C#

Conexión SQL Server C# Conexión SQL Server C# 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

آموزش DataGrid در WPF به همراه صفحه بندي و جستجوي انتخابی. کلیک کن www.papro-co.ir

آموزش DataGrid در WPF به همراه صفحه بندي و جستجوي انتخابی. کلیک کن www.papro-co.ir آموزش DataGrid در WPF به همراه صفحه بندي و جستجوي انتخابی در پاپرو برنامه نویسی را شیرین یاد بگیرید کلیک کن www.papro-co.ir WPF DataGrid Custom Paging and Sorting This article shows how to implement custom

More information

A Step by Step Guide for Building an Ozeki VoIP SIP Softphone

A Step by Step Guide for Building an Ozeki VoIP SIP Softphone Lesson 3 A Step by Step Guide for Building an Ozeki VoIP SIP Softphone Abstract 2012. 01. 20. The third lesson of is a detailed step by step guide that will show you everything you need to implement for

More information

Windows Presentation Foundation Tutorial 1

Windows Presentation Foundation Tutorial 1 Windows Presentation Foundation Tutorial 1 PDF: Tutorial: A http://billdotnet.com/wpf.pdf http://billdotnet.com/dotnet_lecture/dotnet_lecture.htm Introduction 1. Start Visual Studio 2008, and select a

More information

STEP BY STEP to Build the Application 1. Start a. Open a MvvmLight (WPF4) application and name it MvvmControlChange.

STEP BY STEP to Build the Application 1. Start a. Open a MvvmLight (WPF4) application and name it MvvmControlChange. Application Description This MVVM WPF application includes a WPF Window with a contentcontrol and multiple UserControls the user can navigate between with button controls. The contentcontrols will have

More information

Einführung in die Windows Store App Entwicklung mit C# und XAML. Modul 2 Datenbindung und Zugriff auf das lokale Dateisystem

Einführung in die Windows Store App Entwicklung mit C# und XAML. Modul 2 Datenbindung und Zugriff auf das lokale Dateisystem Einführung in die Windows Store App Entwicklung mit C# und XAML Modul 2 Datenbindung und Zugriff auf das lokale Dateisystem Oktober 2013 www.softed.de Referentin Beate Lay C# Programmierung SharePoint

More information

I A Form és a párbeszédablakok I.1. MessageBox osztály MessageBox.Show(szöveg[,cím[,gombok[,ikon[,defaultbutton]]]]);

I A Form és a párbeszédablakok I.1. MessageBox osztály MessageBox.Show(szöveg[,cím[,gombok[,ikon[,defaultbutton]]]]); I A Form és a párbeszédablakok I.1. MessageBox osztály MessageBox.Show(szöveg[,cím[,gombok[,ikon[,defaultbutton]]]]); szöveg, cím gomb ikon defaultbutton String - MessageBoxButtons.OK - MessageBoxIcon.Asterix.Error.OKCancel.Question

More information

1. WPF Tutorial Page 1 of 431 wpf-tutorial.com

1. WPF Tutorial Page 1 of 431 wpf-tutorial.com 1. WPF Tutorial Page 1 of 431 1.1. About WPF 1.1.1. What is WPF? WPF, which stands for Windows Presentation Foundation, is Microsoft's latest approach to a GUI framework, used with the.net framework. But

More information

WINDOWS PRESENTATION FOUNDATION LEKTION 3

WINDOWS PRESENTATION FOUNDATION LEKTION 3 WINDOWS PRESENTATION FOUNDATION LEKTION 3 Mahmud Al Hakim [email protected] www.alhakim.se COPYRIGHT 2015 MAHMUD AL HAKIM WWW.WEBACADEMY.SE 1 AGENDA Introduktion till Databindning (Data Binding) Element

More information

Introduction to the BackgroundWorker Component in WPF

Introduction to the BackgroundWorker Component in WPF Introduction to the BackgroundWorker Component in WPF An overview of the BackgroundWorker component by JeremyBytes.com The Problem We ve all experienced it: the application UI that hangs. You get the dreaded

More information

Introduction to C#, Visual Studio and Windows Presentation Foundation

Introduction to C#, Visual Studio and Windows Presentation Foundation Introduction to C#, Visual Studio and Windows Presentation Foundation Lecture #3: C#, Visual Studio, and WPF Joseph J. LaViola Jr. Fall 2008 Fall 2008 CAP 6938 Topics in Pen-Based User Interfaces Joseph

More information

How To Create A Database In Araba

How To Create A Database In Araba create database ARABA use ARABA create table arac ( plaka varchar(15), marka varchar(15), model varchar(4)) create table musteri ( tck varchar(11), ad varchar(15), soy varchar(15)) drop table kiralama

More information

Implementing a WCF Service in the Real World

Implementing a WCF Service in the Real World Implementing a WCF Service in the Real World In the previous chapter, we created a basic WCF service. The WCF service we created, HelloWorldService, has only one method, called GetMessage. Because this

More information

Using ilove SharePoint Web Services Workflow Action

Using ilove SharePoint Web Services Workflow Action Using ilove SharePoint Web Services Workflow Action This guide describes the steps to create a workflow that will add some information to Contacts in CRM. As an example, we will use demonstration site

More information

Web Services API Developer Guide

Web Services API Developer Guide Web Services API Developer Guide Contents 2 Contents Web Services API Developer Guide... 3 Quick Start...4 Examples of the Web Service API Implementation... 13 Exporting Warehouse Data... 14 Exporting

More information

PROCEDURE INSERTION(NUM IN EMPLOYES.NUMEMP%TYPE, NOM VARCHAR2, PRENOM IN VARCHAR2, PPHOTO IN BLOB, SALAIRE IN NUMBER);

PROCEDURE INSERTION(NUM IN EMPLOYES.NUMEMP%TYPE, NOM VARCHAR2, PRENOM IN VARCHAR2, PPHOTO IN BLOB, SALAIRE IN NUMBER); Le Package CREATE OR REPLACE PACKAGE GESTIONEMPLOYES AS DECLARATION DE LA VARIABLE DE TYPE REF CURSOR DECLARATION DES PROCÉDURES ET FONCTIONS TYPE EMPRESULTAT IS REF CURSOR; PROCEDURE INSERTION(NUM IN

More information

THE USE OF WPF FOR DEVELOPMENT OF INTERACTIVE GEOMETRY SOFTWARE

THE USE OF WPF FOR DEVELOPMENT OF INTERACTIVE GEOMETRY SOFTWARE Acta Universitatis Matthiae Belii ser. Mathematics, 16 (2009), 65 79. Received: 28 June 2009, Accepted: 2 February 2010. THE USE OF WPF FOR DEVELOPMENT OF INTERACTIVE GEOMETRY SOFTWARE DAVORKA RADAKOVIĆ

More information

See the Developer s Getting Started Guide for an introduction to My Docs Online Secure File Delivery and how to use it programmatically.

See the Developer s Getting Started Guide for an introduction to My Docs Online Secure File Delivery and how to use it programmatically. My Docs Online Secure File Delivery API: C# Introduction My Docs Online has provided HIPAA-compliant Secure File Sharing and Delivery since 1999. With the most recent release of its web client and Java

More information

Relationships in WPF Applications

Relationships in WPF Applications Chapter 15 Relationships in WPF Applications Table of Contents Chapter 15... 15-1 Relationships in WPF Applications... 15-1 One-To-Many Combo Box to List Box... 15-1 One-To-Many Relationships using Properties...

More information

Save Actions User Guide

Save Actions User Guide Microsoft Dynamics CRM for Sitecore CMS 6.3-6.5 Save Actions User Guide Rev: 2012-04-26 Microsoft Dynamics CRM for Sitecore CMS 6.3-6.5 Save Actions User Guide A practical guide to using Microsoft Dynamics

More information

Aucune validation n a été faite sur l exemple.

Aucune validation n a été faite sur l exemple. Cet exemple illustre l utilisation du Type BLOB dans la BD. Aucune validation n a été faite sur l exemple. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data;

More information

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Windows 10 Apps Development

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Windows 10 Apps Development About the Tutorial Welcome to Windows 10 tutorial. This tutorial is designed for people who want to learn how to develop apps meant for Windows 10. After completing it, you will have a better understating

More information

How to install and setup XLabs

How to install and setup XLabs Table of content 1 Prologue... 2 2 Introduction... 3 3 Add XLabs to project (VS2013 - Update 2)... 4 3.1 Initial installation... 4 3.2 Installing updates automatically... 5 3.3 Installing specific versions

More information

Understanding In and Out of XAML in WPF

Understanding In and Out of XAML in WPF Understanding In and Out of XAML in WPF 1. What is XAML? Extensible Application Markup Language and pronounced zammel is a markup language used to instantiate.net objects. Although XAML is a technology

More information

Software Engineering 1 EEL5881 Spring 2009. Homework - 2

Software Engineering 1 EEL5881 Spring 2009. Homework - 2 Software Engineering 1 EEL5881 Spring 2009 Homework - 2 Submitted by Meenakshi Lakshmikanthan 04/01/2009 PROBLEM STATEMENT: Implement the classes as shown in the following diagram. You can use any programming

More information

2009 Tutorial (DB4O and Visual Studio 2008 Express)

2009 Tutorial (DB4O and Visual Studio 2008 Express) Jákup Wenningstedt Hansen Side 1 12-10-2009 2009 Tutorial (DB4O and Visual Studio 2008 Express)...1 Download the Database...1 Installation of the Database...2 Creating the project in VS...3 Pointing VS

More information

Getting Started with Telerik Data Access. Contents

Getting Started with Telerik Data Access. Contents Contents Overview... 3 Product Installation... 3 Building a Domain Model... 5 Database-First (Reverse) Mapping... 5 Creating the Project... 6 Creating Entities From the Database Schema... 7 Model-First

More information

How To Develop A Mobile Application On Sybase Unwired Platform

How To Develop A Mobile Application On Sybase Unwired Platform Tutorial: Windows Mobile Application Development Sybase Unwired Platform 2.1 DOCUMENT ID: DC01285-01-0210-01 LAST REVISED: December 2011 Copyright 2011 by Sybase, Inc. All rights reserved. This publication

More information

Systems Programming & Scripting

Systems Programming & Scripting Systems Programming & Scripting Lecture 6: C# GUI Development Systems Prog. & Script. - Heriot Watt Univ 1 Blank Form Systems Prog. & Script. - Heriot Watt Univ 2 First Form Code using System; using System.Drawing;

More information

Tutorial: Windows Mobile Application Development. Sybase Unwired Platform 2.1 ESD #2

Tutorial: Windows Mobile Application Development. Sybase Unwired Platform 2.1 ESD #2 Tutorial: Windows Mobile Application Development Sybase Unwired Platform 2.1 ESD #2 DOCUMENT ID: DC01285-01-0212-01 LAST REVISED: March 2012 Copyright 2012 by Sybase, Inc. All rights reserved. This publication

More information

İNTERNET TABANLI PROGRAMLAMA- 13.ders GRIDVIEW, DETAILSVIEW, ACCESSDATASOURCE NESNELERİ İLE BİLGİ GÖRÜNTÜLEME

İNTERNET TABANLI PROGRAMLAMA- 13.ders GRIDVIEW, DETAILSVIEW, ACCESSDATASOURCE NESNELERİ İLE BİLGİ GÖRÜNTÜLEME İNTERNET TABANLI PROGRAMLAMA- 13.ders GRIDVIEW, DETAILSVIEW, ACCESSDATASOURCE NESNELERİ İLE BİLGİ GÖRÜNTÜLEME Asp.Net kodları

More information

webcrm API Getting Started

webcrm API Getting Started webcrm API Getting Started 17.09.2012 / 08.12.2015 TS Contents.NET Application with autogenerated proxy class... 2.NET Application sending SOAP messages directly... 10 .NET Application with auto generated

More information

Introduction to Windows Presentation Foundation

Introduction to Windows Presentation Foundation Page 1 of 41 2009 Microsoft Corporation. All rights reserved. Windows Presentation Foundation Windows Presentation Foundation (WPF) is a next-generation presentation system for building Windows client

More information

1. La classe Connexion class Connexion {

1. La classe Connexion class Connexion { 1. La classe Connexion class Connexion public static string chaine; IDbConnection cnx; IDbCommand cmd; IDataReader dr; private string chainesqlserver = "Data Source=localhost;Initial catalog=reservations;

More information

Xamarin.Forms. Hands On

Xamarin.Forms. Hands On Xamarin.Forms Hands On Hands- On: Xamarin Forms Ziele Kennenlernen von Xamarin.Forms, wich:gste Layouts und Views UI aus Code mit Data Binding Erweitern von Forms Elementen mit Na:ve Custom Renderer UI

More information

Implementing multi-user multi-touch scenarios using WPF in Windows* 8 Desktop Apps

Implementing multi-user multi-touch scenarios using WPF in Windows* 8 Desktop Apps Implementing multi-user multi-touch scenarios using WPF in Windows* 8 Desktop Apps Summary In this paper we walk through a sample application (in this case a game that quizzes people on the Periodic Table)

More information

Introduction to Visual Studio and C#

Introduction to Visual Studio and C# Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Introduction to Visual Studio and C# HANS- PETTER HALVORSEN, 2014.03.12 Faculty of Technology, Postboks

More information

How to create a SMTP plugin for ArGoSoft Mail Server,.NET edition (AMS.NET edition) using Visual Studio 2005

How to create a SMTP plugin for ArGoSoft Mail Server,.NET edition (AMS.NET edition) using Visual Studio 2005 How to create a SMTP plugin for ArGoSoft Mail Server,.NET edition (AMS.NET edition) using Visual Studio 2005 About SMTP plugins for AMS.NET edition Plugins should be placed in.net assemblies. One assembly

More information

Aplicação ASP.NET MVC 4 Usando Banco de Dados

Aplicação ASP.NET MVC 4 Usando Banco de Dados Aplicação ASP.NET MVC 4 Usando Banco de Dados Neste exemplo simples, vamos desenvolver uma aplicação ASP.NET MVC para acessar o banco de dados Northwind, que está armazenado no servidor SQL Server e, listar

More information

Mapping Specification for DWG/DXF (MSD) C#.NET Code Samples

Mapping Specification for DWG/DXF (MSD) C#.NET Code Samples Mapping Specification for DWG/DXF (MSD) C#.NET Code Samples The code samples contained herein are intended as learning tools and demonstrate basic coding techniques used to implement MSD. They were created

More information

CHAPTER 10: WEB SERVICES

CHAPTER 10: WEB SERVICES Chapter 10: Web Services CHAPTER 10: WEB SERVICES Objectives Introduction The objectives are: Provide an overview on how Microsoft Dynamics NAV supports Web services. Discuss historical integration options,

More information

Peer - to - Peer Networking

Peer - to - Peer Networking 45 Peer - to - Peer Networking WHAT S IN THIS CHAPTER? An overview of P2P The Microsoft Windows Peer - to - Peer Networking platform, including PNRP and PNM Building P2P applications with the.net Framework

More information

如 何 在 C#.2005 中 使 用 ICPDAS I/O Card 的 DLL 檔 案

如 何 在 C#.2005 中 使 用 ICPDAS I/O Card 的 DLL 檔 案 如 何 在 C#.2005 中 使 用 ICPDAS I/O Card 的 DLL 檔 案 本 文 件 說 明 如 何 在 C#.Net 程 式 中 引 入 ICPDAS I/O Card 的 DLL 檔 案 [ 下 載 安 裝 DLL 驅 動 程 式 與 VC 範 例 程 式 ] 多 年 來, ICPDAS 完 整 的 提 供 了 全 系 列 PCI 與 ISA BUS I/O Card 在 Windows

More information

Active Commerce Developer s Cookbook

Active Commerce Developer s Cookbook Active Commerce Developer s Cookbook Adding a Custom Payment Provider 1. Create the Payment Provider class 2. Register with Unity 3. Add to Payment Options Adding a Custom Tax Calculator 1. Create the

More information

USER GUIDE Appointment Manager

USER GUIDE Appointment Manager 2011 USER GUIDE Appointment Manager 0 Suppose that you need to create an appointment manager for your business. You have a receptionist in the front office and salesmen ready to service customers. Whenever

More information

Capturx for SharePoint 2.0: Notification Workflows

Capturx for SharePoint 2.0: Notification Workflows Capturx for SharePoint 2.0: Notification Workflows 1. Introduction The Capturx for SharePoint Notification Workflow enables customers to be notified whenever items are created or modified on a Capturx

More information

J a v a Quiz (Unit 3, Test 0 Practice)

J a v a Quiz (Unit 3, Test 0 Practice) Computer Science S-111a: Intensive Introduction to Computer Science Using Java Handout #11 Your Name Teaching Fellow J a v a Quiz (Unit 3, Test 0 Practice) Multiple-choice questions are worth 2 points

More information

How To Design An Eprescription System

How To Design An Eprescription System DESIGNING AND DEVELOPMENT OF AN E-PRESCRIPTION SYSTEM BY Nasir Ahmed Bhuiyan ID: 101-15-954 This Report Presented in Partial Fulfillment of the Requirements for the Degree of Bachelor of Science Computer

More information

A PROJECT REPORT ON. SkyDrive. Submitted for the partial fulfillment of the requirement for the Award of the degree of MASTER OF COMPUTER APPLICATION

A PROJECT REPORT ON. SkyDrive. Submitted for the partial fulfillment of the requirement for the Award of the degree of MASTER OF COMPUTER APPLICATION A PROJECT REPORT ON SkyDrive Submitted for the partial fulfillment of the requirement for the Award of the degree of MASTER OF COMPUTER APPLICATION By UTTAM KUWAR VERMA 11004101172 GALGOTIAS INSTITUTE

More information

ADOBE READER AND ACROBAT

ADOBE READER AND ACROBAT ADOBE READER AND ACROBAT IFILTER CONFIGURATION Table of Contents Table of Contents... 1 Overview of PDF ifilter 11 for 64-bit platforms... 3 Installation... 3 Installing Adobe PDF IFilter... 3 Setting

More information

Windows Presentation Foundation Using C#

Windows Presentation Foundation Using C# Windows Presentation Foundation Using C# Student Guide Revision 4.0 Object Innovations Course 4135 Windows Presentation Foundation Using C# Rev. 4.0 Student Guide Information in this document is subject

More information

Comp151. Definitions & Declarations

Comp151. Definitions & Declarations Comp151 Definitions & Declarations Example: Definition /* reverse_printcpp */ #include #include using namespace std; int global_var = 23; // global variable definition void reverse_print(const

More information

Tutorial 1: M/M/n Service System Simulation Tutorial 2: M/M/n Simulation using Excel input file Tutorial 3: A Production/Inventory System Simulation

Tutorial 1: M/M/n Service System Simulation Tutorial 2: M/M/n Simulation using Excel input file Tutorial 3: A Production/Inventory System Simulation SharpSim Tutorials Tutorial 1: M/M/n Service System Simulation Tutorial 2: M/M/n Simulation using Excel input file Tutorial 3: A Production/Inventory System Simulation Ali Emre Varol, Arda Ceylan, Murat

More information

Save Actions User Guide

Save Actions User Guide Microsoft Dynamics CRM for Sitecore 6.6-8.0 Save Actions User Guide Rev: 2015-04-15 Microsoft Dynamics CRM for Sitecore 6.6-8.0 Save Actions User Guide A practical guide to using Microsoft Dynamics CRM

More information

Working with IronPython and WPF

Working with IronPython and WPF Working with IronPython and WPF Douglas Blank Bryn Mawr College Programming Paradigms Spring 2010 With thanks to: http://www.ironpython.info/ http://devhawk.net/ IronPython Demo with WPF >>> import clr

More information

ASP.NET Dynamic Data

ASP.NET Dynamic Data 30 ASP.NET Dynamic Data WHAT S IN THIS CHAPTER? Building an ASP.NET Dynamic Data application Using dynamic data routes Handling your application s display ASP.NET offers a feature that enables you to dynamically

More information

EMC Documentum Application Connectors Software Development Kit

EMC Documentum Application Connectors Software Development Kit EMC Documentum Application Connectors Software Development Kit Version 6.8 Development Guide EMC Corporation Corporate Headquarters: Hopkinton, MA 01748-9103 1-508-435-1000 www.emc.com Legal Notice Copyright

More information

Hands-On Lab. Building a Data-Driven Master/Detail Business Form using Visual Studio 2010. Lab version: 1.0.0. Last updated: 12/10/2010.

Hands-On Lab. Building a Data-Driven Master/Detail Business Form using Visual Studio 2010. Lab version: 1.0.0. Last updated: 12/10/2010. Hands-On Lab Building a Data-Driven Master/Detail Business Form using Visual Studio 2010 Lab version: 1.0.0 Last updated: 12/10/2010 Page 1 CONTENTS OVERVIEW... 3 EXERCISE 1: CREATING THE APPLICATION S

More information

WPF Shapes. WPF Shapes, Canvas, Dialogs 1

WPF Shapes. WPF Shapes, Canvas, Dialogs 1 WPF Shapes WPF Shapes, Canvas, Dialogs 1 Shapes are elements WPF Shapes, Canvas, Dialogs 2 Shapes draw themselves, no invalidation or repainting needed when shape moves, window is resized, or shape s properties

More information

5 Airport. Chapter 5: Airport 49. Right-click on Data Connections, then select Add Connection.

5 Airport. Chapter 5: Airport 49. Right-click on Data Connections, then select Add Connection. Chapter 5: Airport 49 5 Airport Most practical applications in C# require data to be stored in a database and accessed by the program. We will examine how this is done by setting up a small database of

More information

Skyline Interactive Tool Support

Skyline Interactive Tool Support Skyline Interactive Tool Support Skyline supports external tools that extend Skyline functionality without directly integrating into the large and complex Skyline source code base. External Tools provide

More information

Coding Standards for C#

Coding Standards for C# DotNetDaily.net Coding Standards for C# This document was downloaded from http://www.dotnetdaily.net/ You are permitted to use and distribute this document for any noncommercial purpose as long as you

More information

Translating to Java. Translation. Input. Many Level Translations. read, get, input, ask, request. Requirements Design Algorithm Java Machine Language

Translating to Java. Translation. Input. Many Level Translations. read, get, input, ask, request. Requirements Design Algorithm Java Machine Language Translation Translating to Java Introduction to Computer Programming The job of a programmer is to translate a problem description into a computer language. You need to be able to convert a problem description

More information

Security API Cookbook

Security API Cookbook Sitecore CMS 6 Security API Cookbook Rev: 2010-08-12 Sitecore CMS 6 Security API Cookbook A Conceptual Overview for CMS Developers Table of Contents Chapter 1 Introduction... 3 Chapter 2 User, Domain,

More information

ASP and ADO (assumes knowledge of ADO)

ASP and ADO (assumes knowledge of ADO) ASP.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 product,

More information

Token Payment Web Services

Token Payment Web Services Web Active Corporation/eWAY Token Payment Web Services Data type and field specifications 23/06/2010 Version 1.4 Contents Introduction... 3 Data Field Specifications... 4 Field Description... 6 Validation

More information

Using Windows Azure Mobile Services to Cloud-Enable your Windows Store Apps in C#

Using Windows Azure Mobile Services to Cloud-Enable your Windows Store Apps in C# Using Windows Azure Mobile Services to Cloud-Enable your Windows Store Apps in C# Windows Azure Developer Center Summary: This section shows you how to use Windows Azure Mobile Services and C# to leverage

More information

Windows Presentation Foundation (WPF) User Interfaces

Windows Presentation Foundation (WPF) User Interfaces Windows Presentation Foundation (WPF) User Interfaces Rob Miles Department of Computer Science 29c 08120 Programming 2 Design Style and programming As programmers we probably start of just worrying about

More information

An Introduction to the Windows Presentation Foundation with the Model-View-ViewModel

An Introduction to the Windows Presentation Foundation with the Model-View-ViewModel An Introduction to the Windows Presentation Foundation with the Model-View-ViewModel Part 1 Paul Grenyer After three wonderful years working with Java I am back in the C# arena and amazed by how things

More information

Interaction Tracker Interaction Segments

Interaction Tracker Interaction Segments Interaction Tracker Interaction Segments Technical Reference Interactive Intelligence Customer Interaction Center (CIC) 2016 R1 Last updated July 28, 2015 (See Change Log for summary of changes.) Abstract

More information

Sample CSE8A midterm Multiple Choice (circle one)

Sample CSE8A midterm Multiple Choice (circle one) Sample midterm Multiple Choice (circle one) (2 pts) Evaluate the following Boolean expressions and indicate whether short-circuiting happened during evaluation: Assume variables with the following names

More information

Async startup WPF Application

Async startup WPF Application Async startup WPF Application Friday, December 18, 2015 5:39 PM This document is from following the article here: https://msdn.microsoft.com/enus/magazine/mt620013.aspx While working through the examples

More information

BACKING UP A DATABASE

BACKING UP A DATABASE BACKING UP A DATABASE April 2011 Level: By : Feri Djuandi Beginner Intermediate Expert Platform : MS SQL Server 2008, Visual C# 2010 Pre requisites: Suggested to read the first part of this document series

More information

Filtered Views for Microsoft Dynamics CRM

Filtered Views for Microsoft Dynamics CRM Filtered Views for Microsoft Dynamics CRM Version 4.2.13, March 5, 2010 Copyright 2009-2010 Stunnware GmbH - 1 of 32 - Contents Overview... 3 How it works... 4 Setup... 5 Contents of the download package...

More information

NSPK Protocol Security Model Checking System Builder

NSPK Protocol Security Model Checking System Builder , pp.307-316 http://dx.doi.org/10.14257/ijsia.2015.9.7.28 NSPK Protocol Security Model Checking System Builder Wang Yan, Liu Ying Information Engineering College, Zhongzhou University, Zhengzhou 450044;

More information

Output: 12 18 30 72 90 87. struct treenode{ int data; struct treenode *left, *right; } struct treenode *tree_ptr;

Output: 12 18 30 72 90 87. struct treenode{ int data; struct treenode *left, *right; } struct treenode *tree_ptr; 50 20 70 10 30 69 90 14 35 68 85 98 16 22 60 34 (c) Execute the algorithm shown below using the tree shown above. Show the exact output produced by the algorithm. Assume that the initial call is: prob3(root)

More information

CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013

CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013 Oct 4, 2013, p 1 Name: CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013 1. (max 18) 4. (max 16) 2. (max 12) 5. (max 12) 3. (max 24) 6. (max 18) Total: (max 100)

More information

Qualtrics Single Sign-On Specification

Qualtrics Single Sign-On Specification Qualtrics Single Sign-On Specification Version: 2010-06-25 Contents Introduction... 2 Implementation Considerations... 2 Qualtrics has never been used by the organization... 2 Qualtrics has been used by

More information

Election 2012: Real- Time Monitoring of Election Results

Election 2012: Real- Time Monitoring of Election Results Election 2012: Real- Time Monitoring of Election Results A simulation using the Syncfusion PivotGrid control. by Clay Burch and Suriya Prakasam R. Contents Introduction... 3 Ticking Pivots... 3 Background

More information

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Exam Name MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1) The JDK command to compile a class in the file Test.java is A) java Test.java B) java

More information

The Fast Fourier Transform

The Fast Fourier Transform The Fast Fourier Transform Chris Lomont, Jan 2010, http://www.lomont.org, updated Aug 2011 to include parameterized FFTs. This note derives the Fast Fourier Transform (FFT) algorithm and presents a small,

More information

SharePoint Integration

SharePoint Integration Microsoft Dynamics CRM 2011 supports SharePoint 2007/2010 integration to improve document management in CRM. The previous versions of CRM didn't have a solid out-of-the-box solution for document management

More information

Getting Started with IVI Drivers

Getting Started with IVI Drivers Getting Started with IVI Drivers Your Guide to Using IVI with Visual C# and Visual Basic.NET Version 1.1 Copyright IVI Foundation, 2011 All rights reserved The IVI Foundation has full copyright privileges

More information

Fast JavaScript in V8. The V8 JavaScript Engine. ...well almost all boats. Never use with. Never use with part 2.

Fast JavaScript in V8. The V8 JavaScript Engine. ...well almost all boats. Never use with. Never use with part 2. Fast JavaScript in V8 Erik Corry Google The V8 JavaScript Engine A from-scratch reimplementation of the ECMAScript 3 language An Open Source project from Google, primarily developed here in Århus A real

More information

Important New Concepts in WPF

Important New Concepts in WPF CHAPTER 3 Important New Concepts in WPF IN THIS CHAPTER. Logical and Visual Trees. Dependency Properties. Routed Events. Commands. A Tour of the Class Hierarchy To finish Part I of this book, and before

More information

ADF Code Corner. 92. Caching ADF Web Service results for in-memory filtering. Abstract: twitter.com/adfcodecorner

ADF Code Corner. 92. Caching ADF Web Service results for in-memory filtering. Abstract: twitter.com/adfcodecorner ADF Code Corner 92. Caching ADF Web Service results for in-memory Abstract: Querying data from Web Services can become expensive when accessing large data sets. A use case for which Web Service access

More information

Cello How-To Guide. Securing Data Access

Cello How-To Guide. Securing Data Access Cello How-To Guide Securing Data Access Contents 1 Introduction to User Entity Access Management... 3 1.1. Sample Model Class for Reference... 3 1.2. Entity Permission APIs... 4 1.3. Consumption... 7 2

More information

Data Management Applications with Drupal as Your Framework

Data Management Applications with Drupal as Your Framework Data Management Applications with Drupal as Your Framework John Romine UC Irvine, School of Engineering UCCSC, IR37, August 2013 [email protected] What is Drupal? Open-source content management system PHP,

More information

ComponentOne. Windows for WPF

ComponentOne. Windows for WPF ComponentOne Windows for WPF Copyright 1987-2012 GrapeCity, Inc. All rights reserved. ComponentOne, a division of GrapeCity 201 South Highland Avenue, Third Floor Pittsburgh, PA 15206 USA Internet: [email protected]

More information

T300 Acumatica Customization Platform

T300 Acumatica Customization Platform T300 Acumatica Customization Platform Contents 2 Contents How to Use the Training Course... 4 Getting Started with the Acumatica Customization Platform...5 What is an Acumatica Customization Project?...6

More information

2. Modify default.aspx and about.aspx. Add some information about the web site.

2. Modify default.aspx and about.aspx. Add some information about the web site. This was a fully function Shopping Cart website, which was hosted on the university s server, which I no longer can access. I received an A on this assignment. The directions are listed below for your

More information