public static bool ShowDialog(DialogSourceViewModel model, out string menuResult)
        {
            menuResult = "0";
            var viewService = IoC.Instance.Resolve <IViewService>();

            if (viewService.ShowDialogWindow(model, false) != true)
            {
                return(false);
            }

            if (model.Fields != null)
            {
                foreach (var field in model.Fields)
                {
                    if (!model.ContainsKey(field.Name))
                    {
                        continue;
                    }

                    var value = model[field.Name];
                    if (!Equals(field.Value, value))
                    {
                        field.Value = value;
                    }
                }
            }

            menuResult = string.Format("1{0}", string.IsNullOrEmpty(model.MenuResult) ? string.Empty : model.MenuResult);
            return(true);
        }