Exemplo n.º 1
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ImportWizard));
			this.m_btnHelp = new System.Windows.Forms.Button();
			this.m_btnBack = new System.Windows.Forms.Button();
			this.m_btnCancel = new System.Windows.Forms.Button();
			this.m_btnNext = new System.Windows.Forms.Button();
			this.lblSteps = new System.Windows.Forms.Label();
			this.panStep4 = new System.Windows.Forms.Panel();
			this.lblFinish = new System.Windows.Forms.Label();
			this.label14 = new System.Windows.Forms.Label();
			this.panStep3 = new System.Windows.Forms.Panel();
			this.cboShowMappings = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.tabCtrlMappings = new System.Windows.Forms.TabControl();
			this.tabPage1 = new System.Windows.Forms.TabPage();
			this.m_btnDeleteScrMapping = new System.Windows.Forms.Button();
			this.lvScrMappings = new SIL.FieldWorks.Common.Controls.FwListView();
			this.columnHeader7 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader8 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader9 = new System.Windows.Forms.ColumnHeader();
			this.m_cmMappings = new System.Windows.Forms.ContextMenu();
			this.m_mnuExclude = new System.Windows.Forms.MenuItem();
			this.m_btnAddScrMapping = new System.Windows.Forms.Button();
			this.m_btnModifyScrMapping = new System.Windows.Forms.Button();
			this.tabPage2 = new System.Windows.Forms.TabPage();
			this.m_btnAddNoteMapping = new System.Windows.Forms.Button();
			this.m_btnDeleteNoteMapping = new System.Windows.Forms.Button();
			this.m_btnModifyNoteMapping = new System.Windows.Forms.Button();
			this.lvAnnotationMappings = new SIL.FieldWorks.Common.Controls.FwListView();
			this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader6 = new System.Windows.Forms.ColumnHeader();
			this.label15 = new System.Windows.Forms.Label();
			this.label20 = new System.Windows.Forms.Label();
			this.panStep2_Other = new System.Windows.Forms.Panel();
			this.sfFileListBuilder = new SIL.FieldWorks.Common.Controls.SFFileListBuilder();
			this.label21 = new System.Windows.Forms.Label();
			this.panStep2_PT = new System.Windows.Forms.Panel();
			this.cboPTBackTrans = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.cboPTTransNotes = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.cboPTLangProj = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.label23 = new System.Windows.Forms.Label();
			this.label24 = new System.Windows.Forms.Label();
			this.label25 = new System.Windows.Forms.Label();
			this.label26 = new System.Windows.Forms.Label();
			this.label27 = new System.Windows.Forms.Label();
			this.label28 = new System.Windows.Forms.Label();
			this.panStep1 = new System.Windows.Forms.Panel();
			this.rbParatext5 = new System.Windows.Forms.RadioButton();
			this.rbOther = new System.Windows.Forms.RadioButton();
			this.rbParatext6 = new System.Windows.Forms.RadioButton();
			this.label30 = new System.Windows.Forms.Label();
			this.panStep0 = new System.Windows.Forms.Panel();
			this.label31 = new System.Windows.Forms.Label();
			this.lblOverview = new System.Windows.Forms.Label();
			this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
			this.stepsPanel = new SIL.FieldWorks.Common.Controls.WizardStepPanel();
			this.panStep4.SuspendLayout();
			this.panStep3.SuspendLayout();
			this.tabCtrlMappings.SuspendLayout();
			this.tabPage1.SuspendLayout();
			this.tabPage2.SuspendLayout();
			this.panStep2_Other.SuspendLayout();
			this.panStep2_PT.SuspendLayout();
			this.panStep1.SuspendLayout();
			this.panStep0.SuspendLayout();
			this.SuspendLayout();
			//
			// m_btnHelp
			//
			resources.ApplyResources(this.m_btnHelp, "m_btnHelp");
			this.m_btnHelp.Name = "m_btnHelp";
			this.m_btnHelp.Click += new System.EventHandler(this.m_btnHelp_Click);
			//
			// m_btnBack
			//
			resources.ApplyResources(this.m_btnBack, "m_btnBack");
			this.m_btnBack.Name = "m_btnBack";
			this.m_btnBack.Click += new System.EventHandler(this.m_btnBack_Click);
			//
			// m_btnCancel
			//
			resources.ApplyResources(this.m_btnCancel, "m_btnCancel");
			this.m_btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.m_btnCancel.Name = "m_btnCancel";
			//
			// m_btnNext
			//
			resources.ApplyResources(this.m_btnNext, "m_btnNext");
			this.m_btnNext.Name = "m_btnNext";
			this.m_btnNext.Click += new System.EventHandler(this.m_btnNext_Click);
			//
			// lblSteps
			//
			resources.ApplyResources(this.lblSteps, "lblSteps");
			this.lblSteps.Name = "lblSteps";
			//
			// panStep4
			//
			this.panStep4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.panStep4.Controls.Add(this.lblFinish);
			this.panStep4.Controls.Add(this.label14);
			resources.ApplyResources(this.panStep4, "panStep4");
			this.panStep4.Name = "panStep4";
			//
			// lblFinish
			//
			resources.ApplyResources(this.lblFinish, "lblFinish");
			this.lblFinish.Name = "lblFinish";
			//
			// label14
			//
			resources.ApplyResources(this.label14, "label14");
			this.label14.Name = "label14";
			//
			// panStep3
			//
			this.panStep3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.panStep3.Controls.Add(this.cboShowMappings);
			this.panStep3.Controls.Add(this.tabCtrlMappings);
			this.panStep3.Controls.Add(this.label15);
			this.panStep3.Controls.Add(this.label20);
			resources.ApplyResources(this.panStep3, "panStep3");
			this.panStep3.Name = "panStep3";
			this.panStep3.VisibleChanged += new System.EventHandler(this.panStep3_VisibleChanged);
			//
			// cboShowMappings
			//
			this.cboShowMappings.AllowSpaceInEditBox = false;
			resources.ApplyResources(this.cboShowMappings, "cboShowMappings");
			this.cboShowMappings.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cboShowMappings.FormattingEnabled = true;
			this.cboShowMappings.Items.AddRange(new object[] {
			resources.GetString("cboShowMappings.Items"),
			resources.GetString("cboShowMappings.Items1")});
			this.cboShowMappings.Name = "cboShowMappings";
			this.cboShowMappings.SelectedIndexChanged += new System.EventHandler(this.cboShowMappings_SelectedIndexChanged);
			//
			// tabCtrlMappings
			//
			resources.ApplyResources(this.tabCtrlMappings, "tabCtrlMappings");
			this.tabCtrlMappings.Controls.Add(this.tabPage1);
			this.tabCtrlMappings.Controls.Add(this.tabPage2);
			this.tabCtrlMappings.Name = "tabCtrlMappings";
			this.tabCtrlMappings.SelectedIndex = 0;
			this.tabCtrlMappings.SelectedIndexChanged += new System.EventHandler(this.tabCtrlMappings_SelectedIndexChanged);
			//
			// tabPage1
			//
			this.tabPage1.Controls.Add(this.m_btnDeleteScrMapping);
			this.tabPage1.Controls.Add(this.lvScrMappings);
			this.tabPage1.Controls.Add(this.m_btnAddScrMapping);
			this.tabPage1.Controls.Add(this.m_btnModifyScrMapping);
			resources.ApplyResources(this.tabPage1, "tabPage1");
			this.tabPage1.Name = "tabPage1";
			this.tabPage1.UseVisualStyleBackColor = true;
			//
			// m_btnDeleteScrMapping
			//
			resources.ApplyResources(this.m_btnDeleteScrMapping, "m_btnDeleteScrMapping");
			this.m_btnDeleteScrMapping.Name = "m_btnDeleteScrMapping";
			this.m_btnDeleteScrMapping.Click += new System.EventHandler(this.btnDelete_Click);
			//
			// lvScrMappings
			//
			resources.ApplyResources(this.lvScrMappings, "lvScrMappings");
			this.lvScrMappings.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
			this.columnHeader7,
			this.columnHeader8,
			this.columnHeader9});
			this.lvScrMappings.ContextMenu = this.m_cmMappings;
			this.lvScrMappings.FullRowSelect = true;
			this.lvScrMappings.HideSelection = false;
			this.lvScrMappings.Name = "lvScrMappings";
			this.lvScrMappings.OwnerDraw = true;
			this.lvScrMappings.Sorting = System.Windows.Forms.SortOrder.Ascending;
			this.lvScrMappings.UseCompatibleStateImageBehavior = false;
			this.lvScrMappings.View = System.Windows.Forms.View.Details;
			this.lvScrMappings.SelectedIndexChanged += new System.EventHandler(this.lvMappings_SelectedIndexChanged);
			this.lvScrMappings.DoubleClick += new System.EventHandler(this.lvMappings_DoubleClick);
			this.lvScrMappings.DrawSubItem += new System.Windows.Forms.DrawListViewSubItemEventHandler(this.lvMappings_DrawSubItem);
			//
			// columnHeader7
			//
			resources.ApplyResources(this.columnHeader7, "columnHeader7");
			//
			// columnHeader8
			//
			resources.ApplyResources(this.columnHeader8, "columnHeader8");
			//
			// columnHeader9
			//
			resources.ApplyResources(this.columnHeader9, "columnHeader9");
			//
			// m_cmMappings
			//
			this.m_cmMappings.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
			this.m_mnuExclude});
			this.m_cmMappings.Popup += new System.EventHandler(this.m_cmMappings_Popup);
			//
			// m_mnuExclude
			//
			this.m_mnuExclude.Index = 0;
			resources.ApplyResources(this.m_mnuExclude, "m_mnuExclude");
			this.m_mnuExclude.Click += new System.EventHandler(this.MappingContextMenu_Click);
			//
			// m_btnAddScrMapping
			//
			resources.ApplyResources(this.m_btnAddScrMapping, "m_btnAddScrMapping");
			this.m_btnAddScrMapping.Name = "m_btnAddScrMapping";
			this.m_btnAddScrMapping.Click += new System.EventHandler(this.btnAdd_Click);
			//
			// m_btnModifyScrMapping
			//
			resources.ApplyResources(this.m_btnModifyScrMapping, "m_btnModifyScrMapping");
			this.m_btnModifyScrMapping.Name = "m_btnModifyScrMapping";
			this.m_btnModifyScrMapping.Click += new System.EventHandler(this.m_btnModify_Click);
			//
			// tabPage2
			//
			this.tabPage2.Controls.Add(this.m_btnAddNoteMapping);
			this.tabPage2.Controls.Add(this.m_btnDeleteNoteMapping);
			this.tabPage2.Controls.Add(this.m_btnModifyNoteMapping);
			this.tabPage2.Controls.Add(this.lvAnnotationMappings);
			resources.ApplyResources(this.tabPage2, "tabPage2");
			this.tabPage2.Name = "tabPage2";
			this.tabPage2.UseVisualStyleBackColor = true;
			//
			// m_btnAddNoteMapping
			//
			resources.ApplyResources(this.m_btnAddNoteMapping, "m_btnAddNoteMapping");
			this.m_btnAddNoteMapping.Name = "m_btnAddNoteMapping";
			this.m_btnAddNoteMapping.Click += new System.EventHandler(this.btnAdd_Click);
			//
			// m_btnDeleteNoteMapping
			//
			resources.ApplyResources(this.m_btnDeleteNoteMapping, "m_btnDeleteNoteMapping");
			this.m_btnDeleteNoteMapping.Name = "m_btnDeleteNoteMapping";
			this.m_btnDeleteNoteMapping.Click += new System.EventHandler(this.btnDelete_Click);
			//
			// m_btnModifyNoteMapping
			//
			resources.ApplyResources(this.m_btnModifyNoteMapping, "m_btnModifyNoteMapping");
			this.m_btnModifyNoteMapping.Name = "m_btnModifyNoteMapping";
			this.m_btnModifyNoteMapping.Click += new System.EventHandler(this.m_btnModify_Click);
			//
			// lvAnnotationMappings
			//
			resources.ApplyResources(this.lvAnnotationMappings, "lvAnnotationMappings");
			this.lvAnnotationMappings.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
			this.columnHeader4,
			this.columnHeader5,
			this.columnHeader6});
			this.lvAnnotationMappings.ContextMenu = this.m_cmMappings;
			this.lvAnnotationMappings.FullRowSelect = true;
			this.lvAnnotationMappings.HideSelection = false;
			this.lvAnnotationMappings.Name = "lvAnnotationMappings";
			this.lvAnnotationMappings.OwnerDraw = true;
			this.lvAnnotationMappings.Sorting = System.Windows.Forms.SortOrder.Ascending;
			this.lvAnnotationMappings.UseCompatibleStateImageBehavior = false;
			this.lvAnnotationMappings.View = System.Windows.Forms.View.Details;
			this.lvAnnotationMappings.SelectedIndexChanged += new System.EventHandler(this.lvMappings_SelectedIndexChanged);
			this.lvAnnotationMappings.DoubleClick += new System.EventHandler(this.lvMappings_DoubleClick);
			this.lvAnnotationMappings.DrawSubItem += new System.Windows.Forms.DrawListViewSubItemEventHandler(this.lvMappings_DrawSubItem);
			//
			// columnHeader4
			//
			resources.ApplyResources(this.columnHeader4, "columnHeader4");
			//
			// columnHeader5
			//
			resources.ApplyResources(this.columnHeader5, "columnHeader5");
			//
			// columnHeader6
			//
			resources.ApplyResources(this.columnHeader6, "columnHeader6");
			//
			// label15
			//
			resources.ApplyResources(this.label15, "label15");
			this.label15.Name = "label15";
			//
			// label20
			//
			resources.ApplyResources(this.label20, "label20");
			this.label20.Name = "label20";
			//
			// panStep2_Other
			//
			this.panStep2_Other.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.panStep2_Other.Controls.Add(this.sfFileListBuilder);
			this.panStep2_Other.Controls.Add(this.label21);
			resources.ApplyResources(this.panStep2_Other, "panStep2_Other");
			this.panStep2_Other.Name = "panStep2_Other";
			this.panStep2_Other.VisibleChanged += new System.EventHandler(this.panStep2_Other_VisibleChanged);
			//
			// sfFileListBuilder
			//
			resources.ApplyResources(this.sfFileListBuilder, "sfFileListBuilder");
			this.sfFileListBuilder.Name = "sfFileListBuilder";
			this.sfFileListBuilder.FilesChanged += new SIL.FieldWorks.Common.Controls.SFFileListBuilder.FilesChangedHandler(this.OnFilesChanged);
			//
			// label21
			//
			resources.ApplyResources(this.label21, "label21");
			this.label21.Name = "label21";
			//
			// panStep2_PT
			//
			this.panStep2_PT.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.panStep2_PT.Controls.Add(this.cboPTBackTrans);
			this.panStep2_PT.Controls.Add(this.cboPTTransNotes);
			this.panStep2_PT.Controls.Add(this.cboPTLangProj);
			this.panStep2_PT.Controls.Add(this.label23);
			this.panStep2_PT.Controls.Add(this.label24);
			this.panStep2_PT.Controls.Add(this.label25);
			this.panStep2_PT.Controls.Add(this.label26);
			this.panStep2_PT.Controls.Add(this.label27);
			this.panStep2_PT.Controls.Add(this.label28);
			resources.ApplyResources(this.panStep2_PT, "panStep2_PT");
			this.panStep2_PT.Name = "panStep2_PT";
			this.panStep2_PT.VisibleChanged += new System.EventHandler(this.panStep2_PT_VisibleChanged);
			//
			// cboPTBackTrans
			//
			this.cboPTBackTrans.AllowSpaceInEditBox = false;
			resources.ApplyResources(this.cboPTBackTrans, "cboPTBackTrans");
			this.cboPTBackTrans.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cboPTBackTrans.Name = "cboPTBackTrans";
			//
			// cboPTTransNotes
			//
			this.cboPTTransNotes.AllowSpaceInEditBox = false;
			resources.ApplyResources(this.cboPTTransNotes, "cboPTTransNotes");
			this.cboPTTransNotes.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cboPTTransNotes.Name = "cboPTTransNotes";
			//
			// cboPTLangProj
			//
			this.cboPTLangProj.AllowSpaceInEditBox = false;
			resources.ApplyResources(this.cboPTLangProj, "cboPTLangProj");
			this.cboPTLangProj.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cboPTLangProj.Name = "cboPTLangProj";
			//
			// label23
			//
			resources.ApplyResources(this.label23, "label23");
			this.label23.Name = "label23";
			//
			// label24
			//
			resources.ApplyResources(this.label24, "label24");
			this.label24.Name = "label24";
			//
			// label25
			//
			this.label25.AutoEllipsis = true;
			resources.ApplyResources(this.label25, "label25");
			this.label25.BackColor = System.Drawing.Color.Transparent;
			this.label25.Name = "label25";
			//
			// label26
			//
			resources.ApplyResources(this.label26, "label26");
			this.label26.Name = "label26";
			//
			// label27
			//
			resources.ApplyResources(this.label27, "label27");
			this.label27.Name = "label27";
			//
			// label28
			//
			resources.ApplyResources(this.label28, "label28");
			this.label28.Name = "label28";
			//
			// panStep1
			//
			this.panStep1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.panStep1.Controls.Add(this.rbParatext5);
			this.panStep1.Controls.Add(this.rbOther);
			this.panStep1.Controls.Add(this.rbParatext6);
			this.panStep1.Controls.Add(this.label30);
			resources.ApplyResources(this.panStep1, "panStep1");
			this.panStep1.Name = "panStep1";
			this.panStep1.VisibleChanged += new System.EventHandler(this.panStep1_VisibleChanged);
			//
			// rbParatext5
			//
			resources.ApplyResources(this.rbParatext5, "rbParatext5");
			this.rbParatext5.BackColor = System.Drawing.Color.Transparent;
			this.rbParatext5.Name = "rbParatext5";
			this.rbParatext5.UseVisualStyleBackColor = false;
			this.rbParatext5.CheckedChanged += new System.EventHandler(this.rbParatext5_CheckedChanged);
			//
			// rbOther
			//
			resources.ApplyResources(this.rbOther, "rbOther");
			this.rbOther.BackColor = System.Drawing.Color.Transparent;
			this.rbOther.Name = "rbOther";
			this.rbOther.UseVisualStyleBackColor = false;
			this.rbOther.CheckedChanged += new System.EventHandler(this.rbOther_CheckedChanged);
			//
			// rbParatext6
			//
			resources.ApplyResources(this.rbParatext6, "rbParatext6");
			this.rbParatext6.BackColor = System.Drawing.Color.Transparent;
			this.rbParatext6.Checked = true;
			this.rbParatext6.Name = "rbParatext6";
			this.rbParatext6.TabStop = true;
			this.rbParatext6.UseVisualStyleBackColor = false;
			this.rbParatext6.CheckedChanged += new System.EventHandler(this.rbParatext6_CheckedChanged);
			//
			// label30
			//
			resources.ApplyResources(this.label30, "label30");
			this.label30.Name = "label30";
			//
			// panStep0
			//
			this.panStep0.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.panStep0.Controls.Add(this.label31);
			this.panStep0.Controls.Add(this.lblOverview);
			resources.ApplyResources(this.panStep0, "panStep0");
			this.panStep0.Name = "panStep0";
			//
			// label31
			//
			resources.ApplyResources(this.label31, "label31");
			this.label31.Name = "label31";
			//
			// lblOverview
			//
			resources.ApplyResources(this.lblOverview, "lblOverview");
			this.lblOverview.Name = "lblOverview";
			//
			// columnHeader1
			//
			resources.ApplyResources(this.columnHeader1, "columnHeader1");
			//
			// columnHeader2
			//
			resources.ApplyResources(this.columnHeader2, "columnHeader2");
			//
			// columnHeader3
			//
			resources.ApplyResources(this.columnHeader3, "columnHeader3");
			//
			// stepsPanel
			//
			resources.ApplyResources(this.stepsPanel, "stepsPanel");
			this.stepsPanel.CurrentStepNumber = 0;
			this.stepsPanel.Name = "stepsPanel";
			this.stepsPanel.StepText = new string[] {
		resources.GetString("stepsPanel.StepText"),
		resources.GetString("stepsPanel.StepText1"),
		resources.GetString("stepsPanel.StepText2"),
		resources.GetString("stepsPanel.StepText3"),
		resources.GetString("stepsPanel.StepText4")};
			//
			// ImportWizard
			//
			this.AcceptButton = this.m_btnNext;
			resources.ApplyResources(this, "$this");
			this.CancelButton = this.m_btnCancel;
			this.ControlBox = false;
			this.Controls.Add(this.panStep1);
			this.Controls.Add(this.panStep4);
			this.Controls.Add(this.lblSteps);
			this.Controls.Add(this.panStep3);
			this.Controls.Add(this.panStep2_Other);
			this.Controls.Add(this.panStep2_PT);
			this.Controls.Add(this.panStep0);
			this.Controls.Add(this.m_btnHelp);
			this.Controls.Add(this.m_btnBack);
			this.Controls.Add(this.m_btnCancel);
			this.Controls.Add(this.m_btnNext);
			this.Controls.Add(this.stepsPanel);
			this.Name = "ImportWizard";
			this.ShowInTaskbar = false;
			this.panStep4.ResumeLayout(false);
			this.panStep4.PerformLayout();
			this.panStep3.ResumeLayout(false);
			this.panStep3.PerformLayout();
			this.tabCtrlMappings.ResumeLayout(false);
			this.tabPage1.ResumeLayout(false);
			this.tabPage2.ResumeLayout(false);
			this.panStep2_Other.ResumeLayout(false);
			this.panStep2_Other.PerformLayout();
			this.panStep2_PT.ResumeLayout(false);
			this.panStep2_PT.PerformLayout();
			this.panStep1.ResumeLayout(false);
			this.panStep1.PerformLayout();
			this.panStep0.ResumeLayout(false);
			this.panStep0.PerformLayout();
			this.ResumeLayout(false);
			this.PerformLayout();

		}
