| 41 |
public event ImageReceived OnImageReceived; |
public event ImageReceived OnImageReceived; |
| 42 |
public event NewFoliage OnNewFoliage; |
public event NewFoliage OnNewFoliage; |
| 43 |
|
|
| 44 |
|
public string loginURI; |
| 45 |
|
public string firstName; |
| 46 |
|
public string lastName; |
| 47 |
|
public string username; |
| 48 |
|
public string password; |
| 49 |
|
public string startlocation; |
| 50 |
|
|
| 51 |
GridClient m_user; |
GridClient m_user; |
| 52 |
public SLProtocol() |
public SLProtocol() |
| 53 |
{ |
{ |
| 110 |
} |
} |
| 111 |
} |
} |
| 112 |
|
|
| 113 |
|
//public void BeginLogin(string loginURI, string username, string password, string startlocation) |
| 114 |
|
//{ |
| 115 |
|
// LoginParams loginParams = getLoginParams(loginURI, username, password, startlocation); |
| 116 |
|
|
| 117 |
|
// m_user.Network.BeginLogin(loginParams); |
| 118 |
|
//} |
| 119 |
public void BeginLogin(string loginURI, string username, string password, string startlocation) |
public void BeginLogin(string loginURI, string username, string password, string startlocation) |
| 120 |
{ |
{ |
| 121 |
|
|
| 122 |
|
string firstname; |
| 123 |
|
string lastname; |
| 124 |
|
|
| 125 |
|
this.loginURI = loginURI; |
| 126 |
|
this.username = username; |
| 127 |
|
this.password = password; |
| 128 |
|
this.startlocation = startlocation; |
| 129 |
|
|
| 130 |
|
Util.separateUsername(username, out firstname, out lastname); |
| 131 |
|
|
| 132 |
|
this.firstName = firstname; |
| 133 |
|
this.lastName = lastname; |
| 134 |
|
|
| 135 |
|
|
| 136 |
LoginParams loginParams = getLoginParams(loginURI, username, password, startlocation); |
LoginParams loginParams = getLoginParams(loginURI, username, password, startlocation); |
| 137 |
|
|
| 138 |
m_user.Network.BeginLogin(loginParams); |
m_user.Network.BeginLogin(loginParams); |
| 139 |
} |
} |
| 140 |
|
|
| 141 |
private void gridConnectedCallback(object sender) |
private void gridConnectedCallback(object sender) |
| 142 |
{ |
{ |
| 143 |
|
|