Beispiel #1
0
		//There's nowhere to use this function now, but stay it here in case.
        //hhhhhh
		private static void showInfo(ReturnMessage message,MainForm form)
		{
			form.labelAeraValue.Text = message.userinfo.area_name;

			uint IPUint = message.userinfo.useripv4;
			String frnendlyIPAddress = ((IPUint >> 24) & 0xFF) + "." + ((IPUint >> 16) & 0xFF) + "." + ((IPUint >> 8) & 0xFF) + "." + (IPUint & 0xFF);
			form.labelIPValue.Text = frnendlyIPAddress;
			DateTime time = GlobalFunction.unixTimestamp2DateTime(message.userinfo.acctstarttime*1000);
			form.labelLoginTimeValue.Text = time.ToLocalTime().ToString();
			if (message.userinfo != null)
			{
				form.labelNameValue.Text = message.userinfo.fullname;
				form.labelBalanceValue.Text = message.userinfo.balance.ToString("#.00");
				form.labelUsernameValue.Text = message.userinfo.username;
			}
		}
Beispiel #2
0
        public static void showInfo(OnlineMessage message, MainForm form)
        {
            form.labelAeraValue.Text = message.userinfo.area_name;

            form.labelIPValue.Text = UintIP2String(message.userinfo.useripv4);
            form.labelIPv6Value.Text = message.userinfo.useripv6;
            form.labelMACValue.Text = message.userinfo.mac;
            DateTime time = GlobalFunction.unixTimestamp2DateTime(message.userinfo.acctstarttime * 1000);
            form.labelLoginTimeValue.Text = time.ToLocalTime().ToString();
            form.labelNameValue.Text = message.userinfo.fullname;
            String balance = message.userinfo.balance / 100 + ".";
            balance += message.userinfo.balance % 100 < 10 ? ("0" + (message.userinfo.balance % 100).ToString()) : (message.userinfo.balance % 100).ToString();
            balance += " 元";
            form.labelBalanceValue.Text = balance;
            form.labelUsernameValue.Text = message.userinfo.username;

            form.labelUsernameValue.Text = message.userinfo.username;
        }