public MainForm(SyncSharpLogic logic) { InitializeComponent(); Form.CheckForIllegalCrossThreadCalls = false; _logicController = logic; _syncCaller = new SyncDelegate(_logicController.SyncFolderPair); _analyzeCaller = new AnalyzeDelegate(_logicController.AnalyzeFolderPair); _restoreCaller = new RestoreDelegate(_logicController.RestoreSource); _syncAllCaller = new SyncAllFolderPair(_logicController.SyncAllFolderPairs); _syncAfterAnalyzeCaller = new SyncAfterAnalyzeDelegate(_logicController.SyncAfterAnalyze); _openFolderCaller = new OpenFolderDelegate(OpenFolder); _sourceDir = ""; UpdateListView(); }
public MainForm(SyncSharpLogic logic) { InitializeComponent(); Form.CheckForIllegalCrossThreadCalls = false; _logicController = logic; if (!Directory.Exists(_logicController.MetaDataDir + @"\")) _logicController.SaveProfile(); _syncCaller = new SyncDelegate(_logicController.SyncFolderPair); //_analyzeCaller = new AnalyzeDelegate(_logicController.AnalyzeFolderPair); _restoreCaller = new RestoreDelegate(_logicController.RestoreSource); _listViewCallback = new UpdateListViewDelegate(UpdateListView); _syncAllCaller = new SyncAllFolderPair(_logicController.SyncAllFolderPairs); _syncAfterAnalyzeCaller = new SyncAfterAnalyzeDelegate(_logicController.SyncAfterAnalyze); _sourceDir = ""; UpdateListView(); }