private void OnNotifyInvalidCredentials(SyncViewModel conf) { if (NotifyInvalidCredentials != null) { NotifyInvalidCredentials(this, new NotifyInvalidCredentialsEventArgs(conf)); } }
internal bool?ShowDialog(SyncViewModel viewModel) { this.viewModel = viewModel; DataContext = this; DocLibs = new List <string>(viewModel.DocumentLibrary.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries)); return(ShowDialog()); }
internal bool?ShowNewConfigDialog() { _viewModel = new SyncViewModel(new SyncConfiguration()); DataContext = _viewModel; return(ShowDialog()); }
internal bool?ShowDialog(SyncViewModel conf) { _viewModel = conf; DataContext = _viewModel; return(ShowDialog()); }
internal bool?ShowDialog(SyncViewModel conf) { if (conf == null) { _viewModel = new SyncViewModel(new SyncConfiguration()); _isNewConfig = true; } else { _isNewConfig = false; _viewModel = conf; _oldLibrary = _viewModel.DocumentLibrary; _oldDirection = _viewModel.Direction; } DataContext = _viewModel; textBoxPassword.Password = _viewModel.Password; return(ShowDialog()); }
public NotifyInvalidCredentialsEventArgs(SyncViewModel configuration) { this.SyncConfiguration = configuration; }
internal void AddOrUpdateConfiguration(SyncViewModel configuration) { AddOrUpdateConfiguration(configuration.SyncConfiguration); }