コード例 #1
0
        public void SetupBackward()
        {
            m_form.AddTitleUC("准备");
            PrepareSetupCommand command = new PrepareSetupCommand(m_form);

            m_form.AddBodyUC(command);
            m_form.SetNextButtonEnabled(true);
            m_form.CurrentCommand = command;
        }
コード例 #2
0
        public void SetupForward()
        {
            if (string.IsNullOrEmpty(deployDirectory))
            {
                MessageBox.Show("请选择安装文件夹!");
                m_form.SetNextButtonEnabled(false);
            }
            else
            {
                PropertySet.AddProperty("setupdir", deployDirectory);
                if (Directory.Exists(deployDirectory))
                {
                    Directory.Delete(deployDirectory, true);
                }
                Directory.CreateDirectory(deployDirectory);

                m_form.AddTitleUC("准备");
                PrepareSetupCommand command = new PrepareSetupCommand(m_form);
                m_form.AddBodyUC(command);
                m_form.CurrentCommand = command;
            }
        }