Skip to content

Commit

Permalink
CP-14647: Intermediate check-in xenserver#4
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Turner committed Nov 8, 2015
1 parent c667e51 commit ce609e3
Show file tree
Hide file tree
Showing 63 changed files with 62 additions and 30,324 deletions.
90 changes: 0 additions & 90 deletions XenAdmin/Actions/SetCslgCredentialsAction.cs

This file was deleted.

136 changes: 0 additions & 136 deletions XenAdmin/Actions/SetCslgCredentialsToPoolAction.cs

This file was deleted.

2 changes: 1 addition & 1 deletion XenAdmin/Commands/DestroySRCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace XenAdmin.Commands
/// <summary>
/// Destroys the selected SRs. Shows a confirmation dialog.
/// </summary>
internal class DestroySRCommand : SRCommand
internal class DestroySRCommand : Command
{
/// <summary>
/// Initializes a new instance of this Command. The parameter-less constructor is required in the derived
Expand Down
6 changes: 0 additions & 6 deletions XenAdmin/Commands/DragDropIntoFolderCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@ private bool DraggedObjectsAreValid()
{
Folder folder = obj as Folder;

// can't put StorageLink objects in folders.
if (obj is IStorageLinkObject)
{
return false;
}

// if all items are already in the target folder then cancel.
if (GetItemsNotAlreadyInTargetFolder().Count == 0)
{
Expand Down
7 changes: 0 additions & 7 deletions XenAdmin/Commands/DragDropTagCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,7 @@ protected override bool CanExecuteCore()
{
// can't tag folders.
if (xenObject is Folder)
{
return false;
}
// can't tag StorageLink objects
if(xenObject is IStorageLinkObject)
{
return false;
}
}

return gt.Grouping.GroupingName == Messages.TAGS && !string.IsNullOrEmpty(gt.Group as string);
Expand Down
2 changes: 1 addition & 1 deletion XenAdmin/Commands/ForgetSRCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace XenAdmin.Commands
/// <summary>
/// Forgets the selected SRs. Shows a confirmation dialog.
/// </summary>
internal class ForgetSRCommand : SRCommand
internal class ForgetSRCommand : Command
{
/// <summary>
/// Initializes a new instance of this Command. The parameter-less constructor is required if
Expand Down
9 changes: 1 addition & 8 deletions XenAdmin/Commands/NewSRCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,7 @@ public NewSRCommand(IMainWindow mainWindow, IXenConnection connection)

protected override void ExecuteCore(SelectedItemCollection selection)
{
if (selection.FirstIsStorageLink)
{
new NewSRWizard(null, null, (IStorageLinkObject)selection[0].XenObject).Show(Parent);
}
else
{
MainWindowCommandInterface.ShowPerConnectionWizard(selection[0].Connection, new NewSRWizard(selection[0].Connection));
}
MainWindowCommandInterface.ShowPerConnectionWizard(selection[0].Connection, new NewSRWizard(selection[0].Connection));
}

private static bool CanExecuteOnHost(Host host)
Expand Down
78 changes: 0 additions & 78 deletions XenAdmin/Commands/SRCommand.cs

This file was deleted.

12 changes: 0 additions & 12 deletions XenAdmin/Commands/SelectedItemCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
using XenAPI;
using XenAdmin.Core;
using XenAdmin.Network;
using XenAdmin.Network.StorageLink;

namespace XenAdmin.Commands
{
Expand Down Expand Up @@ -351,17 +350,6 @@ public bool FirstIsGroup
}
}

/// <summary>
/// Gets a value indicating whether the first item is a StorageLink object.
/// </summary>
public bool FirstIsStorageLink
{
get
{
return First is IStorageLinkObject;
}
}

/// <summary>
/// Gets the connection of first item. If the collection is empty then null is returned.
/// </summary>
Expand Down
Loading

0 comments on commit ce609e3

Please sign in to comment.