public void Init() { //the first line of config file is the login, //and the second one is the password using (StreamReader sr = new StreamReader ("config")) { login_config [0] = sr.ReadLine (); login_config [1] = sr.ReadLine (); } fotki = new FotkiService (login_config [0], login_config [1]); photos = fotki.GetPhotos (); }
public void GetPhotos() { fotki = new FotkiService (config [0]); PhotoCollection photos; photos = fotki.GetPhotos (); }