fixing the sample

svn path=/trunk/gtk-sharp/; revision=126612
This commit is contained in:
Stephane Delcroix 2009-02-11 15:07:56 +00:00
parent 835d07adfd
commit 4188e27c76

View file

@ -11,7 +11,7 @@ namespace TestGio
VolumeMonitor monitor = VolumeMonitor.Default; VolumeMonitor monitor = VolumeMonitor.Default;
Console.WriteLine ("Volumes:"); Console.WriteLine ("Volumes:");
foreach (Volume v in monitor.Volumes) foreach (Volume v in monitor.Volumes)
Console.WriteLine ("\t{0}", v); Console.WriteLine ("\t{0}", v.Name);
Console.WriteLine ("\nMounts:"); Console.WriteLine ("\nMounts:");
foreach (Mount m in monitor.Mounts) { foreach (Mount m in monitor.Mounts) {
Console.WriteLine ("\tName:{0}, UUID:{1}, root:{2}, CanUnmount: {3}", m.Name, m.Uuid, m.Root, m.CanUnmount); Console.WriteLine ("\tName:{0}, UUID:{1}, root:{2}, CanUnmount: {3}", m.Name, m.Uuid, m.Root, m.CanUnmount);
@ -23,8 +23,8 @@ namespace TestGio
Console.WriteLine ("\t\tDrive:{0}", d.Name); Console.WriteLine ("\t\tDrive:{0}", d.Name);
} }
Console.WriteLine ("\nConnectedDrives:"); Console.WriteLine ("\nConnectedDrives:");
foreach (object o in monitor.ConnectedDrives) foreach (Drive d in monitor.ConnectedDrives)
Console.WriteLine ("\t{0}", o); Console.WriteLine ("\t{0}, HasVolumes:{1}", d.Name, d.HasVolumes);
} }
} }
} }