public MainWindow(SyncCore syncCore) { InitializeComponent(); MaxHeight = SystemParameters.MaximizedPrimaryScreenHeight; MaxWidth = SystemParameters.MaximizedPrimaryScreenWidth; core = syncCore; Settings.LoadAddSettings(); Settings.LoadSyncTasks(); Tasks_ListView.ItemsSource = Settings.SyncTasks; StatusBar.ProgressBar = ProgressBar; StatusBar.ProgressTextBlock = ProgressTextBlock; StatusBar.MessageTextBlock = MessageTextBlock; StatusBar.QuotaTextBlock = Quota_TextBox; StatusBar.CloseStreamButton = CloseStream_Button; StatusBar.StopSyncButton = StopSync_Button; UserServer_TextBlock.Text = Settings.UserServer; ShowRootDir(); timerController = new SyncTimerController(syncCore); timerController.Start(); docViewer.Document = Settings.LoadHelp(); }
public SyncTimerController(SyncCore syncCore) { this.syncCore = syncCore; controlTimer.Interval = interval; controlTimer.Tick += new EventHandler(controlTimer_Tick); }
public CreateTaskDialog(SyncCore syncCore, SyncTask syncTask) : this(syncCore) { localPaths.AddRange(syncTask.LocalPaths); selectedUri = syncTask.ServerDirectoryUri; backupCount = syncTask.BackupCount; syncTimer = syncTask.SyncTimer; LocalPaths_ListBox.Items.Refresh(); SelectedDirName_TexBlock.Text = syncTask.ServerDirName; backupCount = syncTask.BackupCount; }
public CreateTaskDialog(SyncCore syncCore) { InitializeComponent(); MaxHeight = SystemParameters.MaximizedPrimaryScreenHeight; MaxWidth = SystemParameters.MaximizedPrimaryScreenWidth; backupCount = 0; syncTimer = new SyncTimer(); core = syncCore; localPaths = new List <string>(); LocalPaths_ListBox.ItemsSource = localPaths; ShowRootDir(); }
internal static void StopSync(SyncCore syncCore) { syncCore.StopSync(); CloseStream(); HideStopSyncButton(); }