private void triggerPropPage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     if (TriggerPropertiesInstructions != null)
     {
         triggerPropText.Text = TriggerPropertiesInstructions;
     }
 }
Ejemplo n.º 2
0
        // ********* REPORT Page *************
        private void reportWizPg_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
        {
            var items = new List <Control>();

            foreach (var diag in diags.Issues)
            {
                items.Add(MakeReportItem(diag));
            }
            if (items.Count > 0)
            {
                items.Insert(0, MakeTitleItem("Issues found"));
            }
            int iPos = items.Count;

            foreach (var diag in diags.NonIsseus)
            {
                items.Add(MakeStatusItem(diag, false));
            }
            if (items.Count > iPos)
            {
                items.Insert(iPos, MakeTitleItem("\r\nIssues checked"));
            }
            localConfigList.Controls.Clear();
            items.Reverse();
            if (items.Count > 0)
            {
                localConfigList.Controls.AddRange(items.ToArray());
            }
        }
Ejemplo n.º 3
0
        private void wizardPage4_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
        {
            int rowNumber;

            //load origin database objects

            reader = SQLConn.ExecuteQuery("select * from " + txtOriginDatabase.Text + ".INFORMATION_SCHEMA.TABLES order by TABLE_TYPE,TABLE_NAME");
            dt     = reader.Tables[0];
            foreach (DataRow row in dt.Rows)
            {
                //ToDo: support more objects?
                //ToDo: column 0: show icon instead?
                switch (row["TABLE_TYPE"].ToString())
                {
                case "BASE TABLE":
                    dgvObjects.Rows.Add("TABLE", row["TABLE_NAME"].ToString(), true, true);
                    break;

                case "VIEW":
                    rowNumber = dgvObjects.Rows.Add("VIEW", row["TABLE_NAME"].ToString(), true, null);
                    dgvObjects.Rows[rowNumber].Cells[3].ReadOnly = true;         //views has no data
                    break;
                }
            }
        }
 private void triggerSelectPage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     if (TriggerPagePrompt != null)
     {
         triggerSelectPage.Text = TriggerPagePrompt;
     }
 }
 private void wizardPageOptions_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     optionsBootMenuEntry.Text = engine.BootMenuEntryName;
     optionsFileName.Text      = engine.DestinationFileName;
     optionsEFI.Enabled        = engine.EfiSupported;
     optionsEFI.Checked        = engine.EfiUsed;
     optionsSummary.Text       = engine.Summary;
 }
 private void onEventTriggerPage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     if (eventTriggerUI1.Trigger == null)
     {
         eventTriggerUI1.Trigger = new EventTrigger();
     }
     if (System.Environment.Version.Major < 4)
     {
         onEventTriggerPage.AllowNext = true;
     }
 }
Ejemplo n.º 7
0
 private void WizardPageSelect_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     this.wizardPageSelect.Controls.Add(this.imeiInput1);
     this.checkBox1.Click += delegate { WizardPageSelect_PrepareModels(); };
     //comboBoxModels.Items.Clear();
     //if (comboBoxModels.Items.Count==0)
     //    comboBoxModels.DataSource = models.ToArray();
     //utility.IniFile ini = new utility.IniFile(System.IO.Path.Combine(System.Environment.GetEnvironmentVariable("FDHOME"), "AVIA", "aviaDevice.ini"));
     //ini.WriteValue("device", "select", comboBoxModels.SelectedItem.ToString());
     //ini.DeleteSection("device");
 }
 private void wizardPageDriveSelect_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     foreach (DriveInfo di in DriveInfo.GetDrives())
     {
         if (di.DriveType == DriveType.Removable)
         {
             driveSelect.Items.Add(new DriveItem(di));
         }
     }
     driveSelect_SelectedIndexChanged(null, null);
 }
Ejemplo n.º 9
0
 private void WizardPageLogin_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     labelLoginStatus.Visible = false;
     //Task.Run(() =>
     //{
     //    Process[] p = Process.GetProcessesByName("evaoi_3.1.0.0");
     //    if (p.Length > 0)
     //    {
     //        ShowWindow(p[0].MainWindowHandle, 2);
     //    }
     //});
 }
