private void SyncSyncStarting(object sender, Synchronizer.SyncStartingEventArgs e)
 {
     e.Notifier = Terminal.Instance.Client.Notifier;
     e.SyncService = (ISyncService)Terminal.Instance.Session[typeof(ISyncService)].Value;
     e.FileTransferService = (IFileTransfer)Terminal.Instance.Session[typeof(IFileTransfer)].Value;
     e.Modules = Terminal.Instance.Client.ModuleList;
 }
        private void StartSyncronizer()
        {
            _sync = new Synchronizer();
            double milsec;
            using (var conf = new ConfigurationModelManager())
            {
                milsec = _sync.LoadConfiguration(conf, Terminal.Instance.Session);
            }

            Terminal.Instance.Client.Notifier.SetUserMessage(false, string.Format(Resources.SyncEveryFormat, (milsec / 1000) / 60));
            _sync.SyncStarting += SyncSyncStarting;
            _sync.SyncFinished += _sync_SyncFinished;

            Terminal.Instance.Session.Actions[Actions.ExecSync].TryExecute();
        }