Ejemplo n.º 1
0
 public MainWindow()
 {
     //初始化应用状态
     this.Resources["appServerItem"] = this.appServerItem = new AppServerItem(this);
     InitializeComponent();
     //初始化下拉列表资源
     this.phpSelector.DataContext   = this.installedPhpList = new ObservableCollection <AppItem>();
     this.nginxSelector.DataContext = this.installedNginxList = new ObservableCollection <AppItem>();
 }
Ejemplo n.º 2
0
        public override void Write(ByteArray by)
        {
            base.Write(by);
            ushort count = (ushort)list.Count;

            by.WriteUShort(count);
            for (int i = 0; i < count; ++i)
            {
                AppServerItem obj = list[i];
                obj.Write(by);
            }
        }
Ejemplo n.º 3
0
        public override void Read(ByteArray by)
        {
            base.Read(by);
            list.Clear();
            ushort count = by.ReadUShort();

            for (int i = 0; i < count; ++i)
            {
                AppServerItem obj = new AppServerItem();
                obj.Read(by);
                list.Add(obj);
            }
        }