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