public frmLogin()
        {
            InitializeComponent();

            this.Icon = Properties.Resources.MezeoVault;

            //this.HandleCreated += new EventHandler(frmLogin_HandleCreated);
            // this.HandleDestroyed += new EventHandler(frmLogin_HandleDestroyed);
            notificationManager = new NotificationManager();
            notificationManager.NotificationHandler = this.niSystemTray;

            //niSystemTray.ContextMenuStrip = cmSystemTrayLogin;

            mezeoFileCloud = new CloudService();

            LoadResources();

            string RSSFeed = BasicInfo.GetUpdateURL();
            TimeSpan checkFrequency = new TimeSpan(Convert.ToInt32(global::Mezeo.Properties.Resources.BrUpdateTimer), 0, 0);

            if (RSSFeed.Length != 0)
            {
                _sparkle = new Sparkle(RSSFeed);
                _sparkle.StartLoop(true, false, checkFrequency);
            }

            EventQueue.InitEventQueue(BasicInfo.MacAddress);
        }
Esempio n. 2
0
        public Form1()
        {
            InitializeComponent();

            _sparkle = new Sparkle("http://www.slesa.de/download/updates/HelloSparkle/versioninfo.xml");
            _sparkle.ShowDiagnosticWindow = true;
            _sparkle.StartLoop(true);
        }
        public Shell()
        {
            InitializeComponent();

            Application.AddMessageFilter(this);

            _sparkle = new Sparkle(Settings.Default.VersionInfoUri);
            _sparkle.ApplicationIcon = Properties.Resources.r4dio_app.ToBitmap();
            _sparkle.ApplicationWindowIcon = Properties.Resources.r4dio_app;
            _sparkle.StartLoop(true, true);
        }
Esempio n. 4
0
        /// <summary>
        /// Secondary MainForm initialisation.
        /// </summary>
        public void Initialise()
        {
            Application.AddMessageFilter(this);

            bool useBeta = Preferences.StandardPreferences.UseBeta;

            _sparkle = new Sparkle(useBeta ? Constants.BetaAppCastURL : Constants.AppCastURL);
            _sparkle.installAndRelaunch += _sparkle_installAndRelaunch;

            _sparkle.StartLoop(true);
        }
Esempio n. 5
0
        public MainWindow()
        {
            InitializeComponent();

            // remove the netsparkle key from registry
            try
            {
                Microsoft.Win32.Registry.CurrentUser.DeleteSubKeyTree("Software\\Microsoft\\NetSparkleTestAppWPF");
            }
            catch { }

            _sparkle = new Sparkle("http://update.applimit.com/netsparkle/versioninfo.xml"); //, "NetSparkleTestApp.exe");
            _sparkle.ShowDiagnosticWindow = true;
            _sparkle.StartLoop(true, true);
        }
Esempio n. 6
0
        public Form1()
        {
            InitializeComponent();

            _sparkle = new Sparkle("http://develop.waveface.com:4343/extensions/windowsUpdate/versioninfo_dev.xml")
            {
                ShowDiagnosticWindow = true,
                TrustEverySSLConnection = true,
                //EnableSystemProfiling = true,
                //SystemProfileUrl = new Uri("http://update.applimit.com/netsparkle/stat/profileInfo.php")
            };

            //_sparkle.updateDetected += new UpdateDetected(_sparkle_updateDetected);
            //_sparkle.EnableSilentMode = true;
            //_sparkle.HideReleaseNotes = true;

            _sparkle.StartLoop(true,TimeSpan.FromSeconds(10));
        }
Esempio n. 7
0
        /// <summary>
        /// Form to show update available
        /// </summary>
        public Form1()
        {
            InitializeComponent();

            _sparkle = new Sparkle("https://update.applimit.com/netsparkle/versioninfo.xml")
            {
                ShowDiagnosticWindow = true,
                TrustEverySSLConnection = true,
                //EnableSystemProfiling = true,
                //SystemProfileUrl = new Uri("http://update.applimit.com/netsparkle/stat/profileInfo.php")
            };

            _sparkle.UpdateDetected += new UpdateDetected(_sparkle_updateDetected);
            //_sparkle.EnableSilentMode = true;
            //_sparkle.HideReleaseNotes = true;

            _sparkle.StartLoop(true);
        }
Esempio n. 8
0
        public MainWindow()
        {
            InitializeComponent();

            _sparkle = new Sparkle("http://mediascribe.jarrod.co.nz/appcast.xml");
            _sparkle.StartLoop(true);

            UnityContainer unityContainer = new UnityContainer();
            unityContainer.RegisterType<IController, Controller>(new ContainerControlledLifetimeManager());

            //JDW NOTE: we need to set the data context BEFORE initializing the controller, since initialization
            //will perform a navigation that we need to catch in mainwindow's viewmodel... but AFTER creating the
            //the controller, since we need its reference inside the viewmodel.
            this.DataContext = new WindowHeaderViewModel(unityContainer);

            controller = unityContainer.Resolve<IController>();
            //We need to register the controller with Unity, before calling the initialize method. this is why the the logic isn't housed
            //in the controller constructor.
            controller.Initialize(this, mainTabControl, unityContainer);
        }
Esempio n. 9
0
        /// <summary>
        /// Initiates an update check for the application.
        /// </summary>
        /// <returns>True if the update process was started successfully, false otherwise.</returns>
        public void CheckForUpdate()
        {
            _sparkle.StopLoop();

            _sparkle = new Sparkle(
                String.IsNullOrEmpty(ConfigurationManager.AppSettings["appCastUrl"])
                    ? "http://lstratman.github.io/EasyConnect/updates/EasyConnect.xml"
                    : ConfigurationManager.AppSettings["appCastUrl"]);
            _sparkle.ApplicationWindowIcon = Icon;
            _sparkle.ApplicationIcon = Icon.ToBitmap();
            _sparkle.checkLoopFinished += _sparkle_checkLoopFinished;

            _sparkle.StartLoop(true, true);
        }
Esempio n. 10
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        public MainForm()
        {
            InitializeComponent();
            Init();

            if (_sparkle == null)
            {
            _sparkle = new Sparkle(
                String.IsNullOrEmpty(ConfigurationManager.AppSettings["appCastUrl"])
                    ? "http://lstratman.github.io/EasyConnect/updates/EasyConnect.xml"
                    : ConfigurationManager.AppSettings["appCastUrl"]);
            _sparkle.ApplicationWindowIcon = Icon;
            _sparkle.ApplicationIcon = Icon.ToBitmap();

            _sparkle.StartLoop(true, true);
            }
        }
Esempio n. 11
0
        /// <summary>
        /// Initialize the controller.
        /// </summary>
        /// <param name="firstRun">Whether it is the first time that CmisSync is being run.</param>
        public virtual void Initialize(Boolean firstRun)
        {
            this.firstRun = firstRun;

            // Create the CmisSync folder and add it to the bookmarks
            bool syncFolderCreated = CreateCmisSyncFolder();

            if (syncFolderCreated)
            {
                //Dont add bookmark for Oris4
                AddToBookmarks();
            }

            if (firstRun)
            {
                ConfigManager.CurrentConfig.Notifications = true;
            }

            folderLock = new FolderLock(FoldersPath);

            autoUpdater = new Sparkle("http://update.oris4.com/versioninfo.xml")
            {
                //ShowDiagnosticWindow = true,
                //EnableSystemProfiling = true,
                //SystemProfileUrl = new Uri("http://update.oris4.com/profile.html"),
            };

            autoUpdater.StartLoop(true, true);
        }