Exemplo n.º 2
0
		/// -----------------------------------------------------------------------------------
		/// <summary>
		///
		/// </summary>
		/// -----------------------------------------------------------------------------------
		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad(e);

			if (DesignMode)
				return;

			lblOverview.Text =
				string.Format(ScrImportComponents.kstidImportWizOverview,
				m_LangProjName);

			lblFinish.Text =
				string.Format(ScrImportComponents.kstidImportWizFinish,
				m_LangProjName);

			m_nextText =
				ResourceHelper.GetResourceString("kstidWizForwardButtonText");
			m_finishText =
				ResourceHelper.GetResourceString("kstidWizFinishButtonText");
			m_stepIndicatorFormat =
				ResourceHelper.GetResourceString("kstidWizStepLabel");

			// Restore Dialog Window settings.
			RestoreWindowsSettings();

			// Set the panel locations
			panStep1.Location = panStep0.Location;
			panStep2_PT.Location = panStep0.Location;
			panStep2_Other.Location = panStep0.Location;
			panStep3.Location = panStep0.Location;
			panStep4.Location = panStep0.Location;

			// Set the panel sizes
			int width = ClientRectangle.Right - 8 - panStep0.Left;
			panStep0.Size = new Size(width, stepsPanel.Height - lblSteps.Height);
			panStep1.Size = panStep0.Size;
			panStep2_PT.Size = panStep0.Size;
			panStep2_Other.Size = panStep0.Size;
			panStep3.Size = panStep0.Size;
			panStep4.Size = panStep0.Size;

			// Set the anchor for each panel
			panStep0.Anchor = AnchorStyles.Top | AnchorStyles.Bottom |
				AnchorStyles.Left | AnchorStyles.Right;
			panStep1.Anchor = panStep0.Anchor;
			panStep2_PT.Anchor = panStep0.Anchor;
			panStep2_Other.Anchor = panStep0.Anchor;
			panStep3.Anchor = panStep0.Anchor;
			panStep4.Anchor = panStep0.Anchor;

			// Turn off the border for the panels
			panStep0.BorderStyle = BorderStyle.None;
			panStep1.BorderStyle = BorderStyle.None;
			panStep2_PT.BorderStyle = BorderStyle.None;
			panStep2_Other.BorderStyle = BorderStyle.None;
			panStep3.BorderStyle = BorderStyle.None;
			panStep4.BorderStyle = BorderStyle.None;

			// Store the string id for the step's help topic.
			panStep0.Tag = "khtpSFMWizardStep1";
			panStep1.Tag = "khtpSFMWizardStep2";
			panStep2_PT.Tag = "khtpSFMWizardStep3para";
			panStep2_Other.Tag = "khtpSFMWizardStep3list";
			panStep3.Tag = "khtpSFMWizardStep4Map";
			panStep4.Tag = "khtpSFMWizardStep5";

			panSteps[m_currentStep].Visible = true;
			UpdateStepLabel();

			m_lvCurrentMappingList = lvScrMappings;
			m_btnCurrentModifyButton = m_btnModifyScrMapping;
			m_btnCurrentDeleteButton = m_btnDeleteScrMapping;
			m_btnCurrentAddButton = m_btnAddScrMapping;
			cboShowMappings.SelectedIndex = 1;
		}
