Esempio n. 1
0
        /* Open information windows methods */
        public void ShowLines()
        {
            int i = 1;                          /* Line index */

            LinesDialog ls = new LinesDialog(); /* New window */

            foreach (Line l in Lines)
            {
                ls.DialogList.Items.Add(ToListItem(l, i));
                i++;
            }
            ls.ShowDialog(); /* Show window as dialog */
        }
Esempio n. 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.list = ((ProgettoPlotter.Classes.LinesDialog)(target));
                return;

            case 2:
                this.DialogList = ((System.Windows.Controls.ListBox)(target));
                return;
            }
            this._contentLoaded = true;
        }