示例#1
0
		/// <summary>
		/// Create the Wizard and require an FdoCache object.
		/// </summary>
		/// <param name="cache"></param>
		public LexImportWizard()
		{
			// This call is required by the Windows Form Designer.
			InitializeComponent();
			openFileDialog = new OpenFileDialogAdapter();
			m_crcObj = new Sfm2Xml.CRC();	// CRC Object to use for telling if the input file has changed
			m_lastDateTime = DateTime.MinValue;
			m_crcOfInputFile = 1;

			// Adjust the width of the steps panel if it's too narrow to show what it's
			// supposed to show.  See FWNX-514.  (This should be useful for localizations
			// as well as cross-platform work.)
			var panelwidth = StepPanelWidth;
			foreach (var name in StepNames)
			{
				var width = ComputeDisplayWidth(name, StepTextFont);
				if (width > panelwidth)
					panelwidth = width;
			}
			var delta = panelwidth - StepPanelWidth;
			if (delta > 0)
			{
				StepPanelWidth = panelwidth;
			}
		}
示例#2
0
		/// <summary>
		/// Create the Wizard and require an FdoCache object.
		/// </summary>
		/// <param name="cache"></param>
		public LexImportWizard()
		{
			// This call is required by the Windows Form Designer.
			InitializeComponent();
			m_crcObj = new Sfm2Xml.CRC();	// CRC Object to use for telling if the input file has changed
			m_lastDateTime = DateTime.MinValue;
			m_crcOfInputFile = 1;
		}