Ejemplo 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;
        }