protected void OnPasteGridCommand() { var vmList = new List <ISgMutantProfileVm>(); try { var clipboardLines = Clipboard.GetText().Split("\n".ToCharArray()); foreach (var line in clipboardLines.Where(t => !String.IsNullOrEmpty(t))) { vmList.Add(SgMutantProfileVm.ToSgMutantProfileVm(null)); } } catch (Exception) { MessageBox.Show("cant parse data on clipboard"); return; } SgMutantProfileVms.AddMany(vmList); }
bool CanClearGridCommand() { return(SgMutantProfileVms.Any()); }
protected void OnClearGridCommand() { SgMutantProfileVms.Clear(); }