示例#1
0
		void Manager_ProjectOpened(IManager sender, Tilde.Framework.Model.Project project)
		{
			XmlElement historyRoot = project.GetUserConfigurationXML("LuaConsoleHistory");
			if(historyRoot != null)
			{
				m_history.Clear();
				foreach(XmlElement node in historyRoot.ChildNodes)
				{
					m_history.Add(node.InnerText);
				}
				m_historyPosition = m_history.Count;
				inputBox.EmptyUndoBuffer();
				inputBox.Text = "";
			}
		}