Ejemplo n.º 1
0
        public IdType ShowForm(string title, IdType type)
        {
            using (IdTypeForm idtypeForm = new IdTypeForm(title, type))
            {
                if (idtypeForm.ShowDialog() == DialogResult.OK)
                {
                    return(idtypeForm.idtypeCreated);
                }
            }

            return(null);
        }
Ejemplo n.º 2
0
        private void IdtypeCREATE_Click(object sender, EventArgs e)
        {
            var type = new IdType
            {
                Name  = "DNIFA",
                Regex = ""
            };

            var subject = ShowForm("CREATE NEW SUBJECT", (IdType)null);

            if (subject == null)
            {
                return;
            }

            // ShowResponse(APIClient.CreateIdType(type));
        }
 public IdTypeForm(string title, IdType idtype)
 {
     InitializeComponent();
     InitForm(title, idtype);
 }