Exemplo n.º 3
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// This method will add or modify a single mapping in the list view.
		/// </summary>
		/// <param name="lv">FwListView to add item to</param>
		/// <param name="item">FwListView item to modify or null if a new one should be added.
		/// </param>
		/// <param name="mapping">ECMapping object used to load FwListView item.</param>
		/// <returns>The ListViewItem that was added or modified</returns>
		/// ------------------------------------------------------------------------------------
		private ListViewItem LoadLVMappingItem(FwListView lv, ListViewItem item,
			ImportMappingInfo mapping)
		{
			bool newItem = false;
			if (item == null)
			{
				newItem = true;
				item = new ListViewItem(mapping.BeginMarker);
			}
			else
			{
				item.SubItems.Clear();
				item.Text = mapping.BeginMarker;
			}
			if (mapping.IsInline)
				item.Text += "..." + mapping.EndMarker;

			item.Tag = mapping;
			string styleName = MappingStyleNameAsUIString(mapping);
			item.SubItems.Add(styleName);

			string sSubItem = GetMappingDetailsAsString(mapping);

			item.SubItems.Add(sSubItem);
			if (newItem)
				lv.Items.Add(item);

			return item;
		}
Exemplo n.º 4
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Handles the SelectedIndexChanged event of the tabCtrlMappings control.
		/// </summary>
		/// <param name="sender">The tab control that is the source of the event.</param>
		/// <param name="e">Not used.</param>
		/// ------------------------------------------------------------------------------------
		private void tabCtrlMappings_SelectedIndexChanged(object sender, EventArgs e)
		{
			if (tabCtrlMappings.SelectedIndex == 0)
			{
				m_lvCurrentMappingList = lvScrMappings;
				m_btnCurrentModifyButton = m_btnModifyScrMapping;
				m_btnCurrentDeleteButton = m_btnDeleteScrMapping;
				m_btnCurrentAddButton = m_btnAddScrMapping;
			}
			else
			{
				m_lvCurrentMappingList = lvAnnotationMappings;
				m_btnCurrentModifyButton = m_btnModifyNoteMapping;
				m_btnCurrentDeleteButton = m_btnDeleteNoteMapping;
				m_btnCurrentAddButton = m_btnAddNoteMapping;
			}
			lvMappings_SelectedIndexChanged(null, null);
			m_lvCurrentMappingList.Focus();
		}