Ejemplo n.º 10
0
 private void wizardPage10_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     labelMethod.Text = diagnosticCard.chooseMethod();
     if (labelMethod.Text == "Прямой метод реставрации (терапевтический метод)")
     {
         pictureBox1.Image = Properties.Resources.tooths1;
     }
     else
     {
         pictureBox1.Image = Properties.Resources.tooths2;
     }
 }
Ejemplo n.º 11
0
 private void WizardPageInProcess_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     this.wizardPageInProcess.Controls.Add(this.imeiInput1);
     this.imeiInput1.Focus();
     labelStatus.Text = "Scan in progress";
     this.wizardPageInProcess.Text = labelStatus.Text;
     Task t = Task.Run(() =>
     {
         Task tt   = Task.Run(() => OEControl.scan());
         bool done = false;
         int step  = 0;
         utility.IniFile avia_device = new utility.IniFile(System.IO.Path.Combine(System.Environment.GetEnvironmentVariable("FDHOME"), "AVIA", "AviaDevice.ini"));
         while (!done)
         {
             System.Threading.Thread.Sleep(300);
             wizardControl1.Invoke(new Action(() =>
             {
                 progressBar1.Value = Math.Min(step++, progressBar1.Maximum);
                 progressBar1.Update();
             }));
             // check the progress
             string cmd = avia_device.GetString("query", "command", "");
             if (string.Compare(cmd, "PMP", true) == 0)
             {
                 wizardControl1.Invoke(new Action(() =>
                 {
                     labelStatus.Text = "Inspection in progress";
                     this.wizardPageInProcess.Text = labelStatus.Text;
                 }));
             }
             // check result
             string grade = avia_device.GetString("device", "grade", "");
             if (!string.IsNullOrEmpty(grade))
             {
                 Program.logIt($"Result: {grade}");
                 done = true;
                 step = 100;
                 wizardControl1.Invoke(new Action(() =>
                 {
                     progressBar1.Value = progressBar1.Maximum;
                     progressBar1.Update();
                 }));
             }
         }
         wizardControl1.Invoke(new Action(() =>
         {
             wizardControl1.NextPage();
         }));
         tt.Wait();
     });
 }
Ejemplo n.º 12
0
 private void wizardPage2_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     if (!wizardPage2.AllowNext)
     {
         tfa = new TwoFactorAuth("Vending control system");
         if (otpsecret == "")
         {
             otpsecret = tfa.CreateSecret(160);
         }
         var   pic   = Convert.FromBase64String(tfa.GetQrCodeImageAsDataUri(adminemailtextbox.Text, otpsecret, 150).Substring(22));
         Image image = Image.FromStream(new MemoryStream(pic));
         otpsecretpicture.Image = image;
     }
 }
Ejemplo n.º 13
0
 private void middlePage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     initMiddle = true;
     if (!System.IO.File.Exists(System.IO.Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.System), "dwmapi.dll")))
     {
         checkBox1.Enabled = false;
     }
     else
     {
         checkBox1.Checked = DesktopWindowManager.CompositionEnabled;
     }
     wizardControl1.FinishButtonText = "Finish";
     initMiddle = false;
 }
