Beispiel #1
0
        public AltaVisibilidad(DataGridViewRow row, AbmVisibilidad parent)
        {
            this.parent = parent;
            InitializeComponent();

            this.button1.Text     = "Modificar";
            this.button1.Click   += this.update;
            this.Text             = "Modificar visibilidad";
            this.textBox1.Enabled = false;

            this.visibility_code      = Int32.Parse(row.Cells["cod_visi"].Value.ToString());
            this.textBox1.Text        = row.Cells["visi_desc"].Value.ToString();
            this.numericUpDown1.Value = decimal.Parse(row.Cells["comision_pub"].Value.ToString());
            this.numericUpDown2.Value = decimal.Parse(row.Cells["comision_vta"].Value.ToString());
            this.numericUpDown3.Value = decimal.Parse(row.Cells["comision_envio"].Value.ToString());
        }
Beispiel #2
0
 public AltaVisibilidad(AbmVisibilidad parent)
 {
     this.parent = parent;
     InitializeComponent();
     this.button1.Click += this.insert;
 }