Esempio n. 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);
            }
        }
Esempio n. 2
0
 partial void DeletePerson(Person instance);
Esempio n. 3
0
 partial void UpdatePerson(Person instance);
Esempio n. 4
0
 partial void InsertPerson(Person instance);