Esempio n. 1
0
 /// <summary>
 /// Serves as a hash of this type.
 /// </summary>
 /// <returns>A hash code for the current instance.</returns>
 public override int GetHashCode()
 {
     return
         (ColorSpace.GetHashCode() ^
          CompressionMethod.GetHashCode() ^
          Density.GetHashCode() ^
          FileName.GetHashCode() ^
          Format.GetHashCode() ^
          Height.GetHashCode() ^
          Interlace.GetHashCode() ^
          Width.GetHashCode());
 }
Esempio n. 2
0
 ///<summary>
 /// Serves as a hash of this type.
 ///</summary>
 public override int GetHashCode()
 {
     return
         (ColorSpace.GetHashCode() ^
          CompressionMethod.GetHashCode() ^
          Format.GetHashCode() ^
          Height.GetHashCode() ^
          Interlace.GetHashCode() ^
          ResolutionUnits.GetHashCode() ^
          ResolutionX.GetHashCode() ^
          ResolutionY.GetHashCode() ^
          Width.GetHashCode());
 }
 public static object ShowIndefinite(DeferredObject deferred, string statusMessage, string successMessage, Interlace.ReactorUtilities.VoidDeferred.Failback failback)
 {
     using (DeferredProgressBar form = new DeferredProgressBar())
     {
         form.OperationType = OperationType.MarqueeProgressBar;
         form.StatusMessage = statusMessage;
         form.DeferredObject = deferred;
         if (form.ShowDialog() == DialogResult.OK)
         {
             if (!string.IsNullOrEmpty(successMessage)) MessageBox.Show(successMessage, "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
             return form.SuccessObject;
         }
         else
         {
             failback(form.FailureObject);
             return form.FailureObject;
         }
     }
 }
Esempio n. 4
0
	void Start() {
		comManager = this;
		OpenCom();
		audioSFX = GetComponent<AudioSource>();
		lastAudioState = usingAudio;
	}