Exemplo n.º 1
0
        private void Circuito_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'cipDatabaseDataSet.fotos' table. You can move, or remove it, as needed.
            this.fotosTableAdapter.Fill(this.cipDatabaseDataSet.fotos);
            //Constantes constantes =
            //    new Constantes();

            //lampComboBox.Items.Clear();
            //reatComboBox.Items.Clear();

            //foreach (string s in constantes.Lamps)
            //{
            //    lampComboBox.Items.Add(s);
            //    reatComboBox.Items.Add(s);
            //}

            data = new CIPData();

            //if (Usuario.Tipo == "AUDIT")
            //{
            //    //menuAuditagem.Enabled = true;
            //    //menuAuditagem.Enabled = false;
            //}
            //else
            //{
            //    //menuAuditagem.Enabled = false;
            //}

            this.WindowState =
                FormWindowState.Maximized;
            this.BringToFront();

            //espessuras
            penWidthLine = 2.5f;
            //this.penWidth = 0.1f;

            //lápis
            dashedGreenPen =
                new Pen(Color.MediumSeaGreen, penWidthLine);
            dashedGreenPen.DashStyle =
                System.Drawing.Drawing2D.DashStyle.Dash;
            solidBluePen =
                new Pen(Color.MediumSlateBlue, penWidthLine);
            solidBluePen.DashStyle =
                System.Drawing.Drawing2D.DashStyle.Solid;

            this.Size = new Size(ImageWidth, ImageHeigth);
            this.AutoScroll = true;
            endScreen.Size = nullSize;
            endScreen.Location = new Point(ImageWidth, ImageHeigth);
            objDrawingBackGround = new Bitmap(ImageWidth, ImageHeigth, System.Drawing.Imaging.PixelFormat.Format16bppRgb555);
            montarCroquiInicio();

            if (data.GetReferencias().Rows.Count > 0)
            {
                preencheReferenciaList();
            }

            ajustaScrollX();
            ajustaScrollY();

            Usuario.configUser();

            //timer1.Enabled = true;

            Cursor.Current = Cursors.Default;
        }
Exemplo n.º 2
0
        //private Port port;
        public CircuitoInserirPonto(System.Collections.SortedList PontosList, 
            int cx, int cy, int cx_, int cy_, 
            bool editando, bool hasPoint)
        {
            data = new CIPData();
            this.hasPoint = hasPoint;
            this.editando = editando;
            this.cx = cx;
            this.cy = cy;
            this.cx_ = cx_;
            this.cy_ = cy_;
            this.PontosList = PontosList;

            InitializeComponent();

            foreach (Ponto p in PontosList.Values)
            {
                ligarComboBox.Items.Add(p.Seq);
            }
        }
Exemplo n.º 3
0
 public CircuitoLigarPonto(System.Collections.SortedList PontosList)
 {
     this.PontosList = PontosList;
     data = new CIPData();
     InitializeComponent();
 }