private void Browse_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     Commands.CanExecute(null, sender, e);
 }
 private void Unos_Enabled_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = ((_err == 0) && (ime != null) && (oznaka != null) && (!ime.Equals("")) && (!oznaka.Equals("")));
     e.Handled    = true;
 }
Exemple #3
0
 private void MoveDownCanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = iRightMouseSelectedItem != null &&
                    PlaylistMoveDown != null;
     e.Handled = true;
 }
Exemple #4
0
 private void DeleteCanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = SelectedItems().Count > 0;
     e.Handled    = true;
 }
 private void Play_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = State != GalleryState.Play && _files.Any();
 }
 private void Stop_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = State != GalleryState.Stop;
 }
 private void AddPointCanExecute(object target, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = AddPointCanExecute(e.Parameter);
 }
Exemple #8
0
 private void ExpandCommand_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = mDiagramChildren.Any();
 }
 private void SearchCommandBinding_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = isDirty;
 }
 private void ChangeModeCanExecute(object target, CanExecuteRoutedEventArgs e)
 {
     e.Handled = ChangeModeCanExecute(e.Parameter);
 }
Exemple #11
0
 private void Update_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = _newRelease != null;
 }
Exemple #12
0
        private void CanExecuteOpenUrlCommand(object sender, CanExecuteRoutedEventArgs e)
        {
            var news = SelectedMessages;

            e.CanExecute = news.Count() == 1 && SelectedMessage.Url != null;
        }
Exemple #13
0
 private void CanExecuteRequestStoryCommand(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = NewsProvider != null && SelectedMessages.Any(n => n.Story.IsEmpty());
 }
 private void CommandBinding_NewAuthorCanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = true;
 }
 private void CanExecuteShareCommand(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = DiagramPanel != null;
 }
 private void SaveAsCommand_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     // activate once data has been entered by user
     e.CanExecute = hasChanged;
 }
 private void CanExecuteExportCommand(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = true;
 }
Exemple #18
0
 private void CollapseCommand_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = IsExpanded;
 }
 private void CanExecuteAddCompositionCommand(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = true;
 }
 private void Pause_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = State == GalleryState.Play;
 }
 private void CanExecuteCombineToCompositionCommand(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = DiagramPanel != null && DiagramPanel.SelectedElements.Count() > 1;
 }
Exemple #22
0
 private void Command_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = true;
 }
 private void CanExecuteEditCompositionCommand(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = DiagramPanel != null && DiagramPanel.PaletteElement is CompositionDiagramElement;
 }
Exemple #24
0
 private void SaveCanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = lstPlaylist.Items.Count > 0;
     e.Handled    = true;
 }
 private void LogoutBinding_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = Endpoint.IsEnabled;
     e.Handled    = true;
 }
Exemple #26
0
 private void DetailsCanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = iRightMouseSelectedItem != null;
     e.Handled    = true;
 }
 private void ViewIncomingCallsBinding_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = Endpoint.AvInvites.Count > 0;
 }
Exemple #28
0
 private void ShowFilter_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = this.gridFilter.Visibility != Visibility.Visible;
 }
 private void SaveCommand_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     // activate once project has been saved once with Save As
     e.CanExecute = canSave;
 }
 /// Allows a Command to execute if the CommandParameter is not a null value
 public static void CanExecuteIfParameterIsNotNull(object sender, CanExecuteRoutedEventArgs e){
     e.CanExecute = e.Parameter != null;
     e.Handled = true;
 }
Exemple #31
0
 private static void OnCanExecuteExportToPDF(object sender, CanExecuteRoutedEventArgs args)
 {
     args.CanExecute = true;
 }