コード例 #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="mmControl">Controller object</param>
        /// <history>
        ///     <Created  18 April 2014>Arun Gopinath && Jeff Bunce</Created>
        ///     <Modified 18 April 2014></Modified>
        /// </history>
        public frmModifyUser(MMControl control)
        {
            InitializeComponent();
            mmControl = control;
            studentBindingSource.DataSource = mmControl.StudentList;
            studentBindingSource.ResetBindings(false);

            //Create the edit user form. Do not display it here.
            editUserForm             = new frmEditUser(control);
            dtgModifyUser.DataSource = studentBindingSource;
        }
コード例 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="mmControl">Controller object</param>
 /// <history>
 ///     <Created  20 April 2014>Arun Gopinath</Created>
 ///     <Modified 20 April 2014></Modified>
 /// </history>
 public frmModifyUser ( CtrlAdmin ctrl )
 {
     InitializeComponent();
     control = ctrl;
     studentBindingSource.DataSource = control.StudentList;
 
     //Create the edit user form. Do not display it here.
     editUserForm = new frmEditUser ( control );
     this.SetupTooltips();
 }
コード例 #3
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="mmControl">Controller object</param>
        /// <history>
        ///     <Created  18 April 2014>Arun Gopinath && Jeff Bunce</Created>
        ///     <Modified 18 April 2014></Modified>
        /// </history>
        public frmModifyUser ( MMControl control )
        {
            InitializeComponent ();
            mmControl = control;
            studentBindingSource.DataSource = mmControl.StudentList;
            studentBindingSource.ResetBindings ( false );

            //Create the edit user form. Do not display it here.
            editUserForm = new frmEditUser ( control );
            dtgModifyUser.DataSource = studentBindingSource;
        }