private void ButtonSaveAsDraft_Click(object sender, RoutedEventArgs e)
        {
            if (FormSubmit != null)
            {
                RequireFormEventArgs eventArgs = new RequireFormEventArgs(FormEditorControl.Form, true);

                FormSubmit(this, eventArgs);
            }

            return;
        }
        private void FormValidationCompleted(Object sender, Server.Application.FormSubmitCompletedEventArgs e)
        {
            WindowManager.Window_OnGlobalProgressBarHide(this, null);

            FormValidationGrid.Visibility = Visibility.Collapsed;

            if ((e.Cancelled) || (e.Error != null) || (e.Result == null))
            {
                // TODO: ERROR MESSAGE

                return;
            }

            if (e.Result.Collection.Count > 0)
            {
                FormValidationGrid.ItemsSource = e.Result.Collection;

                FormValidationGrid.Visibility = Visibility.Visible;

                if (ScrollToControl != null)
                {
                    this.Dispatcher.BeginInvoke(delegate { ScrollToControl(FormValidationGrid, new RoutedEventArgs()); });
                }
            }

            else if (FormSubmit != null)
            {
                // TODO: UPDATE FORM WITH NEW FORM DATA

                RequireFormEventArgs eventArgs = new RequireFormEventArgs(FormEditorControl.Form, false);

                FormSubmit(this, eventArgs);
            }

            return;
        }