Exemplo n.º 5
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// This method will add or modify a single mapping to the list view.
		/// </summary>
		/// <param name="lv">FwListView to add item to</param>
		/// <param name="mapping">mapping info object used to load FwListView item.</param>
		/// <returns>The newly added ListViewItem</returns>
		/// ------------------------------------------------------------------------------------
		private ListViewItem LoadLVMappingItem(FwListView lv, ImportMappingInfo mapping)
		{
			return LoadLVMappingItem(lv, null, mapping);
		}
Exemplo n.º 6
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// This method gets all the mappings from the ScrImportSet and loads them into a
		/// list view so the user can modify them if necessary.
		/// </summary>
		/// <param name="lv">The list view to add mappings to</param>
		/// <param name="mappingSet">The set of mappings to add</param>
		/// ------------------------------------------------------------------------------------
		protected void LoadMappingsFromSettings(FwListView lv, MappingSet mappingSet)
		{
			// REVIEW DavidO: I think we want to be smarter about whether or not to clear the
			// list view. We wouldn't necessarily want to clear the list if the user has
			// already been to this step and is coming back to it without having changed any
			// previous wizard step choices.
			lv.Items.Clear();

			foreach (ImportMappingInfo mapping in m_settings.Mappings(mappingSet))
			{
				// Omit the \id marker
				if (mapping.BeginMarker != ScriptureServices.kMarkerBook &&
					(mapping.IsInUse || m_fShowAllMappings))
				{
					LoadLVMappingItem(lv, mapping);
				}
			}

			if (lv.Items.Count > 0)
			{
				lv.Items[0].Selected = true;
				lv.Items[0].Focused = true;
			}
		}
