private void IamgeMouseLeftButtonDownEventHandler(object sender, MouseButtonEventArgs e) { ClearBoxes(_securedSoapItem); if (!animationRunning) { _namespacesTable.Clear(); Image img = (Image)sender; string name = img.Name; string[] splitter = name.Split(new char[] { '_' }); if (splitter.Length > 1) { name = splitter[0] + ":" + splitter[1]; } else { name = splitter[0]; } XmlElement[] array = new XmlElement[1]; array[0] = (XmlElement)_soap.SecuredSoap.GetElementsByTagName(name)[0]; _soap.AddIdToElement(name); if (_soap.GotKey) { _soap.EncryptElements(array); if (!_soap.GetIsShowEncryptionsSteps()) { _soap.ShowSecuredSoap(); } else { _encryptionAnimator = new EncryptionAnimator(ref this.treeView, ref _soap); _encryptionAnimator.startAnimation(array); animationRunning = true; } } else { _soap.CreateErrorMessage("No key for encryption available. Create one in a Web Service Plugin"); } } }