Ejemplo n.º 1
0
        private void CanUploadFillRule(object sender, System.Windows.Input.CanExecuteRoutedEventArgs e)
        {
            Windows.DependencyObject d       = sender as Windows.DependencyObject;
            RuleFileManager          manager = (d == null ? null : d.GetValue(Windows.FrameworkElement.DataContextProperty) as RuleFileManager);

            e.CanExecute = manager != null && manager.IsUploading == false;
        }
Ejemplo n.º 2
0
        private static void CanOpenAppFile(object sender, System.Windows.Input.CanExecuteRoutedEventArgs e)
        {
            Windows.DependencyObject d       = sender as Windows.DependencyObject;
            AppFileManager           manager = (d == null ? null : d.GetValue(Windows.FrameworkElement.DataContextProperty) as AppFileManager);
            AppFileInfo file = e.Parameter as AppFileInfo;

            e.CanExecute = file != null && manager != null && manager.IsUploading == false;
        }
Ejemplo n.º 3
0
        private void CanDeleteAppFiel(object sender, System.Windows.Input.CanExecuteRoutedEventArgs e)
        {
            AppFileInfo file = e.Parameter as AppFileInfo;

            e.CanExecute = file != null && (file.Status == FileStatus.Uploaded || file.Status == FileStatus.Update);
        }