Beispiel #1
0
 public ClientEditor(MySqlHandler msh, Action callback)
 {
     InitializeComponent();
     this._mySqlHandler = msh;
     this._isInsert     = true;
     btnAction.Text     = "Create";
     this._callback     = callback;
 }
Beispiel #2
0
        private void InitializeProgram()
        {
            MySqlClient client = MySqlClient.From("username", "password", "database", "server");

            this._mySqlHandler = new MySqlHandler(client);

            InitializeDatagrid();
        }
Beispiel #3
0
        public ClientEditor(MySqlHandler msh, Action callback, string naam, string voornaam, string adress, int postcode, string gemeente, string tel, string geboortedatum, int id)
        {
            InitializeComponent();
            this._mySqlHandler = msh;
            this._isInsert     = false;
            btnAction.Text     = "Update";
            this._id           = id;
            this._callback     = callback;

            txtNaam.Text   = naam;
            txtVnaam.Text  = voornaam;
            txtAdress.Text = adress;
            txtPost.Text   = postcode.ToString();
            txtGem.Text    = gemeente;
            txtTel.Text    = tel;
            dtpGeb.Text    = geboortedatum;
        }