Exemple #1
0
		public void WritingSystemSetupDialog()
		{
			var runner = new CrossThreadTestRunner();
			runner.RunInSTA(
				delegate
				{
					using (var folder = new TemporaryFolder("WS-Test"))
					{
						//var dlg = new WritingSystemSetupDialog(folder.Path,
						//	DummyWritingSystemHandler.onMigration,
						//	DummyWritingSystemHandler.onLoadProblem);
						//that constructor is now obsolete, create repo first
						var repository = LdmlInFolderWritingSystemRepository.Initialize(folder.Path);
						var dlg = new WritingSystemSetupDialog(repository);
						dlg.WritingSystemSuggestor.SuggestVoice = true;
						dlg.ShowDialog();
					}
				});
		}
Exemple #2
0
		public void WritingSystemSetupViewWithComboAttached()
		{
			var runner = new CrossThreadTestRunner();
			runner.RunInSTA(
				delegate
				{
					using (var folder = new TemporaryFolder("WS-Test"))
					{
						var f = new Form();
						f.Size = new Size(800, 600);
						var repository = LdmlInFolderWritingSystemRepository.Initialize(folder.Path);
						var model = new WritingSystemSetupModel(repository);
						var v = new WritingSystemSetupView(model);
						var combo = new WSPickerUsingComboBox(model);
						f.Controls.Add(combo);
						f.Controls.Add(v);
						f.ShowDialog();
					}
				});
		}
Exemple #3
0
        public void WritingSystemSetupDialog()
        {
            var runner = new CrossThreadTestRunner();

            runner.RunInSTA(
                delegate
            {
                using (var folder = new TemporaryFolder("WS-Test"))
                {
                    //var dlg = new WritingSystemSetupDialog(folder.Path,
                    //	DummyWritingSystemHandler.onMigration,
                    //	DummyWritingSystemHandler.onLoadProblem);
                    //that constructor is now obsolete, create repo first
                    var repository = LdmlInFolderWritingSystemRepository.Initialize(folder.Path);
                    var dlg        = new WritingSystemSetupDialog(repository);
                    dlg.WritingSystemSuggestor.SuggestVoice = true;
                    dlg.ShowDialog();
                }
            });
        }
Exemple #4
0
        public void WritingSystemSetupViewWithComboAttached()
        {
            var runner = new CrossThreadTestRunner();

            runner.RunInSTA(
                delegate
            {
                using (var folder = new TemporaryFolder("WS-Test"))
                {
                    var f          = new Form();
                    f.Size         = new Size(800, 600);
                    var repository = LdmlInFolderWritingSystemRepository.Initialize(folder.Path);
                    var model      = new WritingSystemSetupModel(repository);
                    var v          = new WritingSystemSetupView(model);
                    var combo      = new WSPickerUsingComboBox(model);
                    f.Controls.Add(combo);
                    f.Controls.Add(v);
                    f.ShowDialog();
                }
            });
        }