public InputErrorEventArgs(InputError error, EditField_DialogEntry entry)
 {
     this.Entry       = entry;
     this.Title       = error.Title;
     this.ErrorCode   = error.ErrorCode;
     this.Description = error.Description;
 }
 private void setError(String title, int errorCode, String description)
 {
     LastError = new InputError
     {
         Title       = title,
         ErrorCode   = errorCode,
         Description = description
     };
     ErrorOccured = true;
 }
 private void setNullError()
 {
     LastError = new InputError
     {
         Title       = "",
         ErrorCode   = ERRORCODE_NULLERROR,
         Description = "NullError"
     };
     ErrorOccured = true;
 }
 private void setNoError(String title)
 {
     LastError = new InputError
     {
         Title       = title,
         ErrorCode   = ERRORCODE_NOERROR,
         Description = "No Error occured"
     };
     ErrorOccured = false;
 }
        internal void logError(InputError error)
        {
            Console.WriteLine("EditField_EventManager InputError:" + error.ToString());

            /*
             * if (shouldBe == null || shouldBe.Equals(String.Empty))
             *  Console.WriteLine("EditField_EventManager InputError:" + error.ToString());
             * else if (!shouldBe.Equals(String.Empty) && (inputIs == null || inputIs.Equals(String.Empty)))
             *  Console.WriteLine("EditField_EventManager InputError:" + error.ToString() + " Should be: " + shouldBe);
             * else
             *  Console.WriteLine("EditField_EventManager InputError:" + error.ToString() + " Should be: " + shouldBe + " Is: " + inputIs);*/
        }
        public void fire_InputError(InputError error, EditField_DialogEntry entry)
        {
            logError(error);

            if (InputErrors != null)
            {
                try
                {
                    InputErrors.Invoke(this, new InputErrorEventArgs(error, entry));
                }
                catch { }
            }
        }