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 Metotlar
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
static int method1(int sayi1, int sayi2)
{
return sayi1 + sayi2;
}
private void button1_Click(object sender, EventArgs e)
{
int sayi1, sayi2;
sayi1 = Convert.ToInt32(textBox1.Text);
sayi2 = Convert.ToInt32(textBox2.Text);
label1.Text = method1(sayi1, sayi2).ToString();
}
}
}