protected virtual void OnEditClicked(object sender, System.EventArgs e)
 {
     Gtk.Button btnEdit = (Gtk.Button) sender;
     string id = btnEdit.Name.Replace("btnEditar_", "");
     bool PoderEditar = true;
     Editar editar = new Editar(this, id, PoderEditar);
     editar.Show();
 }
示例#2
0
    protected virtual void OnVerClicked(object sender, System.EventArgs e)
    {
        Gtk.Button btnVer      = (Gtk.Button)sender;
        string     id          = btnVer.Name.Replace("btnVer_", "");
        bool       PoderEditar = false;
        Editar     editar      = new Editar(this, id, PoderEditar);

        editar.Show();
    }
示例#3
0
        private void BtnUsuarios_Click(object sender, EventArgs e)
        {
            var menu = new Editar();

            menu.FormClosed += (x, y) =>
            {
                this.Show();
            };
            menu.Show();
            this.Hide();
        }
示例#4
0
 void BtnEditarClick(object sender, EventArgs e)
 {
     if(this.myDataGrid.SelectedRows.Count>0){
         DataGridViewRow row = this.myDataGrid.SelectedRows[0];
         DataGridViewCell cell = row.Cells[0];
         string id = cell.Value.ToString();
         Editar editar = new Editar(this, id);
         editar.Show();
     }
 }