static void ccallback(object sender, EventArgs args) { Console.WriteLine("Connected."); bool available = iph.IsConnected; Console.WriteLine(available); string dn = iph.RequestProperty <string>(null, "DeviceName"); Console.WriteLine("Device: " + dn); Console.Write("Enter new name: "); string nn = Console.ReadLine(); if (nn != "") { bool s = iph.SetProperty(null, "DeviceName", nn); Console.WriteLine(s); } PList pl = new PList(iph.RequestProperties(null), false); foreach (KeyValuePair <string, dynamic> kvp in pl) { Console.WriteLine("{0} : {1}", kvp.Key, kvp.Value); } string[] dirlist = iph.GetContents("/"); Console.WriteLine("\n\nDirectory Listing:"); foreach (string path in dirlist) { Console.WriteLine(path); } string[] afcinfo = iph.GetAFCInfo(); Console.WriteLine("\n\nAFC Info:"); foreach (string key in afcinfo) { Console.WriteLine(key); } Dictionary <string, string> info; info = iph.GetFileInfo("/DCIM"); Console.WriteLine("\n\nDCIM Info:"); foreach (KeyValuePair <string, string> kvp in info) { Console.WriteLine("{0} : {1}", kvp.Key, kvp.Value); } info = iph.GetFileInfo("test"); Console.WriteLine("\n\ntest file Info:"); foreach (KeyValuePair <string, string> kvp in info) { Console.WriteLine("{0} : {1}", kvp.Key, kvp.Value); } Console.WriteLine("Writing File to Device..."); Console.WriteLine(iph.CopyFileToDevice("MK.MobileDevice.dll", "test")); Console.WriteLine("Fetching File from Device..."); Console.WriteLine(iph.CopyFileFromDevice("test.dll", "test")); Console.WriteLine(iph.IsLink("/")); //System.Threading.Thread.Sleep(10); }