Example #1
0
        private void m_pNext_Click(object sender, EventArgs e)
        {
            if (m_pInstallLocation.Text == "")
            {
                MessageBox.Show(this, "Installation location may not be empty !", "Error:", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            if (!Directory.Exists(m_pInstallLocation.Text))
            {
                Directory.CreateDirectory(m_pInstallLocation.Text);
            }

            m_pMain.InstallPath = m_pInstallLocation.Text;
            m_pMain.Next();
        }
Example #2
0
        private void m_pNext_Click(object sender, EventArgs e)
        {
            // Validate XML config values
            if (m_pApiType.SelectedItem.ToString() == "XML")
            {
                if (m_pSettingsPath.Text == "")
                {
                    MessageBox.Show(this, "Settings location may not be empty !", "Error:", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                if (m_pMailStorePath.Text == "")
                {
                    MessageBox.Show(this, "Mail store location may not be empty !", "Error:", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
            }

            // Validate MSSQL config values
            if (m_pApiType.SelectedItem.ToString() == "MSSQL")
            {
                if (m_pServer.Text == "")
                {
                    MessageBox.Show(this, "Sql server name may not be empty !", "Error:", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                if (m_pDatabase.Text == "")
                {
                    MessageBox.Show(this, "Sql server database name may not be empty !", "Error:", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
            }



            m_pMain.Next();
        }
 private void m_pNext_Click(object sender, EventArgs e)
 {
     m_pMain.Next();
 }