9 Star 9 Fork 1

dodola / MEditor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
TabSelectRec.cs 724 Bytes
一键复制 编辑 原始数据 按行查看 历史
dodola 提交于 2013-06-07 10:38 . init commit
using System.Collections.Generic;
namespace MEditor
{
public class TabSelectRec
{
/// <summary>
/// 浏览文档的顺序记录队列,用于关闭tab时激活页面的顺序
/// </summary>
private static readonly Stack<int> _selectSeque = new Stack<int>();
public static void Rec(int ind)
{
_selectSeque.Push(ind);
}
/// <summary>
/// 返回-1 说明没有记录
/// </summary>
/// <returns></returns>
public static int GetLast()
{
if (_selectSeque.Count > 0)
return _selectSeque.Pop();
return -1;
}
}
}
C
1
https://gitee.com/dinophp/meditor.git
git@gitee.com:dinophp/meditor.git
dinophp
meditor
MEditor
master

搜索帮助