Exemple #1
0
        private static void HandleNewerVersion(VCNewerVersionException e)
        {
            DebugLog.Log(e.ErrorMessage);
            var dialog = CustomDialogs.CreateExceptionDialog("Newer Version", "There is a newer version of the file and need to update first and then try again", e);

            dialog.AddButton("Update", () => { VCCommands.Instance.UpdateTask(); dialog.Close(); });
            dialog.ShowUtility();
        }
        private static void HandleNewerVersion(VCNewerVersionException e)
        {
            var answer = UserDialog.DisplayDialog("Newer Version", "There is a newer version of the file on the server so you need to 'Update' first and then try again", "Update", "Cancel");

            if (answer)
            {
                VCCommands.Instance.UpdateTask();
            }
        }