Example #1
0
        /// <summary>
        /// Loads the staff list user control.
        /// </summary>
        private void LoadStaffListUserControl()
        {
            ClearPreviewControl();

            BaseUserControl staffControl = Activator.CreateInstance<StaffListUserControl>() as BaseUserControl;

            UIUtility.LoadControlAndResize(kryptonSplitContainer2.Panel1,
                staffControl,
                kryptonSplitContainer2.Panel1.Height,
                kryptonSplitContainer2.Panel1.Width);

            currentLoadedControl = staffControl;
        }
Example #2
0
        /// <summary>
        /// Load the menu type list user control
        /// </summary>
        private void LoadMenuTypeListUserControl()
        {
            ClearPreviewControl();

            BaseUserControl menuTypeListUserCtrl = Activator.CreateInstance<MenuTypeListUserControl>() as BaseUserControl;

            UIUtility.LoadControlAndResize(kryptonSplitContainer2.Panel1,
                menuTypeListUserCtrl,
                kryptonSplitContainer2.Panel1.Height,
                kryptonSplitContainer2.Panel1.Width);

            currentLoadedControl = menuTypeListUserCtrl;
        }