private void AddLibrary(EditListDlg<SettingsListBase<LibrarySpec>, LibrarySpec> editListUI, TestLibInfo info) { RunDlg<EditLibraryDlg>(editListUI.AddItem, addLibUI => { var nameTextBox = (TextBox)addLibUI.Controls.Find("textName", true)[0]; Assert.IsNotNull(nameTextBox); var pathTextBox = (TextBox)addLibUI.Controls.Find("textPath", true)[0]; Assert.IsNotNull(pathTextBox); nameTextBox.Text = info.Name; pathTextBox.Text = TestFilesDir.GetTestPath(info.Filename); addLibUI.OkDialog(); }); }
private void AddLibrary(EditListDlg <SettingsListBase <LibrarySpec>, LibrarySpec> editListUI, TestLibInfo info) { RunDlg <EditLibraryDlg>(editListUI.AddItem, addLibUI => { var nameTextBox = (TextBox)addLibUI.Controls.Find("textName", true)[0]; Assert.IsNotNull(nameTextBox); var pathTextBox = (TextBox)addLibUI.Controls.Find("textPath", true)[0]; Assert.IsNotNull(pathTextBox); nameTextBox.Text = info.Name; pathTextBox.Text = TestFilesDir.GetTestPath(info.Filename); addLibUI.OkDialog(); }); }