public static void AsyncImageLoad(string fileName, Person person) { IsolatedStorageFile file = IsolatedStorageFile.GetUserStoreForApplication(); using (IsolatedStorageFileStream stream = file.OpenFile(fileName, FileMode.Open)) { buffer = new byte[stream.Length]; ImageAsyncState state = new ImageAsyncState() { Stream = stream, Person = person }; stream.BeginRead(buffer, 0, buffer.Length, new AsyncCallback(ImageReadCompleted), state); } }
partial void DeletePerson(Person instance);
partial void UpdatePerson(Person instance);
partial void InsertPerson(Person instance);