Skip to content

Commit ce609e3

Browse files
author
Stephen Turner
committed
CP-14647: Intermediate check-in xenserver#4
1 parent c667e51 commit ce609e3

File tree

63 files changed

+62
-30324
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+62
-30324
lines changed

XenAdmin/Actions/SetCslgCredentialsAction.cs

-90
This file was deleted.

XenAdmin/Actions/SetCslgCredentialsToPoolAction.cs

-136
This file was deleted.

XenAdmin/Commands/DestroySRCommand.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace XenAdmin.Commands
4141
/// <summary>
4242
/// Destroys the selected SRs. Shows a confirmation dialog.
4343
/// </summary>
44-
internal class DestroySRCommand : SRCommand
44+
internal class DestroySRCommand : Command
4545
{
4646
/// <summary>
4747
/// Initializes a new instance of this Command. The parameter-less constructor is required in the derived

XenAdmin/Commands/DragDropIntoFolderCommand.cs

-6
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,6 @@ private bool DraggedObjectsAreValid()
7777
{
7878
Folder folder = obj as Folder;
7979

80-
// can't put StorageLink objects in folders.
81-
if (obj is IStorageLinkObject)
82-
{
83-
return false;
84-
}
85-
8680
// if all items are already in the target folder then cancel.
8781
if (GetItemsNotAlreadyInTargetFolder().Count == 0)
8882
{

XenAdmin/Commands/DragDropTagCommand.cs

-7
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,7 @@ protected override bool CanExecuteCore()
6767
{
6868
// can't tag folders.
6969
if (xenObject is Folder)
70-
{
7170
return false;
72-
}
73-
// can't tag StorageLink objects
74-
if(xenObject is IStorageLinkObject)
75-
{
76-
return false;
77-
}
7871
}
7972

8073
return gt.Grouping.GroupingName == Messages.TAGS && !string.IsNullOrEmpty(gt.Group as string);

XenAdmin/Commands/ForgetSRCommand.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace XenAdmin.Commands
4141
/// <summary>
4242
/// Forgets the selected SRs. Shows a confirmation dialog.
4343
/// </summary>
44-
internal class ForgetSRCommand : SRCommand
44+
internal class ForgetSRCommand : Command
4545
{
4646
/// <summary>
4747
/// Initializes a new instance of this Command. The parameter-less constructor is required if

XenAdmin/Commands/NewSRCommand.cs

+1-8
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,7 @@ public NewSRCommand(IMainWindow mainWindow, IXenConnection connection)
6868

6969
protected override void ExecuteCore(SelectedItemCollection selection)
7070
{
71-
if (selection.FirstIsStorageLink)
72-
{
73-
new NewSRWizard(null, null, (IStorageLinkObject)selection[0].XenObject).Show(Parent);
74-
}
75-
else
76-
{
77-
MainWindowCommandInterface.ShowPerConnectionWizard(selection[0].Connection, new NewSRWizard(selection[0].Connection));
78-
}
71+
MainWindowCommandInterface.ShowPerConnectionWizard(selection[0].Connection, new NewSRWizard(selection[0].Connection));
7972
}
8073

8174
private static bool CanExecuteOnHost(Host host)

XenAdmin/Commands/SRCommand.cs

-78
This file was deleted.

XenAdmin/Commands/SelectedItemCollection.cs

-12
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
using XenAPI;
4040
using XenAdmin.Core;
4141
using XenAdmin.Network;
42-
using XenAdmin.Network.StorageLink;
4342

4443
namespace XenAdmin.Commands
4544
{
@@ -351,17 +350,6 @@ public bool FirstIsGroup
351350
}
352351
}
353352

354-
/// <summary>
355-
/// Gets a value indicating whether the first item is a StorageLink object.
356-
/// </summary>
357-
public bool FirstIsStorageLink
358-
{
359-
get
360-
{
361-
return First is IStorageLinkObject;
362-
}
363-
}
364-
365353
/// <summary>
366354
/// Gets the connection of first item. If the collection is empty then null is returned.
367355
/// </summary>

0 commit comments

Comments
 (0)