NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

HELLO MY NAME İS HEMSİRBEY :d

herşeyi ctrl + a yapıp sil bunları ekle :D






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;

namespace santrancturnuvası
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
string[] isimler = new string[] { "Mehmet", "Serhat", "Ahmet Demirtürk", "Ahmet", "Ömer", "Pelin", "Melisa", "Nurcan", "Seyfican", "Emircan", "Emiray", "Yavuz", "İsmail", "Samet" };

List<string> tercihler = new List<string>();

private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
comboBox1.Enabled = false;

if (comboBox1.Text != "")
{
comboBox2.Enabled = true;

tercihler.Add(comboBox1.SelectedItem.ToString());
for (int i = 0; i < isimler.Length; i++)
{
if (tercihler.IndexOf(isimler[i]) == -1)
{
comboBox2.Items.Add(isimler[i]);
}
}
}
}

private void Form1_Load(object sender, EventArgs e)
{
for (int i = 0; i < isimler.Length; i++)
{
comboBox1.Items.Add(isimler[i]);

}

}

private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
{
comboBox2.Enabled = false;

if (comboBox2.Text!="")
{
comboBox3.Enabled = true;

tercihler.Add(comboBox2.SelectedItem.ToString());
for (int i = 0; i < isimler.Length; i++)
{
if (tercihler.IndexOf(isimler[i]) == -1)
{
comboBox3.Items.Add(isimler[i]);
}

}
}
}

private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
{
comboBox3.Enabled = false;

if (comboBox3.Text!="")
{
comboBox4.Enabled = true;

tercihler.Add(comboBox3.SelectedItem.ToString());
for (int i = 0; i < isimler.Length; i++)
{
if (tercihler.IndexOf(isimler[i]) == -1)
{
comboBox4.Items.Add(isimler[i]);
}

}
}
}

private void comboBox4_SelectedIndexChanged(object sender, EventArgs e)
{
comboBox4.Enabled = false;

if (comboBox4.Text != "")
{
comboBox5.Enabled = true;

tercihler.Add(comboBox4.SelectedItem.ToString());
for (int i = 0; i < isimler.Length; i++)
{
if (tercihler.IndexOf(isimler[i]) == -1)
{
comboBox5.Items.Add(isimler[i]);
}

}
}
}

private void comboBox5_SelectedIndexChanged(object sender, EventArgs e)
{
comboBox5.Enabled = false;

if (comboBox5.Text != "")
{
comboBox6.Enabled = true;

tercihler.Add(comboBox5.SelectedItem.ToString());
for (int i = 0; i < isimler.Length; i++)
{
if (tercihler.IndexOf(isimler[i]) == -1)
{
comboBox6.Items.Add(isimler[i]);
}

}
}
}



private void comboBox6_SelectedIndexChanged(object sender, EventArgs e)
{
comboBox6.Enabled = false;

if (comboBox6.Text != "")
{
comboBox7.Enabled = true;

tercihler.Add(comboBox6.SelectedItem.ToString());
for (int i = 0; i < isimler.Length; i++)
{
if (tercihler.IndexOf(isimler[i]) == -1)
{
comboBox7.Items.Add(isimler[i]);
}

}
}
}
private void comboBox7_SelectedIndexChanged(object sender, EventArgs e)
{
comboBox7.Enabled = false;

if (comboBox7.Text != "")
{
comboBox8.Enabled = true;

tercihler.Add(comboBox7.SelectedItem.ToString());
for (int i = 0; i < isimler.Length; i++)
{
if (tercihler.IndexOf(isimler[i]) == -1)
{
comboBox8.Items.Add(isimler[i]);
}

}
}
}

private void comboBox8_SelectedIndexChanged(object sender, EventArgs e)
{
comboBox8.Enabled = false;

if (comboBox8.Text != "")
{
comboBox9.Enabled = true;

tercihler.Add(comboBox8.SelectedItem.ToString());
for (int i = 0; i < isimler.Length; i++)
{
if (tercihler.IndexOf(isimler[i]) == -1)
{
comboBox9.Items.Add(isimler[i]);
}

}
}
}

