test
This commit is contained in:
@@ -1302,9 +1302,7 @@ namespace BeWo.View
|
||||
Packet a = new Packet();
|
||||
|
||||
byte[] outStream = a.GetDataStream(BeWoApp.LoggedOnUser.Employee.PersonOid, 0, BeWoApp.LoggedOnUser.LoginName, abc, DataIdentifier.Login, BeWoApp.Tenant,false);
|
||||
//byte[] outStream = System.Text.Encoding.ASCII.GetBytes("" + BeWoApp.LoggedOnUser.Employee.PersonOid + ";0;" + BeWoApp.LoggedOnUser.LoginName.Length + ";" +
|
||||
// abc.Length + ";" +(int)DataIdentifier.Login + ";" + BeWoApp.LoggedOnUser.LoginName + ";" + "0" +
|
||||
// BeWoApp.Tenant + abc + DateTime.Now.ToString("dd.MM.yyyy HH:mm:ss"));
|
||||
|
||||
serverStream.Write(outStream, 0, outStream.Length);
|
||||
serverStream.Flush();
|
||||
}
|
||||
@@ -1336,7 +1334,7 @@ namespace BeWo.View
|
||||
|
||||
long persoid = Int32.Parse(receiveData[3]);
|
||||
|
||||
if (persoid != 0) // <--- Vorsorglich erichtet
|
||||
if (persoid != 0)
|
||||
{
|
||||
|
||||
List<long> x = new List<long>();
|
||||
@@ -1349,8 +1347,13 @@ namespace BeWo.View
|
||||
ErstelleChatViews(persoid);
|
||||
}
|
||||
|
||||
//Abfrage hier bei bei neu Login abfragen ob DataIdentifier den BroadCastLogin enthält.
|
||||
/* if (receiveData[4] == DataIdentifier.BroadCastLogin.ToString())
|
||||
{
|
||||
WaitForMsFromServer();
|
||||
}*/
|
||||
|
||||
if (receiveData[4] == DataIdentifier.StatusNotificationLogout.ToString())
|
||||
if (receiveData[4] == DataIdentifier.StatusNotificationLogout.ToString())
|
||||
{
|
||||
DeleteLoggedOffUsers(receiveData[2],persoid);
|
||||
}
|
||||
@@ -1428,7 +1431,7 @@ namespace BeWo.View
|
||||
KontaktlistBuilder curItem = (KontaktlistBuilder) chatpav.AktChatUser.Items[0];
|
||||
|
||||
if (chatpav.Visibility == Visibility.Collapsed &&
|
||||
pavlist[personoid].Visibility == Visibility.Collapsed)
|
||||
pavlist[personoid].Visibility == Visibility.Collapsed)
|
||||
{
|
||||
pavlist[personoid].Visibility = Visibility.Visible;
|
||||
pavlist[personoid].SetText(text, 1);
|
||||
@@ -1466,9 +1469,6 @@ namespace BeWo.View
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//Continue Waiting for data
|
||||
// WaitForMsFromServer();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user