Esempio n. 1
0
    void PullResource()
    {
        ConfigRow loadConfig = DataHelper.GetInstance().LoadConfig(dbManager);

        if (loadConfig.ResourceVersion == 0)
        {
            SimpleReq req = new SimpleReq
            {
                param0 = loadConfig.Lan
            };
            HttpPost(Constants.API_LOAD_ALL_RESOURCES, ProtoHelper.Proto2Bytes(req));
        }
        else
        {
            PullResourceReq req = new PullResourceReq
            {
                version = loadConfig.ResourceVersion,
                lan     = loadConfig.Lan
            };
            HttpPost(Constants.API_PULL_RESOURCES, ProtoHelper.Proto2Bytes(req));
        }
    }
 public void RemoveConfigRow(ConfigRow row) {
     this.Rows.Remove(row);
 }
 public void AddConfigRow(ConfigRow row) {
     this.Rows.Add(row);
 }
 public ConfigRowChangeEvent(ConfigRow row, global::System.Data.DataRowAction action) {
     this.eventRow = row;
     this.eventAction = action;
 }