예제 #1
0
        private void ucMenus1_OnInstallButtonClickEvent()
        {
            UCInstallBase uc = this.panel_main.Controls[0] as UCInstallBase;

            if (uc == null)
            {
                return;
            }

            uc.Install();
        }
예제 #2
0
        protected override void OnClosing(CancelEventArgs e)
        {
            UCInstallBase uc = this.panel_main.Controls[0] as UCInstallBase;

            if (uc == null)
            {
                base.OnClosing(e);
                return;
            }

            if (uc.IsInstalling)
            {
                MsgBox.Info(string.Format("[{0}]를 설치중입니다. 설치가 완료되면 시도해 주십시요.", uc.UCType.ToString()));
                e.Cancel = true;
            }

            base.OnClosing(e);
        }