public override void Recover()
        {
            circleNodeIterator     = null;
            lineNodeIterator       = null;
            iteratorInsertNode     = null;
            nullIteratorBezierLine = null;

            status = new CreateListStatus(l);
            base.Recover();
        }
        public override void Initialize(bool isOpen)
        {
            base.Initialize(isOpen);

            status = new CreateListStatus(l);

            InitGraph();

            WorkbenchSingleton.Workbench.ActiveViewContent.SelectView();
        }
Example #3
0
		public override void Recover()
		{
			circleNodeIterator = null;
			lineNodeIterator   = null;
			iteratorInsertNode = null;
			nullIteratorBezierLine = null;

			status = new CreateListStatus(l);
			base.Recover();
		}
        public override bool GetData()
        {
            statusItemList.Clear();

            StatusItemControl statusItemControl = new StatusItemControl();

            Hashtable table = AlgorithmManager.Algorithms.GetExampleDatas();

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

                XmlNodeList childNodes = node.ChildNodes;

                StatusItem statusItem = null;

                foreach (XmlElement el in childNodes)
                {
                    string s = el.Attributes["ListString"].Value;

                    statusItem        = new StatusItem(new CreateListStatus(s));
                    statusItem.Height = 80;
                    statusItem.Image  = CreatePreviewImage(s);
                    statusItemList.Add(statusItem);
                }
            }
            DialogType = typeof(CreateListDialog);

            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)
                {
                    CreateListStatus tempStatus = selectedItem.ItemInfo as CreateListStatus;
                    if (tempStatus != null)
                    {
                        l = tempStatus.L;
                    }
                }
            }
            else              //说明用户选择自定义数据
            {
                l = status.L;
            }
            return(true);
        }
Example #5
0
		public override void Initialize(bool isOpen)
		{
			base.Initialize(isOpen);
			
			status = new CreateListStatus(l);

			InitGraph();
			
			WorkbenchSingleton.Workbench.ActiveViewContent.SelectView();
	
		}