示例#1
0
 public Form_about()
 {
     InitializeComponent();
     Translate();
     this.Icon = Properties.Resources.about1;
     toolTip1.SetToolTip(pB_paypal, DONATION);
     toolTip1.SetToolTip(pB_flattr, FLATTR);
     toolTip1.SetToolTip(pB_logo, HOMEPAGE);
     toolTip1.SetToolTip(linkLabel_author, "mailto: " + MAIL);
     toolTip1.SetToolTip(linkLabel_forum, FORUM);
     form_update = new Form_update();
     form_update.NewUpdateAvaliable += new Form_update.DlgNewUpdateAvaliable(NewUpdateAvaliable);
 }
示例#2
0
 public Form_about()
 {
     InitializeComponent();
     Translate();
     this.Icon = Properties.Resources.about1;
     toolTip1.SetToolTip(pB_paypal, DONATION);
     toolTip1.SetToolTip(pB_flattr, FLATTR);
     toolTip1.SetToolTip(pB_logo, HOMEPAGE);
     toolTip1.SetToolTip(linkLabel_author, "mailto: " + MAIL);
     toolTip1.SetToolTip(linkLabel_forum, FORUM);
     form_update = new Form_update();
     form_update.NewUpdateAvaliable += new Form_update.DlgNewUpdateAvaliable(NewUpdateAvaliable);
 }
        protected override void OnLoad(EventArgs e)
        {            
            this.Visible = false;
            this.ShowInTaskbar = false;
            base.OnLoad(e);
            m_processId = Process.GetCurrentProcess().Id;

            if (Config.User.FirstTimeRun)
            {
                string path = TypeOfAction.InternetOptions.GetDefaultBrowser();
                if (path != string.Empty && m_gestures.Groups.Count > 1)
                {                    
                    string name = System.IO.Path.GetFileNameWithoutExtension(path);
                    m_gestures.Groups[1].Caption = name;
                    m_gestures.Groups[1].Text = name;
                    m_gestures.Groups[1].Action.Details = path;
                }
                cMS_SystemTray.Enabled = false;
                Form_wizard form_wizard = new Form_wizard();
                form_wizard.ShowDialog();
                Config.User.FirstTimeRun = false;
                Config.User.Save();
                cMS_SystemTray.Enabled = true;
            }
            if (!Config.User.StartMinimized)
                ShowMainWindow();

            m_engine.Load();
            m_engine.ManualInstall();
            if (Config.User.AutoBehaviour)
            {
                tSMI_autobehave_off.Visible = true;
                tSMI_autobehave_on.Visible = false;
                m_engine.StartAutoBehave();
            }
            if (Config.User.CheckForUpdate)
            {
                form_update = new Form_update();
                form_update.NewUpdateAvaliable += new Form_update.DlgNewUpdateAvaliable(NewUpdateAvaliable);
                form_update.CheckForUpdate();
            }
        }