private void InitEvent() { client = new SmtOADocumentAdminClient(); //client.GetArchivesCanBorrowCompleted += new EventHandler<GetArchivesCanBorrowCompletedEventArgs>(client_GetArchivesCanBorrowCompleted); client.GetArchivesCanBorrowByConditionCompleted += new EventHandler <GetArchivesCanBorrowByConditionCompletedEventArgs>(client_GetArchivesCanBorrowByConditionCompleted); //client.GetArchivesCanBorrowAsync(); client.GetArchivesCanBorrowByConditionAsync("", ""); }
private void InitEvent() { client = new SmtOADocumentAdminClient(); //client.GetArchivesCanBorrowCompleted += new EventHandler<GetArchivesCanBorrowCompletedEventArgs>(client_GetArchivesCanBorrowCompleted); client.GetArchivesCanBorrowByConditionCompleted += new EventHandler<GetArchivesCanBorrowByConditionCompletedEventArgs>(client_GetArchivesCanBorrowByConditionCompleted); //client.GetArchivesCanBorrowAsync(); client.GetArchivesCanBorrowByConditionAsync("", ""); }
private void SearchBtn_Click(object sender, RoutedEventArgs e) { //if (!string.IsNullOrEmpty(txtSearchType.Text.Trim()) || !string.IsNullOrEmpty(txtSearchTitle.Text.Trim())) //{ // client.GetArchivesCanBorrowByConditionAsync(txtSearchTitle.Text.Trim(),txtSearchType.Text.Trim()); //} //else //{ // client.GetArchivesCanBorrowByConditionAsync("", ""); //} client.GetArchivesCanBorrowByConditionAsync(txtSearchTitle.Text.Trim(), txtSearchType.Text.Trim()); }