Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (27 sloc) 0.703 kb
using System;
using System.Collections.Generic;
using System.Text;
namespace MEditor
{
public class TabSelectRec
{
/// <summary>
/// 浏览文档的顺序记录队列,用于关闭tab时激活页面的顺序
/// </summary>
static 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;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.