Example #1
0
        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);
            }
        }
Example #2
0
 partial void DeletePerson(Person instance);
Example #3
0
 partial void UpdatePerson(Person instance);
Example #4
0
 partial void InsertPerson(Person instance);