Code Monkey home page Code Monkey logo

xsdformeditor's Introduction

Application will be able to show any XSD as a form in WinForms (95% done), Web (using Asp.Net MVC, 0% done), WPF (0% done). Idea is to load any XSD file, show it to user as a form, let user input some data and save data as XML. User will be also able to load default values to form from XML file.

Contributors (many thanks):
* Pekatete - https://github.com/pekatete

MIT License

xsdformeditor's People

Contributors

janstafa avatar pekatete avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

xsdformeditor's Issues

Implementing regex patterns

I have been looking at implementing regex patterns on TextBox(es) that have the restriction. I have come up with a bit of a bodge job as follows:

  1. Add a public dictionary of string, string to the ControlFactory -> key is the textbox name and the value is regex pattern
  2. Add a KeyUp handler function to the ControlFactory that retrieves the pattern from the dictionary using the textbox name - the handler simply either sets the back color to red or (if you add an ErrorProvider) sets an error message showing the pattern (or a chosen string)
  3. Extend the IXAttribute interface to add a property for the pattern (aptly named pattern).
  4. When instatiating the textbox in ControlFactory check for the pattern property in the IXAttribute and if it is not null then add the textbox name to the dictionary with the value being the pattern then wire up the handler
  5. Finally, in the ControlManager Clear() function add a line to clear the ControlFactory dictionary. (PS: this won't be necessary if the dictionary is concurrent)
    Thoughts?

IXAttributes for elements

Is there any particular reason why you do not create IXAttributes for simpletype elements when adding them to the parent container?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.