12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- 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 muskafidi_students
- {
- public partial class Form5 : Form
- {
- public Form5()
- {
- InitializeComponent();
- }
- private void оценкиBindingNavigatorSaveItem_Click(object sender, EventArgs e)
- {
- this.Validate();
- this.оценкиBindingSource.EndEdit();
- this.tableAdapterManager.UpdateAll(this.studentsssDataSet);
- }
- private void Form5_Load(object sender, EventArgs e)
- {
- // TODO: данная строка кода позволяет загрузить данные в таблицу "studentsssDataSet.Оценки". При необходимости она может быть перемещена или удалена.
- this.оценкиTableAdapter.Fill(this.studentsssDataSet.Оценки);
- }
- private void button1_Click(object sender, EventArgs e)
- {
- Form5.ActiveForm.Hide();
- Form1 MyForm2 = new Form1();
- MyForm2.ShowDialog();
- Close();
- }
- private void средний_баллTextBox_TextChanged(object sender, EventArgs e)
- {
- }
- private void button2_Click(object sender, EventArgs e)
- {
- средний_баллTextBox.Text = ((double.Parse(оценка_1TextBox.Text) + double.Parse(оценка_2TextBox.Text) + double.Parse(оценка_3TextBox.Text)) / 3).ToString();
- }
- }
- }
|