Пример #1
0
        public VistaRegistrarInspeccion(OPDTO op, AutenticarDTO login)
        {
            InitializeComponent();

            dataGridViewOP.AllowUserToAddRows       = false;
            dataGridViewOP.SelectionMode            = DataGridViewSelectionMode.FullRowSelect;
            dataGridViewOP.ReadOnly                 = true;
            dataGridViewDefectos.AllowUserToAddRows = false;
            dataGridViewDefectos.SelectionMode      = DataGridViewSelectionMode.FullRowSelect;
            dataGridViewDefectos.ReadOnly           = true;

            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            //this.WindowState = FormWindowState.Maximized;
            this.ControlBox = false;

            //cBoxPie.DataSource = Enum.GetValues(typeof(Pie));
            cBoxPie.Items.Add("Derecho");
            cBoxPie.Items.Add("Izquierdo");
            cBoxPie.SelectedIndex = 0;

            cBoxTipoDefecto.DisplayMember = "Descripcion";
            cBoxTipoDefecto.ValueMember   = "Codigo";

            _presentador = new PresentadorRegistrarInspeccion(this, op, login, loginBindingSource, oPBindingSource, defectoBindingSource, tipoDefectoBindingSource);
        }
 public VistaVisualizarInformacion(OPDTO op, AutenticarDTO login)
 {
     InitializeComponent();
     _presentador = new PresentadorVisualizarInformacion(this, op, oPBindingSource);
     dataGridView1.AllowUserToAddRows = false;
     dataGridView1.SelectionMode      = DataGridViewSelectionMode.FullRowSelect;
     dataGridView1.ReadOnly           = true;
     //this.labelTop1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bindingTop1, "", true));
 }
        public PresentadorRegistrarInspeccion(VistaRegistrarInspeccion vista, OPDTO op, AutenticarDTO login, BindingSource loginBindingSource, BindingSource oPBindingSource, BindingSource defectoBindingSource, BindingSource tipoDefectoBindingSource)
        {
            this._vista    = vista;
            this._login    = login;
            this._op       = op;
            this._defectos = new List <DefectoDTO>()
            {
            };

            this._bindingLogin       = loginBindingSource;
            this._bindingOP          = oPBindingSource;
            this._bindingDefectos    = defectoBindingSource;
            this._bindingTipoDefecto = tipoDefectoBindingSource;
        }
Пример #4
0
 public PresentadorVisualizarInformacion(VistaVisualizarInformacion vista, OPDTO op, BindingSource bindingOP)
 {
     this._vista     = vista;
     this._op        = op;
     this._bindingOP = bindingOP;
 }