public ClientEditor(MySqlHandler msh, Action callback) { InitializeComponent(); this._mySqlHandler = msh; this._isInsert = true; btnAction.Text = "Create"; this._callback = callback; }
private void InitializeProgram() { MySqlClient client = MySqlClient.From("username", "password", "database", "server"); this._mySqlHandler = new MySqlHandler(client); InitializeDatagrid(); }
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; }