menu now dynamically populates the network list
This commit is contained in:
parent
005b5aacaf
commit
fd71ceeab5
6 changed files with 260 additions and 51 deletions
|
@ -1,14 +1,32 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace WinUI
|
||||
{
|
||||
public class NetworkRoute
|
||||
[Serializable]
|
||||
public class NetworkRoute : ISerializable
|
||||
{
|
||||
protected NetworkRoute(SerializationInfo info, StreamingContext ctx)
|
||||
{
|
||||
Target = info.GetString("Target");
|
||||
Via = info.GetString("Via");
|
||||
Flags = info.GetInt32("Flags");
|
||||
Metric = info.GetInt32("Metric");
|
||||
}
|
||||
|
||||
public virtual void GetObjectData(SerializationInfo info, StreamingContext ctx)
|
||||
{
|
||||
info.AddValue("Target", Target);
|
||||
info.AddValue("Via", Via);
|
||||
info.AddValue("Flags", Flags);
|
||||
info.AddValue("Metric", Metric);
|
||||
}
|
||||
|
||||
[JsonProperty("target")]
|
||||
public string Target { get; set; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue