Beispiel #1
0
        private static void ThreadTask(object info)
        {
            //initialize the form
            waitingForm = new SplashForm();
            waitingForm.ShowInTaskbar = false;
            Rectangle or       = (Rectangle)info.GetType().GetProperty("OwnerRect").GetValue(info);
            Point     location = new Point(or.X + (or.Width - waitingForm.Width) / 2, or.Y + (or.Height - waitingForm.Height) / 2);

            waitingForm.Location        = location;
            waitingForm.FormBorderStyle = FormBorderStyle.None;
            waitingForm.ControlBox      = false;
            waitingForm.TopMost         = true;
            waitingForm.StartPosition   = FormStartPosition.Manual;

            RadProgressBar pb = waitingForm.Controls[0] as RadProgressBar;
            RadWaitingBar  wb = new RadWaitingBar();

            wb.Size     = pb.Size;
            wb.Location = pb.Location;

            waitingForm.Controls.Remove(pb);
            waitingForm.Controls.Add(wb);

            wb.StartWaiting();


            Application.Run(waitingForm);
        }
Beispiel #2
0
            public void TCP_PageLoop(RadProgressBar Bar, bool NewThread = true)
            {
                if (NewThread)
                {
                    Thread newThread = new Thread(() => TCP_PageLoop(Bar, false)); // Function To Execute
                    newThread.Name         = "Populate Missing Actor Info";
                    newThread.IsBackground = true;
                    newThread.Start();
                }
                else
                {
                    int TotalPages = 679;

                    pro.SetupProgressBar(Bar, TotalPages);

                    int page = 1;
                    do
                    {
                        pro.UpdateProgress(Bar, page + "/" + TotalPages);
                        string URL = "https://theclassicporn.com/videos/" + page + "/";
                        Parse_TCPPage(URL, @"H:\SiteParse\TheClassic");
                        page++;
                    }while (page < TotalPages);

                    ahk.MsgBox("DONE!");
                }
            }
            /// <summary>
            /// Update Progress Bar By 1 Unit (Option to Update Text)
            /// </summary>
            /// <param name="PBar">RadProgressBar Control</param>
            /// <param name="Text">Optional Display Text</param>
            public void UpdateProgress(RadProgressBar PBar, string Text = "")
            {
                if (PBar == null)
                {
                    return;
                }

                if (PBar.InvokeRequired)  // if currently on a different thread, invoke
                {
                    PBar.BeginInvoke((MethodInvoker) delegate()
                    {
                        if (Text != "")
                        {
                            PBar.Text = Text;
                        }

                        try { PBar.Value1++; }
                        catch { }
                    });
                }
                else
                {
                    if (Text != "")
                    {
                        PBar.Text = Text;
                    }

                    try { PBar.Value1++; }
                    catch { }
                }
            }
 private void InitializeComponent()
 {
     this.progressBar1 = new RadProgressBar();
     ((ISupportInitialize)this.progressBar1).BeginInit();
     base.SuspendLayout();
     this.progressBar1.BackColor = SystemColors.ControlLightLight;
     this.progressBar1.Dash      = false;
     this.progressBar1.Dock      = DockStyle.Fill;
     this.progressBar1.Location  = new Point(0, 0);
     this.progressBar1.Name      = "progressBar1";
     this.progressBar1.RootElement.ControlBounds = new Rectangle(140, 27, 150, 30);
     this.progressBar1.SeparatorColor1           = Color.FromArgb(239, 239, 239);
     this.progressBar1.SeparatorColor2           = Color.White;
     this.progressBar1.SeparatorWidth            = 4;
     this.progressBar1.Size          = new Size(503, 72);
     this.progressBar1.StepWidth     = 13;
     this.progressBar1.TabIndex      = 0;
     this.progressBar1.TextAlignment = ContentAlignment.MiddleCenter;
     base.AutoScaleDimensions        = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.ClientSize    = new Size(503, 72);
     base.Controls.Add(this.progressBar1);
     base.FormBorderStyle = FormBorderStyle.None;
     base.Name            = "FormWait";
     this.Text            = "FormWait";
     ((ISupportInitialize)this.progressBar1).EndInit();
     base.ResumeLayout(false);
 }
        public void Colors()
        {
            #region radprogressbar-changing-colors_1
            RadProgressBar myProgressBar = new RadProgressBar();
            // Set Background directly
            myProgressBar.Background = new SolidColorBrush(Colors.Yellow);
            // Set Background using a Style
            Style myStyle = new Style(typeof(RadProgressBar));
            myStyle.Setters.Add(new Setter(RadProgressBar.BackgroundProperty, new SolidColorBrush(Colors.Yellow)));
            myProgressBar.Style = myStyle;
            #endregion

            #region radprogressbar-changing-colors_3
            // Set Foreground directly
            myProgressBar.Foreground = new SolidColorBrush(Colors.Yellow);
            // Set Foreground using a Style
            Style myStyle2 = new Style(typeof(RadProgressBar));
            myStyle2.Setters.Add(new Setter(RadProgressBar.ForegroundProperty, new SolidColorBrush(Colors.Yellow)));
            myProgressBar.Style = myStyle2;
            #endregion

            #region radprogressbar-changing-colors_5
            // Set BorderBrush  directly
            myProgressBar.BorderBrush = new SolidColorBrush(Colors.Red);
            // Set BorderBrush using a Style
            Style myStyle3 = new Style(typeof(RadProgressBar));
            myStyle3.Setters.Add(new Setter(RadProgressBar.BorderBrushProperty, new SolidColorBrush(Colors.Red)));
            myProgressBar.Style = myStyle3;
            #endregion
        }
        public bool ExportExcelAsync(RadProgressBar progressBar)
        {
            try
            {
                Export.FileExtension = "xml";
                this.objProgressBar  = progressBar;

                if (worker == null)
                {
                    worker = new BackgroundWorker();

                    worker.DoWork             += new DoWorkEventHandler(worker_DoWork);
                    worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
                }

                int visibleCols = this.Grid.Columns.Where(c => c.IsVisible == true).Count();
                ProgressCnter = this.Grid.Rows.Count * visibleCols;


                //     this.objProgressBar.Maximum = ProgressCnter;
                ProgressCnter = 100 / ProgressCnter;
                this.objProgressBar.Value1 = 0;
                worker.RunWorkerAsync();

                return(true);
            }
            catch (Exception ex)
            {
                RadMessageBox.Show(ex.Message);
                return(false);
            }
        }
Beispiel #7
0
            public void RAR_EachFileInDir(RadProgressBar radProgress, string DirPath, bool NewThread = true, bool EpNumRARName = true, string Prefix = "")
            {
                _AHK ahk = new _AHK();

                if (NewThread)
                {
                    Thread imdbTVParseThread = new Thread(() => RAR_EachFileInDir(radProgress, DirPath, false, EpNumRARName, Prefix));
                    imdbTVParseThread.Start();
                }
                else
                {
                    _TelerikLib.RadProgress pro = new _TelerikLib.RadProgress();
                    _Lists lst = new _Lists();
                    _Parse prs = new _Parse();

                    string rar = @"C:\_Code\LucidProjects\ADBindex\ComPress\bin\Debug\Lib\rar.exe";

                    List <string> files = lst.FileList(DirPath);

                    pro.SetupProgressBar(radProgress, files.Count);

                    string RelativePath = "-ep";

                    string fileDir = ahk.FileDir(DirPath); int i = 0;
                    foreach (string file in files)
                    {
                        if (ahk.FileExt(file).ToUpper() == ".URL")
                        {
                            continue;
                        }


                        // extract season/ep number from file name
                        string epNum = prs.SeasonEpNums(file);

                        i++; pro.UpdateProgress(radProgress, ahk.FileName(file) + " " + i + "/" + files.Count);
                        string newRAR = fileDir + "\\" + Prefix + epNum + ".rar";

                        // use the file name as the zip file name
                        if (!EpNumRARName)
                        {
                            newRAR = fileDir + "\\" + ahk.FileNameNoExt(file) + ".rar";
                        }

                        if (File.Exists(newRAR))
                        {
                            continue;
                        }


                        string FIle = file.Replace(",", "`,");

                        string cmd = rar + " A -m0 " + RelativePath + " " + "\"" + newRAR + "\" \"" + FIle + "\"";
                        ahk.RunWait(cmd, "", "Hide");
                    }

                    ahk.MsgBox("Finished RARing " + files.Count + " Files");
                }
            }
Beispiel #8
0
        protected void grdCuestionarios_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            CuestionarioNegocio negocioEval = new CuestionarioNegocio();

            grdCuestionarios.DataSource = negocioEval.ObtieneEvaluadores(pIdPeriodo: pIdPeriodo, pID_EMPRESA: ContextoUsuario.oUsuario.ID_EMPRESA, pID_ROL: vIdRol);
            RadProgressBar a = new RadProgressBar();

            a.Value = 0;
        }
        protected void grdCuestionarios_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            PeriodoDesempenoNegocio negocioEval = new PeriodoDesempenoNegocio();

            grdCuestionarios.DataSource = negocioEval.ObtieneEvaluadoresEvaluacionOrganizacional(pIdPeriodo: pIdPeriodo, pID_EMPRESA: ContextoUsuario.oUsuario.ID_EMPRESA);
            RadProgressBar a = new RadProgressBar();

            a.Value = 0;
        }
Beispiel #10
0
        //private void LaunchBusyIndicator()
        //{
        //    if (!worker.IsBusy)
        //    {
        //        BusyIndicator.IsBusy = true;
        //        worker.RunWorkerAsync();

        //    }
        //}

        void CurrentProduct(int idProducto, RadProgressBar[] myBars, System.Windows.Controls.Label [] myLabels)
        {
            MigradorModel model = new MigradorModel(idProducto);



            if (idProducto != 4 && idProducto != 10)
            {
                model.EliminaRegistros();
                myProgressBar = myBars[0];
                myLabel       = myLabels[0];
                List <int> tesisRelacionadas = model.GetTesisRelacionadasByProducto();
                this.Dispatcher.BeginInvoke((Action)(() => UpdateContentLabel(tesisRelacionadas.Count.ToString())));
                this.Dispatcher.BeginInvoke((Action)(() => UpdateMaximun(tesisRelacionadas.Count)));
                model.InsertaIuses(tesisRelacionadas, worker);


                myProgressBar = myBars[1];
                myLabel       = myLabels[1];
                List <Temas> temas = model.GetTemas();
                this.Dispatcher.BeginInvoke((Action)(() => UpdateContentLabel(temas.Count.ToString())));
                this.Dispatcher.BeginInvoke((Action)(() => UpdateMaximun(temas.Count)));
                model.InsertaTemas(temas, worker);

                myProgressBar = myBars[2];
                myLabel       = myLabels[2];
                List <Temas> relaciones = model.GetRelaciones();
                this.Dispatcher.BeginInvoke((Action)(() => UpdateContentLabel(relaciones.Count.ToString())));
                this.Dispatcher.BeginInvoke((Action)(() => UpdateMaximun(relaciones.Count)));
                model.InsertaTemasIus(relaciones, worker);
            }
            else if (idProducto == 4)
            {
                model.EliminaRegistros();
                myProgressBar = myBars[0];
                myLabel       = myLabels[0];
                List <TesisDTO> tesisRelacionadas = model.GetTesisRelacionadasScjn();
                this.Dispatcher.BeginInvoke((Action)(() => UpdateContentLabel(tesisRelacionadas.Count.ToString())));
                this.Dispatcher.BeginInvoke((Action)(() => UpdateMaximun(tesisRelacionadas.Count)));
                model.InsertaTemasIusScjn(tesisRelacionadas, worker);
            }
            else if (idProducto == 10)
            {
                ClasificacionModel myModel = new ClasificacionModel();
                myModel.EliminaRelaciones();
                myModel.GetTemas();

                myProgressBar = myBars[0];
                myLabel       = myLabels[0];
                myModel.GetRelacionesCongelado();
                List <Relaciones> relaciones = myModel.GetRelacionesPostApendice();
                this.Dispatcher.BeginInvoke((Action)(() => UpdateContentLabel(relaciones.Count.ToString())));
                this.Dispatcher.BeginInvoke((Action)(() => UpdateMaximun(relaciones.Count)));
                myModel.SetRelaciones(worker);
            }
        }
        public static string ExecuteInserts(QueryResult querys, RadProgressBar progressBarResult)
        {
            StringBuilder results = new StringBuilder();

            // Obtenemos la configuracion
            SettingsModel model = SettingsManager.GetXml(true);

            if (model == null)
            {
                results.AppendLine(GetTime() + " - Settings are not setted");
                return(results.ToString());
            }

            // Inicializamos el manager
            DatabaseManage manager = new DatabaseManage(model);

            int currentNumberRow = 0;
            int rowsAffected     = 0;

            results.AppendLine(string.Format("{0} - Starting migration", GetTime()));

            foreach (string query in querys.Querys.ToString().Split('\n'))
            {
                if (string.IsNullOrWhiteSpace(query))
                {
                    continue;
                }

                try
                {
                    manager.ExecuteCommand(query);
                    rowsAffected++;
                }
                catch (Exception ex)
                {
                    results.AppendLine(string.Format("{0} - Migrating error - Current query: {1} - Error: {2}", GetTime(), query, ex.Message));
                }

                currentNumberRow++;

                progressBarResult.BeginInvoke(new Action(() =>
                {
                    int newValue = (int)(((float)currentNumberRow / querys.NumberOfItems) * 100);
                    if (newValue > 100)
                    {
                        newValue = 100;
                    }
                    progressBarResult.Value1 = newValue;
                }));
            }
            results.AppendLine(results.Length == 0
                ? string.Format("{0} - Migrated OK - Rows inserted: {1}", GetTime(), rowsAffected)
                : string.Format("{0} - Migrated with Errors - Rows inserted: {1}", GetTime(), rowsAffected));

            return(results.ToString());
        }
        public static string ExecuteInserts(QueryResult querys, RadProgressBar progressBarResult)
        {
            StringBuilder results = new StringBuilder();

            // Obtenemos la configuracion
            SettingsModel model = SettingsManager.GetXml(true);
            if (model == null)
            {
                results.AppendLine(GetTime() + " - Settings are not setted");
                return results.ToString();
            }

            // Inicializamos el manager
            DatabaseManage manager = new DatabaseManage(model);

            int currentNumberRow = 0;
            int rowsAffected = 0;

            results.AppendLine(string.Format("{0} - Starting migration", GetTime()));

            foreach (string query in querys.Querys.ToString().Split('\n'))
            {
                if (string.IsNullOrWhiteSpace(query)) continue;

                try
                {
                    manager.ExecuteCommand(query);
                    rowsAffected++;
                }
                catch (Exception ex)
                {
                    results.AppendLine(string.Format("{0} - Migrating error - Current query: {1} - Error: {2}", GetTime(), query, ex.Message));
                }

                currentNumberRow++;

                progressBarResult.BeginInvoke(new Action(() =>
                {
                    int newValue = (int)(((float)currentNumberRow / querys.NumberOfItems) * 100);
                    if (newValue > 100)
                    {
                        newValue = 100;
                    }
                    progressBarResult.Value1 = newValue;
                }));
            }
            results.AppendLine(results.Length == 0
                ? string.Format("{0} - Migrated OK - Rows inserted: {1}", GetTime(), rowsAffected)
                : string.Format("{0} - Migrated with Errors - Rows inserted: {1}", GetTime(), rowsAffected));

            return results.ToString();
        }
