Esempio n. 1
0
        private void MenuL2encdecItem1_Click(object sender, EventArgs e)
        {
            try
            {
                this.StatusLabel.Text      = Program.language.getMessage(MsgList.PleaseWait);
                this.FileNameCombo.Enabled = false;
                this.Enabled = false;

                this.StatusProgress.Minimum = 0;
                this.StatusProgress.Value   = 0;
                this.StatusProgress.Visible = true;

                L2EncDec.SystemPatcher();
            }
            catch (Exception ex)
            {
                Program.log.Add(ex, true);
            }
            finally
            {
                this.Enabled = true;
                this.FileNameCombo.Enabled  = true;
                this.StatusProgress.Visible = false;
            }
            this.StatusLabel.Text = Program.language.getMessage(MsgList.COMPLETE) + String.Format(Program.language.getMessage(MsgList.CompletePatchSystem));
        }
Esempio n. 2
0
        private void pathSystem_Click_1(object sender, EventArgs e)
        {
            try
            {
                StatusLabel.Text      = Localizate.getMessage(Word.PLEASE_WAIT);
                FileNameCombo.Enabled = false;
                Enabled = false;

                L2EncDec.SystemPatcher();
            }
            catch (Exception ex)
            {
                _log.Info("Exception: " + ex, ex);
            }
            finally
            {
                Enabled = true;
                FileNameCombo.Enabled  = true;
                StatusProgress.Visible = false;
            }
            StatusLabel.Text = Localizate.getMessage(Word.COMPLETE) +
                               Localizate.getMessage(Word.COMPLETE_PATH_SYSTEM_FOLDER);
        }