Bu şekilde düşündüm ben bakabilir misin
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 WindowsFormsApp7
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
int s1, s2;
float sonuc;
public void vericek()
{
s1 = Convert.ToInt16(textBox1.Text);
s2 = Convert.ToInt16(textBox2.Text);
}
private void button1_Click(object sender, EventArgs e)
{
vericek();
switch (comboBox1.SelectedIndex)
{
case 0:
sonuc = s1 + s2;
break;
case 1:
sonuc = s1 - s2;
break;
case 2:
sonuc = s1 * s2;
break;
case 3:
sonuc = s1 / s2;
break;
default:
label1.Text = "İşlem Yok";
break;
}
label1.Text = sonuc.ToString();
}
}
}