private void toolStripButton4_Click(object sender, EventArgs e) { CorrectBallance form = new CorrectBallance(parent.admin, Int32.Parse(pilotsList_dataGridView1.SelectedRows[0].Cells[0].Value.ToString()), false); form.ShowDialog(); // form.Dispose(); ShowAllPilots(pilotsList_dataGridView1); }
// Коррекция баланса private void toolStripButton1_Click(object sender, EventArgs e) { CorrectBallance form = new CorrectBallance(admin, Convert.ToInt32(PilotID), false); form.Owner = this; if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { labelSmooth18.Text = Math.Round(admin.model.GetUserBallans(PilotID), 3).ToString() + " грн"; } form.Dispose(); }