Beispiel #1
0
        /// <summary>Setter for property HL7Version.</summary>
        /// <param name="HL7Version">New value of property HL7Version.
        ///
        /// </param>
        /// <throws>  PropertyVetoException </throws>
        public virtual void  setHL7Version(System.String HL7Version)
        {
            System.String oldHL7Version = this.HL7Version;
            SupportClass.PropertyChangingEventArgs ve77 = new SupportClass.PropertyChangingEventArgs("HL7Version", oldHL7Version, HL7Version);


            this.HL7Version = HL7Version;
            SupportClass.PropertyChangingEventArgs me77 = new SupportClass.PropertyChangingEventArgs("HL7Version", oldHL7Version, HL7Version);
        }
Beispiel #2
0
        /// <summary>Setter for property HL7OID.</summary>
        /// <param name="HL7OID">New value of property HL7OID.
        ///
        /// </param>
        /// <throws>  PropertyVetoException </throws>
        public virtual void  setHL7OID(System.String HL7OID)
        {
            System.String oldHL7OID = this.HL7OID;
            SupportClass.PropertyChangingEventArgs ve81 = new SupportClass.PropertyChangingEventArgs("HL7OID", oldHL7OID, HL7OID);


            this.HL7OID = HL7OID;
            SupportClass.PropertyChangingEventArgs me81 = new SupportClass.PropertyChangingEventArgs("HL7OID", oldHL7OID, HL7OID);
        }
Beispiel #3
0
 /// <summary>Setter for property HL7OID.</summary>
 /// <param name="HL7OID">New value of property HL7OID.
 ///
 /// </param>
 /// <throws>  ProfileException </throws>
 public virtual void  setHL7OID(System.String HL7OID)
 {
     System.String oldHL7OID = this.HL7OID;
     try
     {
         SupportClass.PropertyChangingEventArgs ve68 = new SupportClass.PropertyChangingEventArgs("HL7OID", oldHL7OID, HL7OID);
     }
     catch (System.Exception e)
     {
         throw new NuGenProfileException(null, e);
     }
     this.HL7OID = HL7OID;
     SupportClass.PropertyChangingEventArgs me68 = new SupportClass.PropertyChangingEventArgs("HL7OID", oldHL7OID, HL7OID);
 }
Beispiel #4
0
 /// <summary>Setter for property HL7Version.</summary>
 /// <param name="HL7Version">New value of property HL7Version.
 ///
 /// </param>
 /// <throws>  ProfileException </throws>
 public virtual void  setHL7Version(System.String HL7Version)
 {
     System.String oldHL7Version = this.HL7Version;
     try
     {
         SupportClass.PropertyChangingEventArgs ve64 = new SupportClass.PropertyChangingEventArgs("HL7Version", oldHL7Version, HL7Version);
     }
     catch (System.Exception e)
     {
         throw new NuGenProfileException(null, e);
     }
     this.HL7Version = HL7Version;
     SupportClass.PropertyChangingEventArgs me64 = new SupportClass.PropertyChangingEventArgs("HL7Version", oldHL7Version, HL7Version);
 }
Beispiel #5
0
        public virtual void  propertyChange(System.Object event_sender, SupportClass.PropertyChangingEventArgs ev)
        {
            bool update = false;

            System.String prop = ev.PropertyName;

            if ("directoryChanged".Equals(prop))
            // changed directory, do nothing much
            {
                file   = null;
                update = true;
            }
            else if ("SelectedFilesChangedProperty".Equals(prop))
            // file just got selected
            {
                file   = (System.IO.FileInfo)ev.NewValue;
                update = true;
            }

            if (update)
            {
                thumbnail = null;
                Molecule mol = null;
                if (file != null && System.IO.File.Exists(file.FullName))
                {
                    try
                    {
                        //UPGRADE_TODO: Constructor 'java.io.FileInputStream.FileInputStream' was converted to 'System.IO.FileStream.FileStream' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioFileInputStreamFileInputStream_javaioFile'"
                        System.IO.FileStream istr = new System.IO.FileStream(file.FullName, System.IO.FileMode.Open, System.IO.FileAccess.Read);
                        mol = MoleculeStream.ReadUnknown(istr);
                        istr.Close();
                    }
                    catch (System.IO.IOException)
                    {
                        mol = null;
                    }
                }
                if (mol == null)
                {
                    mol = new Molecule();
                }
                Replace(mol);
                ScaleToFit();
                if (Visible)
                {
                    //UPGRADE_TODO: Method 'java.awt.Component.repaint' was converted to 'System.Windows.Forms.Control.Refresh' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtComponentrepaint'"
                    Refresh();
                }
            }
        }