Ejemplo n.º 14
0
        private void wizardPage5_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
        {
            ListViewItem item;

            wizardPage5.AllowBack = false;
            wizardPage5.AllowNext = false;

            //add tasks to listview
            if (optOverwriteDatabase.Checked)
            {
                item = lvTasks.Items.Add("Deleting MySQL Database: " + txtDestinationDatabase.Text);
                item.SubItems.Add("Waiting...");
                item = lvTasks.Items.Add("Creating MySQL Database: " + txtDestinationDatabase.Text);
                item.SubItems.Add("Waiting...");
            }
            if (optCreateDatabase.Checked)
            {
                item = lvTasks.Items.Add("Creating MySQL Database: " + txtDestinationDatabase.Text);
                item.SubItems.Add("Waiting...");
            }

            for (int i = 0; i < dgvObjects.Rows.Count; i++)
            {
                if (Convert.ToBoolean(dgvObjects.Rows[i].Cells[2].Value)) //schema
                {
                    item = lvTasks.Items.Add("Creating " + dgvObjects.Rows[i].Cells[0].Value.ToString().ToLower() + " Schema: " + dgvObjects.Rows[i].Cells[1].Value.ToString());
                    item.SubItems.Add("Waiting...");
                }
                if (Convert.ToBoolean(dgvObjects.Rows[i].Cells[3].Value)) //data
                {
                    item = lvTasks.Items.Add("Copying " + dgvObjects.Rows[i].Cells[0].Value.ToString().ToLower() + " Data: " + dgvObjects.Rows[i].Cells[1].Value.ToString());
                    item.SubItems.Add("Waiting...");
                }
            }

            item = lvTasks.Items.Add("Creating Table Indexes");
            item.SubItems.Add("Waiting...");
            //now we can call the procedures
            if (optExportToDatabase.Checked)
            {
                System.Threading.Thread procThread = new System.Threading.Thread(this.toDatabase);
                procThread.Start();
            }
            else
            {
                System.Threading.Thread procThread = new System.Threading.Thread(this.toFile);
                procThread.Start();
            }
        }
Ejemplo n.º 15
0
        private void wizardPageBootStyle_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
        {
            if (e.PreviousPage == wizardPageDriveSelect || e.PreviousPage == wizardPageOptions)
            {
                try
                {
                    DriveItem drive = (DriveItem)driveSelect.SelectedItem;
                    if (drive == null)
                    {
                        throw new Exception("No drive selected");
                    }
                    if (engine != null)
                    {
                        engine.Dispose();
                        engine = null;
                    }
                    engine = new BuildEngine(drive.DriveInfo);
                    if (engine.BootloaderPresent)
                    {
                        bootStatusLabel.Text  = "Existing bootloader found on " + drive.DriveInfo.Name;
                        actionNewMenu.Enabled = actionKeepAll.Enabled = true;
                    }
                    else
                    {
                        bootStatusLabel.Text  = "No bootloader found on " + drive.DriveInfo.Name;
                        actionNewMenu.Enabled = actionKeepAll.Enabled = false;
                    }
                    bootFilesDeeperLocationCheckbox.Enabled = !engine.SkipLocationSelection;
                    bootFilesDeeperLocationCheckbox.Checked = engine.UseDeeperLocation;
                    if (!engine.BootloaderPresent && engine.SkipLocationSelection)
                    {
                        wizardControl.NextPage();
                    }
                }
#if !DEBUG
                catch (Exception ex)
                {
                    MessageBox.Show(ex.ToString());
                    wizardControl.PreviousPage();
                }
#endif
                finally { }
            }
            else if (e.PreviousPage == wizardPageSelectSource && !bootFilesDeeperLocationCheckbox.Enabled && !actionKeepAll.Enabled)
            {
                wizardControl.PreviousPage();
            }
        }
Ejemplo n.º 16
0
 private void WizardPageResult_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     Program.logIt("WizardPageResult_Initialize: ");
     this.wizardPageResult.ShowNext = false;
     //this.wizardPageResult.Controls.Add(this.imeiInput1);
     // load grade
     {
         utility.IniFile avia_device = new utility.IniFile(System.IO.Path.Combine(System.Environment.GetEnvironmentVariable("FDHOME"), "AVIA", "AviaDevice.ini"));
         string          grade       = avia_device.GetString("device", "grade", "D");
         labelGrade.Text = grade;
     }
     tokenSource = new CancellationTokenSource();
     // start task wait for device loaded
     Task t = Task.Factory.StartNew((o) =>
     {
         CancellationToken ct = (CancellationToken)o;
         // oe control
         Task tt = Task.Run(() => OEControl.unload());
         //OEControl.unload();
         utility.IniFile avia_device = new utility.IniFile(System.IO.Path.Combine(System.Environment.GetEnvironmentVariable("FDHOME"), "AVIA", "AviaDevice.ini"));
         bool done = false;
         while (!done)
         {
             System.Threading.Thread.Sleep(1000);
             if (ct.IsCancellationRequested)
             {
                 // camcelled.
                 break;
             }
             else
             {
                 string s = avia_device.GetString("device", "device", "");
                 if (string.Compare(s, "removed", true) == 0)
                 {
                     done = true;
                 }
             }
         }
         tt.Wait();
         // device connect.
         if (done)
         {
             //this.Invoke(new Action(() => wizardControl1.NextPage()));
             this.Invoke(new Action(() => this.wizardPageResult.ShowNext = true));
         }
     }, tokenSource.Token);
 }
