private void DeleteIMarkableHandler(object sender, ModernizedAlice.ArtOfWords.BizCommon.Model.Event.DeleteIMarkableModelEventArgs arg)
 {
     if (arg.Markable is StoryFrameModel)
     {
         int prevIndex = SelectingIndex;
         StoryFrameModelCollection.Remove(arg.Markable);
         Select(prevIndex);
     }
 }
Пример #2
0
 private void OnIMarkableDeleted(object sender, DeleteIMarkableModelEventArgs arg)
 {
     var storyFrameModel = arg.Markable as StoryFrameModel;
     if (storyFrameModel != null)
     {
         var place = FindPlaceModel(storyFrameModel.PlaceId);
         if (place != null)
         {
             RemoveModel(place);
         }
         return;
     }
 }
 private void EventAggregator_DeleteIMarkableHandler(object sender, DeleteIMarkableModelEventArgs arg)
 {
     OnPropertyChanged("TalkingDataList");
     OnPropertyChanged("ItemDataList");
     ClearChildlen();
 }
 private void OnIMarkableDeleted(object sender, DeleteIMarkableModelEventArgs arg)
 {
     var chara = arg.Markable as CharacterModel;
     if (chara != null)
     {
         RemoveParticipants(chara);
     }
 }
Пример #5
0
 public static void OnDeleteIMarkable(object sender, DeleteIMarkableModelEventArgs e)
 {
     if (DeleteIMarkableHandler != null)
     {
         DeleteIMarkableHandler(sender, e);
     }
 }
        private void OnIMarkableDeleted(object sender, DeleteIMarkableModelEventArgs arg)
        {
            var storyFrameModel = arg.Markable as StoryFrameModel;
            if (storyFrameModel != null)
            {
                RemoveModel(storyFrameModel);
                return;
            }

            var characterModel = arg.Markable as CharacterModel;
            if (characterModel != null)
            {
                RemoveModel(characterModel);
                return;
            }
        }
 private void DeleteIMarkableHandler(object sender, DeleteIMarkableModelEventArgs e)
 {
     if (e.Markable is ItemModel)
     {
         int prevIndex = SelectingIndex;
         ItemModelCollection.Remove(e.Markable);
         Select(prevIndex);
     }
 }
 private void OnIMarkableDeleted(object sender, DeleteIMarkableModelEventArgs arg)
 {
     var characterModel = arg.Markable as CharacterModel;
     if (characterModel == _parent)
     {
         _view.Close();
     }
 }
 private void OnIMarkableDeleted(object sender, DeleteIMarkableModelEventArgs arg)
 {
     var itemModel = arg.Markable as ItemModel;
     if (itemModel == _parent)
     {
         _view.Close();
     }
 }
 private void OnIMarkableDeleted(object sender, DeleteIMarkableModelEventArgs arg)
 {
     var storyFrameModel = arg.Markable as StoryFrameModel;
     if (storyFrameModel == _parent)
     {
         _view.Close();
     }
 }