Example #1
0
        private void btnFindTrain_Click(object sender, EventArgs e)
        {
            FTrainings fTrainings = new FTrainings();
            fTrainings.OnSearchMode=true;
            fTrainings.ShowDialog();

            if (fTrainings.OnSearchMode)
            {
                txtTrainID.Text = Global.trainingUsed.TrainID.ToString();
                fTrainings.OnSearchMode = false;
            }
        }
Example #2
0
 private void tsBtnTrainings_Click(object sender, EventArgs e)
 {
     FTrainings fTrainings = new FTrainings();
     fTrainings.OnSearchMode = false;
     if (this.TopMost)
         fTrainings.TopMost = true;
     fTrainings.ShowDialog();
 }