Exemplo n.º 1
0
        private void ExeucteChangeSubscribeCommand(string oldAcceptDirectory)
        {
            var subscribe    = SubscribeCollection.First(s => s.AcceptDirectory == oldAcceptDirectory);
            var selectedPath = IOHelper.Instance.SelectFloder(@"请选择新的接收路径");

            if (!string.IsNullOrEmpty(selectedPath) && selectedPath != oldAcceptDirectory)
            {
                subscribe.AcceptDirectory = selectedPath;
                ConfigHelper.Instance.SaveSettings();
            }
        }