Beispiel #6
0
        /// <summary>Indexed setter for property encodings.</summary>
        /// <param name="index">Index of the property.
        /// </param>
        /// <param name="encodings">New value of the property at <CODE>index</CODE>.
        ///
        /// </param>
        /// <throws>  PropertyVetoException </throws>
        public virtual void  setEncodings(int index, Encoding encodings)
        {
            Encoding oldEncodings = this.encodings[index];

            this.encodings[index] = encodings;
            try
            {
                SupportClass.PropertyChangingEventArgs ve73 = new SupportClass.PropertyChangingEventArgs("encodings", null, null);
            }
            catch (System.ArgumentOutOfRangeException vetoException)
            {
                this.encodings[index] = oldEncodings;
                throw vetoException;
            }
            SupportClass.PropertyChangingEventArgs me73 = new SupportClass.PropertyChangingEventArgs("encodings", null, null);
        }
        /// <summary>Indexed setter for property dataValues.</summary>
        /// <param name="index">Index of the property.
        /// </param>
        /// <param name="dataValues">New value of the property at <CODE>index</CODE>.
        ///
        /// </param>
        /// <throws>  ProfileException </throws>
        public virtual void  setDataValues(int index, DataValue dataValue)
        {
            extendDataValuesList(index);
            DataValue oldDataValues = this.dataValues[index];

            this.dataValues[index] = dataValue;
            try
            {
                SupportClass.PropertyChangingEventArgs ve11 = new SupportClass.PropertyChangingEventArgs("dataValues", null, null);
            }
            catch (System.ArgumentOutOfRangeException vetoException)
            {
                this.dataValues[index] = oldDataValues;
                throw new NuGenProfileException(null, vetoException);
            }
            SupportClass.PropertyChangingEventArgs me11 = new SupportClass.PropertyChangingEventArgs("dataValues", null, null);
        }
        /// <summary>Indexed setter for property structure.  Lengthens child list if necessary.  </summary>
        /// <param name="index">Index of the property (starts at 1 following HL7 convention).
        /// </param>
        /// <param name="structure">New value of the property at <CODE>index</CODE>.
        ///
        /// </param>
        /// <throws>  ProfileException </throws>
        public virtual void  setChild(int index, ProfileStructure structure)
        {
            index--;
            extendChildList(index);
            ProfileStructure oldStructure = this.children[index];

            this.children[index] = structure;
            try
            {
                SupportClass.PropertyChangingEventArgs ve21 = new SupportClass.PropertyChangingEventArgs("structure", null, null);
            }
            catch (System.ArgumentOutOfRangeException vetoException)
            {
                this.children[index] = oldStructure;
                throw new NuGenProfileException(null, vetoException);
            }
            SupportClass.PropertyChangingEventArgs me21 = new SupportClass.PropertyChangingEventArgs("structure", null, null);
        }
Beispiel #9
0
        /// <summary>Indexed setter for property components (index starts at 1 following HL7 convention).</summary>
        /// <param name="index">Index of the property (starts at 1 following HL7 convention).
        /// </param>
        /// <param name="component">New value of the property at <CODE>index</CODE>.
        ///
        /// </param>
        /// <throws>  ProfileException </throws>
        public virtual void  setComponent(int index, Component component)
        {
            index--;
            extendChildList(index);
            Component oldComponent = this.components[index];

            this.components[index] = component;
            try
            {
                SupportClass.PropertyChangingEventArgs ve27 = new SupportClass.PropertyChangingEventArgs("components", null, null);
            }
            catch (System.ArgumentOutOfRangeException vetoException)
            {
                this.components[index] = oldComponent;
                throw new NuGenProfileException(null, vetoException);
            }
            SupportClass.PropertyChangingEventArgs me27 = new SupportClass.PropertyChangingEventArgs("components", null, null);
        }
