Esempio n. 1
0
        public bool OnAddCustomList(object argument)
        {
            CheckDisposed();

            using (var dlg = new AddListDlg(m_mediator))
                dlg.ShowDialog(this);

            return(true);               // handled
        }
Esempio n. 2
0
 public void GetDefaultWsComboEntries()
 {
     // SUT
     using (var dlg = new AddListDlg(null, null))
     {
         // Verify
         Assert.AreEqual(WritingSystemServices.kwsAnals, dlg.SelectedWs,
                         "Wrong default writing system in combo box.");
     }
 }
Esempio n. 3
0
 public void GetDefaultWsComboEntries()
 {
     // SUT
     using (var dlg = new AddListDlg(null))
     {
         // Verify
         Assert.AreEqual(WritingSystemServices.kwsAnals, dlg.SelectedWs,
             "Wrong default writing system in combo box.");
     }
 }
Esempio n. 4
0
        public void GetCheckBoxes_defaults()
        {
            using (var dlg = new AddListDlg(null, null))
            {
                // SUT; Get default checkbox values
                var hier = dlg.SupportsHierarchy;
                var sort = dlg.SortByName;
                var dupl = dlg.AllowDuplicate;

                // Verify
                Assert.IsFalse(hier, "'Support hierarchy' default value should be false.");
                Assert.IsFalse(sort, "'Sort items by name' default value should be false.");
                Assert.IsTrue(dupl, "'Allow duplicate items' default value should be true.");
            }
        }
Esempio n. 5
0
        public void GetCheckBoxes_defaults()
        {
            using (var dlg = new AddListDlg(null))
            {
                // SUT; Get default checkbox values
                var hier = dlg.SupportsHierarchy;
                var sort = dlg.SortByName;
                var dupl = dlg.AllowDuplicate;

                // Verify
                Assert.IsFalse(hier, "'Support hierarchy' default value should be false.");
                Assert.IsFalse(sort, "'Sort items by name' default value should be false.");
                Assert.IsTrue(dupl, "'Allow duplicate items' default value should be true.");
            }
        }
Esempio n. 6
0
        public bool OnAddCustomList(object argument)
        {
            CheckDisposed();

            using (var dlg = new AddListDlg(m_mediator))
                dlg.ShowDialog(this);

            return true;	// handled
        }