Inheritance: SIL.FieldWorks.Common.RootSites.SimpleRootSite
Ejemplo n.º 1
0
		/// <summary></summary>
		public ConverterTest()
		{
			// This call is required by the Windows.Forms Form Designer.
			InitializeComponent();
			ofDlg = new OpenFileDialogAdapter();
			ofDlg.DefaultExt = "txt";
			ofDlg.Filter = FileUtils.FileDialogFilterCaseInsensitiveCombinations(FwCoreDlgs.ofDlg_Filter);

			saveFileDialog = new SaveFileDialogAdapter();
			saveFileDialog.DefaultExt = "txt";
			saveFileDialog.RestoreDirectory = true;
			saveFileDialog.Filter = ofDlg.Filter;

			if (DesignMode)
				return;

			InputArgsChanged();	// set the initial state of the Convert button

			// Set view properties.
			m_fHasOutput = false;
			m_svOutput = new SampleView();
			m_svOutput.WritingSystemFactory = FwUtils.CreateWritingSystemManager();
			m_svOutput.Dock = DockStyle.Fill;
			m_svOutput.Visible = true;
			m_svOutput.Enabled = false;
			m_svOutput.BackColor = OutputPanel.BackColor;
			m_svOutput.TabIndex = 1;
			m_svOutput.TabStop = true;
			OutputPanel.Controls.Add(m_svOutput);
		}
Ejemplo n.º 2
0
		/// <summary></summary>
		public ConverterTest()
		{
			// This call is required by the Windows.Forms Form Designer.
			InitializeComponent();

			if (DesignMode)
				return;

			InputArgsChanged();	// set the initial state of the Convert button

			// Set view properties.
			m_fHasOutput = false;
			m_svOutput = new SampleView();
			m_svOutput.WritingSystemFactory = LgWritingSystemFactoryClass.Create();
			m_svOutput.Dock = DockStyle.Fill;
			m_svOutput.Visible = true;
			m_svOutput.Enabled = false;
			m_svOutput.BackColor = OutputPanel.BackColor;
			m_svOutput.TabIndex = 1;
			m_svOutput.TabStop = true;
			OutputPanel.Controls.Add(m_svOutput);
		}