Beispiel #13
0
 private void SetProgressBarValue(ref RadProgressBar bar, int value)
 {
     if (!bar.InvokeRequired)
     {
         bar.Value1 = value;
     }
     else
     {
         SetProgressBarValueDelegate setProgressBarValueDelegate = new SetProgressBarValueDelegate(SetProgressBarValue);
         Object[] objArray = new Object[] { bar, value };
         bar.Invoke(setProgressBarValueDelegate, objArray);
     }
 }
 private void InitializeComponent()
 {
     this.radWaitingBar1 = new RadWaitingBar();
     this.rotatingRingsWaitingBarIndicatorElement1 = new RotatingRingsWaitingBarIndicatorElement();
     this.progressBar = new RadProgressBar();
     this.radWaitingBar1.BeginInit();
     this.progressBar.BeginInit();
     this.SuspendLayout();
     this.radWaitingBar1.Anchor   = AnchorStyles.Bottom | AnchorStyles.Right;
     this.radWaitingBar1.Location = new Point(1311, -1);
     this.radWaitingBar1.Name     = "radWaitingBar1";
     this.radWaitingBar1.RootElement.FocusBorderColor = Color.FromArgb((int)byte.MaxValue, 128, 0);
     this.radWaitingBar1.Size     = new Size(70, 70);
     this.radWaitingBar1.TabIndex = 1;
     this.radWaitingBar1.Text     = "radWaitingBar1";
     this.radWaitingBar1.WaitingIndicators.Add((BaseWaitingBarIndicatorElement)this.rotatingRingsWaitingBarIndicatorElement1);
     this.radWaitingBar1.WaitingStep  = 7;
     this.radWaitingBar1.WaitingStyle = WaitingBarStyles.RotatingRings;
     ((RadWaitingBarElement)this.radWaitingBar1.GetChildAt(0)).WaitingStep = 7;
     ((WaitingBarSeparatorElement)this.radWaitingBar1.GetChildAt(0).GetChildAt(0).GetChildAt(0)).Dash = false;
     this.rotatingRingsWaitingBarIndicatorElement1.AutoSize                 = true;
     this.rotatingRingsWaitingBarIndicatorElement1.BackColor                = Color.Black;
     this.rotatingRingsWaitingBarIndicatorElement1.BackColor2               = Color.Black;
     this.rotatingRingsWaitingBarIndicatorElement1.BackColor3               = Color.Black;
     this.rotatingRingsWaitingBarIndicatorElement1.BackColor4               = Color.Black;
     this.rotatingRingsWaitingBarIndicatorElement1.ElementColor             = Color.Coral;
     this.rotatingRingsWaitingBarIndicatorElement1.ElementColor2            = Color.FromArgb((int)byte.MaxValue, 10, 63);
     this.rotatingRingsWaitingBarIndicatorElement1.ElementColor3            = Color.FromArgb((int)byte.MaxValue, 125, 10);
     this.rotatingRingsWaitingBarIndicatorElement1.ElementCount             = 5;
     this.rotatingRingsWaitingBarIndicatorElement1.FocusBorderColor         = Color.FromArgb((int)byte.MaxValue, 128, 0);
     this.rotatingRingsWaitingBarIndicatorElement1.InnerRingBackgroundColor = Color.FromArgb((int)byte.MaxValue, 63, 10);
     this.rotatingRingsWaitingBarIndicatorElement1.Name = "rotatingRingsWaitingBarIndicatorElement1";
     this.rotatingRingsWaitingBarIndicatorElement1.OuterRingBackgroundColor = Color.FromArgb((int)byte.MaxValue, 10, 10);
     this.rotatingRingsWaitingBarIndicatorElement1.Radius = 20;
     this.progressBar.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.progressBar.Location = new Point(23, 22);
     this.progressBar.Name     = "progressBar";
     this.progressBar.Size     = new Size(1292, 24);
     this.progressBar.TabIndex = 2;
     this.progressBar.Value1   = 50;
     this.AutoScaleDimensions  = new SizeF(6f, 13f);
     this.AutoScaleMode        = AutoScaleMode.Font;
     this.BackColor            = Color.Black;
     this.ClientSize           = new Size(1393, 68);
     this.Controls.Add((Control)this.progressBar);
     this.Controls.Add((Control)this.radWaitingBar1);
     this.Name = nameof(frmLoadOverlay);
     this.radWaitingBar1.EndInit();
     this.progressBar.EndInit();
     this.ResumeLayout(false);
 }
Beispiel #15
0
        //private ProBYQ CheckSetting()
        //{
        //    RadComboBox cb1 = (RadComboBox)cbxBrand.Content;
        //    if (cb1.SelectedIndex == -1)
        //    {
        //        MessageBox.Show("请设置上传款式对应的品牌");
        //        cb1.Focus();
        //        return null;
        //    }
        //    RadComboBox cb2 = (RadComboBox)cbxQuarter.Content;
        //    if (cb2.SelectedIndex == -1)
        //    {
        //        MessageBox.Show("请设置上传款式对应的季度");
        //        cb2.Focus();
        //        return null;
        //    }
        //    RadDatePicker dp = (RadDatePicker)SYear.Content;
        //    if (string.IsNullOrEmpty(dp.DateTimeText))
        //    {
        //        MessageBox.Show("请设置上传款式对应的年份");
        //        dp.Focus();
        //        return null;
        //    }
        //    var byq = DomainLogicEncap.ProductLogic.GetBYQ((int)cb1.SelectedValue, dp.DateTimeText, (int)cb2.SelectedValue);
        //    if (byq == null)
        //    {
        //        MessageBox.Show("不存在对应的品牌年份季度信息");
        //        return null;
        //    }
        //    return byq;
        //}

        /// <summary>
        /// 上传款式图片
        /// </summary>
        /// <returns>是否上传成功</returns>
        private void UploadPictureForSingleStyle(ProBYQ byq, StylePictureFile file, RadProgressBar pbProgress, RadButton btn)
        {
            var filePath = file.FilePath;
            var image    = System.Drawing.Image.FromFile(filePath);
            //BitmapImage image = new BitmapImage(new Uri(filePath));
            var transfer = new LargeDataTransfer()
            {
                Data = image
            };

            transfer.CallbackEvent += delegate(int progress)
            {
                this.Dispatcher.Invoke(new Action(() =>
                {
                    pbProgress.Value = progress;
                }));
            };
            var           func     = new Func <ProBYQ, string, ILargeDataTransfer, bool>(UploadPictureForSingleStyle);
            AsyncCallback callback = new AsyncCallback(ar =>
            {
                //var func = (Func<ProStyleBYQ, string, ILargeDataTransfer, bool>)ar.AsyncState;
                var flag   = func.EndInvoke(ar);
                var result = ProductDataContext.SaveSCPicture(file);
                if (!flag || !result.IsSucceed)
                {
                    btn.IsEnabled       = true;
                    btn.Content         = "重新上传";
                    file.UploadProgress = 0;
                    file.UploadStatus   = "上传失败";
                    //MessageBox.Show("上传失败");
                }
                else
                {
                    //ProSCPicture scp = new ProSCPicture { SCCode = System.IO.Path.GetFileNameWithoutExtension(filePath), PictureName = System.IO.Path.GetFileName(filePath) };
                    file.UploadStatus = "上传成功";
                    //MessageBox.Show("上传成功");
                }
            });

            func.BeginInvoke(byq, filePath, transfer, callback, func);
            //IAsyncResult ar = func.BeginInvoke(byq, filePath, transfer, null, null);
            //WaitHandle waitHandle = ar.AsyncWaitHandle;
            //waitHandle.WaitOne();//主线程等待,这里将产生死锁

            //bool flag = false;//func.EndInvoke(ar);
            //new System.Threading.Thread(() =>
            //    {
            //        UploadPictureForSingleStyle(byq, filePath);
            //    }).Start();
        }
        public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
        {
            var bar = cell.Content as RadProgressBar;

            if (bar == null)
            {
                bar = new RadProgressBar();
                bar.Height = 20;
                bar.SetBinding(RadProgressBar.ValueProperty, this.DataMemberBinding);
                cell.Content = bar;
            }

            return bar;
        }
        public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
        {
            var bar = cell.Content as RadProgressBar;

            if (bar == null)
            {
                bar        = new RadProgressBar();
                bar.Height = 20;
                bar.SetBinding(RadProgressBar.ValueProperty, this.DataMemberBinding);
                cell.Content = bar;
            }

            return(bar);
        }
		void page_Loaded(object sender, RoutedEventArgs e)
		{
			var page = sender as WizardPage;
			if (page.Name == "progressPage")
			{
				SetAllowProperties(page, false);
				this.progressBar = page.ChildrenOfType<RadProgressBar>().FirstOrDefault();
				if (this.progressBar != null)
				{
					this.progressBar.ValueChanged += progressBar_ValueChanged;
					this.progressBar.Value = 0;
					this.timer.Start();
				}		
			}
		}		
Beispiel #19
0
 private void SetProgressBar(ref RadProgressBar bar, Boolean visible, int max)
 {
     if (!bar.InvokeRequired)
     {
         bar.Visible = visible;
         bar.Maximum = max;
         bar.Minimum = 0;
     }
     else
     {
         SetProgressBarDelegate setProgressBarDelegate = new SetProgressBarDelegate(SetProgressBar);
         Object[] objArray = new Object[] { bar, visible, max };
         bar.Invoke(setProgressBarDelegate, objArray);
     }
 }
            /// <summary>
            /// Configure Progress Bar Values (Resets Existing Values to Blank)
            /// </summary>
            /// <param name="PBar">RadProgressBar Control</param>
            /// <param name="Max">Number of Units ProgressBar will Display</param>
            public void SetupProgressBar(RadProgressBar PBar, int Max = 100)
            {
                if (PBar == null)
                {
                    return;
                }

                PBar.ForeColor = Color.Red;
                PBar.ProgressBarElement.IndicatorElement1.BackColor           = Color.LightBlue;
                PBar.ProgressBarElement.IndicatorElement1.DrawBorder          = true;
                PBar.ProgressBarElement.IndicatorElement1.BorderColor         = Color.Green;
                PBar.ProgressBarElement.IndicatorElement1.BorderGradientStyle = Telerik.WinControls.GradientStyles.Solid;

                PBar.Maximum = Max;

                ResetProgress(PBar);
            }
Beispiel #21
0
            /// <summary>
            /// Populate Missing RG Links / IMDb IDs using Post URLs
            /// </summary>
            public void Backfill_ReleaseBB_Links(RadProgressBar Bar = null, bool NewThread = true)
            {
                if (NewThread)
                {
                    Thread newThread = new Thread(() => Backfill_ReleaseBB_Links(Bar, false)); // Function To Execute
                    newThread.Name         = "Populate Missing Actor Info";
                    newThread.IsBackground = true;
                    newThread.Start();
                }
                else
                {
                    List <ReleaseBBMovies> pages = ReleaseBBMovies_ReturnSQLList();

                    if (Bar != null)
                    {
                        pro.SetupProgressBar(Bar, pages.Count);
                    }                                                            // setup progress bar if passed in

                    int i = 1;
                    foreach (ReleaseBBMovies page in pages)
                    {
                        string html = ahk.Download_HTML(page.PostURL);

                        List <string> links = rg.Regex_RGLinks(html);

                        string IMDbID = imdb.IMDbFromHTML(html);

                        string RGLinks = lst.List_To_String(links, "\n");

                        ReleaseBBMovies obj = new ReleaseBBMovies();
                        obj.PostURL    = page.PostURL;
                        obj.IMDbID     = IMDbID;
                        obj.RapidGator = RGLinks;

                        ReleaseBBMovies_UpdateSQL_Links(obj);

                        if (Bar != null)
                        {
                            pro.UpdateProgress(Bar, i + "/" + pages.Count);
                        }
                        i++;
                    }
                }
            }
