Example #1
0
 private void AvaaNosto(object sender, EventArgs e)
 {
     if (nosto.IsDisposed)
     {
         nosto = new NostoIkkuna();
     }
     nosto.Show();
 }
Example #2
0
        public Form1()
        {
            InitializeComponent();
            nosto    = new NostoIkkuna();
            talletus = new TalletusIkkuna();

            double saldo = LueSaldo();

            label1.Text = "Tilin saldo: " + saldo + " euroa";

            button1.Click += AvaaNosto;
            button2.Click += AvaaTalletus;
        }