예제 #1
0
        public void ExcludeSif()
        {
            var enterStringViewModel = new EnterStringViewModel();

            if (IoC.Get <IWindowManager>().ShowDialog(enterStringViewModel) != true)
            {
                return;
            }
            int result;

            if (int.TryParse(enterStringViewModel.Value, out result))
            {
                var str = result.ToString();
                AndFilters.Add(Filter.S1(l => l.Sid != str));
                DoFilter();
            }
            else
            {
                MessageBox.Show("Int is expected!", "Invalid input",
                                MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
예제 #2
0
 public void ExcludeSif()
 {
     var enterStringViewModel = new EnterStringViewModel();
     if (IoC.Get<IWindowManager>().ShowDialog(enterStringViewModel) != true) return;
     int result;
     if (int.TryParse(enterStringViewModel.Value, out result))
     {
         var str = result.ToString();
         AndFilters.Add(Filter.S1(l => l.Sid != str));
         DoFilter();
     }
     else
     {
         MessageBox.Show("Int is expected!", "Invalid input",
             MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }