Changeset 2690


Ignore:
Timestamp:
Feb 14, 2011, 7:53:36 PM (11 years ago)
Author:
Tim Podeszwa
Message:

quickwatchpresentation modified, animation bug fixed

Location:
trunk/CrypPlugins/WebService
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WebService/DecryptionAnimation.cs

    r2687 r2690  
    555555        public void fillEncryptedDataTreeviewElements()
    556556        {
    557             this.findItems((TreeViewItem)this.presentation.SoapInputItem.Items[0], "xenc:EncryptedKey");
    558 
    559             this.initializeAnimation();
    560            
     557            if (this.presentation.SoapInputItem != null && this.presentation.SoapInputItem.Items.Count > 0)
     558            {
     559                this.findItems((TreeViewItem)this.presentation.SoapInputItem.Items[0], "xenc:EncryptedKey");
     560
     561                this.initializeAnimation();
     562            } 
    561563        }
    562564        public TreeViewItem findItems(TreeViewItem item, string bezeichner)
  • trunk/CrypPlugins/WebService/WebService.cs

    r2687 r2690  
    122122        }
    123123
    124         [PropertyInfo(Direction.OutputData, "WSDL output", "Web Service Description", null)]
     124        [PropertyInfo(Direction.OutputData, "WSDL output", "Web Service Description", "", false, false, QuickWatchFormat.Text, "WsdlConverter")]
    125125        public XmlDocument Wsdl
    126126        {
     
    210210        }
    211211
    212         public Object XmlConverter(Object Data)
    213         {
    214             XmlDocument doc = (XmlDocument)this._inputDocument;
    215             StringWriter stringWriter = new StringWriter();
    216             Object obj = new Object();
    217             try
    218             {
    219                 XmlTextWriter xmlWriter = new XmlTextWriter(stringWriter);
    220                 xmlWriter.Formatting = Formatting.Indented;
    221                 doc.WriteContentTo(xmlWriter);
    222                 obj = (Object)stringWriter.ToString();
    223             }
    224             catch (Exception e)
    225             {
    226                 Console.WriteLine(e.ToString());
    227 
    228             }
    229 
    230             return obj;
     212        public Object WsdlConverter(Object Data)
     213        {
     214           
     215            if (this._wsdlDocument != null)
     216            {
     217                XmlDocument doc = (XmlDocument)this._wsdlDocument;
     218                StringWriter stringWriter = new StringWriter();
     219                Object obj = new Object();
     220                try
     221                {
     222                    XmlTextWriter xmlWriter = new XmlTextWriter(stringWriter);
     223                    xmlWriter.Formatting = Formatting.Indented;
     224                    doc.WriteContentTo(xmlWriter);
     225                    obj = (Object)stringWriter.ToString();
     226                }
     227                catch (Exception e)
     228                {
     229                    Console.WriteLine(e.ToString());
     230
     231                }
     232                return obj;
     233            }
     234            return null;
     235
    231236        }
    232237        #endregion
  • trunk/CrypPlugins/WebService/WebServicePresentation.xaml.cs

    r2687 r2690  
    11011101        private void button1_Click_3(object sender, RoutedEventArgs e)
    11021102        {
    1103             this._animationController.InitializeAnimation();
    1104             this.button1.IsEnabled = false;
     1103            if (this._soapInputItem != null && this._soapInputItem.Items.Count>0)
     1104            {
     1105                this._animationController.InitializeAnimation();
     1106                this.button1.IsEnabled = false;
     1107            }
     1108           
    11051109
    11061110        }
Note: See TracChangeset for help on using the changeset viewer.