Exemple #1
0
        public DatagramList(DataGridView dgv, HolkanBehaviorForm parent)
        {
            DatagramsSortedList = new SortedList <DateTime, List <Datagram> >();
            DGV    = dgv;
            Parent = parent;

            foreach (DataGridViewColumn column in DGV.Columns)
            {
                column.SortMode = DataGridViewColumnSortMode.NotSortable;
            }
        }
Exemple #2
0
 // TODO:
 public Datagram(string message, bool alertMe, IPAddress recipientIp)
 {
     Id             = HolkanBehaviorForm.CreateId();
     CreationTime   = DateTime.Now;
     ShowTime       = DateTime.Now;
     Message        = message;
     AlertOnConfirm = alertMe;
     // SenderIp = LocalIp;
     RecipientIp = recipientIp;
     Type        = Type.Message;
 }
Exemple #3
0
 public Datagram(Type type, long id = NOT_VALID_ID)
 {
     Type = type;
     Id   = (id == NOT_VALID_ID) ? HolkanBehaviorForm.CreateId() : id;
 }
Exemple #4
0
 // TODO:
 public Datagram(User user)
 {
     Id            = HolkanBehaviorForm.CreateId();
     Type          = Type.UserCredential;
     SystemMessage = user.CredentialsToByteArray();
 }
Exemple #5
0
 public Packet(IPAddress recipientIp, Datagram datagram)
 {
     Id          = HolkanBehaviorForm.CreateId();
     RecipientIp = recipientIp;
     Datagram    = datagram;
 }