Beispiel #1
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, DummyWritingSystemHandler.onMigration, DummyWritingSystemHandler.onLoadProblem);
						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();
					}
				});
		}
Beispiel #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, DummyWritingSystemHandler.onMigration, DummyWritingSystemHandler.onLoadProblem);
                    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();
                }
            });
        }
Beispiel #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,
							DummyWritingSystemHandler.onMigration,
							DummyWritingSystemHandler.onLoadProblem);
						var dlg = new WritingSystemSetupDialog(repository);
						dlg.WritingSystemSuggestor.SuggestVoice = true;
						dlg.ShowDialog();
					}
				});
		}
Beispiel #4
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,
                                                                                    DummyWritingSystemHandler.onMigration,
                                                                                    DummyWritingSystemHandler.onLoadProblem);
                    var dlg = new WritingSystemSetupDialog(repository);
                    dlg.WritingSystemSuggestor.SuggestVoice = true;
                    dlg.ShowDialog();
                }
            });
        }