Exemplo n.º 1
0
 public void TearDown()
 {
     if (m_treeView != null)
     {
         m_treeView.Dispose();
     }
     m_treeView = null;
 }
Exemplo n.º 2
0
        public void Init()
        {
            m_fBeforeCheck         = false;
            m_fAfterCheck          = false;
            m_fCancelInBeforeCheck = false;
            m_treeView             = new TriStateTreeView();

            m_dNode  = new TreeNode("d");
            m_c1Node = new TreeNode("c1", new TreeNode[] { m_dNode });
            m_c2Node = new TreeNode("c2");
            m_bNode  = new TreeNode("b", new TreeNode[] { m_c1Node, m_c2Node });
            m_aNode  = new TreeNode("a", new TreeNode[] { m_bNode });
            m_treeView.Nodes.Add(m_aNode);
        }
Exemplo n.º 3
0
		public void Init()
		{
			m_fBeforeCheck = false;
			m_fAfterCheck = false;
			m_fCancelInBeforeCheck = false;
			m_treeView = new TriStateTreeView();

			m_dNode = new TreeNode("d");
			m_c1Node = new TreeNode("c1", new TreeNode[] { m_dNode });
			m_c2Node = new TreeNode("c2");
			m_bNode = new TreeNode("b", new TreeNode[] { m_c1Node, m_c2Node });
			m_aNode = new TreeNode("a", new TreeNode[] { m_bNode });
			m_treeView.Nodes.Add(m_aNode);
		}
Exemplo n.º 4
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Select a book in the list
		/// </summary>
		/// <param name="hvo"></param>
		/// <param name="state"></param>
		/// ------------------------------------------------------------------------------------
		public void SelectBook(int hvo, TriStateTreeView.CheckState state)
		{
			CheckDisposed();

			m_treeScripture.CheckNodeByTag(hvo, state);
		}
Exemplo n.º 5
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Select a book in the list
		/// </summary>
		/// <param name="book"></param>
		/// <param name="state"></param>
		/// ------------------------------------------------------------------------------------
		public void SelectBook(IScrBook book, TriStateTreeView.CheckState state)
		{
			m_treeTexts.CheckNodeByTag(book, state);
		}
Exemplo n.º 6
0
		public void TearDown()
		{
			if (m_treeView != null)
				m_treeView.Dispose();
			m_treeView = null;
		}
Exemplo n.º 7
0
		public override void TestSetup()
		{
			base.TestSetup();
			m_listOfChecks = new SortedList<ScrCheckKey, IScriptureCheck>();
			m_bookFilter = Cache.ServiceLocator.GetInstance<IFilteredScrBookRepository>().GetFilterInstance(m_filterInstance);

			m_editChecksControl = new EditorialChecksControl(
				Cache, null, m_bookFilter, "Dummy Caption", "Dummy Project", null, null);

			m_checksTree = ReflectionHelper.GetField(
				m_editChecksControl, "m_availableChecksTree") as TriStateTreeView;
		}
Exemplo n.º 8
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.Windows.Forms.Label label1;
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SaveVersionDialog));
			System.Windows.Forms.Button m_btnCancel;
			System.Windows.Forms.Button m_btnHelp;
			System.Windows.Forms.Label label2;
			this.m_btnOk = new System.Windows.Forms.Button();
			this.m_treeView = new SIL.FieldWorks.Common.Controls.TriStateTreeView();
			this.m_description = new System.Windows.Forms.TextBox();
			label1 = new System.Windows.Forms.Label();
			m_btnCancel = new System.Windows.Forms.Button();
			m_btnHelp = new System.Windows.Forms.Button();
			label2 = new System.Windows.Forms.Label();
			this.SuspendLayout();
			//
			// label1
			//
			resources.ApplyResources(label1, "label1");
			label1.Name = "label1";
			//
			// m_btnCancel
			//
			resources.ApplyResources(m_btnCancel, "m_btnCancel");
			m_btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			m_btnCancel.Name = "m_btnCancel";
			//
			// m_btnHelp
			//
			resources.ApplyResources(m_btnHelp, "m_btnHelp");
			m_btnHelp.Name = "m_btnHelp";
			m_btnHelp.Click += new System.EventHandler(this.m_btnHelp_Click);
			//
			// label2
			//
			resources.ApplyResources(label2, "label2");
			label2.Name = "label2";
			//
			// m_btnOk
			//
			resources.ApplyResources(this.m_btnOk, "m_btnOk");
			this.m_btnOk.Name = "m_btnOk";
			this.m_btnOk.Click += new System.EventHandler(this.OnOk);
			//
			// m_treeView
			//
			resources.ApplyResources(this.m_treeView, "m_treeView");
			this.m_treeView.ItemHeight = 16;
			this.m_treeView.Name = "m_treeView";
			this.m_treeView.NodeCheckChanged += new System.EventHandler(this.m_treeView_NodeCheckChanged);
			//
			// m_description
			//
			resources.ApplyResources(this.m_description, "m_description");
			this.m_description.Name = "m_description";
			//
			// SaveVersionDialog
			//
			this.AcceptButton = this.m_btnOk;
			resources.ApplyResources(this, "$this");
			this.CancelButton = m_btnCancel;
			this.Controls.Add(this.m_description);
			this.Controls.Add(label2);
			this.Controls.Add(this.m_treeView);
			this.Controls.Add(m_btnHelp);
			this.Controls.Add(m_btnCancel);
			this.Controls.Add(this.m_btnOk);
			this.Controls.Add(label1);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "SaveVersionDialog";
			this.ShowInTaskbar = false;
			this.ResumeLayout(false);
			this.PerformLayout();

		}
Exemplo n.º 9
0
		public override void Initialize()
		{
			m_inMemoryCache = null;
			base.Initialize();
			m_inMemoryCache.InitializeAnnotationDefs();
			m_listOfChecks = new SortedList<ScrCheckKey, IScriptureCheck>();
			m_bookFilter = new FilteredScrBooks(Cache, m_filterInstance);

			m_editChecksControl = new EditorialChecksControl(
				m_scrInMemoryCache.Cache, m_bookFilter, "Dummy Caption", "Dummy Project", null);

			m_checksTree = ReflectionHelper.GetField(
				m_editChecksControl, "m_availableChecksTree") as TriStateTreeView;
		}