Exemplo n.º 7
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MatchingEntries));
			this.m_lvMatches = new SIL.FieldWorks.Common.Controls.FwListView();
			this.m_chLF = new System.Windows.Forms.ColumnHeader();
			this.m_chCF = new System.Windows.Forms.ColumnHeader();
			this.m_chAltFms = new System.Windows.Forms.ColumnHeader();
			this.m_chGlosses = new System.Windows.Forms.ColumnHeader();
			this.m_ilEntries = new System.Windows.Forms.ImageList(this.components);
			this.SuspendLayout();
			//
			// m_lvMatches
			//
			resources.ApplyResources(this.m_lvMatches, "m_lvMatches");
			this.m_lvMatches.CausesValidation = false;
			this.m_lvMatches.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
			this.m_chLF,
			this.m_chCF,
			this.m_chAltFms,
			this.m_chGlosses});
			this.m_lvMatches.FullRowSelect = true;
			this.m_lvMatches.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
			this.m_lvMatches.HideSelection = false;
			this.m_lvMatches.MultiSelect = false;
			this.m_lvMatches.Name = "m_lvMatches";
			this.m_lvMatches.OwnerDraw = true;
			this.m_lvMatches.UseCompatibleStateImageBehavior = false;
			this.m_lvMatches.View = System.Windows.Forms.View.Details;
			this.m_lvMatches.DrawItem += new System.Windows.Forms.DrawListViewItemEventHandler(this.m_lvMatches_DrawItem);
			this.m_lvMatches.DoubleClick += new System.EventHandler(this.m_lvMatches_DoubleClick);
			this.m_lvMatches.SelectedIndexChanged += new System.EventHandler(this.m_lvMatches_SelectedIndexChanged);
			this.m_lvMatches.DrawSubItem += new System.Windows.Forms.DrawListViewSubItemEventHandler(this.m_lvMatches_DrawSubItem);
			this.m_lvMatches.DrawColumnHeader += new System.Windows.Forms.DrawListViewColumnHeaderEventHandler(this.m_lvMatches_DrawColumnHeader);
			//
			// m_chLF
			//
			resources.ApplyResources(this.m_chLF, "m_chLF");
			//
			// m_chCF
			//
			resources.ApplyResources(this.m_chCF, "m_chCF");
			//
			// m_chAltFms
			//
			resources.ApplyResources(this.m_chAltFms, "m_chAltFms");
			//
			// m_chGlosses
			//
			resources.ApplyResources(this.m_chGlosses, "m_chGlosses");
			//
			// m_ilEntries
			//
			this.m_ilEntries.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("m_ilEntries.ImageStream")));
			this.m_ilEntries.TransparentColor = System.Drawing.Color.Fuchsia;
			this.m_ilEntries.Images.SetKeyName(0, "");
			this.m_ilEntries.Images.SetKeyName(1, "");
			this.m_ilEntries.Images.SetKeyName(2, "");
			//
			// MatchingEntries
			//
			resources.ApplyResources(this, "$this");
			this.Controls.Add(this.m_lvMatches);
			this.Name = "MatchingEntries";
			this.Load += new System.EventHandler(this.MatchingEntries_Load);
			this.ResumeLayout(false);

		}
