Example #1
0
        // 끝낼 준비
        public void DeInitPlugin()
        {
            //
            _isPluginEnabled = false;

            _frmOverlay.Hide();
            _frmOverlay = null;

            SaveSettings();

#if MACHINA
            // 마시나
            if (_monitor != null)
            {
                _monitor.Stop();
                _monitor = null;
            }
#endif

            //
            _isInitSetting = false;

            _actTabPage = null;

            if (_actLabelStatus != null)
            {
                _actLabelStatus.Text = Mesg.GetText("l-plugin-stopped");
                _actLabelStatus      = null;
            }

            Mesg.SetTextBox(null);
        }
Example #2
0
        //
        public void DeInitPlugin()
        {
            //
            _isPluginEnabled = false;

            _frmOverlay.Hide();
            _frmOverlay = null;

            SaveSettings();

            //
            _isInitSetting = false;

            _actTabPage = null;

            if (_actLabelStatus != null)
            {
                _actLabelStatus.Text = Mesg.GetText("l-plugin-stopped");
                _actLabelStatus      = null;
            }

            Mesg.SetTextBox(null);
        }
Example #3
0
        //
        private void ActInitialize()
        {
            if (_isInActInit)
            {
                return;
            }

            //
            _isInActInit = true;

            Mesg.SetTextBox(rtxLogger);
            ActGlobals.oFormActMain.Shown -= OFormActMain_Shown;

            ReadMesg();
            ReadGame();

            //
            _actLabelStatus.Text = "Initializing...";

            Dock = DockStyle.Fill;

            UpdateUiLanguage();

            _actLabelStatus.Text = Mesg.GetText("l-plugin-started");
            _actTabPage.Text     = Mesg.GetText("app-name");
            _actTabPage.Controls.Add(this);

            //
            _isPluginEnabled = true;

            //
            _srset = new SettingsSerializer(this);
            ReadSettings();
            UpdateFates();

            //
            string tagname = Settings.GetTagNameForUpdate();

            //if (!Settings.TagName.Equals(tagname))
            if (long.Parse(Settings.TagName) < long.Parse(tagname))
            {
                Mesg.I("i-client-updated", tagname);

                if (!txtUpdateSkip.Text.Equals(tagname))
                {
                    Task.Run(() =>
                    {
                        var res = MessageBox.Show(
                            Mesg.GetText("i-visit-updated"),
                            Mesg.GetText("app-name"), MessageBoxButtons.YesNo, MessageBoxIcon.Information);
                        if (res == DialogResult.Yes)
                        {
                            Process.Start("https://github.com/purutu/ACT.DFAssist/releases/latest");
                        }
                        else
                        {
                            txtUpdateSkip.Text = tagname;
                            SaveSettings();
                        }
                    });
                }
            }

            //
            _isInActInit = false;
        }