Beispiel #22
0
 private void InitializeComponent()
 {
     this.radProgressBar1 = new Telerik.WinControls.UI.RadProgressBar();
     ((System.ComponentModel.ISupportInitialize)(this.radProgressBar1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     this.SuspendLayout();
     //
     // radProgressBar1
     //
     this.radProgressBar1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.radProgressBar1.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.radProgressBar1.ImageIndex      = -1;
     this.radProgressBar1.ImageKey        = "";
     this.radProgressBar1.ImageLayout     = System.Windows.Forms.ImageLayout.Center;
     this.radProgressBar1.Location        = new System.Drawing.Point(0, 0);
     this.radProgressBar1.Name            = "radProgressBar1";
     this.radProgressBar1.SeparatorColor1 = System.Drawing.Color.White;
     this.radProgressBar1.SeparatorColor2 = System.Drawing.Color.White;
     this.radProgressBar1.SeparatorColor3 = System.Drawing.Color.White;
     this.radProgressBar1.SeparatorColor4 = System.Drawing.Color.White;
     this.radProgressBar1.Size            = new System.Drawing.Size(0, 20);
     this.radProgressBar1.TabIndex        = 0;
     //
     // frmProgressBar3
     //
     this.ClientSize      = new System.Drawing.Size(588, 44);
     this.ControlBox      = false;
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Name            = "frmProgressBar3";
     //
     //
     //
     this.RootElement.ApplyShapeToControl = true;
     this.ShowIcon      = false;
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "";
     ((System.ComponentModel.ISupportInitialize)(this.radProgressBar1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
     this.ResumeLayout(false);
 }
            /// <summary>
            /// Reset Progress Bar Status to Blank
            /// </summary>
            /// <param name="PBar">RadProgressBar Control</param>
            public void ResetProgress(RadProgressBar PBar)
            {
                if (PBar == null)
                {
                    return;
                }

                if (PBar.InvokeRequired)  // if currently on a different thread, invoke
                {
                    PBar.BeginInvoke((MethodInvoker) delegate()
                    {
                        try { PBar.Value1 = 0; }
                        catch { }
                    });
                }
                else
                {
                    try { PBar.Value1 = 1; }
                    catch { }
                }
            }
Beispiel #24
0
        private async Task DoWork(RadProgressBar bar)
        {
            await Task.Run(() =>
            {
                foreach (var valveModel in this.valveModels)
                {
                    // Calibrate Valve

                    // Increment Property
                    this.ValvesCalibrated++;

                    if (this.ValvesCalibrated != 0)
                    {
                        //This line just slows things down so you can see it remove for production stuff
                        Thread.Sleep(10);
                        bar.Dispatcher.Invoke(() => bar.Value = 100.0 * this.ValvesCalibrated / this.valveModels.Count);
                    }
                }

                MessageBox.Show($"A total of {this.ValvesCalibrated} out of {this.valveModels.Count} valve were calibrated", "Message Box");
            });
        }
        public static void ExecuteSequences(List <string> querys, RadProgressBar progressBarResult)
        {
            // Obtenemos la configuracion
            SettingsModel model = SettingsManager.GetXml(true);

            if (model == null)
            {
                return;
            }

            // Inicializamos el manager
            DatabaseManage manager = new DatabaseManage(model);

            int currentNumberSeq = 0;
            int numSequences     = querys.Count();

            foreach (string query in querys)
            {
                if (string.IsNullOrWhiteSpace(query))
                {
                    continue;
                }

                manager.ExecuteCommand(query);

                currentNumberSeq++;
                progressBarResult.BeginInvoke(new Action(() =>
                {
                    int newValue = (int)(((float)currentNumberSeq / numSequences) * 100);
                    if (newValue > 100)
                    {
                        newValue = 100;
                    }
                    progressBarResult.Value1 = newValue;
                }));
            }
        }
        public static void ExecuteSequences(List<string> querys, RadProgressBar progressBarResult)
        {
            // Obtenemos la configuracion
            SettingsModel model = SettingsManager.GetXml(true);
            if (model == null)
            {
                return;
            }

            // Inicializamos el manager
            DatabaseManage manager = new DatabaseManage(model);

            int currentNumberSeq = 0;
            int numSequences = querys.Count();

            foreach (string query in querys)
            {
                if (string.IsNullOrWhiteSpace(query)) continue;

                manager.ExecuteCommand(query);

                currentNumberSeq++;
                progressBarResult.BeginInvoke(new Action(() =>
                {
                    int newValue = (int)(((float)currentNumberSeq / numSequences) * 100);
                    if (newValue > 100)
                    {
                        newValue = 100;
                    }
                    progressBarResult.Value1 = newValue;
                }));
            }
        }
Beispiel #27
0
 private void InitializeComponent()
 {
     this.icontainer_0    = (IContainer) new Container();
     this.lblMessage      = new RadLabel();
     this.radProgressBar1 = new RadProgressBar();
     this.timer_1         = new Timer(this.icontainer_0);
     this.loadingCircle1  = new GControl0();
     this.lblMessage.BeginInit();
     this.radProgressBar1.BeginInit();
     this.BeginInit();
     this.SuspendLayout();
     this.lblMessage.BackColor     = Color.Transparent;
     this.lblMessage.Location      = new Point(111, 111);
     this.lblMessage.Name          = "lblMessage";
     this.lblMessage.Size          = new Size(62, 18);
     this.lblMessage.TabIndex      = 0;
     this.lblMessage.Text          = "lblMessage";
     this.lblMessage.SizeChanged  += new EventHandler(this.lblMessage_SizeChanged);
     this.radProgressBar1.Location = new Point(3, 133);
     this.radProgressBar1.Name     = "radProgressBar1";
     this.radProgressBar1.ShowProgressIndicators = true;
     this.radProgressBar1.Size     = new Size(282, 24);
     this.radProgressBar1.TabIndex = 2;
     this.radProgressBar1.Text     = "0 %";
     this.timer_1.Tick            += new EventHandler(this.timer_1_Tick);
     this.loadingCircle1.Boolean_0 = false;
     this.loadingCircle1.BackColor = Color.Transparent;
     this.loadingCircle1.Color_0   = Color.DarkGray;
     this.loadingCircle1.Int32_0   = 5;
     this.loadingCircle1.Location  = new Point(-3, 0);
     this.loadingCircle1.Name      = "loadingCircle1";
     this.loadingCircle1.Int32_1   = 12;
     this.loadingCircle1.Int32_2   = 11;
     this.loadingCircle1.Int32_3   = 200;
     this.loadingCircle1.Size      = new Size(293, 129);
     this.loadingCircle1.Int32_4   = 2;
     this.loadingCircle1.GEnum8_0  = GControl0.GEnum8.const_0;
     this.loadingCircle1.TabIndex  = 3;
     this.loadingCircle1.Text      = "loadingCircle1";
     this.loadingCircle1.Paint    += new PaintEventHandler(this.loadingCircle1_Paint);
     this.AutoScaleDimensions      = new SizeF(6f, 13f);
     this.AutoScaleMode            = AutoScaleMode.Font;
     this.ClientSize = new Size(285, 129);
     this.Controls.Add((Control)this.loadingCircle1);
     this.Controls.Add((Control)this.radProgressBar1);
     this.Controls.Add((Control)this.lblMessage);
     this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
     this.Name            = nameof(FrmWait);
     this.RootElement.ApplyShapeToControl = true;
     this.ShowIcon      = false;
     this.StartPosition = FormStartPosition.CenterParent;
     this.Text          = "Please wait";
     this.FormClosing  += new FormClosingEventHandler(this.FrmWait_FormClosing);
     this.Load         += new EventHandler(this.FrmWait_Load);
     this.Shown        += new EventHandler(this.FrmWait_Shown);
     this.SizeChanged  += new EventHandler(this.FrmWait_SizeChanged);
     this.lblMessage.EndInit();
     this.radProgressBar1.EndInit();
     this.EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Beispiel #28
0
 private void InitializeComponent()
 {
     this.radProgressBar1 = new RadProgressBar();
     this.title           = new RadLabel();
     this.radButton1      = new RadButton();
     this.lblSpeed        = new RadLabel();
     this.lblEta          = new RadLabel();
     this.pictureBox1     = new PictureBox();
     this.pctIcon         = new PictureBox();
     this.pictureBox2     = new PictureBox();
     this.radProgressBar1.BeginInit();
     this.title.BeginInit();
     this.radButton1.BeginInit();
     this.lblSpeed.BeginInit();
     this.lblEta.BeginInit();
     ((ISupportInitialize)this.pictureBox1).BeginInit();
     ((ISupportInitialize)this.pctIcon).BeginInit();
     ((ISupportInitialize)this.pictureBox2).BeginInit();
     this.BeginInit();
     this.SuspendLayout();
     this.radProgressBar1.Location = new Point(22, 79);
     this.radProgressBar1.Name     = "radProgressBar1";
     this.radProgressBar1.ShowProgressIndicators = true;
     this.radProgressBar1.Size     = new Size(398, 24);
     this.radProgressBar1.TabIndex = 0;
     this.radProgressBar1.Text     = "0 %";
     this.title.AutoSize           = false;
     this.title.Dock               = DockStyle.Top;
     this.title.Font               = new Font("Segoe UI", 14.25f, FontStyle.Bold, GraphicsUnit.Point, (byte)0);
     this.title.Location           = new Point(0, 0);
     this.title.Name               = "title";
     this.title.Size               = new Size(442, 73);
     this.title.TabIndex           = 1;
     this.title.Text               = "radLabel1";
     this.title.TextAlignment      = ContentAlignment.TopCenter;
     this.title.UseMnemonic        = false;
     this.radButton1.Location      = new Point(166, 190);
     this.radButton1.Name          = "radButton1";
     this.radButton1.Size          = new Size(110, 24);
     this.radButton1.TabIndex      = 3;
     this.radButton1.Text          = "Abort";
     this.radButton1.Click        += new EventHandler(this.radButton1_Click);
     this.lblSpeed.Location        = new Point(348, 104);
     this.lblSpeed.Name            = "lblSpeed";
     this.lblSpeed.Size            = new Size(27, 18);
     this.lblSpeed.TabIndex        = 2;
     this.lblSpeed.Text            = "0.00";
     this.lblEta.Location          = new Point(22, 104);
     this.lblEta.Name              = "lblEta";
     this.lblEta.Size              = new Size(25, 18);
     this.lblEta.TabIndex          = 3;
     this.lblEta.Text              = "ETA";
     this.pictureBox1.Image        = (Image)Class123.icnWiiU;
     this.pictureBox1.Location     = new Point(284, 133);
     this.pictureBox1.Name         = "pictureBox1";
     this.pictureBox1.Size         = new Size(128, 43);
     this.pictureBox1.SizeMode     = PictureBoxSizeMode.AutoSize;
     this.pictureBox1.TabIndex     = 4;
     this.pictureBox1.TabStop      = false;
     this.pctIcon.Location         = new Point(31, 128);
     this.pctIcon.Name             = "pctIcon";
     this.pctIcon.Size             = new Size(64, 64);
     this.pctIcon.SizeMode         = PictureBoxSizeMode.StretchImage;
     this.pctIcon.TabIndex         = 5;
     this.pctIcon.TabStop          = false;
     this.pictureBox2.Image        = (Image)Class123.transferAnim;
     this.pictureBox2.InitialImage = (Image)null;
     this.pictureBox2.Location     = new Point(98, 138);
     this.pictureBox2.Name         = "pictureBox2";
     this.pictureBox2.Size         = new Size(180, 40);
     this.pictureBox2.SizeMode     = PictureBoxSizeMode.AutoSize;
     this.pictureBox2.TabIndex     = 6;
     this.pictureBox2.TabStop      = false;
     this.AutoScaleDimensions      = new SizeF(6f, 13f);
     this.AutoScaleMode            = AutoScaleMode.Font;
     this.ClientSize               = new Size(442, 221);
     this.Controls.Add((Control)this.lblSpeed);
     this.Controls.Add((Control)this.pictureBox2);
     this.Controls.Add((Control)this.radButton1);
     this.Controls.Add((Control)this.pctIcon);
     this.Controls.Add((Control)this.pictureBox1);
     this.Controls.Add((Control)this.lblEta);
     this.Controls.Add((Control)this.title);
     this.Controls.Add((Control)this.radProgressBar1);
     this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
     this.Name            = nameof(FrmFtpProgress);
     this.RootElement.ApplyShapeToControl = true;
     this.ShowIcon      = false;
     this.StartPosition = FormStartPosition.CenterScreen;
     this.Text          = "Now uploading...";
     this.Load         += new EventHandler(this.FrmFtpProgress_Load);
     this.radProgressBar1.EndInit();
     this.title.EndInit();
     this.radButton1.EndInit();
     this.lblSpeed.EndInit();
     this.lblEta.EndInit();
     ((ISupportInitialize)this.pictureBox1).EndInit();
     ((ISupportInitialize)this.pctIcon).EndInit();
     ((ISupportInitialize)this.pictureBox2).EndInit();
     this.EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Beispiel #29
0
            //_Parse.XML xml = new _Parse.XML();
            //_AHK ahk = new _AHK();
            //_Database.SQL sql = new _Database.SQL();
            //_Lists lst = new _Lists();
            //_Parse prs = new _Parse();
            ////_Images img = new _Images();
            //_TelerikLib.RadProgress pro = new _TelerikLib.RadProgress();
            //_TelerikLib tel = new _TelerikLib();
            ////_Apps.Chrome cr = new _Apps.Chrome();
            //sharpAHK_Dev._Threads thr = new sharpAHK_Dev._Threads();
            //_TelerikLib.RadTree tree = new _TelerikLib.RadTree();
            //IAFD iafd = new IAFD();
            //_Web.ADBSites.PBBForum pbb = new _Web.ADBSites.PBBForum();
            //_Web.ADBSites.PRNWForum prnw = new _Web.ADBSites.PRNWForum();

            #endregion


            public void Download_Site(int startPage = 1, int LastPage = 230, bool SkipExisting = true, RadProgressBar Bar = null, RadProgressBar Bar2 = null, bool NewThread = true)
            {
                _AHK   ahk = new _AHK();
                _Lists lst = new _Lists();

                _Sites.RapidGator       rg  = new _Sites.RapidGator();
                _TelerikLib.RadProgress pro = new _TelerikLib.RadProgress();

                if (NewThread)
                {
                    Thread newThread = new Thread(() => Download_Site(startPage, LastPage, SkipExisting, Bar, Bar2, false)); // Function To Execute
                    newThread.IsBackground = true;
                    newThread.Start();
                }
                else
                {
                    int pageNum = startPage;
                    do
                    {
                        int           postNum = 0;
                        string        html    = ahk.Download_HTML("http://pornchil.com/page/" + pageNum + "/");
                        List <string> lines   = lst.Text_To_List(html, true, true, false);

                        if (Bar != null)
                        {
                            pro.SetupProgressBar(Bar, 10);
                        }                                                    // # of posts/page

                        foreach (string line in lines)
                        {
                            if (line.Contains("<h1 class=\"entry-title\"><a href="))
                            {
                                PrnChill chill = new PrnChill();
                                //ahk.MsgBox(line);

                                string Line = line.Replace("<h1 class=\"entry-title\"><a href=\"", "");
                                chill.PostURL  = ahk.StringSplit(Line, "\"", 0);
                                chill.PostName = ahk.StringSplit(Line, ">", 1);
                                chill.PostName = ahk.StringSplit(chill.PostName, "<", 0);

                                if (SkipExisting)
                                {
                                    if (AlreadyParsed(chill.PostURL))
                                    {
                                        continue;
                                    }                                                // check to see if this post already has an entry, if so skip
                                }


                                if (Bar != null)
                                {
                                    postNum++; pro.UpdateProgress(Bar, postNum + "/10");
                                }                                                                          // # of posts remaining

                                string        postHTML = ahk.Download_HTML(chill.PostURL);
                                List <string> links    = rg.Regex_RGLinks(postHTML);

                                if (links.Count > 0)
                                {
                                    if (Bar != null)
                                    {
                                        pro.ProgressText(Bar, postNum + "/10 | Verifying Links");
                                    }                                                                                           // # of posts remaining

                                    List <_Sites.RapidGator.RGInfo> checkedLinks = rg.RapidGator_BatchCheck(links, true, Bar2); // batch check list of rg links

                                    string rglinks = ""; int goodLinkCount = 0;
                                    foreach (_Sites.RapidGator.RGInfo link in checkedLinks)
                                    {
                                        if (rglinks == "")
                                        {
                                            rglinks = link.FileURL + "|" + link.FileSize; goodLinkCount++;
                                        }
                                        else
                                        {
                                            rglinks = rglinks + "\n" + link.FileURL + "|" + link.FileSize; goodLinkCount++;
                                        }
                                    }

                                    chill.Links     = rglinks; // online rg links with  filepath|filesize return
                                    chill.LinkCount = goodLinkCount;

                                    chill.LinkCheckDate = DateTime.Now.ToString();
                                }

                                chill.InCollection = "false";

                                List <string> images = rg.JpgImageLinks(postHTML);

                                if (Bar != null)
                                {
                                    pro.ProgressText(Bar, postNum + "/10 | Downloading Images (" + images.Count + ")");
                                }                                                                                                         // # of posts remaining

                                if (images.Count > 0)
                                {
                                    // create save dir
                                    string saveDir = ahk.AppDir() + "\\PrnChillPosts";
                                    ahk.FileCreateDir(saveDir);
                                    saveDir = saveDir + "\\" + chill.PostName;
                                    ahk.FileCreateDir(saveDir);

                                    chill.ImageDir = saveDir;

                                    int imgNum = 1;
                                    foreach (string image in images)
                                    {
                                        ahk.Download_File(image, saveDir + "\\" + imgNum + ".jpg", true); imgNum++;
                                    }
                                }

                                PrnChill_UpdateInsert(chill);
                            }
                        }

                        pageNum++;
                    } while (pageNum <= LastPage);
                }
            }
Beispiel #30
0
 private void SetProgressBar(ref RadProgressBar bar, Boolean visible, int max)
 {
     if (!bar.InvokeRequired)
     {
         bar.Visible = visible;
         bar.Maximum = max;
         bar.Minimum = 0;
     }
     else
     {
         SetProgressBarDelegate setProgressBarDelegate = new SetProgressBarDelegate(SetProgressBar);
         Object[] objArray = new Object[] { bar, visible, max };
         bar.Invoke(setProgressBarDelegate, objArray);
     }
 }
Beispiel #31
0
 private void SetProgressBarValue(ref RadProgressBar bar, int value)
 {
     if (!bar.InvokeRequired)
     {
         bar.Value1 = value;
     }
     else
     {
         SetProgressBarValueDelegate setProgressBarValueDelegate = new SetProgressBarValueDelegate(SetProgressBarValue);
         Object[] objArray = new Object[] { bar, value };
         bar.Invoke(setProgressBarValueDelegate, objArray);
     }
 }
        public static string ExecuteQuerys(QueryResult result, RadProgressBar progressBarResult)
        {
            StringBuilder results = new StringBuilder();

            // Obtenemos la configuracion
            SettingsModel model = SettingsManager.GetXml(true);
            if (model == null)
            {
                results.AppendLine(GetTime() + " - Settings are not setted");
                return results.ToString();
            }

            // Inicializamos el manager
            DatabaseManage manager = new DatabaseManage(model);

            // Si tenemos que deshabilitar constraints
            if (result.DisableConstraints)
            {
                foreach (string query in result.QuerysDisableConstraints.ToString().Split('\n'))
                {
                    if (string.IsNullOrWhiteSpace(query)) continue;

                    int startCut = query.IndexOf("EXISTS", StringComparison.Ordinal) + 7;
                    int lengthCut = query.IndexOf("DISABLE", StringComparison.Ordinal) - startCut - 1;

                    string tableName = query.Substring(startCut, lengthCut);

                    try
                    {
                        manager.ExecuteCommand(query);
                        results.AppendLine(string.Format("{0} - Disabling constraints for table {1} - Disabled", GetTime(), tableName));
                    }
                    catch (Exception ex)
                    {
                        results.AppendLine(string.Format("{0} - Disabling constraints for table {1} - Cannot be disabled - Error: {2}", GetTime(), tableName, ex.Message));
                    }
                }
            }

            int currentNumberTable = 0;

            foreach (string query in result.Querys.ToString().Split('\n'))
            {
                if (string.IsNullOrWhiteSpace(query)) continue;

                int startCut = query.IndexOf("INTO", StringComparison.Ordinal) + 5;
                int lengthCut = query.IndexOf("(", StringComparison.Ordinal) - startCut - 1;

                string tableName = query.Substring(startCut, lengthCut);
                int rowsAffected = 0;

                try
                {
                    rowsAffected = manager.ExecuteCommand(query);
                    results.AppendLine(string.Format("{0} - {1} - Migrated OK - Rows inserted: {2}", GetTime(), tableName, rowsAffected));
                }
                catch (Exception ex)
                {
                    results.AppendLine(string.Format("{0} - {1} - Migrated Error - Rows inserted: {2} - Error: {3}", GetTime(), tableName, rowsAffected, ex.Message));
                }

                currentNumberTable++;

                int table = currentNumberTable;
                progressBarResult.BeginInvoke(new Action(() =>
                {
                    int newValue = (int)(((float)table / result.NumberOfItems) * 100);
                    if (newValue > 100)
                    {
                        newValue = 100;
                    }
                    progressBarResult.Value1 = newValue;
                }));
            }

            // Si tenemos que habilitar constraints
            if (result.DisableConstraints)
            {
                foreach (string query in result.QuerysEnableConstraints.ToString().Split('\n'))
                {
                    if (string.IsNullOrWhiteSpace(query)) continue;

                    int startCut = query.IndexOf("EXISTS", StringComparison.Ordinal) + 7;
                    int lengthCut = query.IndexOf("ENABLE", StringComparison.Ordinal) - startCut - 1;

                    string tableName = query.Substring(startCut, lengthCut);

                    try
                    {
                        manager.ExecuteCommand(query);
                        results.AppendLine(string.Format("{0} - Enabling constraints for table {1} - Enabled", GetTime(), tableName));
                    }
                    catch (Exception ex)
                    {
                        results.AppendLine(string.Format("{0} - Enabling constraints for table {1} - Cannot be enabled - Error: {2}", GetTime(), tableName, ex.Message));
                    }
                }
            }

            return results.ToString();
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     Telerik.WinControls.UI.ListViewDetailColumn listViewDetailColumn1 = new Telerik.WinControls.UI.ListViewDetailColumn("Column 0", "Версия");
     Telerik.WinControls.UI.ListViewDetailColumn listViewDetailColumn2 = new Telerik.WinControls.UI.ListViewDetailColumn("Column 1", "Тип");
     Telerik.WinControls.UI.ListViewDetailColumn listViewDetailColumn3 = new Telerik.WinControls.UI.ListViewDetailColumn("Column 2", "Зависимость");
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LauncherForm));
     Telerik.WinControls.UI.RadListDataItem radListDataItem1 = new Telerik.WinControls.UI.RadListDataItem();
     this.vs12theme = new Telerik.WinControls.Themes.VisualStudio2012DarkTheme();
     this.mainPageView = new Telerik.WinControls.UI.RadPageView();
     this.News = new Telerik.WinControls.UI.RadPageViewPage();
     this.newsBrowser = new System.Windows.Forms.WebBrowser();
     this.webPanel = new Telerik.WinControls.UI.RadPanel();
     this.BackWebButton = new Telerik.WinControls.UI.RadButton();
     this.ForwardWebButton = new Telerik.WinControls.UI.RadButton();
     this.ConsolePage = new Telerik.WinControls.UI.RadPageViewPage();
     this.logBox = new System.Windows.Forms.RichTextBox();
     this.ConsoleOptionsPanel = new Telerik.WinControls.UI.RadPanel();
     this.SetToClipboardButton = new Telerik.WinControls.UI.RadButton();
     this.DebugModeButton = new Telerik.WinControls.UI.RadToggleButton();
     this.EditVersions = new Telerik.WinControls.UI.RadPageViewPage();
     this.versionsListView = new Telerik.WinControls.UI.RadListView();
     this.AboutPage = new Telerik.WinControls.UI.RadPageViewPage();
     this.AboutPageView = new Telerik.WinControls.UI.RadPageView();
     this.AboutPageViewPage = new Telerik.WinControls.UI.RadPageViewPage();
     this.radScrollablePanel2 = new Telerik.WinControls.UI.RadScrollablePanel();
     this.AboutVersion = new Telerik.WinControls.UI.RadLabel();
     this.label6 = new System.Windows.Forms.Label();
     this.MCofflineDescLabel = new System.Windows.Forms.Label();
     this.radLabel1 = new Telerik.WinControls.UI.RadLabel();
     this.PartnersLabel = new Telerik.WinControls.UI.RadLabel();
     this.CopyrightInfoLabel = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.DevInfoLabel = new System.Windows.Forms.Label();
     this.label5 = new System.Windows.Forms.Label();
     this.GratitudesDescLabel = new System.Windows.Forms.Label();
     this.GratitudesLabel = new Telerik.WinControls.UI.RadLabel();
     this.LicensesPage = new Telerik.WinControls.UI.RadPageViewPage();
     this.licensePageView = new Telerik.WinControls.UI.RadPageView();
     this.FreeLauncherLicense = new Telerik.WinControls.UI.RadPageViewPage();
     this.FreeLauncherLicenseText = new Telerik.WinControls.UI.RadLabel();
     this.dotMCLauncherLicense = new Telerik.WinControls.UI.RadPageViewPage();
     this.dotMCLauncherLicenseText = new Telerik.WinControls.UI.RadLabel();
     this.SettingsPage = new Telerik.WinControls.UI.RadPageViewPage();
     this.radScrollablePanel1 = new Telerik.WinControls.UI.RadScrollablePanel();
     this.radGroupBox2 = new Telerik.WinControls.UI.RadGroupBox();
     this.CloseGameOutput = new Telerik.WinControls.UI.RadCheckBox();
     this.UseGamePrefix = new Telerik.WinControls.UI.RadCheckBox();
     this.EnableMinecraftLogging = new Telerik.WinControls.UI.RadCheckBox();
     this.radGroupBox1 = new Telerik.WinControls.UI.RadGroupBox();
     this.radLabel4 = new Telerik.WinControls.UI.RadLabel();
     this.LangDropDownList = new Telerik.WinControls.UI.RadDropDownList();
     this.EnableMinecraftUpdateAlerts = new Telerik.WinControls.UI.RadCheckBox();
     this.radCheckBox1 = new Telerik.WinControls.UI.RadCheckBox();
     this.StatusBar = new Telerik.WinControls.UI.RadProgressBar();
     this.radPanel1 = new Telerik.WinControls.UI.RadPanel();
     this.DeleteProfileButton = new Telerik.WinControls.UI.RadButton();
     this.ManageUsersButton = new Telerik.WinControls.UI.RadButton();
     this.NicknameDropDownList = new Telerik.WinControls.UI.RadDropDownList();
     this.SelectedVersion = new System.Windows.Forms.Label();
     this.LogoBox = new System.Windows.Forms.PictureBox();
     this.LaunchButton = new Telerik.WinControls.UI.RadButton();
     this.profilesDropDownBox = new Telerik.WinControls.UI.RadDropDownList();
     this.EditProfile = new Telerik.WinControls.UI.RadButton();
     this.AddProfile = new Telerik.WinControls.UI.RadButton();
     ((System.ComponentModel.ISupportInitialize)(this.mainPageView)).BeginInit();
     this.mainPageView.SuspendLayout();
     this.News.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.webPanel)).BeginInit();
     this.webPanel.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.BackWebButton)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.ForwardWebButton)).BeginInit();
     this.ConsolePage.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.ConsoleOptionsPanel)).BeginInit();
     this.ConsoleOptionsPanel.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.SetToClipboardButton)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.DebugModeButton)).BeginInit();
     this.EditVersions.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.versionsListView)).BeginInit();
     this.AboutPage.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.AboutPageView)).BeginInit();
     this.AboutPageView.SuspendLayout();
     this.AboutPageViewPage.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.radScrollablePanel2)).BeginInit();
     this.radScrollablePanel2.PanelContainer.SuspendLayout();
     this.radScrollablePanel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.AboutVersion)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.radLabel1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.PartnersLabel)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.GratitudesLabel)).BeginInit();
     this.LicensesPage.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.licensePageView)).BeginInit();
     this.licensePageView.SuspendLayout();
     this.FreeLauncherLicense.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.FreeLauncherLicenseText)).BeginInit();
     this.dotMCLauncherLicense.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dotMCLauncherLicenseText)).BeginInit();
     this.SettingsPage.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.radScrollablePanel1)).BeginInit();
     this.radScrollablePanel1.PanelContainer.SuspendLayout();
     this.radScrollablePanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.radGroupBox2)).BeginInit();
     this.radGroupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.CloseGameOutput)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.UseGamePrefix)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.EnableMinecraftLogging)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.radGroupBox1)).BeginInit();
     this.radGroupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.radLabel4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.LangDropDownList)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.EnableMinecraftUpdateAlerts)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.radCheckBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.StatusBar)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.radPanel1)).BeginInit();
     this.radPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.DeleteProfileButton)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.ManageUsersButton)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.NicknameDropDownList)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.LogoBox)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.LaunchButton)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.profilesDropDownBox)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.EditProfile)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.AddProfile)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     this.SuspendLayout();
     //
     // mainPageView
     //
     this.mainPageView.Controls.Add(this.News);
     this.mainPageView.Controls.Add(this.ConsolePage);
     this.mainPageView.Controls.Add(this.EditVersions);
     this.mainPageView.Controls.Add(this.AboutPage);
     this.mainPageView.Dock = System.Windows.Forms.DockStyle.Fill;
     this.mainPageView.Location = new System.Drawing.Point(0, 0);
     this.mainPageView.Name = "mainPageView";
     //
     //
     //
     this.mainPageView.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.mainPageView.RootElement.AngleTransform = 0F;
     this.mainPageView.RootElement.FlipText = false;
     this.mainPageView.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.mainPageView.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.mainPageView.SelectedPage = this.News;
     this.mainPageView.Size = new System.Drawing.Size(858, 363);
     this.mainPageView.TabIndex = 2;
     this.mainPageView.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadPageViewStripElement)(this.mainPageView.GetChildAt(0))).StripButtons = Telerik.WinControls.UI.StripViewButtons.None;
     //
     // News
     //
     this.News.Controls.Add(this.newsBrowser);
     this.News.Controls.Add(this.webPanel);
     this.News.ItemSize = new System.Drawing.SizeF(65F, 24F);
     this.News.Location = new System.Drawing.Point(5, 30);
     this.News.Name = "News";
     this.News.Size = new System.Drawing.Size(848, 328);
     this.News.Text = "НОВОСТИ";
     //
     // newsBrowser
     //
     this.newsBrowser.Dock = System.Windows.Forms.DockStyle.Fill;
     this.newsBrowser.Location = new System.Drawing.Point(0, 0);
     this.newsBrowser.MinimumSize = new System.Drawing.Size(20, 20);
     this.newsBrowser.Name = "newsBrowser";
     this.newsBrowser.ScriptErrorsSuppressed = true;
     this.newsBrowser.Size = new System.Drawing.Size(848, 308);
     this.newsBrowser.TabIndex = 0;
     this.newsBrowser.Url = new System.Uri("http://mcupdate.tumblr.com/", System.UriKind.Absolute);
     this.newsBrowser.Navigated += new System.Windows.Forms.WebBrowserNavigatedEventHandler(this.newsBrowser_Navigated);
     this.newsBrowser.Navigating += new System.Windows.Forms.WebBrowserNavigatingEventHandler(this.newsBrowser_Navigating);
     //
     // webPanel
     //
     this.webPanel.Controls.Add(this.BackWebButton);
     this.webPanel.Controls.Add(this.ForwardWebButton);
     this.webPanel.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.webPanel.Location = new System.Drawing.Point(0, 308);
     this.webPanel.Name = "webPanel";
     //
     //
     //
     this.webPanel.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.webPanel.RootElement.AngleTransform = 0F;
     this.webPanel.RootElement.FlipText = false;
     this.webPanel.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.webPanel.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.webPanel.Size = new System.Drawing.Size(848, 20);
     this.webPanel.TabIndex = 1;
     this.webPanel.ThemeName = "VisualStudio2012Dark";
     this.webPanel.Visible = false;
     //
     // BackWebButton
     //
     this.BackWebButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.BackWebButton.Location = new System.Drawing.Point(720, 0);
     this.BackWebButton.Name = "BackWebButton";
     //
     //
     //
     this.BackWebButton.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.BackWebButton.RootElement.AngleTransform = 0F;
     this.BackWebButton.RootElement.FlipText = false;
     this.BackWebButton.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.BackWebButton.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.BackWebButton.Size = new System.Drawing.Size(64, 17);
     this.BackWebButton.TabIndex = 1;
     this.BackWebButton.Text = "<";
     this.BackWebButton.ThemeName = "VisualStudio2012Dark";
     this.BackWebButton.Click += new System.EventHandler(this.backWebButton_Click);
     //
     // ForwardWebButton
     //
     this.ForwardWebButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.ForwardWebButton.Location = new System.Drawing.Point(784, 0);
     this.ForwardWebButton.Name = "ForwardWebButton";
     //
     //
     //
     this.ForwardWebButton.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.ForwardWebButton.RootElement.AngleTransform = 0F;
     this.ForwardWebButton.RootElement.FlipText = false;
     this.ForwardWebButton.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.ForwardWebButton.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.ForwardWebButton.Size = new System.Drawing.Size(64, 17);
     this.ForwardWebButton.TabIndex = 0;
     this.ForwardWebButton.Text = ">";
     this.ForwardWebButton.ThemeName = "VisualStudio2012Dark";
     this.ForwardWebButton.Click += new System.EventHandler(this.forwardWebButton_Click);
     //
     // ConsolePage
     //
     this.ConsolePage.Controls.Add(this.logBox);
     this.ConsolePage.Controls.Add(this.ConsoleOptionsPanel);
     this.ConsolePage.ItemSize = new System.Drawing.SizeF(65F, 24F);
     this.ConsolePage.Location = new System.Drawing.Point(5, 30);
     this.ConsolePage.Name = "ConsolePage";
     this.ConsolePage.Size = new System.Drawing.Size(848, 328);
     this.ConsolePage.Text = "КОНСОЛЬ";
     //
     // logBox
     //
     this.logBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.logBox.Dock = System.Windows.Forms.DockStyle.Fill;
     this.logBox.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.logBox.Location = new System.Drawing.Point(0, 0);
     this.logBox.Name = "logBox";
     this.logBox.ReadOnly = true;
     this.logBox.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
     this.logBox.Size = new System.Drawing.Size(848, 299);
     this.logBox.TabIndex = 1;
     this.logBox.Text = "";
     this.logBox.TextChanged += new System.EventHandler(this.logBox_TextChanged);
     //
     // ConsoleOptionsPanel
     //
     this.ConsoleOptionsPanel.Controls.Add(this.SetToClipboardButton);
     this.ConsoleOptionsPanel.Controls.Add(this.DebugModeButton);
     this.ConsoleOptionsPanel.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.ConsoleOptionsPanel.Location = new System.Drawing.Point(0, 299);
     this.ConsoleOptionsPanel.Name = "ConsoleOptionsPanel";
     this.ConsoleOptionsPanel.Size = new System.Drawing.Size(848, 29);
     this.ConsoleOptionsPanel.TabIndex = 2;
     this.ConsoleOptionsPanel.ThemeName = "VisualStudio2012Dark";
     //
     // SetToClipboardButton
     //
     this.SetToClipboardButton.Location = new System.Drawing.Point(7, 3);
     this.SetToClipboardButton.Name = "SetToClipboardButton";
     this.SetToClipboardButton.Size = new System.Drawing.Size(131, 23);
     this.SetToClipboardButton.TabIndex = 1;
     this.SetToClipboardButton.Text = "Скопировать в буфер";
     this.SetToClipboardButton.ThemeName = "VisualStudio2012Dark";
     this.SetToClipboardButton.Click += new System.EventHandler(this.SetToClipboardButton_Click);
     //
     // DebugModeButton
     //
     this.DebugModeButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.DebugModeButton.Location = new System.Drawing.Point(710, 3);
     this.DebugModeButton.Name = "DebugModeButton";
     this.DebugModeButton.Size = new System.Drawing.Size(131, 23);
     this.DebugModeButton.TabIndex = 0;
     this.DebugModeButton.Text = "Debug Mode";
     this.DebugModeButton.ThemeName = "VisualStudio2012Dark";
     //
     // EditVersions
     //
     this.EditVersions.Controls.Add(this.versionsListView);
     this.EditVersions.ItemSize = new System.Drawing.SizeF(145F, 24F);
     this.EditVersions.Location = new System.Drawing.Point(5, 30);
     this.EditVersions.Name = "EditVersions";
     this.EditVersions.Size = new System.Drawing.Size(848, 328);
     this.EditVersions.Text = "УПРАВЛЕНИЕ ВЕРСИЯМИ";
     //
     // versionsListView
     //
     this.versionsListView.AllowColumnReorder = false;
     this.versionsListView.AllowColumnResize = false;
     this.versionsListView.AllowEdit = false;
     this.versionsListView.AllowRemove = false;
     this.versionsListView.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.versionsListView.CheckOnClickMode = Telerik.WinControls.UI.CheckOnClickMode.FirstClick;
     listViewDetailColumn1.HeaderText = "Версия";
     listViewDetailColumn2.HeaderText = "Тип";
     listViewDetailColumn2.Width = 100F;
     listViewDetailColumn3.HeaderText = "Зависимость";
     listViewDetailColumn3.Width = 100F;
     this.versionsListView.Columns.AddRange(new Telerik.WinControls.UI.ListViewDetailColumn[] {
     listViewDetailColumn1,
     listViewDetailColumn2,
     listViewDetailColumn3});
     this.versionsListView.Dock = System.Windows.Forms.DockStyle.Fill;
     this.versionsListView.EnableColumnSort = true;
     this.versionsListView.EnableFiltering = true;
     this.versionsListView.EnableSorting = true;
     this.versionsListView.HorizontalScrollState = Telerik.WinControls.UI.ScrollState.AlwaysHide;
     this.versionsListView.ItemSpacing = -1;
     this.versionsListView.Location = new System.Drawing.Point(0, 0);
     this.versionsListView.Name = "versionsListView";
     //
     //
     //
     this.versionsListView.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.versionsListView.RootElement.AngleTransform = 0F;
     this.versionsListView.RootElement.FlipText = false;
     this.versionsListView.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.versionsListView.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.versionsListView.SelectLastAddedItem = false;
     this.versionsListView.ShowItemToolTips = false;
     this.versionsListView.Size = new System.Drawing.Size(848, 328);
     this.versionsListView.TabIndex = 0;
     this.versionsListView.ThemeName = "VisualStudio2012Dark";
     this.versionsListView.VerticalScrollState = Telerik.WinControls.UI.ScrollState.AlwaysShow;
     this.versionsListView.ViewType = Telerik.WinControls.UI.ListViewType.DetailsView;
     this.versionsListView.ItemMouseClick += new Telerik.WinControls.UI.ListViewItemEventHandler(this.versionsListView_ItemMouseClick);
     //
     // AboutPage
     //
     this.AboutPage.Controls.Add(this.AboutPageView);
     this.AboutPage.ItemSize = new System.Drawing.SizeF(79F, 24F);
     this.AboutPage.Location = new System.Drawing.Point(5, 30);
     this.AboutPage.Name = "AboutPage";
     this.AboutPage.Size = new System.Drawing.Size(848, 328);
     this.AboutPage.Text = "О ЛАУНЧЕРЕ";
     //
     // AboutPageView
     //
     this.AboutPageView.Controls.Add(this.AboutPageViewPage);
     this.AboutPageView.Controls.Add(this.LicensesPage);
     this.AboutPageView.Controls.Add(this.SettingsPage);
     this.AboutPageView.Dock = System.Windows.Forms.DockStyle.Fill;
     this.AboutPageView.Location = new System.Drawing.Point(0, 0);
     this.AboutPageView.Name = "AboutPageView";
     //
     //
     //
     this.AboutPageView.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.AboutPageView.RootElement.AngleTransform = 0F;
     this.AboutPageView.RootElement.FlipText = false;
     this.AboutPageView.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.AboutPageView.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.AboutPageView.SelectedPage = this.AboutPageViewPage;
     this.AboutPageView.Size = new System.Drawing.Size(848, 328);
     this.AboutPageView.TabIndex = 9;
     this.AboutPageView.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadPageViewStripElement)(this.AboutPageView.GetChildAt(0))).StripButtons = Telerik.WinControls.UI.StripViewButtons.None;
     ((Telerik.WinControls.UI.RadPageViewStripElement)(this.AboutPageView.GetChildAt(0))).ItemAlignment = Telerik.WinControls.UI.StripViewItemAlignment.Center;
     ((Telerik.WinControls.UI.RadPageViewStripElement)(this.AboutPageView.GetChildAt(0))).ItemFitMode = Telerik.WinControls.UI.StripViewItemFitMode.Fill;
     ((Telerik.WinControls.UI.RadPageViewStripElement)(this.AboutPageView.GetChildAt(0))).StripAlignment = Telerik.WinControls.UI.StripViewAlignment.Bottom;
     //
     // AboutPageViewPage
     //
     this.AboutPageViewPage.Controls.Add(this.radScrollablePanel2);
     this.AboutPageViewPage.Location = new System.Drawing.Point(5, 5);
     this.AboutPageViewPage.Name = "AboutPageViewPage";
     this.AboutPageViewPage.Size = new System.Drawing.Size(838, 293);
     this.AboutPageViewPage.Text = "О ЛАУНЧЕРЕ";
     //
     // radScrollablePanel2
     //
     this.radScrollablePanel2.Dock = System.Windows.Forms.DockStyle.Fill;
     this.radScrollablePanel2.Location = new System.Drawing.Point(0, 0);
     this.radScrollablePanel2.Name = "radScrollablePanel2";
     //
     // radScrollablePanel2.PanelContainer
     //
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.AboutVersion);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.label6);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.MCofflineDescLabel);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.radLabel1);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.PartnersLabel);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.CopyrightInfoLabel);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.label3);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.DevInfoLabel);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.label5);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.GratitudesDescLabel);
     this.radScrollablePanel2.PanelContainer.Controls.Add(this.GratitudesLabel);
     this.radScrollablePanel2.PanelContainer.Size = new System.Drawing.Size(836, 291);
     //
     //
     //
     this.radScrollablePanel2.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.radScrollablePanel2.RootElement.AngleTransform = 0F;
     this.radScrollablePanel2.RootElement.FlipText = false;
     this.radScrollablePanel2.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.radScrollablePanel2.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.radScrollablePanel2.Size = new System.Drawing.Size(838, 293);
     this.radScrollablePanel2.TabIndex = 9;
     this.radScrollablePanel2.Text = "radScrollablePanel2";
     this.radScrollablePanel2.ThemeName = "VisualStudio2012Dark";
     //
     // AboutVersion
     //
     this.AboutVersion.BackColor = System.Drawing.Color.Transparent;
     this.AboutVersion.ForeColor = System.Drawing.Color.DimGray;
     this.AboutVersion.Location = new System.Drawing.Point(122, 34);
     this.AboutVersion.MinimumSize = new System.Drawing.Size(58, 18);
     this.AboutVersion.Name = "AboutVersion";
     //
     //
     //
     this.AboutVersion.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.AboutVersion.RootElement.AngleTransform = 0F;
     this.AboutVersion.RootElement.FlipText = false;
     this.AboutVersion.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.AboutVersion.RootElement.MinSize = new System.Drawing.Size(58, 18);
     this.AboutVersion.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.AboutVersion.Size = new System.Drawing.Size(58, 18);
     this.AboutVersion.TabIndex = 1;
     this.AboutVersion.Text = "0.0.0.000";
     this.AboutVersion.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
     this.AboutVersion.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadLabelElement)(this.AboutVersion.GetChildAt(0))).TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
     ((Telerik.WinControls.UI.RadLabelElement)(this.AboutVersion.GetChildAt(0))).Text = "0.0.0.000";
     ((Telerik.WinControls.Primitives.FillPrimitive)(this.AboutVersion.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.Transparent;
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.BackColor = System.Drawing.Color.Transparent;
     this.label6.Cursor = System.Windows.Forms.Cursors.Hand;
     this.label6.ForeColor = System.Drawing.Color.Gray;
     this.label6.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.label6.Location = new System.Drawing.Point(14, 201);
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size(127, 13);
     this.label6.TabIndex = 11;
     this.label6.Text = "http://vk.com/mcoffline";
     this.label6.Click += new System.EventHandler(this.urlLabel_Click);
     //
     // MCofflineDescLabel
     //
     this.MCofflineDescLabel.AutoSize = true;
     this.MCofflineDescLabel.BackColor = System.Drawing.Color.Transparent;
     this.MCofflineDescLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F);
     this.MCofflineDescLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.MCofflineDescLabel.Location = new System.Drawing.Point(14, 184);
     this.MCofflineDescLabel.Name = "MCofflineDescLabel";
     this.MCofflineDescLabel.Size = new System.Drawing.Size(402, 17);
     this.MCofflineDescLabel.TabIndex = 9;
     this.MCofflineDescLabel.Text = "MCoffline - лучшая программа для серверных администраторов!";
     //
     // radLabel1
     //
     this.radLabel1.BackColor = System.Drawing.Color.Transparent;
     this.radLabel1.Font = new System.Drawing.Font("Segoe UI", 20.25F);
     this.radLabel1.ForeColor = System.Drawing.Color.Transparent;
     this.radLabel1.Location = new System.Drawing.Point(3, 3);
     this.radLabel1.Name = "radLabel1";
     //
     //
     //
     this.radLabel1.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.radLabel1.RootElement.AngleTransform = 0F;
     this.radLabel1.RootElement.FlipText = false;
     this.radLabel1.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.radLabel1.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.radLabel1.Size = new System.Drawing.Size(175, 41);
     this.radLabel1.TabIndex = 0;
     this.radLabel1.Text = "FreeLauncher";
     this.radLabel1.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadLabelElement)(this.radLabel1.GetChildAt(0))).Text = "FreeLauncher";
     ((Telerik.WinControls.Primitives.FillPrimitive)(this.radLabel1.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.Transparent;
     //
     // PartnersLabel
     //
     this.PartnersLabel.BackColor = System.Drawing.Color.Transparent;
     this.PartnersLabel.Font = new System.Drawing.Font("Segoe UI", 20.25F);
     this.PartnersLabel.ForeColor = System.Drawing.Color.Transparent;
     this.PartnersLabel.Location = new System.Drawing.Point(3, 147);
     this.PartnersLabel.Name = "PartnersLabel";
     //
     //
     //
     this.PartnersLabel.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.PartnersLabel.RootElement.AngleTransform = 0F;
     this.PartnersLabel.RootElement.FlipText = false;
     this.PartnersLabel.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.PartnersLabel.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.PartnersLabel.Size = new System.Drawing.Size(140, 41);
     this.PartnersLabel.TabIndex = 10;
     this.PartnersLabel.Text = "Партнёры";
     this.PartnersLabel.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadLabelElement)(this.PartnersLabel.GetChildAt(0))).Text = "Партнёры";
     ((Telerik.WinControls.Primitives.FillPrimitive)(this.PartnersLabel.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.Transparent;
     //
     // CopyrightInfoLabel
     //
     this.CopyrightInfoLabel.AutoSize = true;
     this.CopyrightInfoLabel.BackColor = System.Drawing.Color.Transparent;
     this.CopyrightInfoLabel.Font = new System.Drawing.Font("Segoe UI Semibold", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.CopyrightInfoLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.CopyrightInfoLabel.Location = new System.Drawing.Point(7, 248);
     this.CopyrightInfoLabel.Name = "CopyrightInfoLabel";
     this.CopyrightInfoLabel.Size = new System.Drawing.Size(464, 34);
     this.CopyrightInfoLabel.TabIndex = 4;
     this.CopyrightInfoLabel.Text = "\"Minecraft\" является торговой маркой Mojang AB. Все права защищены.\r\nMojang AB яв" +
     "ляется дочерней студией Microsoft Studios.";
     this.CopyrightInfoLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.BackColor = System.Drawing.Color.Transparent;
     this.label3.Cursor = System.Windows.Forms.Cursors.Hand;
     this.label3.Font = new System.Drawing.Font("Segoe UI", 9F);
     this.label3.ForeColor = System.Drawing.Color.Gray;
     this.label3.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.label3.Location = new System.Drawing.Point(14, 72);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(163, 15);
     this.label3.TabIndex = 5;
     this.label3.Text = "https://github.com/dedepete";
     this.label3.Click += new System.EventHandler(this.urlLabel_Click);
     //
     // DevInfoLabel
     //
     this.DevInfoLabel.AutoSize = true;
     this.DevInfoLabel.BackColor = System.Drawing.Color.Transparent;
     this.DevInfoLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F);
     this.DevInfoLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.DevInfoLabel.Location = new System.Drawing.Point(14, 55);
     this.DevInfoLabel.Name = "DevInfoLabel";
     this.DevInfoLabel.Size = new System.Drawing.Size(146, 17);
     this.DevInfoLabel.TabIndex = 3;
     this.DevInfoLabel.Text = "Разработано dedepete";
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.BackColor = System.Drawing.Color.Transparent;
     this.label5.Cursor = System.Windows.Forms.Cursors.Hand;
     this.label5.ForeColor = System.Drawing.Color.Gray;
     this.label5.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.label5.Location = new System.Drawing.Point(14, 135);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(117, 13);
     this.label5.TabIndex = 8;
     this.label5.Text = "http://ru-minecraft.ru";
     this.label5.Click += new System.EventHandler(this.urlLabel_Click);
     //
     // GratitudesDescLabel
     //
     this.GratitudesDescLabel.AutoSize = true;
     this.GratitudesDescLabel.BackColor = System.Drawing.Color.Transparent;
     this.GratitudesDescLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F);
     this.GratitudesDescLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.GratitudesDescLabel.Location = new System.Drawing.Point(14, 118);
     this.GratitudesDescLabel.Name = "GratitudesDescLabel";
     this.GratitudesDescLabel.Size = new System.Drawing.Size(449, 17);
     this.GratitudesDescLabel.TabIndex = 6;
     this.GratitudesDescLabel.Text = "Большое спасибо администрации портала ru-minecraft.ru за хост файлов";
     //
     // GratitudesLabel
     //
     this.GratitudesLabel.BackColor = System.Drawing.Color.Transparent;
     this.GratitudesLabel.Font = new System.Drawing.Font("Segoe UI", 20.25F);
     this.GratitudesLabel.ForeColor = System.Drawing.Color.Transparent;
     this.GratitudesLabel.Location = new System.Drawing.Point(3, 81);
     this.GratitudesLabel.Name = "GratitudesLabel";
     //
     //
     //
     this.GratitudesLabel.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.GratitudesLabel.RootElement.AngleTransform = 0F;
     this.GratitudesLabel.RootElement.FlipText = false;
     this.GratitudesLabel.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.GratitudesLabel.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.GratitudesLabel.Size = new System.Drawing.Size(202, 41);
     this.GratitudesLabel.TabIndex = 7;
     this.GratitudesLabel.Text = "Благодарности";
     this.GratitudesLabel.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadLabelElement)(this.GratitudesLabel.GetChildAt(0))).Text = "Благодарности";
     ((Telerik.WinControls.Primitives.FillPrimitive)(this.GratitudesLabel.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.Transparent;
     //
     // LicensesPage
     //
     this.LicensesPage.Controls.Add(this.licensePageView);
     this.LicensesPage.Location = new System.Drawing.Point(5, 5);
     this.LicensesPage.Name = "LicensesPage";
     this.LicensesPage.Size = new System.Drawing.Size(838, 293);
     this.LicensesPage.Text = "ЛИЦЕНЗИИ";
     //
     // licensePageView
     //
     this.licensePageView.Controls.Add(this.FreeLauncherLicense);
     this.licensePageView.Controls.Add(this.dotMCLauncherLicense);
     this.licensePageView.Dock = System.Windows.Forms.DockStyle.Fill;
     this.licensePageView.Location = new System.Drawing.Point(0, 0);
     this.licensePageView.Name = "licensePageView";
     //
     //
     //
     this.licensePageView.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.licensePageView.RootElement.AngleTransform = 0F;
     this.licensePageView.RootElement.FlipText = false;
     this.licensePageView.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.licensePageView.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.licensePageView.SelectedPage = this.FreeLauncherLicense;
     this.licensePageView.Size = new System.Drawing.Size(838, 293);
     this.licensePageView.TabIndex = 0;
     this.licensePageView.Text = "radPageView3";
     this.licensePageView.ThemeName = "VisualStudio2012Dark";
     this.licensePageView.ViewMode = Telerik.WinControls.UI.PageViewMode.Backstage;
     ((Telerik.WinControls.UI.StripViewItemContainer)(this.licensePageView.GetChildAt(0).GetChildAt(0))).MinSize = new System.Drawing.Size(150, 0);
     //
     // FreeLauncherLicense
     //
     this.FreeLauncherLicense.AutoScroll = true;
     this.FreeLauncherLicense.Controls.Add(this.FreeLauncherLicenseText);
     this.FreeLauncherLicense.Location = new System.Drawing.Point(155, 4);
     this.FreeLauncherLicense.Name = "FreeLauncherLicense";
     this.FreeLauncherLicense.Size = new System.Drawing.Size(679, 285);
     this.FreeLauncherLicense.Text = "FreeLauncher";
     //
     // FreeLauncherLicenseText
     //
     this.FreeLauncherLicenseText.Dock = System.Windows.Forms.DockStyle.Fill;
     this.FreeLauncherLicenseText.Location = new System.Drawing.Point(0, 0);
     this.FreeLauncherLicenseText.Name = "FreeLauncherLicenseText";
     this.FreeLauncherLicenseText.Size = new System.Drawing.Size(679, 285);
     this.FreeLauncherLicenseText.TabIndex = 2;
     this.FreeLauncherLicenseText.Text = resources.GetString("FreeLauncherLicenseText.Text");
     this.FreeLauncherLicenseText.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadLabelElement)(this.FreeLauncherLicenseText.GetChildAt(0))).Text = resources.GetString("resource.Text");
     ((Telerik.WinControls.Primitives.FillPrimitive)(this.FreeLauncherLicenseText.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.Transparent;
     //
     // dotMCLauncherLicense
     //
     this.dotMCLauncherLicense.AutoScroll = true;
     this.dotMCLauncherLicense.Controls.Add(this.dotMCLauncherLicenseText);
     this.dotMCLauncherLicense.Location = new System.Drawing.Point(155, 4);
     this.dotMCLauncherLicense.Name = "dotMCLauncherLicense";
     this.dotMCLauncherLicense.Size = new System.Drawing.Size(679, 285);
     this.dotMCLauncherLicense.Text = "dotMCLauncher";
     //
     // dotMCLauncherLicenseText
     //
     this.dotMCLauncherLicenseText.Dock = System.Windows.Forms.DockStyle.Fill;
     this.dotMCLauncherLicenseText.Location = new System.Drawing.Point(0, 0);
     this.dotMCLauncherLicenseText.Name = "dotMCLauncherLicenseText";
     this.dotMCLauncherLicenseText.Size = new System.Drawing.Size(679, 285);
     this.dotMCLauncherLicenseText.TabIndex = 1;
     this.dotMCLauncherLicenseText.Text = resources.GetString("dotMCLauncherLicenseText.Text");
     this.dotMCLauncherLicenseText.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadLabelElement)(this.dotMCLauncherLicenseText.GetChildAt(0))).Text = resources.GetString("resource.Text1");
     ((Telerik.WinControls.Primitives.FillPrimitive)(this.dotMCLauncherLicenseText.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.Transparent;
     //
     // SettingsPage
     //
     this.SettingsPage.Controls.Add(this.radScrollablePanel1);
     this.SettingsPage.Location = new System.Drawing.Point(5, 5);
     this.SettingsPage.Name = "SettingsPage";
     this.SettingsPage.Size = new System.Drawing.Size(838, 293);
     this.SettingsPage.Text = "НАСТРОЙКИ";
     //
     // radScrollablePanel1
     //
     this.radScrollablePanel1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.radScrollablePanel1.Location = new System.Drawing.Point(0, 0);
     this.radScrollablePanel1.Name = "radScrollablePanel1";
     //
     // radScrollablePanel1.PanelContainer
     //
     this.radScrollablePanel1.PanelContainer.Controls.Add(this.radGroupBox2);
     this.radScrollablePanel1.PanelContainer.Controls.Add(this.radGroupBox1);
     this.radScrollablePanel1.PanelContainer.Size = new System.Drawing.Size(836, 291);
     //
     //
     //
     this.radScrollablePanel1.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.radScrollablePanel1.RootElement.AngleTransform = 0F;
     this.radScrollablePanel1.RootElement.FlipText = false;
     this.radScrollablePanel1.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.radScrollablePanel1.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.radScrollablePanel1.Size = new System.Drawing.Size(838, 293);
     this.radScrollablePanel1.TabIndex = 1;
     this.radScrollablePanel1.Text = "radScrollablePanel1";
     this.radScrollablePanel1.ThemeName = "VisualStudio2012Dark";
     //
     // radGroupBox2
     //
     this.radGroupBox2.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
     this.radGroupBox2.BackColor = System.Drawing.Color.Transparent;
     this.radGroupBox2.Controls.Add(this.CloseGameOutput);
     this.radGroupBox2.Controls.Add(this.UseGamePrefix);
     this.radGroupBox2.Controls.Add(this.EnableMinecraftLogging);
     this.radGroupBox2.HeaderText = "Логирование";
     this.radGroupBox2.Location = new System.Drawing.Point(402, 18);
     this.radGroupBox2.Name = "radGroupBox2";
     //
     //
     //
     this.radGroupBox2.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.radGroupBox2.RootElement.AngleTransform = 0F;
     this.radGroupBox2.RootElement.FlipText = false;
     this.radGroupBox2.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.radGroupBox2.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.radGroupBox2.Size = new System.Drawing.Size(357, 121);
     this.radGroupBox2.TabIndex = 1;
     this.radGroupBox2.Text = "Логирование";
     this.radGroupBox2.ThemeName = "VisualStudio2012Dark";
     //
     // CloseGameOutput
     //
     this.CloseGameOutput.Location = new System.Drawing.Point(5, 69);
     this.CloseGameOutput.Name = "CloseGameOutput";
     //
     //
     //
     this.CloseGameOutput.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.CloseGameOutput.RootElement.AngleTransform = 0F;
     this.CloseGameOutput.RootElement.FlipText = false;
     this.CloseGameOutput.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.CloseGameOutput.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.CloseGameOutput.Size = new System.Drawing.Size(327, 18);
     this.CloseGameOutput.TabIndex = 2;
     this.CloseGameOutput.Text = "Закрывать вкладку, если завершение прошло без ошибок";
     this.CloseGameOutput.ThemeName = "VisualStudio2012Dark";
     //
     // UseGamePrefix
     //
     this.UseGamePrefix.CheckState = System.Windows.Forms.CheckState.Checked;
     this.UseGamePrefix.Location = new System.Drawing.Point(5, 45);
     this.UseGamePrefix.Name = "UseGamePrefix";
     //
     //
     //
     this.UseGamePrefix.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.UseGamePrefix.RootElement.AngleTransform = 0F;
     this.UseGamePrefix.RootElement.FlipText = false;
     this.UseGamePrefix.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.UseGamePrefix.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.UseGamePrefix.Size = new System.Drawing.Size(288, 18);
     this.UseGamePrefix.TabIndex = 1;
     this.UseGamePrefix.Text = "Использовать префикс [GAME] для логов Minecraft";
     this.UseGamePrefix.ThemeName = "VisualStudio2012Dark";
     this.UseGamePrefix.ToggleState = Telerik.WinControls.Enumerations.ToggleState.On;
     //
     // EnableMinecraftLogging
     //
     this.EnableMinecraftLogging.CheckState = System.Windows.Forms.CheckState.Checked;
     this.EnableMinecraftLogging.Location = new System.Drawing.Point(5, 21);
     this.EnableMinecraftLogging.Name = "EnableMinecraftLogging";
     //
     //
     //
     this.EnableMinecraftLogging.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.EnableMinecraftLogging.RootElement.AngleTransform = 0F;
     this.EnableMinecraftLogging.RootElement.FlipText = false;
     this.EnableMinecraftLogging.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.EnableMinecraftLogging.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.EnableMinecraftLogging.Size = new System.Drawing.Size(177, 18);
     this.EnableMinecraftLogging.TabIndex = 0;
     this.EnableMinecraftLogging.Text = "Выводить лог игры в консоль";
     this.EnableMinecraftLogging.ThemeName = "VisualStudio2012Dark";
     this.EnableMinecraftLogging.ToggleState = Telerik.WinControls.Enumerations.ToggleState.On;
     //
     // radGroupBox1
     //
     this.radGroupBox1.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
     this.radGroupBox1.BackColor = System.Drawing.Color.Transparent;
     this.radGroupBox1.Controls.Add(this.radLabel4);
     this.radGroupBox1.Controls.Add(this.LangDropDownList);
     this.radGroupBox1.Controls.Add(this.EnableMinecraftUpdateAlerts);
     this.radGroupBox1.Controls.Add(this.radCheckBox1);
     this.radGroupBox1.HeaderText = "Основные";
     this.radGroupBox1.Location = new System.Drawing.Point(17, 18);
     this.radGroupBox1.Name = "radGroupBox1";
     //
     //
     //
     this.radGroupBox1.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.radGroupBox1.RootElement.AngleTransform = 0F;
     this.radGroupBox1.RootElement.FlipText = false;
     this.radGroupBox1.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.radGroupBox1.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.radGroupBox1.Size = new System.Drawing.Size(357, 121);
     this.radGroupBox1.TabIndex = 0;
     this.radGroupBox1.Text = "Основные";
     this.radGroupBox1.ThemeName = "VisualStudio2012Dark";
     //
     // radLabel4
     //
     this.radLabel4.Location = new System.Drawing.Point(5, 69);
     this.radLabel4.Name = "radLabel4";
     //
     //
     //
     this.radLabel4.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.radLabel4.RootElement.AngleTransform = 0F;
     this.radLabel4.RootElement.FlipText = false;
     this.radLabel4.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.radLabel4.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.radLabel4.Size = new System.Drawing.Size(87, 18);
     this.radLabel4.TabIndex = 5;
     this.radLabel4.Text = "Язык/Language:";
     this.radLabel4.ThemeName = "VisualStudio2012Dark";
     ((Telerik.WinControls.UI.RadLabelElement)(this.radLabel4.GetChildAt(0))).Text = "Язык/Language:";
     ((Telerik.WinControls.Primitives.FillPrimitive)(this.radLabel4.GetChildAt(0).GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
     //
     // LangDropDownList
     //
     this.LangDropDownList.AutoCompleteDisplayMember = null;
     this.LangDropDownList.AutoCompleteValueMember = null;
     this.LangDropDownList.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
     radListDataItem1.Tag = "ru-RU";
     radListDataItem1.Text = "Русский (ru-default)";
     this.LangDropDownList.Items.Add(radListDataItem1);
     this.LangDropDownList.Location = new System.Drawing.Point(150, 69);
     this.LangDropDownList.Name = "LangDropDownList";
     //
     //
     //
     this.LangDropDownList.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.LangDropDownList.RootElement.AngleTransform = 0F;
     this.LangDropDownList.RootElement.FlipText = false;
     this.LangDropDownList.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.LangDropDownList.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.LangDropDownList.Size = new System.Drawing.Size(202, 24);
     this.LangDropDownList.TabIndex = 3;
     this.LangDropDownList.Text = "Русский (ru-RU)";
     this.LangDropDownList.ThemeName = "VisualStudio2012Dark";
     this.LangDropDownList.SelectedIndexChanged += new Telerik.WinControls.UI.Data.PositionChangedEventHandler(this.LangDropDownList_SelectedIndexChanged);
     //
     // EnableMinecraftUpdateAlerts
     //
     this.EnableMinecraftUpdateAlerts.CheckState = System.Windows.Forms.CheckState.Checked;
     this.EnableMinecraftUpdateAlerts.Enabled = false;
     this.EnableMinecraftUpdateAlerts.Location = new System.Drawing.Point(5, 45);
     this.EnableMinecraftUpdateAlerts.Name = "EnableMinecraftUpdateAlerts";
     //
     //
     //
     this.EnableMinecraftUpdateAlerts.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.EnableMinecraftUpdateAlerts.RootElement.AngleTransform = 0F;
     this.EnableMinecraftUpdateAlerts.RootElement.FlipText = false;
     this.EnableMinecraftUpdateAlerts.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.EnableMinecraftUpdateAlerts.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.EnableMinecraftUpdateAlerts.Size = new System.Drawing.Size(340, 18);
     this.EnableMinecraftUpdateAlerts.TabIndex = 2;
     this.EnableMinecraftUpdateAlerts.Text = "Показывать уведомления о наличии новых версий Minecraft";
     this.EnableMinecraftUpdateAlerts.ThemeName = "VisualStudio2012Dark";
     this.EnableMinecraftUpdateAlerts.ToggleState = Telerik.WinControls.Enumerations.ToggleState.On;
     //
     // radCheckBox1
     //
     this.radCheckBox1.Enabled = false;
     this.radCheckBox1.Location = new System.Drawing.Point(5, 21);
     this.radCheckBox1.Name = "radCheckBox1";
     //
     //
     //
     this.radCheckBox1.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.radCheckBox1.RootElement.AngleTransform = 0F;
     this.radCheckBox1.RootElement.FlipText = false;
     this.radCheckBox1.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.radCheckBox1.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.radCheckBox1.Size = new System.Drawing.Size(257, 18);
     this.radCheckBox1.TabIndex = 0;
     this.radCheckBox1.Text = "Проверять наличие обновлений программы";
     this.radCheckBox1.ThemeName = "VisualStudio2012Dark";
     //
     // StatusBar
     //
     this.StatusBar.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.StatusBar.Location = new System.Drawing.Point(0, 363);
     this.StatusBar.Name = "StatusBar";
     this.StatusBar.Size = new System.Drawing.Size(858, 24);
     this.StatusBar.TabIndex = 4;
     this.StatusBar.Text = "StatusBar";
     this.StatusBar.ThemeName = "VisualStudio2012Dark";
     this.StatusBar.Visible = false;
     //
     // radPanel1
     //
     this.radPanel1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("radPanel1.BackgroundImage")));
     this.radPanel1.Controls.Add(this.DeleteProfileButton);
     this.radPanel1.Controls.Add(this.ManageUsersButton);
     this.radPanel1.Controls.Add(this.NicknameDropDownList);
     this.radPanel1.Controls.Add(this.SelectedVersion);
     this.radPanel1.Controls.Add(this.LogoBox);
     this.radPanel1.Controls.Add(this.LaunchButton);
     this.radPanel1.Controls.Add(this.profilesDropDownBox);
     this.radPanel1.Controls.Add(this.EditProfile);
     this.radPanel1.Controls.Add(this.AddProfile);
     this.radPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.radPanel1.Location = new System.Drawing.Point(0, 387);
     this.radPanel1.Name = "radPanel1";
     //
     //
     //
     this.radPanel1.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.radPanel1.RootElement.AngleTransform = 0F;
     this.radPanel1.RootElement.FlipText = false;
     this.radPanel1.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.radPanel1.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.radPanel1.Size = new System.Drawing.Size(858, 59);
     this.radPanel1.TabIndex = 3;
     this.radPanel1.ThemeName = "VisualStudio2012Dark";
     //
     // DeleteProfileButton
     //
     this.DeleteProfileButton.Image = ((System.Drawing.Image)(resources.GetObject("DeleteProfileButton.Image")));
     this.DeleteProfileButton.ImageAlignment = System.Drawing.ContentAlignment.MiddleCenter;
     this.DeleteProfileButton.Location = new System.Drawing.Point(6, 6);
     this.DeleteProfileButton.Name = "DeleteProfileButton";
     this.DeleteProfileButton.Size = new System.Drawing.Size(32, 24);
     this.DeleteProfileButton.TabIndex = 8;
     this.DeleteProfileButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.DeleteProfileButton.ThemeName = "VisualStudio2012Dark";
     this.DeleteProfileButton.Click += new System.EventHandler(this.DeleteProfileButton_Click);
     //
     // ManageUsersButton
     //
     this.ManageUsersButton.Anchor = System.Windows.Forms.AnchorStyles.Top;
     this.ManageUsersButton.Image = global::FreeLauncher.Properties.Resources.edit;
     this.ManageUsersButton.ImageAlignment = System.Drawing.ContentAlignment.MiddleCenter;
     this.ManageUsersButton.Location = new System.Drawing.Point(513, 6);
     this.ManageUsersButton.Name = "ManageUsersButton";
     //
     //
     //
     this.ManageUsersButton.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.ManageUsersButton.RootElement.AngleTransform = 0F;
     this.ManageUsersButton.RootElement.FlipText = false;
     this.ManageUsersButton.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.ManageUsersButton.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.ManageUsersButton.Size = new System.Drawing.Size(32, 24);
     this.ManageUsersButton.TabIndex = 7;
     this.ManageUsersButton.ThemeName = "VisualStudio2012Dark";
     this.ManageUsersButton.Click += new System.EventHandler(this.ManageUsersButton_Click);
     //
     // NicknameDropDownList
     //
     this.NicknameDropDownList.Anchor = System.Windows.Forms.AnchorStyles.Top;
     this.NicknameDropDownList.AutoCompleteDisplayMember = null;
     this.NicknameDropDownList.AutoCompleteValueMember = null;
     this.NicknameDropDownList.Location = new System.Drawing.Point(314, 6);
     this.NicknameDropDownList.Name = "NicknameDropDownList";
     this.NicknameDropDownList.NullText = "Ник";
     //
     //
     //
     this.NicknameDropDownList.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.NicknameDropDownList.RootElement.AngleTransform = 0F;
     this.NicknameDropDownList.RootElement.FlipText = false;
     this.NicknameDropDownList.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.NicknameDropDownList.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.NicknameDropDownList.Size = new System.Drawing.Size(196, 24);
     this.NicknameDropDownList.TabIndex = 3;
     this.NicknameDropDownList.ThemeName = "VisualStudio2012Dark";
     this.NicknameDropDownList.SelectedIndexChanged += new Telerik.WinControls.UI.Data.PositionChangedEventHandler(this.NicknameDropDownList_SelectedIndexChanged);
     //
     // SelectedVersion
     //
     this.SelectedVersion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.SelectedVersion.AutoSize = true;
     this.SelectedVersion.BackColor = System.Drawing.Color.Transparent;
     this.SelectedVersion.ForeColor = System.Drawing.Color.White;
     this.SelectedVersion.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.SelectedVersion.Location = new System.Drawing.Point(631, 42);
     this.SelectedVersion.MinimumSize = new System.Drawing.Size(220, 13);
     this.SelectedVersion.Name = "SelectedVersion";
     this.SelectedVersion.Size = new System.Drawing.Size(220, 13);
     this.SelectedVersion.TabIndex = 6;
     this.SelectedVersion.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // LogoBox
     //
     this.LogoBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.LogoBox.BackColor = System.Drawing.Color.Transparent;
     this.LogoBox.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
     this.LogoBox.Image = ((System.Drawing.Image)(resources.GetObject("LogoBox.Image")));
     this.LogoBox.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.LogoBox.Location = new System.Drawing.Point(651, -11);
     this.LogoBox.Name = "LogoBox";
     this.LogoBox.Size = new System.Drawing.Size(181, 84);
     this.LogoBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.LogoBox.TabIndex = 5;
     this.LogoBox.TabStop = false;
     //
     // LaunchButton
     //
     this.LaunchButton.Anchor = System.Windows.Forms.AnchorStyles.Top;
     this.LaunchButton.Location = new System.Drawing.Point(314, 33);
     this.LaunchButton.Name = "LaunchButton";
     //
     //
     //
     this.LaunchButton.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.LaunchButton.RootElement.AngleTransform = 0F;
     this.LaunchButton.RootElement.FlipText = false;
     this.LaunchButton.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.LaunchButton.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.LaunchButton.Size = new System.Drawing.Size(231, 22);
     this.LaunchButton.TabIndex = 4;
     this.LaunchButton.Text = "Запуск игры";
     this.LaunchButton.ThemeName = "VisualStudio2012Dark";
     this.LaunchButton.Click += new System.EventHandler(this.LaunchButton_Click);
     //
     // profilesDropDownBox
     //
     this.profilesDropDownBox.AutoCompleteDisplayMember = null;
     this.profilesDropDownBox.AutoCompleteValueMember = null;
     this.profilesDropDownBox.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
     this.profilesDropDownBox.Location = new System.Drawing.Point(41, 6);
     this.profilesDropDownBox.Name = "profilesDropDownBox";
     //
     //
     //
     this.profilesDropDownBox.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.profilesDropDownBox.RootElement.AngleTransform = 0F;
     this.profilesDropDownBox.RootElement.FlipText = false;
     this.profilesDropDownBox.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.profilesDropDownBox.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.profilesDropDownBox.Size = new System.Drawing.Size(191, 24);
     this.profilesDropDownBox.TabIndex = 2;
     this.profilesDropDownBox.ThemeName = "VisualStudio2012Dark";
     this.profilesDropDownBox.SelectedIndexChanged += new Telerik.WinControls.UI.Data.PositionChangedEventHandler(this.profilesDropDownBox_SelectedIndexChanged);
     //
     // EditProfile
     //
     this.EditProfile.Location = new System.Drawing.Point(122, 33);
     this.EditProfile.Name = "EditProfile";
     //
     //
     //
     this.EditProfile.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.EditProfile.RootElement.AngleTransform = 0F;
     this.EditProfile.RootElement.FlipText = false;
     this.EditProfile.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.EditProfile.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.EditProfile.Size = new System.Drawing.Size(110, 22);
     this.EditProfile.TabIndex = 1;
     this.EditProfile.Text = "Изменить профиль";
     this.EditProfile.TextWrap = true;
     this.EditProfile.ThemeName = "VisualStudio2012Dark";
     this.EditProfile.Click += new System.EventHandler(this.EditProfile_Click);
     //
     // AddProfile
     //
     this.AddProfile.Location = new System.Drawing.Point(6, 33);
     this.AddProfile.Name = "AddProfile";
     //
     //
     //
     this.AddProfile.RootElement.Alignment = System.Drawing.ContentAlignment.TopLeft;
     this.AddProfile.RootElement.AngleTransform = 0F;
     this.AddProfile.RootElement.FlipText = false;
     this.AddProfile.RootElement.Margin = new System.Windows.Forms.Padding(0);
     this.AddProfile.RootElement.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
     this.AddProfile.Size = new System.Drawing.Size(110, 22);
     this.AddProfile.TabIndex = 0;
     this.AddProfile.Text = "Добавить профиль";
     this.AddProfile.TextWrap = true;
     this.AddProfile.ThemeName = "VisualStudio2012Dark";
     this.AddProfile.Click += new System.EventHandler(this.AddProfile_Click);
     //
     // LauncherForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(858, 446);
     this.Controls.Add(this.mainPageView);
     this.Controls.Add(this.StatusBar);
     this.Controls.Add(this.radPanel1);
     this.MinimumSize = new System.Drawing.Size(712, 446);
     this.Name = "LauncherForm";
     //
     //
     //
     this.RootElement.ApplyShapeToControl = true;
     this.Text = "FreeLauncher";
     this.ThemeName = "VisualStudio2012Dark";
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.LauncherForm_FormClosing);
     ((System.ComponentModel.ISupportInitialize)(this.mainPageView)).EndInit();
     this.mainPageView.ResumeLayout(false);
     this.News.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.webPanel)).EndInit();
     this.webPanel.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.BackWebButton)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.ForwardWebButton)).EndInit();
     this.ConsolePage.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.ConsoleOptionsPanel)).EndInit();
     this.ConsoleOptionsPanel.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.SetToClipboardButton)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.DebugModeButton)).EndInit();
     this.EditVersions.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.versionsListView)).EndInit();
     this.AboutPage.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.AboutPageView)).EndInit();
     this.AboutPageView.ResumeLayout(false);
     this.AboutPageViewPage.ResumeLayout(false);
     this.radScrollablePanel2.PanelContainer.ResumeLayout(false);
     this.radScrollablePanel2.PanelContainer.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.radScrollablePanel2)).EndInit();
     this.radScrollablePanel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.AboutVersion)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.radLabel1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.PartnersLabel)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.GratitudesLabel)).EndInit();
     this.LicensesPage.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.licensePageView)).EndInit();
     this.licensePageView.ResumeLayout(false);
     this.FreeLauncherLicense.ResumeLayout(false);
     this.FreeLauncherLicense.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.FreeLauncherLicenseText)).EndInit();
     this.dotMCLauncherLicense.ResumeLayout(false);
     this.dotMCLauncherLicense.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dotMCLauncherLicenseText)).EndInit();
     this.SettingsPage.ResumeLayout(false);
     this.radScrollablePanel1.PanelContainer.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.radScrollablePanel1)).EndInit();
     this.radScrollablePanel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.radGroupBox2)).EndInit();
     this.radGroupBox2.ResumeLayout(false);
     this.radGroupBox2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.CloseGameOutput)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.UseGamePrefix)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.EnableMinecraftLogging)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.radGroupBox1)).EndInit();
     this.radGroupBox1.ResumeLayout(false);
     this.radGroupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.radLabel4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.LangDropDownList)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.EnableMinecraftUpdateAlerts)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.radCheckBox1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.StatusBar)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.radPanel1)).EndInit();
     this.radPanel1.ResumeLayout(false);
     this.radPanel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.DeleteProfileButton)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.ManageUsersButton)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.NicknameDropDownList)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.LogoBox)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.LaunchButton)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.profilesDropDownBox)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.EditProfile)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.AddProfile)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
     this.ResumeLayout(false);
 }
 private void cfb5cf413352ed4044535eb4a62d2e98f()
 {
     this.cc32c2a8957385c95d1017b66f5ffe5dc = new RadProgressBar();
     this.c36dd98eb0c08ea087627a40c6663c9a8 = new RadLabel();
     this.ca5a2b6669f9034e5fc384b9781cd6dd6 = new RadLabel();
     this.c3768da1c9e17b9980d03acca3e5a19a9 = new RadButton();
     this.c5539dab8a40e8d2e2a7b970e134631c8 = new RadLabel();
     ((ISupportInitialize)this.cc32c2a8957385c95d1017b66f5ffe5dc).BeginInit();
     ((ISupportInitialize)this.c36dd98eb0c08ea087627a40c6663c9a8).BeginInit();
     ((ISupportInitialize)this.ca5a2b6669f9034e5fc384b9781cd6dd6).BeginInit();
     ((ISupportInitialize)this.c3768da1c9e17b9980d03acca3e5a19a9).BeginInit();
     ((ISupportInitialize)this.c5539dab8a40e8d2e2a7b970e134631c8).BeginInit();
     ((ISupportInitialize)this).BeginInit();
     ((RadFormControlBase)this).SuspendLayout();
     ((Control)this.cc32c2a8957385c95d1017b66f5ffe5dc).Location = new Point(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7824), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7828));
     ((Control)this.cc32c2a8957385c95d1017b66f5ffe5dc).Name     = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7362);
     this.cc32c2a8957385c95d1017b66f5ffe5dc.set_ShowProgressIndicators(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7832) != 0);
     ((Control)this.cc32c2a8957385c95d1017b66f5ffe5dc).Size     = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7836), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7840));
     ((Control)this.cc32c2a8957385c95d1017b66f5ffe5dc).TabIndex = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7844);
     ((Control)this.cc32c2a8957385c95d1017b66f5ffe5dc).Text     = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7393);
     ((Control)this.c36dd98eb0c08ea087627a40c6663c9a8).AutoSize = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7848) != 0;
     ((Control)this.c36dd98eb0c08ea087627a40c6663c9a8).Dock     = (DockStyle)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7852);
     ((Control)this.c36dd98eb0c08ea087627a40c6663c9a8).Font     = new Font(c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7400), cb85779efa5f9c78fa841b92dceca9094.c8c83a3807da60b9f032d40f2b5665e27(7856), (FontStyle)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7860), (GraphicsUnit)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7864), (byte)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7868));
     ((Control)this.c36dd98eb0c08ea087627a40c6663c9a8).Location = new Point(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7872), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7876));
     ((Control)this.c36dd98eb0c08ea087627a40c6663c9a8).Name     = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7417);
     ((Control)this.c36dd98eb0c08ea087627a40c6663c9a8).Size     = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7880), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7884));
     ((Control)this.c36dd98eb0c08ea087627a40c6663c9a8).TabIndex = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7888);
     ((Control)this.c36dd98eb0c08ea087627a40c6663c9a8).Text     = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7428);
     this.c36dd98eb0c08ea087627a40c6663c9a8.set_TextAlignment((ContentAlignment)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7892));
     this.c36dd98eb0c08ea087627a40c6663c9a8.set_UseMnemonic(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7896) != 0);
     ((Control)this.ca5a2b6669f9034e5fc384b9781cd6dd6).Location = new Point(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7900), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7904));
     ((Control)this.ca5a2b6669f9034e5fc384b9781cd6dd6).Name     = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7447);
     ((Control)this.ca5a2b6669f9034e5fc384b9781cd6dd6).Size     = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7908), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7912));
     ((Control)this.ca5a2b6669f9034e5fc384b9781cd6dd6).TabIndex = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7916);
     ((Control)this.ca5a2b6669f9034e5fc384b9781cd6dd6).Text     = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7464);
     ((Control)this.c3768da1c9e17b9980d03acca3e5a19a9).Location = new Point(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7920), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7924));
     ((Control)this.c3768da1c9e17b9980d03acca3e5a19a9).Name     = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7473);
     ((Control)this.c3768da1c9e17b9980d03acca3e5a19a9).Size     = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7928), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7932));
     ((Control)this.c3768da1c9e17b9980d03acca3e5a19a9).TabIndex = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7936);
     ((Control)this.c3768da1c9e17b9980d03acca3e5a19a9).Text     = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7494);
     ((Control)this.c3768da1c9e17b9980d03acca3e5a19a9).Click   += new EventHandler(this.cd3ea5f6f49b3d27138c3508cc5d825bb);
     ((Control)this.c5539dab8a40e8d2e2a7b970e134631c8).Location = new Point(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7940), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7944));
     ((Control)this.c5539dab8a40e8d2e2a7b970e134631c8).Name     = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7505);
     ((Control)this.c5539dab8a40e8d2e2a7b970e134631c8).Size     = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7948), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7952));
     ((Control)this.c5539dab8a40e8d2e2a7b970e134631c8).TabIndex = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7956);
     ((Control)this.c5539dab8a40e8d2e2a7b970e134631c8).Text     = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7518);
     ((ContainerControl)this).AutoScaleDimensions = new SizeF(cb85779efa5f9c78fa841b92dceca9094.c8c83a3807da60b9f032d40f2b5665e27(7960), cb85779efa5f9c78fa841b92dceca9094.c8c83a3807da60b9f032d40f2b5665e27(7964));
     ((RadFormControlBase)this).set_AutoScaleMode((AutoScaleMode)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7968));
     ((Form)this).ClientSize = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7972), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7976));
     ((Control)this).Controls.Add((Control)this.c5539dab8a40e8d2e2a7b970e134631c8);
     ((Control)this).Controls.Add((Control)this.c3768da1c9e17b9980d03acca3e5a19a9);
     ((Control)this).Controls.Add((Control)this.ca5a2b6669f9034e5fc384b9781cd6dd6);
     ((Control)this).Controls.Add((Control)this.c36dd98eb0c08ea087627a40c6663c9a8);
     ((Control)this).Controls.Add((Control)this.cc32c2a8957385c95d1017b66f5ffe5dc);
     ((RadFormControlBase)this).set_FormBorderStyle((FormBorderStyle)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7980));
     ((Control)this).Name = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7525);
     ((RadFormControlBase)this).get_RootElement().set_ApplyShapeToControl(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7984) != 0);
     this.set_ShowIcon(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7988) != 0);
     ((Control)this).Text = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7554);
     ((Form)this).Load   += new EventHandler(this.cf65f1f5cd5b0e5f46b26ab51b65aa678);
     ((ISupportInitialize)this.cc32c2a8957385c95d1017b66f5ffe5dc).EndInit();
     ((ISupportInitialize)this.c36dd98eb0c08ea087627a40c6663c9a8).EndInit();
     ((ISupportInitialize)this.ca5a2b6669f9034e5fc384b9781cd6dd6).EndInit();
     ((ISupportInitialize)this.c3768da1c9e17b9980d03acca3e5a19a9).EndInit();
     ((ISupportInitialize)this.c5539dab8a40e8d2e2a7b970e134631c8).EndInit();
     ((ISupportInitialize)this).EndInit();
     ((RadFormControlBase)this).ResumeLayout(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(7992) != 0);
     ((Control)this).PerformLayout();
 }
        public static List <FieldResult> GenerateInserts(string pTableName, List <ColumnData> pValidColumns,
                                                         DatabaseManage origManager, DatabaseManage destManager, RadProgressBar progressBarResult)
        {
            List <FieldResult> results = new List <FieldResult>();
            List <RowModel>    dataOrig;
            List <RowModel>    dataDest;

            // Obtenemos todos los datos de origen de la tabla
            if (pValidColumns.Select(s => s.ColumnName).Contains("id"))
            {
                dataOrig = origManager.ExecuteQueryList(string.Format("SELECT \"{0}\" FROM {1} ORDER BY id ASC",
                                                                      string.Join("\", \"", pValidColumns.Select(s => s.ColumnName).OrderBy(o => o)), pTableName), pValidColumns);

                // Obtenemos todos los datos de destino de la tabla
                dataDest = destManager.ExecuteQueryList(string.Format("SELECT \"{0}\" FROM {1} ORDER BY id ASC",
                                                                      string.Join("\", \"", pValidColumns.Select(s => s.ColumnName).OrderBy(o => o)), pTableName), pValidColumns);
            }
            else
            {
                dataOrig = origManager.ExecuteQueryList(string.Format("SELECT \"{0}\" FROM {1}",
                                                                      string.Join("\", \"", pValidColumns.Select(s => s.ColumnName).OrderBy(o => o)), pTableName), pValidColumns);

                // Obtenemos todos los datos de destino de la tabla
                dataDest = destManager.ExecuteQueryList(string.Format("SELECT \"{0}\" FROM {1}",
                                                                      string.Join("\", \"", pValidColumns.Select(s => s.ColumnName).OrderBy(o => o)), pTableName), pValidColumns);
            }

            int rowCount = dataOrig.Count();
            int rowIndex = 0;

            foreach (RowModel row in dataOrig)
            {
                StringBuilder builderQuery = new StringBuilder();

                // Generamos la query
                builderQuery.Append(string.Format("INSERT INTO {0} (\"{1}\") VALUES (", pTableName,
                                                  string.Join("\", \"", pValidColumns.Select(s => s.ColumnName).OrderBy(o => o))));

                int fieldCount = row.Fields.Count;
                int idx        = 1;
                foreach (var fieldValue in row.Fields)
                {
                    if ("null".Equals(fieldValue))
                    {
                        builderQuery.Append(idx < fieldCount ? "null, " : "null");
                    }
                    else
                    {
                        builderQuery.Append(idx < fieldCount ? string.Format("'{0}', ", fieldValue) : string.Format("'{0}'", fieldValue));
                    }
                    idx++;
                }
                builderQuery.AppendLine(")");

                // Generamos el identificador a devolver
                FieldResult rowResult = new FieldResult
                {
                    Id      = row.Id,
                    Name    = row.Name,
                    Query   = builderQuery.ToString(),
                    Migrate = true
                };

                // Si ya existe un registro con el mismo identificador, automáticamente lo desmarcamos
                if (dataDest.Any(w => w.Id == row.Id) && row.Id > 0)
                {
                    rowResult.Migrate = false;
                }

                results.Add(rowResult);

                rowIndex++;
                progressBarResult.BeginInvoke(new Action(() =>
                {
                    int newValue = (int)(((float)rowIndex / rowCount) * 100);
                    if (newValue > 100)
                    {
                        newValue = 100;
                    }
                    progressBarResult.Value1 = newValue;
                }));
            }

            return(results);
        }
        private void InitializeComponent()
        {
            this.icontainer_0 = (IContainer) new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmUnpackAnimation));

            this.radProgressBar1 = new RadProgressBar();
            this.pictureBox1     = new PictureBox();
            this.timer_0         = new Timer(this.icontainer_0);
            this.lblFiles        = new RadLabel();
            this.lblTile         = new RadLabel();
            this.radProgressBar1.BeginInit();
            ((ISupportInitialize)this.pictureBox1).BeginInit();
            this.lblFiles.BeginInit();
            this.lblTile.BeginInit();
            this.SuspendLayout();
            this.radProgressBar1.Location = new Point(15, 75);
            this.radProgressBar1.Name     = "radProgressBar1";
            this.radProgressBar1.ShowProgressIndicators = true;
            this.radProgressBar1.Size     = new Size(610, 24);
            this.radProgressBar1.TabIndex = 0;
            this.radProgressBar1.Text     = "0 %";
            this.pictureBox1.Location     = new Point(-1, 0);
            this.pictureBox1.Name         = "pictureBox1";
            this.pictureBox1.Size         = new Size(805, 175);
            this.pictureBox1.SizeMode     = PictureBoxSizeMode.AutoSize;
            this.pictureBox1.TabIndex     = 2;
            this.pictureBox1.TabStop      = false;
            this.pictureBox1.Click       += new EventHandler(this.pictureBox1_Click);
            this.timer_0.Enabled          = true;
            this.timer_0.Interval         = 30;
            this.timer_0.Tick            += new EventHandler(this.timer_0_Tick);
            this.lblFiles.Location        = new Point(12, 157);
            this.lblFiles.Name            = "lblFiles";
            this.lblFiles.Size            = new Size(9, 18);
            this.lblFiles.TabIndex        = 3;
            this.lblFiles.Text            = ".";
            this.lblTile.Location         = new Point(15, 0);
            this.lblTile.Name             = "lblTile";
            this.lblTile.Size             = new Size(9, 18);
            this.lblTile.TabIndex         = 4;
            this.lblTile.Text             = ".";
            this.AutoScaleDimensions      = new SizeF(6f, 13f);
            this.AutoScaleMode            = AutoScaleMode.Font;
            this.ClientSize = new Size(640, 174);
            this.Controls.Add((Control)this.lblTile);
            this.Controls.Add((Control)this.lblFiles);
            this.Controls.Add((Control)this.radProgressBar1);
            this.Controls.Add((Control)this.pictureBox1);
            this.FormBorderStyle = FormBorderStyle.None;
            this.Icon            = (Icon)componentResourceManager.GetObject("$this.Icon");
            this.Name            = nameof(frmUnpackAnimation);
            this.StartPosition   = FormStartPosition.CenterScreen;
            this.Text            = "Now unpacking...";
            this.FormClosing    += new FormClosingEventHandler(this.frmUnpackAnimation_FormClosing);
            this.radProgressBar1.EndInit();
            ((ISupportInitialize)this.pictureBox1).EndInit();
            this.lblFiles.EndInit();
            this.lblTile.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
        public static List<FieldResult> GenerateInserts(string pTableName, List<ColumnData> pValidColumns,
            DatabaseManage origManager, DatabaseManage destManager, RadProgressBar progressBarResult)
        {
            List<FieldResult> results = new List<FieldResult>();
            List<RowModel> dataOrig;
            List<RowModel> dataDest;

            // Obtenemos todos los datos de origen de la tabla
            if (pValidColumns.Select(s => s.ColumnName).Contains("id"))
            {
                dataOrig = origManager.ExecuteQueryList(string.Format("SELECT \"{0}\" FROM {1} ORDER BY id ASC",
                    string.Join("\", \"", pValidColumns.Select(s => s.ColumnName).OrderBy(o => o)), pTableName), pValidColumns);

                // Obtenemos todos los datos de destino de la tabla
                dataDest = destManager.ExecuteQueryList(string.Format("SELECT \"{0}\" FROM {1} ORDER BY id ASC",
                    string.Join("\", \"", pValidColumns.Select(s => s.ColumnName).OrderBy(o => o)), pTableName), pValidColumns);
            }
            else
            {
                dataOrig = origManager.ExecuteQueryList(string.Format("SELECT \"{0}\" FROM {1}",
                    string.Join("\", \"", pValidColumns.Select(s => s.ColumnName).OrderBy(o => o)), pTableName), pValidColumns);

                // Obtenemos todos los datos de destino de la tabla
                dataDest = destManager.ExecuteQueryList(string.Format("SELECT \"{0}\" FROM {1}",
                    string.Join("\", \"", pValidColumns.Select(s => s.ColumnName).OrderBy(o => o)), pTableName), pValidColumns);
            }

            int rowCount = dataOrig.Count();
            int rowIndex = 0;

            foreach (RowModel row in dataOrig)
            {
                StringBuilder builderQuery = new StringBuilder();

                // Generamos la query
                builderQuery.Append(string.Format("INSERT INTO {0} (\"{1}\") VALUES (", pTableName,
                    string.Join("\", \"", pValidColumns.Select(s => s.ColumnName).OrderBy(o => o))));

                int fieldCount = row.Fields.Count;
                int idx = 1;
                foreach (var fieldValue in row.Fields)
                {
                    if ("null".Equals(fieldValue))
                    {
                        builderQuery.Append(idx < fieldCount ? "null, " : "null");
                    }
                    else
                    {
                        builderQuery.Append(idx < fieldCount ? string.Format("'{0}', ", fieldValue) : string.Format("'{0}'", fieldValue));
                    }
                    idx++;
                }
                builderQuery.AppendLine(")");

                // Generamos el identificador a devolver
                FieldResult rowResult = new FieldResult
                {
                    Id = row.Id,
                    Name = row.Name,
                    Query = builderQuery.ToString(),
                    Migrate = true
                };

                // Si ya existe un registro con el mismo identificador, automáticamente lo desmarcamos
                if (dataDest.Any(w => w.Id == row.Id) && row.Id > 0)
                {
                    rowResult.Migrate = false;
                }

                results.Add(rowResult);

                rowIndex++;
                progressBarResult.BeginInvoke(new Action(() =>
                {
                    int newValue = (int)(((float)rowIndex / rowCount) * 100);
                    if (newValue > 100)
                    {
                        newValue = 100;
                    }
                    progressBarResult.Value1 = newValue;
                }));
            }

            return results;
        }
        public static string ExecuteQuerys(QueryResult result, RadProgressBar progressBarResult)
        {
            StringBuilder results = new StringBuilder();

            // Obtenemos la configuracion
            SettingsModel model = SettingsManager.GetXml(true);

            if (model == null)
            {
                results.AppendLine(GetTime() + " - Settings are not setted");
                return(results.ToString());
            }

            // Inicializamos el manager
            DatabaseManage manager = new DatabaseManage(model);

            // Si tenemos que deshabilitar constraints
            if (result.DisableConstraints)
            {
                foreach (string query in result.QuerysDisableConstraints.ToString().Split('\n'))
                {
                    if (string.IsNullOrWhiteSpace(query))
                    {
                        continue;
                    }

                    int startCut  = query.IndexOf("EXISTS", StringComparison.Ordinal) + 7;
                    int lengthCut = query.IndexOf("DISABLE", StringComparison.Ordinal) - startCut - 1;

                    string tableName = query.Substring(startCut, lengthCut);

                    try
                    {
                        manager.ExecuteCommand(query);
                        results.AppendLine(string.Format("{0} - Disabling constraints for table {1} - Disabled", GetTime(), tableName));
                    }
                    catch (Exception ex)
                    {
                        results.AppendLine(string.Format("{0} - Disabling constraints for table {1} - Cannot be disabled - Error: {2}", GetTime(), tableName, ex.Message));
                    }
                }
            }

            int currentNumberTable = 0;

            foreach (string query in result.Querys.ToString().Split('\n'))
            {
                if (string.IsNullOrWhiteSpace(query))
                {
                    continue;
                }

                int startCut  = query.IndexOf("INTO", StringComparison.Ordinal) + 5;
                int lengthCut = query.IndexOf("(", StringComparison.Ordinal) - startCut - 1;

                string tableName    = query.Substring(startCut, lengthCut);
                int    rowsAffected = 0;

                try
                {
                    rowsAffected = manager.ExecuteCommand(query);
                    results.AppendLine(string.Format("{0} - {1} - Migrated OK - Rows inserted: {2}", GetTime(), tableName, rowsAffected));
                }
                catch (Exception ex)
                {
                    results.AppendLine(string.Format("{0} - {1} - Migrated Error - Rows inserted: {2} - Error: {3}", GetTime(), tableName, rowsAffected, ex.Message));
                }

                currentNumberTable++;

                int table = currentNumberTable;
                progressBarResult.BeginInvoke(new Action(() =>
                {
                    int newValue = (int)(((float)table / result.NumberOfItems) * 100);
                    if (newValue > 100)
                    {
                        newValue = 100;
                    }
                    progressBarResult.Value1 = newValue;
                }));
            }

            // Si tenemos que habilitar constraints
            if (result.DisableConstraints)
            {
                foreach (string query in result.QuerysEnableConstraints.ToString().Split('\n'))
                {
                    if (string.IsNullOrWhiteSpace(query))
                    {
                        continue;
                    }

                    int startCut  = query.IndexOf("EXISTS", StringComparison.Ordinal) + 7;
                    int lengthCut = query.IndexOf("ENABLE", StringComparison.Ordinal) - startCut - 1;

                    string tableName = query.Substring(startCut, lengthCut);

                    try
                    {
                        manager.ExecuteCommand(query);
                        results.AppendLine(string.Format("{0} - Enabling constraints for table {1} - Enabled", GetTime(), tableName));
                    }
                    catch (Exception ex)
                    {
                        results.AppendLine(string.Format("{0} - Enabling constraints for table {1} - Cannot be enabled - Error: {2}", GetTime(), tableName, ex.Message));
                    }
                }
            }

            return(results.ToString());
        }
Beispiel #39
0
 private void Calibrate(RadProgressBar bar)
 {
     this.DoWork(bar).FireAndForgetSafeAsync();
 }