Example #1
0
        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            var df = new DTRImportForm();

            df.MinimizeBox     = false;
            df.MaximizeBox     = false;
            df.FormBorderStyle = FormBorderStyle.FixedSingle;
            df.StartPosition   = FormStartPosition.CenterScreen;
            Enrollee enrollee = ActionClass.GetEnrollee(((JEnrollee)listBoxEnrollees.SelectedItem).EnrolleeId);

            df.OEnrollee = enrollee;
            df.IMonth    = toolStripComboBoxMonth.SelectedIndex + 1;
            df.IYear     = int.Parse(toolStripComboBoxDuration.Text);
            df.ShowDialog();
        }
Example #2
0
        private void toolStripButtonImport_Click(object sender, EventArgs e)
        {
            var df = new DTRImportForm
            {
                MinimizeBox     = false,
                MaximizeBox     = false,
                FormBorderStyle = FormBorderStyle.FixedSingle,
                StartPosition   = FormStartPosition.CenterScreen,
                IMonth          = toolStripComboBoxMonth.SelectedIndex + 1,
                IYear           = int.Parse(toolStripComboBoxDuration.Text),
                SUserName       = SUserName,
                SCompanyName    = SCompanyName
            };
            Enrollee enrollee = ActionClass.GetEnrollee(((JEnrollee)listBoxEnrollees.SelectedItem).EnrolleeId);

            df.OEnrollee = enrollee;
            df.ShowDialog();
        }