Ejemplo n.º 17
0
        private void ViewResults_OnInitialize(object sender, AeroWizard.WizardPageInitEventArgs e)
        {
            results_conversion_log.Text = this.ConversionResults;

            string DestFilename = select_dest_file.Text;
            string DestFileExt  = GetFileExt(DestFilename);

            if ((DestFileExt == ".xls" || DestFileExt == ".xlsx") && GetApplicationForFileExt(DestFileExt) != null)
            {
                results_open_in_excel.Enabled = true;
                results_open_in_excel.Checked = true;
            }
            else
            {
                results_open_in_excel.Enabled = false;
                results_open_in_excel.Checked = false;
            }
        }
Ejemplo n.º 18
0
        private void WizardPagePlaceDevice_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
        {
            this.wizardPagePlaceDevice.Controls.Add(this.imeiInput1);
            this.imeiInput1.clear();
            this.imeiInput1.Focus();
            //pictureBox1.Image = Image.FromFile(@"C:\Tools\logs\Rotating_earth_(large).gif");
            Program.logIt("WizardPagePlaceDevice_Initialize: ++");
#if false
            tokenSource = new CancellationTokenSource();
            // start task wait for device loaded
            Task t = Task.Factory.StartNew((o) =>
            {
                // oe control
                Task tt = Task.Run(() => OEControl.load());
                CancellationToken ct        = (CancellationToken)o;
                utility.IniFile avia_device = new utility.IniFile(System.IO.Path.Combine(System.Environment.GetEnvironmentVariable("FDHOME"), "AVIA", "AviaDevice.ini"));
                bool done = false;
                while (!done)
                {
                    System.Threading.Thread.Sleep(1000);
                    if (ct.IsCancellationRequested)
                    {
                        // camcelled.
                        break;
                    }
                    else
                    {
                        string s = avia_device.GetString("device", "device", "");
                        if (string.Compare(s, "ready", true) == 0)
                        {
                            done = true;
                        }
                    }
                }
                // device connect.
                if (done)
                {
                    this.Invoke(new Action(() => wizardControl1.NextPage()));
                }
                tt.Wait();
            }, tokenSource.Token);
#endif
            Program.logIt("WizardPagePlaceDevice_Initialize: --");
        }
Ejemplo n.º 19
0
 private void authPage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     if (this.cmbAuthOption.SelectedIndex < 0)
     {
         this.cmbAuthOption.SelectedIndex = 0;
     }
     if (this.cmbSiteSelectionOption.SelectedIndex < 0)
     {
         this.cmbSiteSelectionOption.SelectedIndex = 0;
     }
     if (this.cmbScanMode.SelectedIndex < 0)
     {
         this.cmbScanMode.SelectedIndex = 0;
     }
     if (this.cmbSeparator.SelectedIndex < 0)
     {
         this.cmbSeparator.SelectedIndex = 0;
     }
 }
