1
// UnmountedDriveItem.cs
3
// This program is free software; you can redistribute it and/or modify
4
// it under the terms of the GNU General Public License as published by
5
// the Free Software Foundation; either version 3 of the License, or
6
// (at your option) any later version.
8
// This program is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
// GNU General Public License for more details.
13
// You should have received a copy of the GNU General Public License
14
// along with this program; if not, see <http://www.gnu.org/licenses/> or
15
// write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
16
// Boston, MA 02111-1307 USA
26
public class UnmountedDriveItem : IItem
31
public UnmountedDriveItem (Drive drive){
39
drive.Mount (VolumeOpCallback);
41
{ // error message will be handled by VolumeOpCallback
46
public void VolumeOpCallback (bool succeeded, string error, string detailed_error)
49
Console.WriteLine("Mount operation succeeded");
51
Console.Error.WriteLine("Mount operation failed {0}, detail : {1}" , error, detailed_error );
55
get { return drive.DisplayName; }
58
public string Description {
59
get { return String.Format("{0}",drive.DeviceType); }
63
get { return drive.Icon; }
b'\\ No newline at end of file'