コード例 #1
0
ファイル: MainForm.cs プロジェクト: hpinio/BMResto
        /// <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;
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: hpinio/BMResto
        /// <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;
        }