public override void Initialize(bool isOpen)
        {
            base.Initialize(isOpen);

            status = new SequenceInsertStatus(l, i, e);

            InitGraph();

            WorkbenchSingleton.Workbench.ActiveViewContent.SelectView();
        }
		public override void Recover()
		{
			status = new SequenceInsertStatus(l,i,e);

			base.Recover();
		}
		public override void Initialize(bool isOpen)
		{
			base.Initialize(isOpen);
			
			status = new SequenceInsertStatus(l,i,e);

			InitGraph();
			
			WorkbenchSingleton.Workbench.ActiveViewContent.SelectView();
			
		}
        public override void Recover()
        {
            status = new SequenceInsertStatus(l, i, e);

            base.Recover();
        }
        public override bool GetData()
        {
            ArrayList statusItemList = new ArrayList();

            statusItemList.Clear();

            StatusItemControl statusItemControl = new StatusItemControl();

            Hashtable table = AlgorithmManager.Algorithms.GetExampleDatas();

            if (table != null)
            {
                XmlNode node = table[typeof(SequenceInsert).ToString()] as XmlElement;

                XmlNodeList childNodes = node.ChildNodes;

                StatusItem statusItem = null;

                foreach (XmlElement el in childNodes)
                {
                    string s   = el.Attributes["OriginalString"].Value;
                    int    pos = Convert.ToInt32(el.Attributes["InsertPosition"].Value);
                    char   c   = Convert.ToChar(el.Attributes["InsertData"].Value);

                    statusItem        = new StatusItem(new SequenceInsertStatus(s, pos, c));
                    statusItem.Height = 80;
                    statusItem.Image  = CreatePreviewImage(s, pos, c);
                    statusItemList.Add(statusItem);
                }
            }
            DialogType = typeof(SequenceInsertDialog);

            InitDataForm form = new InitDataForm();

            form.StatusItemList = statusItemList;

            if (form.ShowDialog() != DialogResult.OK)
            {
                return(false);
            }
            if (form.SelectedIndex >= 0)             //说明用户是通过选中某个模板来初始化数据的
            {
                StatusItem selectedItem = form.StatusItemList[form.SelectedIndex] as StatusItem;
                if (selectedItem != null)
                {
                    SequenceInsertStatus tempStatus = selectedItem.ItemInfo as SequenceInsertStatus;
                    if (tempStatus != null)
                    {
                        l = tempStatus.L.Substring(0, tempStatus.Length);
                        i = tempStatus.I;
                        e = tempStatus.E;
                    }
                }
            }
            else              //说明用户选择自定义数据
            {
                l = status.L.Substring(0, status.Length);
                i = status.I;
                e = status.E;
            }
            return(true);
        }