public void OnHandleCreated_NewFwMultilingualPropView_HandleGetsCreated()
		{
			var dataSource = new DummyFwMultilingualPropViewDataSource();
			using (var control = new FwMultilingualPropView(dataSource))
			{
				Assert.AreNotEqual(IntPtr.Zero, control.Handle);
			}
		}
        public void OnHandleCreated_NewFwMultilingualPropView_HandleGetsCreated()
        {
            var dataSource = new DummyFwMultilingualPropViewDataSource();

            using (var control = new FwMultilingualPropView(dataSource))
            {
                Assert.AreNotEqual(IntPtr.Zero, control.Handle);
            }
        }
        public void CommitEdit_PopulatedFwMultilingualPropView_ShouldNotThrowException()
        {
            var dataSource = new DummyFwMultilingualPropViewDataSource();

            using (var control = new FwMultilingualPropView(dataSource))
            {
                using (var f = new Form())
                {
                    f.Controls.Add(control);
                    f.Show();
                    Application.DoEvents();

                    control.CommitEdit(DataGridViewDataErrorContexts.Commit);
                }
            }
        }
		public void CommitEdit_PopulatedFwMultilingualPropView_ShouldNotThrowException()
		{
			var dataSource = new DummyFwMultilingualPropViewDataSource();
			using (var control = new FwMultilingualPropView(dataSource))
			{
				using (var f = new Form())
				{
					f.Controls.Add(control);
					f.Show();
					Application.DoEvents();

					control.CommitEdit(DataGridViewDataErrorContexts.Commit);
				}
			}
		}
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Forms designer method
		/// </summary>
		/// ------------------------------------------------------------------------------------
		private void InitializeComponent()
		{
			System.Windows.Forms.Label m_lblScrBookIdText;
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BookPropertiesDialog));
			System.Windows.Forms.Button m_btnCancel;
			System.Windows.Forms.Button m_btnOk;
			System.Windows.Forms.Button m_btnHelp;
			System.Windows.Forms.Label label1;
			System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
			this.m_txtScrBookIdText = new System.Windows.Forms.TextBox();
			this.m_listBookInfo = new SIL.FieldWorks.Common.Widgets.FwMultilingualPropView();
			m_lblScrBookIdText = new System.Windows.Forms.Label();
			m_btnCancel = new System.Windows.Forms.Button();
			m_btnOk = new System.Windows.Forms.Button();
			m_btnHelp = new System.Windows.Forms.Button();
			label1 = new System.Windows.Forms.Label();
			((System.ComponentModel.ISupportInitialize)(this.m_listBookInfo)).BeginInit();
			this.SuspendLayout();
			//
			// m_lblScrBookIdText
			//
			resources.ApplyResources(m_lblScrBookIdText, "m_lblScrBookIdText");
			m_lblScrBookIdText.Name = "m_lblScrBookIdText";
			//
			// m_btnCancel
			//
			resources.ApplyResources(m_btnCancel, "m_btnCancel");
			m_btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			m_btnCancel.Name = "m_btnCancel";
			//
			// m_btnOk
			//
			resources.ApplyResources(m_btnOk, "m_btnOk");
			m_btnOk.DialogResult = System.Windows.Forms.DialogResult.OK;
			m_btnOk.Name = "m_btnOk";
			m_btnOk.Click += new System.EventHandler(this.m_btnOk_Click);
			//
			// m_btnHelp
			//
			resources.ApplyResources(m_btnHelp, "m_btnHelp");
			m_btnHelp.Name = "m_btnHelp";
			m_btnHelp.Click += new System.EventHandler(this.m_btnHelp_Click);
			//
			// label1
			//
			resources.ApplyResources(label1, "label1");
			label1.Name = "label1";
			//
			// m_txtScrBookIdText
			//
			resources.ApplyResources(this.m_txtScrBookIdText, "m_txtScrBookIdText");
			this.m_txtScrBookIdText.Name = "m_txtScrBookIdText";
			//
			// m_listBookInfo
			//
			this.m_listBookInfo.AllowUserToAddRows = false;
			resources.ApplyResources(this.m_listBookInfo, "m_listBookInfo");
			this.m_listBookInfo.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
			this.m_listBookInfo.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
			this.m_listBookInfo.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.m_listBookInfo.CausesValidation = false;
			this.m_listBookInfo.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
			this.m_listBookInfo.Name = "m_listBookInfo";
			this.m_listBookInfo.RowHeadersVisible = false;
			//
			// BookPropertiesDialog
			//
			this.AcceptButton = m_btnOk;
			resources.ApplyResources(this, "$this");
			this.CancelButton = m_btnCancel;
			this.Controls.Add(this.m_listBookInfo);
			this.Controls.Add(label1);
			this.Controls.Add(m_btnHelp);
			this.Controls.Add(m_btnOk);
			this.Controls.Add(m_btnCancel);
			this.Controls.Add(this.m_txtScrBookIdText);
			this.Controls.Add(m_lblScrBookIdText);
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "BookPropertiesDialog";
			this.ShowInTaskbar = false;
			((System.ComponentModel.ISupportInitialize)(this.m_listBookInfo)).EndInit();
			this.ResumeLayout(false);
			this.PerformLayout();

		}