Exemplo n.º 1
0
 public SizeCounterViewModel(IBusyIndicatorWindow busyIndicatorWindow)
 {
     TargetDirectory   = @"C:\";
     SizeFilterValue   = DefaultFilterSize.ToString(CultureInfo.InvariantCulture);
     HighlightElements = true;
     _BusyWindow       = busyIndicatorWindow;
 }
        public MainWindow()
        {
            InitializeComponent();

            BusyIndicatorWindow = new BusyIndicatorWindow(this);
            ViewModel           = new SizeCounterViewModel(BusyIndicatorWindow);
            DataContext         = ViewModel;
        }
 public SizeCounterViewModel(IBusyIndicatorWindow busyIndicatorWindow)
 {
     TargetDirectory = @"C:\";
     FilterSize      = DefaultFilterSize;
     _BusyWindow     = busyIndicatorWindow;
 }
Exemplo n.º 4
0
 public void TestInit()
 {
     _BusyIndicatorWindowStub = Substitute.For <IBusyIndicatorWindow>();
     _SizeCounterViewModel    = new SizeCounterViewModel(_BusyIndicatorWindowStub);
     InitialElementList();
 }