Code for WPF.

Slides:



Advertisements
Similar presentations
For(int i = 1; i
Advertisements

Picture It Very Basic Game Picture Pepper. Original Game import java.util.Scanner; public class Game { public static void main() { Scanner scan=new Scanner(System.in);
Windows Presentation Foundation (WPF). Introduction Separates appearance of user interface from behavior Appearance usually specified by XAML Behavior.
[ServiceContract] public interface IJokeOfTheDayService { [OperationContract] string GetJoke(int jokeStrength); }
3 private void equalsButton_Click( object sender, RoutedEventArgs e) { calculateResult(); }
WebClient client; 10 // Constructor public MainPage() { InitializeComponent(); client = new WebClient(); client.DownloadStringCompleted.
Print Row Function void PrintRow(float x[ ][4],int i) { int j; for(j=0;j
private void page2Button_Click(object sender, RoutedEventArgs e) { NavigationService.Navigate(new Uri("/PageTwo.xaml", UriKind.RelativeOrAbsolute));
From Word Embeddings To Document Distances
D. Phát triển thương hiệu
实习总结 (Internship Summary)
Front End Electronics for SOI Monolithic Pixel Sensor
انتقال حرارت 2 خانم خسرویار.
HERMESでのHard Exclusive生成過程による 核子内クォーク全角運動量についての研究
Wavelet Coherence & Cross-Wavelet Transform
Wissenschaftliche Aussprache zur Dissertation
On Robust Neighbor Discovery in Mobile Wireless Networks
Fairness-oriented Scheduling Support for Multicore Systems
Factor Based Index of Systemic Stress (FISS)
THE BERRY PHASE OF A BOGOLIUBOV QUASIPARTICLE IN AN ABRIKOSOV VORTEX*
FW 3.4: More Circle Practice
doc.: IEEE <doc#>
Progress on Beam Loading Studies
AQA Combined Science (2016)
Atmospheric Thermodynamics
Chapter 3. Data Processing
Assessing Listening Ningtyas Orilina A, M.Pd.
The Marks of an Obedient Disciple-maker
Method to promote adhesion of DLC thin film on silicon substrate
Status of the Crystal Zero Degree Detector (cZDD)
Fluid Dynamics for Brewing
P48 Telescope Drive Upgrade Preliminary Design Review October 21, 2015
LDO Architecture Review
On behalf of the FCC Other Magnets Task
IB CHEMISTRY Topic 4 Bonding Higher level.
Agenda Introduction Figer 12:00-12:15
Single wavelength / channel optical communication
Anisotropic Cooper pairing (textbook version)
Definition of Integral
MEC-E5005 Fluid Power Dynamics L (5 cr)
Collisions Momentum: a measure of motion
Gluonium content of the h'
Radar Sources Researched by Islam Ayman
Cryptocurrencies from an Austrian perspective. ssrn
Calorimetry.
Time Synchronization and Logical Clocks
Recognition IV: Object Detection through Deep Learning and R-CNNs
Section 8-1 Review and Preview.
Crop Insurance Ratings: Evolution and Mutations
Unit 5 Unit 6 The mole Analytical stoichiometry
Essentials of Modern Business Statistics (7e)
Section 7.5 Proving Triangle Proportions
Important Terms computers interconnected by communication network
Select and Implement a Business Intelligence and Analytics Solution
GCSE: Constructions & Loci
Section Focus of a Parabola
The PV Cell History, Basics & Technologies
Teaching a Data-Driven Approach to Inference
Circuit modelling in Matlab/Simulink
SSL spring meeting Turku, Finland,
Secret from Muscle: Enabling Secure Paring with Electromyography
By Gbetondji Melaine Armel Nonvide
in response to VB-111 Virotherapy
You must learn this for your GCSE
ENZYMES- action and inhibition
C4 Chapter 6: Integration
History and Philosophy of the Black Hole Information Paradox
CS 180 Assignment 6 Arrays.
Web Service.
Character Arrays char string1[] = “first”;
Presentation transcript:

Code for WPF

void OnClick2(object sender, RoutedEventArgs e) { B_Open.Background = Brushes.Pink; Userdata_DG1.ItemsSource=GetData(); // Gets ALL the data } // end onclick handler

public List<csvrow> GetData() { string line; // Read a file and display it line by line. csvlist = new List<csvrow>(); // create the list of rows System.IO.StreamReader myFile = new System.IO.StreamReader ("C:\\temp\\oscourse\\ListFile_in.txt"); while ((line = myFile.ReadLine()) != null) process_line(line); // move line into data array (the csvlist) }

private void process_line(String x) { int q2pos; string thename; String[] ints; q2pos = …. // skip the initial quote sign thename = x.Substring(1, q2pos); ints = x.Substring(q2pos+3).Split(','); csvlist.Add(new csvrow() { name = thename, int1 = ints[0], int2 = ints[1], int3=ints[2] }); MessageBox.Show("name="+csvlist[0].name); // prove we got the name }