private void comboBox9_SelectedIndexChanged(object sender, EventArgs e)
{
comboBox9.Enabled = false;

if (comboBox9.Text != "")
{
comboBox10.Enabled = true;

tercihler.Add(comboBox9.SelectedItem.ToString());
for (int i = 0; i < isimler.Length; i++)
{
if (tercihler.IndexOf(isimler[i]) == -1)
{
comboBox10.Items.Add(isimler[i]);
}

}
}
}

private void comboBox10_SelectedIndexChanged(object sender, EventArgs e)
{
comboBox10.Enabled = false;

if (comboBox10.Text != "")
{
comboBox11.Enabled = true;

tercihler.Add(comboBox10.SelectedItem.ToString());
for (int i = 0; i < isimler.Length; i++)
{
if (tercihler.IndexOf(isimler[i]) == -1)
{
comboBox11.Items.Add(isimler[i]);
}

}
}
}

private void comboBox11_SelectedIndexChanged(object sender, EventArgs e)
{
comboBox11.Enabled = false;

if (comboBox11.Text != "")
{
comboBox12.Enabled = true;

tercihler.Add(comboBox11.SelectedItem.ToString());
for (int i = 0; i < isimler.Length; i++)
{
if (tercihler.IndexOf(isimler[i]) == -1)
{
comboBox12.Items.Add(isimler[i]);
}

}
}
}

private void comboBox12_SelectedIndexChanged(object sender, EventArgs e)
{
comboBox12.Enabled = false;

if (comboBox12.Text != "")
{
comboBox13.Enabled = true;

tercihler.Add(comboBox12.SelectedItem.ToString());
for (int i = 0; i < isimler.Length; i++)
{
if (tercihler.IndexOf(isimler[i]) == -1)
{
comboBox13.Items.Add(isimler[i]);
}

}
}
}

private void comboBox13_SelectedIndexChanged(object sender, EventArgs e)
{
comboBox13.Enabled = false;

if (comboBox13.Text != "")
{
comboBox14.Enabled = true;

tercihler.Add(comboBox13.SelectedItem.ToString());
for (int i = 0; i < isimler.Length; i++)
{
if (tercihler.IndexOf(isimler[i]) == -1)
{
comboBox14.Items.Add(isimler[i]);
}

}
}
comboBox14.Enabled = true;
}

private void comboBox14_SelectedIndexChanged(object sender, EventArgs e)
{
comboBox14.Enabled = false;


}

private void button1_Click(object sender, EventArgs e)
{
/*
Random rnd = new Random();

int değer;
int cmb1 = Convert.ToInt16(comboBox1.Text);
int cmb8 = Convert.ToInt16(comboBox8.Text);
Random random = new Random();
int rastgele = random.Next(cmb1, cmb8);


değer = rastgele;

label3.Text=(değer.ToString());
*/
Random bır = new Random();
int a = bır.Next(0, 2);
if (a == 1)
{ label3.Text = comboBox1.Text+ "n n"; }
else
{ label3.Text = comboBox8.Text + "n n"; }

Random ıkı = new Random();
int b = ıkı.Next(0, 2);
if (b == 1)
{ label3.Text += comboBox2.Text + "n n"; }
else
{ label3.Text += comboBox9.Text + "n n"; }

Random uc = new Random();
int c = uc.Next(0, 2);
if (c == 1)
{ label3.Text += comboBox3.Text + "nn"; }
else
{ label3.Text += comboBox10.Text + "nn"; }

Random dort = new Random();
int d = dort.Next(0, 2);
if (d == 1)
{ label3.Text += comboBox4.Text + "n n "; }
else
{ label3.Text += comboBox11.Text + "n n"; }

Random bes = new Random();
int f = bes.Next(0, 2);
if (f == 1)
{ label3.Text += comboBox5.Text + "n n"; }
else
{ label3.Text += comboBox12.Text + "n n"; }

Random altı = new Random();
int g = altı.Next(0, 2);
if (g == 1)
{ label3.Text += comboBox6.Text + "n n "; }
else
{ label3.Text += comboBox13.Text + "nn"; }

Random yedı = new Random();
int h = bes.Next(0, 2);
if (h == 1)
{ label3.Text += comboBox7.Text + "n n "; }
else
{ label3.Text += comboBox14.Text + "nn"; }
}

private void button2_Click(object sender, EventArgs e)
{
string kalan = label3.Text;
string[] tur = new string[] { kalan };


}
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.