示例#1
0
        public ucParameters()
        {
            pIntListDelim = "~";
              pPerf = null;
              _autoHeight = false;

              InitializeComponent();

              #region Добавлено DSY 29.11.2007
              _lblFilter = new Label();
              _lblFilter.Text = "Фильтр";
              _lblFilter.TextAlign = ContentAlignment.BottomCenter;
              _lblFilter.Dock = DockStyle.Top;
              _lblFilter.Visible = false;
            //      this.Controls.Add(_lblFilter);
              #endregion

              _tlp = new TableLayoutPanel();
              _tlp.Dock = DockStyle.Fill;
              _tlp.AutoScroll = true;
              //_tlp.AutoSize = true;
              _tlp.RowCount = 0;
              this.Controls.Add(_tlp);
        }
示例#2
0
        public void Load(Performer aPrf)
        {
            if (SelectedNode != null)
                _prevSelectedQuery = SelectedNode.Tag as Query;

            Nodes.Clear();

            mCurrSession = aPrf.pSes;

            if (aPrf == null || aPrf.pQueries.Count == 0)
                return;

            Stack ownStack = new Stack(16);
            string [] ss = null;
            string [] prevSS = new string[0];
            TreeNode node = null;
            //ArrayList qns = new ArrayList(_ses.Queries.Count);
            //foreach (Query q in _ses.Queries)
            //	qns.Add(q.Name);
            //	qns.Sort();
            CompareQueryName cqn = new CompareQueryName();
            aPrf.pQueries.Sort(cqn);
            foreach (Query q in aPrf.pQueries)
            {
                if (q.Hidden && (!pViewHidden))
                    continue;

                /// если установлен запрет на отображение, через виртуальную
                /// функцию _IsProhibition
                if (_IsProhibition(q))
                    continue;

                ss = q.Name.Split(PathSeparator.ToCharArray());
                int ii = 0;
                for (; ii < prevSS.Length && ii < ss.Length && prevSS[ii].Equals(ss[ii]); ii++)
                {
                    continue;
                }

                for(int jj = prevSS.Length-ii; jj>0 && ownStack.Count>0; jj--)
                    ownStack.Pop();

                for (; ii < ss.Length; ii++)
                {
                    node = new TreeNode(ss[ii]);
                    node.Tag = q;
                    if (ownStack.Count > 0)
                    {
                        ((TreeNode)ownStack.Peek()).Nodes.Add(node);
                        if (q.Hidden)
                            node.ForeColor = SystemColors.GrayText;
                    }
                    else
                    {
                        Nodes.Add(node);
                    }

                    ownStack.Push(node);
                }
                prevSS = ss;
            }

            if (_prevSelectedQuery != null)
                SelectedNode = FindNodeByQuery(Nodes, _prevSelectedQuery);

            if (pViewHidden)
                ViewCodeText(Nodes);
        }
示例#3
0
 public ucParamCbo(Performer aPerf)
 {
     mPerf = aPerf;
       pIntListDelim = "~";
       this.DropDown += new EventHandler(_DoDropDown);
 }
示例#4
0
 public ucParamCboInt(Performer aPerf)
     : base(aPerf)
 {
 }
示例#5
0
 public ucParamCboStr(Performer aPerf)
     : base(aPerf)
 {
 }
示例#6
0
 public ucStringParamTV(Performer aPerf)
     : base(aPerf)
 {
 }
示例#7
0
 public ucIntParamTV(Performer aPerf)
     : base(aPerf)
 {
 }
示例#8
0
 public ucPCParamTV(Performer aPerf)
     : base(aPerf)
 {
 }
示例#9
0
 public ucParamTV(Performer aPerf)
 {
     mPerf = aPerf;
       mLocParams = new ArrayList(2);
       mSQLExps = new string[] { };
       mIsShowEmptyItem = false;
       pIsImageDefined = false;
       pCurrentQuery = null;
 }
示例#10
0
 public Spyhole()
 {
     qp = new Performer();
       _isSesLoaded = false;
       _intervalSec = 1;
 }