Загрузка данных


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 WindowsFormsApp2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            double count = 0;
            double.TryParse(txtCount.Text, out count);
            if (comboBox.Text == "92")
                label1.Text = Math.Round((count / 70), 1).ToString();
            else if (comboBox.Text == "95")
                label1.Text = Math.Round((count / 73), 1).ToString();
            else if (comboBox.Text == "100")
                label1.Text = Math.Round((count / 77), 1).ToString();
            else if (comboBox.Text == "Дизель")
                label1.Text = Math.Round((count / 80), 1).ToString();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }
}