Skip to content

Commit

Permalink
resolve build errors due to unregenerated Messages.Designer.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
borzel committed May 11, 2019
1 parent a270f87 commit 4cd256f
Show file tree
Hide file tree
Showing 3 changed files with 4,775 additions and 4,694 deletions.
6 changes: 3 additions & 3 deletions XenAdmin/Commands/PauseVMCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ protected override string ConfirmationDialogHelpId
get { return "WarningVmLifeCyclePause"; }
}

protected override string GetCantExecuteReasonCore(SelectedItem item)
protected override string GetCantExecuteReasonCore(IXenObject item)
{
VM vm = item.XenObject as VM;
VM vm = item as VM;
if (vm == null)
return base.GetCantExecuteReasonCore(item);

Expand All @@ -194,7 +194,7 @@ protected override string GetCantExecuteReasonCore(SelectedItem item)
return GetCantExecuteNoToolsOrDriversReasonCore(item) ?? base.GetCantExecuteReasonCore(item);
}

protected override CommandErrorDialog GetErrorDialogCore(IDictionary<SelectedItem, string> cantExecuteReasons)
protected override CommandErrorDialog GetErrorDialogCore(IDictionary<IXenObject, string> cantExecuteReasons)
{
foreach (VM vm in GetSelection().AsXenObjects<VM>())
{
Expand Down
6 changes: 3 additions & 3 deletions XenAdmin/Commands/UnPauseVMCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ protected override string ConfirmationDialogHelpId
get { return "WarningVmLifeCyclePause"; }
}

protected override string GetCantExecuteReasonCore(SelectedItem item)
protected override string GetCantExecuteReasonCore(IXenObject item)
{
VM vm = item.XenObject as VM;
VM vm = item as VM;
if (vm == null)
return base.GetCantExecuteReasonCore(item);

Expand All @@ -203,7 +203,7 @@ protected override string GetCantExecuteReasonCore(SelectedItem item)
return GetCantExecuteNoToolsOrDriversReasonCore(item) ?? base.GetCantExecuteReasonCore(item);
}

protected override CommandErrorDialog GetErrorDialogCore(IDictionary<SelectedItem, string> cantExecuteReasons)
protected override CommandErrorDialog GetErrorDialogCore(IDictionary<IXenObject, string> cantExecuteReasons)
{
foreach (VM vm in GetSelection().AsXenObjects<VM>())
{
Expand Down
Loading

0 comments on commit 4cd256f

Please sign in to comment.