コード例 #1
0
ファイル: MainForm.cs プロジェクト: kiemhieu/medicine-website
        public MainForm()
        {
            InitializeComponent();
            ExceptionHandler.Instance.ErrorOccur += InstanceErrorOccur;
            MethodExecuter.Instance.MethodExecuteRequestEvent += new EventHandler<ActionArgs>(InstanceMethodExecuteRequestEvent);
            MethodExecuter.Instance.MethodExecuteUpdateProgressEvent += new EventHandler<ProgressiveUpdateArgs>(InstanceMethodExecuteUpdateProgressEvent);

            // Init Tree view
            _treeMenuGui = new TreeMenuGUI
                           {
                               ShowHint = DockState.DockLeft,
                               AllowEndUserDocking = false,
                               CloseButton = false,
                               IsFloat = false,
                               CloseButtonVisible = false
                           };
            _treeMenuGui.Show(dockingPanel);
        }
コード例 #2
0
        public MainForm()
        {
            InitializeComponent();
            ExceptionHandler.Instance.ErrorOccur += InstanceErrorOccur;
            MethodExecuter.Instance.MethodExecuteRequestEvent        += new EventHandler <ActionArgs>(InstanceMethodExecuteRequestEvent);
            MethodExecuter.Instance.MethodExecuteUpdateProgressEvent += new EventHandler <ProgressiveUpdateArgs>(InstanceMethodExecuteUpdateProgressEvent);


            // Init Tree view
            _treeMenuGui = new TreeMenuGUI
            {
                ShowHint            = DockState.DockLeft,
                AllowEndUserDocking = false,
                CloseButton         = false,
                IsFloat             = false,
                CloseButtonVisible  = false
            };
            _treeMenuGui.Show(dockingPanel);
        }