Ejemplo n.º 20
0
        private void wizDatabaseValidate_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
        {
            lblError.Visible = false;

            using (var localDB = new SqlLocalDbApi())
            {
                if (!localDB.IsLocalDBInstalled())
                {
                    lblError.Text    = "LocalDb is not installed, please install LocalDb 2012 or higher for Placeless to work.";
                    lblError.Visible = true;
                }

                else if (string.IsNullOrWhiteSpace(localDB.GetDefaultInstance().Name))
                {
                    lblError.Text    = "Could not determine default instance name.";
                    lblError.Visible = true;
                }
            }
        }
        private void summaryPage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
        {
            summaryPrompt.Visible = RegisterTaskOnFinish;
            if (SummaryRegistrationNotice != null)
            {
                summaryPrompt.Text = SummaryRegistrationNotice;
            }
            openDlgAfterCheck.Visible = AllowEditorOnFinish;
            if (EditorOnFinishText != null)
            {
                openDlgAfterCheck.Text = EditorOnFinishText;
            }
            string fmt = string.IsNullOrEmpty(SummaryFormatString) ? EditorProperties.Resources.WizardSummaryFormatString : SummaryFormatString;

            sumText.Text = string.Format(fmt,
                                         nameText.Text,
                                         descText.Text,
                                         trigger.ToString(),
                                         TaskEnumGlobalizer.GetString(action.ActionType) + ": " + action.ToString());
            sumText.Select(0, 0);
        }
Ejemplo n.º 22
0
        private void Introduction_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
        {
            Thread t = new Thread(new ThreadStart(DriveInsertionCheck));

            t.IsBackground = true;
            t.Start();

            /** Make the line in main text box bold **/
            int index  = rtbMainLabel.Text.IndexOf("it is required in order to continue!!!");
            int length = "it is required in order to continue!!!".Length;

            rtbMainLabel.Select(index, length);
            Font currentFont = rtbMainLabel.SelectionFont;

            rtbMainLabel.SelectionFont = new Font(currentFont.FontFamily, currentFont.Size, FontStyle.Bold);
            rtbMainLabel.SelectAll();
            rtbMainLabel.SelectionBullet = true;
            rtbMainLabel.Select(0, 0);

            /** Make "syncbox" italicized**/
            int index2  = rtbHeader.Text.IndexOf("Syncbox");
            int length2 = "Syncbox".Length;

            rtbHeader.Select(index2, length2);
            Font currentFont2 = rtbHeader.SelectionFont;

            rtbHeader.SelectionFont = new Font(currentFont2.FontFamily, currentFont2.Size, FontStyle.Italic);
            rtbHeader.Select(0, 0);

            /** Superscript TM in header**/
            int index3  = rtbHeader.Text.IndexOf("TM");
            int length3 = "TM".Length;

            rtbHeader.Select(index3, length3);
            rtbHeader.SelectionCharOffset = 5;
            var tmFont = rtbHeader.SelectionFont;

            rtbHeader.SelectionFont = new Font(tmFont.FontFamily, 4);
            rtbHeader.Select(0, 0);
        }
Ejemplo n.º 23
0
        // ********* ERROR Page *************
        private void completeWithProbWizPg_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
        {
            // Fill out list box based on diagnostics
            var items = new List <Control>();

            foreach (var diag in diags.Issues)
            {
                items.Add(MakeStatusItem(diag));
            }
            if (autofix && items.Count > 0)
            {
                items.Insert(0, MakeTitleItem("Issues found"));
            }
            issueList.Controls.Clear();
            items.Reverse();
            if (items.Count > 0)
            {
                issueList.Controls.AddRange(items.ToArray());
            }
            else
            {
                wizardControl1.NextPage(completeNoProbWizPg);
            }
        }
Ejemplo n.º 24
0
 private void WizardPageScanColor_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     this.wizardPageScanColor.Controls.Add(this.imeiInput1);
 }
Ejemplo n.º 25
0
 private void WizardPagePlaceDevice_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     this.wizardPagePlaceDevice.Controls.Add(this.imeiInput1);
 }
Ejemplo n.º 26
0
 private void scopePage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     this.pnlSiteFiles.Location  = this.pnlSiteWildcard.Location;
     this.pnlSiteTenant.Location = this.pnlSiteWildcard.Location;
 }
Ejemplo n.º 27
0
 private void wizardPage1_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     headerPanel.Visible     = topDivider.Visible = false;
     startEndPicture.Visible = true;
 }
Ejemplo n.º 28
0
 private void wizardPage2_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     headerPanel.Visible = topDivider.Visible = true;
 }
