void OnModelChanged(object sender, ModelChangedEventArgs e)
 {
     if (!this._doingReplace)
     {
         // Then the list of matching nodes we found might now be invalid!
         ResetPosition();
     }
 }
Beispiel #2
0
 void OnModelChanged(ModelChangedEventArgs e)
 {
     try
     {
         if (!string.IsNullOrEmpty(_model.FileName))
         {
             var uri = new Uri(_model.FileName);
             if (uri != this.xsltControl.BaseUri)
             {
                 this.xsltControl.BaseUri = uri;
                 this._xsltFiles.BaseUri  = uri;
                 this.OutputFileName.Text = ""; // reset it since the file type might need to change...
                 _userSpecifiedOutput     = false;
             }
         }
         this.SourceFileName.Text = _model.XsltFileName;
     }
     catch (Exception ex)
     {
         Debug.WriteLine("XsltViewer.OnModelChanged exception " + ex.Message);
     }
 }
 void OnModelChanged(object sender, ModelChangedEventArgs e)
 {
     ClearCache();
 }
Beispiel #4
0
 void OnModelChanged(object sender, ModelChangedEventArgs e)
 {
     OnModelChanged(e);
 }
 void OnModelChanged(object sender, ModelChangedEventArgs e)
 {
     // Then the list of matching nodes we found might now be invalid!
     this.list = null;
 }
 void OnModelChanged(object sender, ModelChangedEventArgs e)
 {
     if (e.ModelChangeType == ModelChangeType.Reloaded) {
         this.undoManager.Clear();
         this.taskList.Clear();
     }
     if (e.ModelChangeType == ModelChangeType.BeginBatchUpdate) {
         batch++;
     } else if (e.ModelChangeType == ModelChangeType.EndBatchUpdate) {
         batch--;
     }
     if (batch == 0) OnModelChanged();
 }
 void OnModelChanged(object sender, ModelChangedEventArgs e)
 {
     // Then the list of matching nodes we found might now be invalid!
     this.list = null;
 }
Beispiel #8
0
 void OnModelChanged(object sender, ModelChangedEventArgs e)
 {
     ClearCache();
 }
Beispiel #9
0
 void OnModelChanged(object sender, ModelChangedEventArgs e)
 {
     OnModelChanged();
 }