c# - data between page, accessing values WP7 -


mainpage.cs

usr = new user[count_friends];                 (int = 0; <count_friends; i++) {                     usr[i].uid = (int) response["response"][i]["uid"];                     usr[i].first_name = response["response"][i]["first_name"].tostring();                     usr[i].last_name = response["response"][i]["last_name"].tostring();                     usr[i].isonline =convert.toboolean((int) response["response"][i]["online"]);                 } 

friends.cs

public friends()         {              initializecomponent();             var onl_friends = n in usr                               n.isonline == true                               select n;             foreach (var x in onl_friends)                 debug.writeline(x.first_name + " " + x.last_name);         } 

but usr not defined.how can use 'usr' in friends.cs use in mainpage.cs?

public struct user {             public int uid;             public string first_name;             public string last_name;             public bool isonline;         } 


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -