Example #1
0
 protected virtual void OnModified(DocumentPartModifiedEventArgs e)
 {
     if (parent != null)
     {
         parent.OnModified(e);
     }
 }
Example #2
0
 protected override void OnModified(DocumentPartModifiedEventArgs e)
 {
     isModified = true;
     if (Modified != null)
     {
         Modified(this, e);
     }
     base.OnModified(e);
 }
        private void OnAlertsModified(object sender, DocumentPartModifiedEventArgs e)
        {
            if (e.AffectedDocumentPart != null)
            {
                if (e.AffectedDocumentPart.Parent == null)
                {
                    e.AffectedDocumentPart.Parent = this;
                }
            }

            DocumentPartModifiedEventArgs eventArgs;

            if (e.ModificationType == DocumentPartModificationType.ChildDocumentPartsCleared)
            {
                eventArgs = new DocumentPartModifiedEventArgs(this, "Alerts", DocumentPartModificationType.ChildDocumentPartsCleared);
            }
            else
            {
                eventArgs = e;
            }

            OnModified(eventArgs);
        }
Example #4
0
        private void automatedTestsCollectionModifed(object sender, DocumentPartModifiedEventArgs e)
        {
            if (e.AffectedDocumentPart != null)
                if (e.AffectedDocumentPart.Parent == null)
                    e.AffectedDocumentPart.Parent = this;

            DocumentPartModifiedEventArgs eventArgs;

            if (e.ModificationType == DocumentPartModificationType.ChildDocumentPartsCleared)
                eventArgs = new DocumentPartModifiedEventArgs(this, "AutomatedTests", DocumentPartModificationType.ChildDocumentPartsCleared);
            else
                eventArgs = e;

            OnModified(eventArgs);
        }
        private void OnParametersModified(object sender, DocumentPartModifiedEventArgs e)
        {
            if (e.AffectedDocumentPart != null)
                if (e.AffectedDocumentPart.Parent == null)
                    e.AffectedDocumentPart.Parent = this;

            DocumentPartModifiedEventArgs eventArgs;

            if (e.ModificationType == DocumentPartModificationType.ChildDocumentPartsCleared)
                eventArgs = new DocumentPartModifiedEventArgs(this, "Parameters", DocumentPartModificationType.ChildDocumentPartsCleared);
            else
                eventArgs = e;

            OnModified(eventArgs);
        }
Example #6
0
 protected override void OnModified(DocumentPartModifiedEventArgs e)
 {
     isModified = true;
     if (Modified != null) Modified(this, e);
     base.OnModified(e);
 }
 private void OnDocumentModified(object sender, Document.DocumentPartModifiedEventArgs e)
 {
     Text = Document.DocumentManager.ActiveDocument.Title + " - OWASP Tiger";
     propertiesControl1.Refresh();
 }