Esempio n. 1
0
 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();
     });
 }
Esempio n. 2
0
 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();
     });
 }