Ejemplo n.º 1
0
        /// <summary>
        /// Checks desktop
        /// </summary>
        /// <param name="desktop"></param>
        static public void Check(this IDesktop desktop)
        {
            IDesktop            d  = desktop.Root;
            CheckObject         ch = new CheckObject(checkLink);
            List <IObjectLabel> objects;
            List <IArrowLabel>  arrows;

            PureDesktopPeer.GetFullList(d, out objects, out arrows);
            Digraph            graph = PureDesktop.CreateDigraph(objects, arrows, null, ch);
            List <DigraphLoop> loops = graph.Loops;

            foreach (DigraphLoop loop in loops)
            {
                Check(loop);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="list">List of alias names</param>
        public RegressionAliasUserControl(List <string> list)
            : this()
        {
            List <string> lc = new List <string>(list);

            lc.Sort();
            foreach (string s in lc)
            {
                cb.Items.Add(s);
            }
            Label l = new Label();

            l.Text = PureDesktop.GetResourceString("Parameter");
            l.Left = 10;
            l.Top  = 10;
            Controls.Add(l);
            cb.Left = l.Left;
            cb.Top  = 10 + l.Top + l.Height;
            Controls.Add(cb);
            l      = new Label();
            l.Text = PureDesktop.GetResourceString("Dispersion");
            l.Left = cb.Left;
            l.Top  = cb.Top + cb.Height + 10;
            Controls.Add(l);
            dispEdi.Top  = l.Top + l.Height + 10;
            dispEdi.Left = l.Left;
            dispEdi.Text = "0";
            Controls.Add(dispEdi);
            l      = new Label();
            l.Text = PureDesktop.GetResourceString("Delta");
            l.Left = cb.Left;
            l.Top  = dispEdi.Top + dispEdi.Height + 10;
            Controls.Add(l);
            deltaEdi.Top  = l.Top + l.Height + 10;
            deltaEdi.Left = l.Left;
            deltaEdi.Text = "1e-5";
            Controls.Add(deltaEdi);
            Height = deltaEdi.Top + deltaEdi.Height + 10;
            this.LoadResources();
        }
Ejemplo n.º 3
0
 void IDataConsumer.UpdateChildrenData()
 {
     PureDesktop.PerformObjectAction(measurements.UpdateMeasurements, this);
 }