private async void TryAddFile(string pathName) { if (fargs.ContainsKey(pathName)) { await MessageDialog.Info("文件已存在", pathName); return; } else { OperationClerk.TryAdd(pathName); } //ToggleSwitch ts = NewSwitch(pathName); // ProcessListBox.Items.Add(ts); //switchCache[pathName] = ts; }