1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using CommonLang;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace GameEditorPluginServer.Server
- {
- public partial class FormMsgBytes : Form
- {
- private ServerCodec codec;
- public FormMsgBytes(ServerCodec codec)
- {
- InitializeComponent();
- this.codec = codec;
- }
- private void timer1_Tick(object sender, EventArgs e)
- {
- RefreshRecords();
- }
- public void RefreshRecords()
- {
- this.listView1.Items.Clear();
- foreach (var ve in codec.GetSentTypeBytes())
- {
- var item = new ListViewItem(ve.Key.Name);
- item.SubItems.Add(CUtils.ToBytesSizeString(ve.Value.Bytes));
- item.SubItems.Add(ve.Value.Count.ToString());
- this.listView1.Items.Add(item);
- }
- }
- }
- }
|