0
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Data.SqlClient;
namespace WindowsFormsApplication39
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Form yeniform = new Form();
yeniform.MdiParent = this;
yeniform.Show();
}
string adres = @"C:\Users\Cihat TOPSAKAL\Desktop\isimler.txt";
string adres2 = @"C:\Users\Cihat TOPSAKAL\Desktop\cvp.txt";
private void button1_Click_1(object sender, EventArgs e)
{
StreamReader oku = new StreamReader(adres, Encoding.Default);
string deger = oku.ReadLine();
for (int i = 0; i < Convert.ToInt16(textBox3.Text); i++)
{
listBox3.Items.Clear();
listBox3.Items.Add ( deger.ToString());
deger = oku.ReadLine();
}
StreamReader oku2 = new StreamReader(adres2, Encoding.Default);
string deger2 = oku2.ReadLine();
for (int i = 0; i < Convert.ToUInt16(textBox3.Text); i++)
{
listBox1.Items.Clear();
for (int j = 0; j < deger2.ToString().Length; j++)
{
listBox1.Items.Add(deger2.ToString()[j]);
}
deger2 = oku2.ReadLine();
}
int dogru = 0;
int net = 0;
int yanlis = 0;
int b = listBox2.Items.Count;
for (int j = 0; j < b; j++)
{
if (listBox2.Items[j].ToString() == listBox1.Items[j].ToString())
{
dogru++;
label4.Text = dogru.ToString();
}
}
int a = listBox2.Items.Count;
for (int i = 0; i < a; i++)
{
if (listBox1.Items[i].ToString() != listBox2.Items[i].ToString())
{
yanlis++;
label6.Text = yanlis.ToString();
}
}
float c = listBox2.Items.Count;
for (float k = 0; k < c; k++)
{
net = dogru - yanlis * 25 / 100;
label8.Text = net.ToString();
}
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void label9_Click(object sender, EventArgs e)
{
}
private void button3_Click(object sender, EventArgs e)
{
}
private void listBox1_SelectedIndexChanged_1(object sender, EventArgs e)
{
}
private void label8_Click(object sender, EventArgs e)
{
}
private void label5_Click(object sender, EventArgs e)
{
}
private void groupBox2_Enter(object sender, EventArgs e)
{
}
private void button3_Click_1(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
}
private void label12_Click(object sender, EventArgs e)
{
}
private void button3_Click_2(object sender, EventArgs e)
{
}
}
}
Cevap yazabilmek için üye girişi yapmalısınız.
Eğer uzmanim.net üyesiyseniz giriş yapabilirsiniz: üye girişi yap
uzmanim.net'e üye olmak çok kolaydır: hemen kayıt ol