示例#1
0
 public UpdateQuestionWindow()
 {
     InitializeComponent();
     client = new WCF.NetTestServiceClient();
     client.getTestDataTableCompleted += client_getTestDataTableCompleted;
     client.updateTestCompleted       += client_updateTestCompleted;
     client.Endpoint.Address           = new System.ServiceModel.EndpointAddress(new Uri(url, UriKind.Absolute));
 }
示例#2
0
 public ExerciseWindow()
 {
     InitializeComponent();
     client = new WCF.NetTestServiceClient();
     client.getUserTestDataTableCompleted += client_getUserTestDataTableCompleted;
     client.Endpoint.Address = new System.ServiceModel.EndpointAddress(new Uri(url, UriKind.Absolute));
     btHandleTest.IsEnabled  = false;
 }
示例#3
0
 public AddQuestionWindow()
 {
     InitializeComponent();
     client = new WCF.NetTestServiceClient();
     client.addTestCompleted += client_addTestCompleted;
     client.Endpoint.Address  = new System.ServiceModel.EndpointAddress(new Uri(url, UriKind.Absolute));
     cbAnswer.Items.Add("A");
     cbAnswer.Items.Add("B");
     cbAnswer.Items.Add("C");
     cbAnswer.Items.Add("D");
     cbAnswer.SelectedIndex = 0;
 }