using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; using Payroll.BO; using Ease.CoreV35.Model; using Payroll.UI; namespace Payroll.Controls { public partial class ctlTraining : UserControl { private TrainingSchedule _trainingSch = null; public ctlTraining() { InitializeComponent(); } #region Properties public TrainingSchedule SelectedTraining { get { return _trainingSch; } set { _trainingSch = value; } } #endregion private void RefreshControl() { //_IsInternal = true; txtTraining.Text = string.Empty; if (_trainingSch != null) { txtTraining.Text = _trainingSch.Name; } } private void btnTrainingSearch_Click(object sender, EventArgs e) { fSerchTraining search = new fSerchTraining(); // search.MultipleSelection = false; //if (this.Grades != null) //{ // search.Grades = this.Grades; //} search.ShowDialog(); _trainingSch = null; if (search.SelectedTraining != null) { _trainingSch = search.SelectedTraining; } RefreshControl(); } } }