예제 #1
0
        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);
        }
예제 #2
0
 bool CanClearGridCommand()
 {
     return(SgMutantProfileVms.Any());
 }
예제 #3
0
 protected void OnClearGridCommand()
 {
     SgMutantProfileVms.Clear();
 }