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); }
public frmIssues(CloudService mezeoFileCloud, frmSyncManager manager) { InitializeComponent(); syncmanager = manager; dbHandler = new DbHandler(); ClearInfoLabels(); cMezeoFileCloud = mezeoFileCloud; }
public StructureDownloader(Queue<LocalItemDetails> queue, ThreadLockObject lockObject, string rootContainerUrl, CloudService fileCloud) { LogWrapper.LogMessage("StructureDownloader - Constructor", "Enter"); //this.queue = queue; //this.lockObject = lockObject; cRootContainerUrl = rootContainerUrl; cFileCloud = fileCloud; dbhandler.OpenConnection(); LogWrapper.LogMessage("StructureDownloader - Constructor Call", "Content Url: " + rootContainerUrl); LogWrapper.LogMessage("StructureDownloader - Constructor", "Leave"); }
public frmSyncManager(CloudService mezeoFileCloud, LoginDetails loginDetails, NotificationManager notificationManager) { InitializeComponent(); cMezeoFileCloud = mezeoFileCloud; cMezeoFileCloud.fileCloud.downloadStoppedEvent += new MezeoFileCloud.FileDownloadStoppedEvent(cMezeoFileCloud_downloadStoppedEvent); cMezeoFileCloud.fileCloud.uploadStoppedEvent += new MezeoFileCloud.FileUploadStoppedEvent(cMezeoFileCloud_uploadStoppedEvent); cLoginDetails = loginDetails; cnotificationManager = notificationManager; LoadResources(); watcher = new Watcher(BasicInfo.SyncDirPath); EventQueue.WatchCompletedEvent += new EventQueue.WatchCompleted(queue_WatchCompletedEvent); CheckForIllegalCrossThreadCalls = false; watcher.StartMonitor(); dbHandler = new DbHandler(); dbHandler.OpenConnection(); frmIssuesFound = new frmIssues(mezeoFileCloud, this); offlineWatcher = new OfflineWatcher(dbHandler); myDelegate = new MezeoFileSupport.CallbackIncrementProgress(this.CallbackSyncProgress); ContinueRunningDelegate = new MezeoFileSupport.CallbackContinueRunning(this.CallbackContinueRun); }