Notes
Notes - notes.io |
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 lisans_kontrol_sistemi_v1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
public const string lisans_kodu = "0S6T-TM35-48U6-44SS-0Q00";
private void Form1_Load(object sender, EventArgs e)
{
//1234
//1234 5678 9876 5432
this.Text = "Lisans Kontrol Paneli";
button1.Left = 28;
maskedTextBox5.Mask = "#L#L-LL##-##L#-##LL-#L##";
}
string tireleri_sil(string gelen) {
string islem = "";
for (int i = 0; i < gelen.Length; i++) {
if (gelen.Substring(i, 1) != "-") {
islem += gelen.Substring(i, 1);
}
}
return islem;
}
private void button1_Click(object sender, EventArgs e)
{
/*if (maskedTextBox1.Text == "1234")
{
MessageBox.Show("Lisans kodu doğru");
}
else {
MessageBox.Show("Lisans Kodu hatalı!");
}*/
/* if (maskedTextBox1.Text == "1234" && maskedTextBox2.Text == "5678" && maskedTextBox3.Text == "9876" && maskedTextBox4.Text == "5432") {
MessageBox.Show("Lisans kodu doğru");
}
else
{
MessageBox.Show("Lisans Kodu hatalı!");
}*/
//MessageBox.Show(maskedTextBox5.Text);
//MessageBox.Show(tireleri_sil(maskedTextBox5.Text));
string textbox_degeri = maskedTextBox5.Text;
if (tireleri_sil(textbox_degeri).ToUpper() == tireleri_sil(lisans_kodu.ToUpper()))
{
//MessageBox.Show("Lisans kodu doğru");
Form anaform = new Anaform();
anaform.Show();
this.Hide();
}
else {
MessageBox.Show("Lisans Kodu hatalı!","HATALI LİSANS KODU",MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}
private void maskedTextBox2_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
{
MessageBox.Show("Alana sadece sayı giriniz");
}
private void Form1_ChangeUICues(object sender, UICuesEventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
Close();
}
}
}
|
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