public WorkMaintainControl(MainController mainController) { InitializeComponent(); _mainController = mainController; _workManager = mainController.WorkManager; int Num, Fin; Num = _workManager.GetNoncont(); Fin = _workManager.GetFincont(); Nontbx1.Text = Convert.ToString(Num); Fintbx1.Text = Convert.ToString(Fin); }
private void btnSearch_KeyDown(object sender, KeyEventArgs e) { Nontbx1.Text = ""; Fintbx1.Text = ""; tbxnom.Text = ""; int Num, Fin, Non; Non = Num = _workManager.GetNoncont(); Fin = _workManager.GetFincont(); Nontbx1.Text = Convert.ToString(Num); Fintbx1.Text = Convert.ToString(Fin); }