Beispiel #10
0
        /// <summary>Indexed setter for property field (index starts at 1 following HL7 convention).</summary>
        /// <param name="index">Index of the property (starts at 1 following HL7 convention).
        /// </param>
        /// <param name="field">New value of the property at <CODE>index</CODE>.
        ///
        /// </param>
        /// <throws>  ProfileException </throws>
        public virtual void  setField(int index, Field field)
        {
            index--;
            extendChildList(index);
            Field oldField = this.fields[index];

            this.fields[index] = field;
            try
            {
                SupportClass.PropertyChangingEventArgs ve32 = new SupportClass.PropertyChangingEventArgs("fields", null, null);
            }
            catch (System.ArgumentOutOfRangeException vetoException)
            {
                this.fields[index] = oldField;
                throw new NuGenProfileException(null, vetoException);
            }
            SupportClass.PropertyChangingEventArgs me32 = new SupportClass.PropertyChangingEventArgs("fields", null, null);
        }
Beispiel #11
0
		/// <summary>Indexed setter for property components (index starts at 1 following HL7 convention).</summary>
		/// <param name="index">Index of the property (starts at 1 following HL7 convention).
		/// </param>
		/// <param name="component">New value of the property at <CODE>index</CODE>.
		/// 
		/// </param>
		/// <throws>  ProfileException </throws>
		public virtual void  setSubComponent(int index, SubComponent component)
		{
			index--;
			extendChildList(index);
			SubComponent oldComponent = this.components[index];
			this.components[index] = component;
			try
			{
				SupportClass.PropertyChangingEventArgs ve22 = new SupportClass.PropertyChangingEventArgs("components", null, null);


			}
			catch (System.ArgumentOutOfRangeException vetoException)
			{
				this.components[index] = oldComponent;
				throw new NuGenProfileException(null, vetoException);
			}
			SupportClass.PropertyChangingEventArgs me22 = new SupportClass.PropertyChangingEventArgs("components", null, null);


		}
		/// <summary>Indexed setter for property structure.  Lengthens child list if necessary.  </summary>
		/// <param name="index">Index of the property (starts at 1 following HL7 convention).
		/// </param>
		/// <param name="structure">New value of the property at <CODE>index</CODE>.
		/// 
		/// </param>
		/// <throws>  ProfileException </throws>
		public virtual void  setChild(int index, ProfileStructure structure)
		{
			index--;
			extendChildList(index);
			ProfileStructure oldStructure = this.children[index];
			this.children[index] = structure;
			try
			{
				SupportClass.PropertyChangingEventArgs ve21 = new SupportClass.PropertyChangingEventArgs("structure", null, null);


			}
			catch (System.ArgumentOutOfRangeException vetoException)
			{
				this.children[index] = oldStructure;
				throw new NuGenProfileException(null, vetoException);
			}
			SupportClass.PropertyChangingEventArgs me21 = new SupportClass.PropertyChangingEventArgs("structure", null, null);


		}
		/// <summary>Setter for property HL7OID.</summary>
		/// <param name="HL7OID">New value of property HL7OID.
		/// 
		/// </param>
		/// <throws>  ProfileException </throws>
		public virtual void  setHL7OID(System.String HL7OID)
		{
			System.String oldHL7OID = this.HL7OID;
			try
			{
				SupportClass.PropertyChangingEventArgs ve68 = new SupportClass.PropertyChangingEventArgs("HL7OID", oldHL7OID, HL7OID);


			}
			catch (System.Exception e)
			{
				throw new NuGenProfileException(null, e);
			}
			this.HL7OID = HL7OID;
			SupportClass.PropertyChangingEventArgs me68 = new SupportClass.PropertyChangingEventArgs("HL7OID", oldHL7OID, HL7OID);


		}
		/// <summary>Indexed setter for property encodings.</summary>
		/// <param name="index">Index of the property.
		/// </param>
		/// <param name="encodings">New value of the property at <CODE>index</CODE>.
		/// 
		/// </param>
		/// <throws>  PropertyVetoException </throws>
		public virtual void  setEncodings(int index, Encoding encodings)
		{
			Encoding oldEncodings = this.encodings[index];
			this.encodings[index] = encodings;
			try
			{
				SupportClass.PropertyChangingEventArgs ve73 = new SupportClass.PropertyChangingEventArgs("encodings", null, null);


			}
			catch (System.ArgumentOutOfRangeException vetoException)
			{
				this.encodings[index] = oldEncodings;
				throw vetoException;
			}
			SupportClass.PropertyChangingEventArgs me73 = new SupportClass.PropertyChangingEventArgs("encodings", null, null);


		}
		/// <summary>Setter for property HL7Version.</summary>
		/// <param name="HL7Version">New value of property HL7Version.
		/// 
		/// </param>
		/// <throws>  PropertyVetoException </throws>
		public virtual void  setHL7Version(System.String HL7Version)
		{
			System.String oldHL7Version = this.HL7Version;
			SupportClass.PropertyChangingEventArgs ve77 = new SupportClass.PropertyChangingEventArgs("HL7Version", oldHL7Version, HL7Version);


			this.HL7Version = HL7Version;
			SupportClass.PropertyChangingEventArgs me77 = new SupportClass.PropertyChangingEventArgs("HL7Version", oldHL7Version, HL7Version);


		}
