Ejemplo n.º 1
0
 private void btn_add_Click(object sender, EventArgs e)
 {
     using (var edit = new FmUserEdit(null))
     {
         edit.ShowDialog();
         Refesh();
     }
 }
Ejemplo n.º 2
0
        private void Dv_Main_DoubleClick(object sender, EventArgs e)
        {
            var row = GetFocusRow();

            if (row != null)
            {
                var id = row.Id;
                if (!string.IsNullOrWhiteSpace(id))
                {
                    using (var edit = new FmUserEdit(id))
                    {
                        edit.ShowDialog();
                        Refesh();
                    }
                }
            }
        }