コード例 #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            MetaqueryGenerator.BL.DatabaseManagement dbManagement = new BL.DatabaseManagement();
            decimal confidence, support;
            int     maxArity;

            decimal.TryParse(numericConfidence.Text, out confidence);
            decimal.TryParse(numericSupport.Text, out support);
            int.TryParse(numericMaxArity.Text, out maxArity);

            if (dbManagement.Create(txtDbName.Text, txtConnectionString.Text, support, confidence, maxArity))
            {
                if (MQGenerator.IsAutoRunJobs)
                {
                    MQGenerator.StartDBProcess();
                }
                ShowMessage("DB Initialized successfuly");
                txtDbName.Text = "";
            }
        }
コード例 #2
0
 private void btnStartDBProcess_Click(object sender, EventArgs e)
 {
     MQGenerator.StartDBProcess();
     ShowMessage("Start DB Process Job run successfuly");
 }