private void btnPrintReport_Click(object sender, EventArgs e) { string GetFormInfoURL = string.Format(@"/api/Report/PrintReport/"); var client = new ClientConnect(); var param = new Dictionary <string, string>(); param.Add("PrintedFromID", _PrintedForm.PrintedFromID); param.Add("PrintedByName", "Dolf"); var response = Task.Run(() => client.GetWithParameters(GetFormInfoURL, param)).Result; }
private void MoveToProd() { string GetFormInfoURL = string.Format(@"/api/Report/PrintReport/"); foreach (string s in _PrintedForm.PrintedFromID) { var client = new ClientConnect(); var param = new Dictionary <string, string>(); param.Add("PrintedFromID", s); param.Add("PrintedByName", "Dolf"); var response = Task.Run(() => client.GetWithParameters(GetFormInfoURL, param)).Result; } }
private void btnGetFormInfo_Click(object sender, EventArgs e) { string GetFormInfoURL = string.Format(@"/api/Forms/GetFormInfo/"); var client = new ClientConnect(); var param = new Dictionary <string, string>(); param.Add("FormID", "18"); var response = Task.Run(() => client.GetWithParameters(GetFormInfoURL, param)).Result; _Forms = JsonConvert.DeserializeObject <Forms>(response); txtFormName.Text = _Forms.Name; txtFromID.Text = _Forms.FormsID.ToString(); _Forms.UniqueDataStructure.TableName = _Forms.TableName; dgvDataStructure.DataSource = _Forms.UniqueDataStructure; }