Beispiel #16
0
		/// <summary>Indexed setter for property field (index starts at 1 following HL7 convention).</summary>
		/// <param name="index">Index of the property (starts at 1 following HL7 convention).
		/// </param>
		/// <param name="field">New value of the property at <CODE>index</CODE>.
		/// 
		/// </param>
		/// <throws>  ProfileException </throws>
		public virtual void  setField(int index, Field field)
		{
			index--;
			extendChildList(index);
			Field oldField = this.fields[index];
			this.fields[index] = field;
			try
			{
				SupportClass.PropertyChangingEventArgs ve32 = new SupportClass.PropertyChangingEventArgs("fields", null, null);


			}
			catch (System.ArgumentOutOfRangeException vetoException)
			{
				this.fields[index] = oldField;
				throw new NuGenProfileException(null, vetoException);
			}
			SupportClass.PropertyChangingEventArgs me32 = new SupportClass.PropertyChangingEventArgs("fields", null, null);


		}
		/// <summary>Setter for property HL7Version.</summary>
		/// <param name="HL7Version">New value of property HL7Version.
		/// 
		/// </param>
		/// <throws>  ProfileException </throws>
		public virtual void  setHL7Version(System.String HL7Version)
		{
			System.String oldHL7Version = this.HL7Version;
			try
			{
				SupportClass.PropertyChangingEventArgs ve64 = new SupportClass.PropertyChangingEventArgs("HL7Version", oldHL7Version, HL7Version);


			}
			catch (System.Exception e)
			{
				throw new NuGenProfileException(null, e);
			}
			this.HL7Version = HL7Version;
			SupportClass.PropertyChangingEventArgs me64 = new SupportClass.PropertyChangingEventArgs("HL7Version", oldHL7Version, HL7Version);


		}
		/// <summary>Setter for property HL7OID.</summary>
		/// <param name="HL7OID">New value of property HL7OID.
		/// 
		/// </param>
		/// <throws>  PropertyVetoException </throws>
		public virtual void  setHL7OID(System.String HL7OID)
		{
			System.String oldHL7OID = this.HL7OID;
			SupportClass.PropertyChangingEventArgs ve81 = new SupportClass.PropertyChangingEventArgs("HL7OID", oldHL7OID, HL7OID);


			this.HL7OID = HL7OID;
			SupportClass.PropertyChangingEventArgs me81 = new SupportClass.PropertyChangingEventArgs("HL7OID", oldHL7OID, HL7OID);


		}