
Şekil 1

Şekil2
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;
namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            if (hata(txtSifre.Text, txtSifre2.Text))
            {
                MessageBox.Show("Girilen şifreler eşleşti.");
            }
            else
            {
                MessageBox.Show("Girilen şifreler eşleşmedi. Tekrar dene");
            }
        }
        private bool hata(string sifre1, string sifre2)
        {
            return (sifre1 == sifre2);
        }
      
    }
}
Bir makalenin daha sonuna geldik. Bir sonraki makalede görüşmek dileğiyle. Hoşçakalın. Bahadır ŞAHİN
0 comments:
Yorum Gönder