コード例 #1
0
 /// <summary>Re-populates initialises the phone using the selected directory.</summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void folderSelector_SelectionChanged(object sender, EventArgs e)
 {
     string fullPath = folderSelector.SelectionName;
     string phoneName = System.IO.Path.GetFileName(fullPath);
     string folderPath = System.IO.Path.GetDirectoryName(fullPath);
     phone = new MobilePhone(phoneName, format, folderPath);
     phone.MessagesRetrieved += new EventHandler(phone_MessagesRetrieved);
     phone.RetrieveMessages(".");
 }