sharpquerypad.cs

来自「SharpDevelop2.0.0 c#开发免费工具」· CS 代码 · 共 81 行

CS
81
字号
// <file>
//     <copyright see="prj:///doc/copyright.txt"/>
//     <license see="prj:///doc/license.txt"/>
//     <owner name="Luc Morin" email=""/>
//     <version>$Revision: 1001 $</version>
// </file>

using System;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Serialization;
using System.IO;
using ICSharpCode.SharpDevelop.Gui;
using SharpQuery.Gui;
using SharpQuery.Gui.TreeView;

//TODO : dans les SharpQueryList faire correspondre les restrictions vec les objets ajoutés
//TODO : dans les SharpQueryList faire correspondre les dataconnection avec les objets ajoutés
//TODO : ajout statistiques.

namespace SharpQuery.Pads
{
	/// <summary>
	/// This Pad Show a tree where you can add/remove databases connections.
	/// You can administrate databases from this tree.
	/// </summary>
	public class SharpQueryPad : AbstractPadContent
	{
		private static SharpQueryTree sharpQueryTree = null;
		#region AbstractPadContent requirements
		/// <summary>
		/// The <see cref="System.Windows.Forms.Control"/> representing the pad
		/// </summary>
		public override Control Control
		{
			get
			{
				return sharpQueryTree;
			}
		}

		/// <summary>
		/// Creates a new SharpQueryPad object
		/// </summary>
		public SharpQueryPad()
		{
			CreateDefaultSharpQuery();
			sharpQueryTree.Dock = DockStyle.Fill;
		}

		void CreateDefaultSharpQuery()
		{
			sharpQueryTree = new SharpQueryTree();
		}

		public void SaveSharpQueryView()
		{
		}

		/// <summary>
		/// Refreshes the pad
		/// </summary>
		public override void RedrawContent()
		{
			//			OnTitleChanged(null);
			//			OnIconChanged(null);
			sharpQueryTree.Refresh();
		}

		/// <summary>
		/// Cleans up all used resources
		/// </summary>
		public override void Dispose()
		{
			this.SaveSharpQueryView();
			sharpQueryTree.Dispose();
		}
		#endregion
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?