Example #1
0
        private RegistroAparatos recuperarRegistroa()
        {
            RegistroAparatos toret = new RegistroAparatos();

            toret = toret.RecuperaXml();

            return(toret);
        }
Example #2
0
        private void showBorrarDatos()
        {
            RegistroAparatos     registro  = new RegistroAparatos();
            RegistroReparaciones registro2 = new RegistroReparaciones();

            registro.Clear();
            registro2.Clear();

            Label label1 = new Label()
            {
                Dock = DockStyle.Bottom,
                Text = "Datos Borrados"
            };

            label1.UseMnemonic = true;

            label1.Size = new Size(label1.PreferredWidth, label1.PreferredHeight);
            this.Controls.Add(label1);
        }
Example #3
0
        private void build()
        {
            RegistroAparatos     registroa = recuperarRegistroa();
            RegistroReparaciones registro  = recuperarRegistro();

            var pnlTable = new TableLayoutPanel();

            pnlTable.SuspendLayout();
            pnlTable.Dock = DockStyle.Fill;


            Label apratos = new Label()
            {
                Dock = DockStyle.Top,
                Text = registroa.toString()
            };

            Label label1 = new Label()
            {
                Dock = DockStyle.Top,
                Text = registro.ToString()
            };

            apratos.UseMnemonic = true;
            label1.UseMnemonic  = true;

            apratos.Size = new Size(apratos.PreferredWidth, apratos.PreferredHeight);
            label1.Size  = new Size(label1.PreferredWidth, label1.PreferredHeight);
            this.Controls.Add(label1);
            this.Controls.Add(apratos);


            pnlTable.ResumeLayout(false);
            this.Controls.Add(pnlTable);
            this.MinimumSize = new Size(320, 240);
        }
Example #4
0
 public IntroducirAparatoPanel(String tipo)
 {
     registro  = registro.RecuperaXml();
     this.tipo = tipo;
     build();
 }