Exemplo n.º 8
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Construct a new StyleListViewHelper for the given FwListView.
		/// </summary>
		/// <param name="listView">The given FwListView</param>
		/// <param name="styleColumn">The column that the style is shown in</param>
		/// ------------------------------------------------------------------------------------
		public StyleListViewHelper(FwListView listView, int styleColumn) : base(listView)
		{
			m_styleColumn = styleColumn;
			listView.DrawSubItem += new DrawListViewSubItemEventHandler(CtrlDrawSubItem);
			listView.SelectedIndexChanged += new EventHandler(CtrlSelectedIndexChanged);
		}
Exemplo n.º 9
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SFFileListBuilder));
			System.Windows.Forms.ColumnHeader columnHeader1;
			System.Windows.Forms.ColumnHeader columnHeader2;
			System.Windows.Forms.ColumnHeader columnHeader3;
			System.Windows.Forms.Label label1;
			System.Windows.Forms.ColumnHeader columnHeader4;
			System.Windows.Forms.ColumnHeader columnHeader5;
			System.Windows.Forms.ColumnHeader columnHeader7;
			System.Windows.Forms.Label label2;
			System.Windows.Forms.ColumnHeader columnHeader8;
			System.Windows.Forms.ColumnHeader columnHeader6;
			System.Windows.Forms.ColumnHeader columnHeader9;
			System.Windows.Forms.Label label3;
			this.tabFileGroups = new System.Windows.Forms.TabControl();
			this.tabScripture = new System.Windows.Forms.TabPage();
			this.scrFileList = new SIL.FieldWorks.Common.Controls.FwListView();
			this.btnRemoveScr = new System.Windows.Forms.Button();
			this.btnAddScr = new System.Windows.Forms.Button();
			this.tabBackTranslation = new System.Windows.Forms.TabPage();
			this.btnRemoveBT = new System.Windows.Forms.Button();
			this.btnAddBT = new System.Windows.Forms.Button();
			this.btFileList = new SIL.FieldWorks.Common.Controls.FwListView();
			this.cboShowBtWritingSystem = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.lblBtShowWritingSystems = new System.Windows.Forms.Label();
			this.tabNotes = new System.Windows.Forms.TabPage();
			this.cboShowNotesWritingSystem = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			this.btnRemoveNotes = new System.Windows.Forms.Button();
			this.btnAddNotes = new System.Windows.Forms.Button();
			this.notesFileList = new SIL.FieldWorks.Common.Controls.FwListView();
			this.cboShowNoteTypes = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox();
			columnHeader1 = new System.Windows.Forms.ColumnHeader();
			columnHeader2 = new System.Windows.Forms.ColumnHeader();
			columnHeader3 = new System.Windows.Forms.ColumnHeader();
			label1 = new System.Windows.Forms.Label();
			columnHeader4 = new System.Windows.Forms.ColumnHeader();
			columnHeader5 = new System.Windows.Forms.ColumnHeader();
			columnHeader7 = new System.Windows.Forms.ColumnHeader();
			label2 = new System.Windows.Forms.Label();
			columnHeader8 = new System.Windows.Forms.ColumnHeader();
			columnHeader6 = new System.Windows.Forms.ColumnHeader();
			columnHeader9 = new System.Windows.Forms.ColumnHeader();
			label3 = new System.Windows.Forms.Label();
			this.tabFileGroups.SuspendLayout();
			this.tabScripture.SuspendLayout();
			this.tabBackTranslation.SuspendLayout();
			this.tabNotes.SuspendLayout();
			this.SuspendLayout();
			//
			// tabFileGroups
			//
			this.tabFileGroups.Controls.Add(this.tabScripture);
			this.tabFileGroups.Controls.Add(this.tabBackTranslation);
			this.tabFileGroups.Controls.Add(this.tabNotes);
			resources.ApplyResources(this.tabFileGroups, "tabFileGroups");
			this.tabFileGroups.Name = "tabFileGroups";
			this.tabFileGroups.SelectedIndex = 0;
			this.tabFileGroups.SelectedIndexChanged += new System.EventHandler(this.tabFileGroups_SelectedIndexChanged);
			//
			// tabScripture
			//
			this.tabScripture.Controls.Add(this.scrFileList);
			this.tabScripture.Controls.Add(label1);
			this.tabScripture.Controls.Add(this.btnRemoveScr);
			this.tabScripture.Controls.Add(this.btnAddScr);
			resources.ApplyResources(this.tabScripture, "tabScripture");
			this.tabScripture.Name = "tabScripture";
			//
			// scrFileList
			//
			resources.ApplyResources(this.scrFileList, "scrFileList");
			this.scrFileList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
			columnHeader1,
			columnHeader2,
			columnHeader3});
			this.scrFileList.FullRowSelect = true;
			this.scrFileList.HideSelection = false;
			this.scrFileList.Name = "scrFileList";
			this.scrFileList.OwnerDraw = true;
			this.scrFileList.UseCompatibleStateImageBehavior = false;
			this.scrFileList.View = System.Windows.Forms.View.Details;
			this.scrFileList.SelectedIndexChanged += new System.EventHandler(this.fwlv_SelectedIndexChanged);
			this.scrFileList.DrawSubItem += new System.Windows.Forms.DrawListViewSubItemEventHandler(this.fwlv_DrawSubItem);
			//
			// columnHeader1
			//
			resources.ApplyResources(columnHeader1, "columnHeader1");
			//
			// columnHeader2
			//
			resources.ApplyResources(columnHeader2, "columnHeader2");
			//
			// columnHeader3
			//
			resources.ApplyResources(columnHeader3, "columnHeader3");
			//
			// label1
			//
			resources.ApplyResources(label1, "label1");
			label1.Name = "label1";
			//
			// btnRemoveScr
			//
			resources.ApplyResources(this.btnRemoveScr, "btnRemoveScr");
			this.btnRemoveScr.Name = "btnRemoveScr";
			this.btnRemoveScr.Click += new System.EventHandler(this.btnRemove_Click);
			//
			// btnAddScr
			//
			resources.ApplyResources(this.btnAddScr, "btnAddScr");
			this.btnAddScr.Name = "btnAddScr";
			this.btnAddScr.Click += new System.EventHandler(this.btnAdd_Click);
			//
			// tabBackTranslation
			//
			this.tabBackTranslation.Controls.Add(this.btnRemoveBT);
			this.tabBackTranslation.Controls.Add(this.btnAddBT);
			this.tabBackTranslation.Controls.Add(this.btFileList);
			this.tabBackTranslation.Controls.Add(this.cboShowBtWritingSystem);
			this.tabBackTranslation.Controls.Add(this.lblBtShowWritingSystems);
			this.tabBackTranslation.Controls.Add(label2);
			resources.ApplyResources(this.tabBackTranslation, "tabBackTranslation");
			this.tabBackTranslation.Name = "tabBackTranslation";
			//
			// btnRemoveBT
			//
			resources.ApplyResources(this.btnRemoveBT, "btnRemoveBT");
			this.btnRemoveBT.Name = "btnRemoveBT";
			this.btnRemoveBT.Click += new System.EventHandler(this.btnRemove_Click);
			//
			// btnAddBT
			//
			resources.ApplyResources(this.btnAddBT, "btnAddBT");
			this.btnAddBT.Name = "btnAddBT";
			this.btnAddBT.Click += new System.EventHandler(this.btnAdd_Click);
			//
			// btFileList
			//
			resources.ApplyResources(this.btFileList, "btFileList");
			this.btFileList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
			columnHeader4,
			columnHeader5,
			columnHeader7});
			this.btFileList.FullRowSelect = true;
			this.btFileList.HideSelection = false;
			this.btFileList.Name = "btFileList";
			this.btFileList.OwnerDraw = true;
			this.btFileList.UseCompatibleStateImageBehavior = false;
			this.btFileList.View = System.Windows.Forms.View.Details;
			this.btFileList.SelectedIndexChanged += new System.EventHandler(this.fwlv_SelectedIndexChanged);
			this.btFileList.DrawSubItem += new System.Windows.Forms.DrawListViewSubItemEventHandler(this.fwlv_DrawSubItem);
			//
			// columnHeader4
			//
			resources.ApplyResources(columnHeader4, "columnHeader4");
			//
			// columnHeader5
			//
			resources.ApplyResources(columnHeader5, "columnHeader5");
			//
			// columnHeader7
			//
			resources.ApplyResources(columnHeader7, "columnHeader7");
			//
			// cboShowBtWritingSystem
			//
			resources.ApplyResources(this.cboShowBtWritingSystem, "cboShowBtWritingSystem");
			this.cboShowBtWritingSystem.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cboShowBtWritingSystem.Name = "cboShowBtWritingSystem";
			this.cboShowBtWritingSystem.SelectedIndexChanged += new System.EventHandler(this.cboShowWritingSystem_SelectedIndexChanged);
			//
			// lblBtShowWritingSystems
			//
			resources.ApplyResources(this.lblBtShowWritingSystems, "lblBtShowWritingSystems");
			this.lblBtShowWritingSystems.Name = "lblBtShowWritingSystems";
			//
			// label2
			//
			resources.ApplyResources(label2, "label2");
			label2.Name = "label2";
			//
			// tabNotes
			//
			this.tabNotes.Controls.Add(this.cboShowNotesWritingSystem);
			this.tabNotes.Controls.Add(this.btnRemoveNotes);
			this.tabNotes.Controls.Add(this.btnAddNotes);
			this.tabNotes.Controls.Add(this.notesFileList);
			this.tabNotes.Controls.Add(this.cboShowNoteTypes);
			this.tabNotes.Controls.Add(label3);
			resources.ApplyResources(this.tabNotes, "tabNotes");
			this.tabNotes.Name = "tabNotes";
			//
			// cboShowNotesWritingSystem
			//
			resources.ApplyResources(this.cboShowNotesWritingSystem, "cboShowNotesWritingSystem");
			this.cboShowNotesWritingSystem.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cboShowNotesWritingSystem.Name = "cboShowNotesWritingSystem";
			this.cboShowNotesWritingSystem.SelectedIndexChanged += new System.EventHandler(this.cboShowWritingSystem_SelectedIndexChanged);
			//
			// btnRemoveNotes
			//
			resources.ApplyResources(this.btnRemoveNotes, "btnRemoveNotes");
			this.btnRemoveNotes.Name = "btnRemoveNotes";
			this.btnRemoveNotes.Click += new System.EventHandler(this.btnRemove_Click);
			//
			// btnAddNotes
			//
			resources.ApplyResources(this.btnAddNotes, "btnAddNotes");
			this.btnAddNotes.Name = "btnAddNotes";
			this.btnAddNotes.Click += new System.EventHandler(this.btnAdd_Click);
			//
			// notesFileList
			//
			resources.ApplyResources(this.notesFileList, "notesFileList");
			this.notesFileList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
			columnHeader8,
			columnHeader6,
			columnHeader9});
			this.notesFileList.FullRowSelect = true;
			this.notesFileList.HideSelection = false;
			this.notesFileList.Name = "notesFileList";
			this.notesFileList.OwnerDraw = true;
			this.notesFileList.UseCompatibleStateImageBehavior = false;
			this.notesFileList.View = System.Windows.Forms.View.Details;
			this.notesFileList.SelectedIndexChanged += new System.EventHandler(this.fwlv_SelectedIndexChanged);
			this.notesFileList.DrawSubItem += new System.Windows.Forms.DrawListViewSubItemEventHandler(this.fwlv_DrawSubItem);
			//
			// columnHeader8
			//
			resources.ApplyResources(columnHeader8, "columnHeader8");
			//
			// columnHeader6
			//
			resources.ApplyResources(columnHeader6, "columnHeader6");
			//
			// columnHeader9
			//
			resources.ApplyResources(columnHeader9, "columnHeader9");
			//
			// cboShowNoteTypes
			//
			resources.ApplyResources(this.cboShowNoteTypes, "cboShowNoteTypes");
			this.cboShowNoteTypes.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cboShowNoteTypes.Name = "cboShowNoteTypes";
			this.cboShowNoteTypes.SelectedIndexChanged += new System.EventHandler(this.cboShowNoteTypes_SelectedIndexChanged);
			//
			// label3
			//
			resources.ApplyResources(label3, "label3");
			label3.Name = "label3";
			//
			// SFFileListBuilder
			//
			this.Controls.Add(this.tabFileGroups);
			this.Name = "SFFileListBuilder";
			resources.ApplyResources(this, "$this");
			this.tabFileGroups.ResumeLayout(false);
			this.tabScripture.ResumeLayout(false);
			this.tabBackTranslation.ResumeLayout(false);
			this.tabBackTranslation.PerformLayout();
			this.tabNotes.ResumeLayout(false);
			this.tabNotes.PerformLayout();
			this.ResumeLayout(false);

		}