示例#1
0
 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());
        }
示例#3
0
        internal bool?ShowNewConfigDialog()
        {
            _viewModel = new SyncViewModel(new SyncConfiguration());

            DataContext = _viewModel;

            return(ShowDialog());
        }
示例#4
0
        internal bool?ShowDialog(SyncViewModel conf)
        {
            _viewModel = conf;

            DataContext = _viewModel;

            return(ShowDialog());
        }
示例#5
0
        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());
        }
示例#6
0
 public NotifyInvalidCredentialsEventArgs(SyncViewModel configuration)
 {
     this.SyncConfiguration = configuration;
 }
示例#7
0
 internal void AddOrUpdateConfiguration(SyncViewModel configuration)
 {
     AddOrUpdateConfiguration(configuration.SyncConfiguration);
 }