Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 WindowsFormsApplication3
- {
- public partial class Form1 : Form
- {
- char a, b, t;
- string username = "gogo" , password = "qwer";
- int ctr = 0, dd = 0;
- public Form1()
- {
- InitializeComponent();
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- }
- private void textBox1_TextChanged(object sender, EventArgs e)
- {
- }
- private void textBox2_TextChanged(object sender, EventArgs e)
- {
- }
- private void textBox3_TextChanged(object sender, EventArgs e)
- {
- }
- private void textBox4_TextChanged(object sender, EventArgs e)
- {
- }
- private void button1_Click(object sender, EventArgs e)
- {
- b = Convert.ToChar(textBox1.Text);
- a = Convert.ToChar(textBox2.Text);
- t = Convert.ToChar(textBox3.Text);
- textBox4.Text = b + " " + a + " " + t;
- }
- private void label3_Click(object sender, EventArgs e)
- {
- }
- int sk = 0;
- private void button2_Click(object sender, EventArgs e)
- {
- username = Convert.ToString(textBox5.Text);
- password = Convert.ToString(textBox6.Text);
- // MessageBox.Show(username + " " + password);
- if (sk < 3)
- {
- if (username == "gogo" && password == "qwer")
- {
- MessageBox.Show("teisingai");
- sk = 0;
- }
- else
- {
- MessageBox.Show("Neteisingai");
- sk++;
- }
- }
- else
- {
- MessageBox.Show("Jus esate uzblokuotas");
- }
- }
- private void textBox5_TextChanged(object sender, EventArgs e)
- {
- }
- private void textBox6_TextChanged(object sender, EventArgs e)
- {
- }
- private void textBox7_TextChanged(object sender, EventArgs e)
- {
- }
- private void textBox8_TextChanged(object sender, EventArgs e)
- {
- }
- private void textBox9_TextChanged(object sender, EventArgs e)
- {
- }
- private void button3_Click(object sender, EventArgs e)
- {
- double a, c;
- char b;
- a = Convert.ToDouble(textBox7.Text);
- b = Convert.ToChar(textBox8.Text);
- c = Convert.ToDouble(textBox9.Text);
- if(b == '+'){
- textBox10.Text = Convert.ToString(a + c);
- }
- else if(b == '-'){
- textBox10.Text = Convert.ToString(a - c);
- }
- else if(b == '*'){
- textBox10.Text = Convert.ToString(a * c);
- }
- else if(b == '/'){
- textBox10.Text = Convert.ToString(a / c);
- }
- }
- private void textBox10_TextChanged(object sender, EventArgs e)
- {
- }
- private void textBox11_TextChanged(object sender, EventArgs e)
- {
- }
- private void button4_Click(object sender, EventArgs e)
- {
- double a, b = 3.14;
- a = Convert.ToDouble(textBox11.Text);
- textBox12.Text = Convert.ToString(2 * b * a);
- }
- private void textBox12_TextChanged(object sender, EventArgs e)
- {
- }
- private void textBox13_TextChanged(object sender, EventArgs e)
- {
- }
- private void button5_Click(object sender, EventArgs e)
- {
- char a;
- a = Convert.ToChar(textBox13.Text);
- if (char.IsLower(a))
- {
- MessageBox.Show("mazoji");
- }
- else
- {
- MessageBox.Show("didzioji");
- }
- }
- private void textBox14_TextChanged(object sender, EventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement