root/Baza Reklam 2 - Faktury/KursyWalutPoznan.cs @ 708

Wersja 65, 0.9 KB (wprowadzona przez dorota, 17 years temu)
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Data;
5using System.Drawing;
6using System.Text;
7using System.Windows.Forms;
8
9namespace Baza_Reklam
10{
11    public partial class KursyWalutPoznan : Form
12    {
13
14        private decimal kursSredni;
15
16        public decimal KursSredni
17        {
18            get { return kursSredni; }
19            set { kursSredni = value; }
20
21        }
22        public KursyWalutPoznan(decimal kurs)
23        {
24            InitializeComponent();
25            kursSredni = kurs;
26            textBox1.Text = kursSredni.ToString();
27
28        }
29
30        private void button1_Click(object sender, EventArgs e)
31        {
32            if (Decimal.TryParse(textBox1.Text, out this.kursSredni))
33            {
34                this.Close();
35            }
36            else
37            {
38                MessageBox.Show("Podaj poprawny kurs");
39            }
40        }
41    }
42}
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.