Ejemplo n.º 29
0
        private void wizDatabaseCreate_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
        {
            var createDatabaseTask = new Task(() =>
            {
                try
                {
                    using (var localDB = new SqlLocalDbApi())
                    {
                        ReportStatus("Searching for Localdb instance", 1);
                        ReportStatus("Checking default Instance", 2);

                        var connected               = false;
                        string instance             = localDB.DefaultInstanceName;
                        List <string> instanceNames = new List <string>(localDB.GetInstanceNames());
                        instanceNames               = instanceNames.Where(n => n != instance).ToList(); // only non-default instances

                        SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder();

                        int iInstance = 0;
                        while (!connected)
                        {
                            builder.DataSource         = $"(LocalDb)\\{instance}";
                            builder.InitialCatalog     = "Master";
                            builder.IntegratedSecurity = true;
                            ReportStatus($"Connecting to {instance}", 2);

                            var con = new SqlConnection(builder.ConnectionString);
                            try
                            {
                                con.Open();
                                connected = true;
                            }
                            catch
                            {
                                connected = false;
                                if (iInstance >= instanceNames.Count)
                                {
                                    ReportStatus("Error: No LocalDb database instances could be connected to.", 0);
                                    return;
                                }
                                instance = instanceNames[iInstance];
                                iInstance++;
                            }
                        }

                        ReportStatus($"Successfully connected to {instance}", 20);

                        string databaseName = "Placeless";
                        int i             = 0;
                        var databaseNames = getDatabaseList(builder.ConnectionString);

                        string mdf = System.IO.Path.Combine(txtDatabasePath.Text, $"{databaseName}.mdf");
                        string ldf = System.IO.Path.Combine(txtDatabasePath.Text, $"{databaseName}.ldf");

                        ReportStatus($"Selecting a unique database name", 30);

                        while (
                            System.IO.File.Exists(mdf) ||
                            System.IO.File.Exists(ldf) ||
                            databaseNames.Contains(databaseName)
                            )
                        {
                            i++;
                            databaseName = $"Placeless{i:D2}";
                            mdf          = System.IO.Path.Combine(txtDatabasePath.Text, $"{databaseName}.mdf");
                            ldf          = System.IO.Path.Combine(txtDatabasePath.Text, $"{databaseName}.ldf");
                        }
                        ReportStatus($"Creating database {databaseName}.", 35);
                        ReportStatus($"Data File: {mdf}", 35);
                        ReportStatus($"Log File: {ldf}", 35);

                        SqlMetadataStore.CreateDatabase(builder.ConnectionString, databaseName, mdf, ldf);

                        builder.InitialCatalog = databaseName;

                        ReportStatus($"Database Created, migrating", 80);

                        var _dbContextOptions = SqlServerDbContextOptionsExtensions.UseSqlServer(
                            new DbContextOptionsBuilder(),
                            builder.ConnectionString,
                            options => options.CommandTimeout(120)
                            ).Options;

                        using (var dbContext = new ApplicationDbContext(_dbContextOptions))
                        {
                            dbContext.Database.Migrate();
                        }

                        ReportStatus($"Migrations executed, updating config", 90);

                        _config.SetValue(SqlMetadataStore.CONNECTION_STRING_SETTING, builder.ConnectionString);
                        _config.SetValue(FileSystemBlobStore.BLOB_ROOT_PATH, System.IO.Path.Combine(txtDatabasePath.Text, $"{databaseName}_Files"));

                        ReportStatus($"Configuration Updated", 100);

                        this.Invoke((MethodInvoker) delegate
                        {
                            wizardControl1.NextPage();
                        });
                    }
                }
                catch (Exception ex)
                {
                    this.Invoke((MethodInvoker) delegate
                    {
                        txtCreateDatabaseOutput.Text += ex.Message + "\r\n";
                        txtCreateDatabaseOutput.Text += ex.StackTrace + "\r\n";
                    });
                }
            }, TaskCreationOptions.LongRunning);

            createDatabaseTask.Start();
        }
Ejemplo n.º 30
0
 private void introPage_Initialize(object sender, AeroWizard.WizardPageInitEventArgs e)
 {
     //MessageBox.Show("Page initialized");
 }