public static void Main(string[] args)
{
string dir = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly ().Location);
try{
player = new System.Media.SoundPlayer (System.IO.Path.Combine (dir, "sound.wav"));
player.Load();
}
catch(Exception ex){player = null;}
run = true;
string username;
Console.Write ("Username:");
username = Console.ReadLine ();
session = new LiveCodingChat.Livecoding.LivecodingSession (ReadLoginMethod(),username);
session.PasswordRequested += Session_PasswordRequested;
session.SessionAutenticated += Session_SessionAutenticated;
session.EnsureAuthenticated ();
while (run) {//TODO: wird eine gui anwendung :P
System.Threading.Thread.Sleep (10);
}
}