コード例 #1
0
 private void tbTemplateResourceKind_TextChanged(object sender, EventArgs e)
 {
     if (_sdataTemplateResourceRequest != null)
     {
         _sdataTemplateResourceRequest.ResourceKind = tbTemplateResourceKind.Text;
         tbTemplateURL.Text = _sdataTemplateResourceRequest.ToString();
     }
 }
コード例 #2
0
        public void TemplateResource_Verify_ToString()
        {
            var request = new SDataTemplateResourceRequest(_service)
            {
                ResourceKind = "employees"
            };
            var url = request.ToString();

            Expect(url, Is.EqualTo("http://localhost:59213/sdata/aw/dynamic/-/employees/$template"));
        }
コード例 #3
0
 public override void Refresh()
 {
     try
     {
         _sdataTemplateResourceRequest = new SDataTemplateResourceRequest(Service)
         {
             ResourceKind = tbTemplateResourceKind.Text
         };
         tbTemplateURL.Text = _sdataTemplateResourceRequest.ToString();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }