コード例 #1
0
 public ClientEditor(MySqlHandler msh, Action callback)
 {
     InitializeComponent();
     this._mySqlHandler = msh;
     this._isInsert     = true;
     btnAction.Text     = "Create";
     this._callback     = callback;
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: Arthurdw/Learning
        private void InitializeProgram()
        {
            MySqlClient client = MySqlClient.From("username", "password", "database", "server");

            this._mySqlHandler = new MySqlHandler(client);

            InitializeDatagrid();
        }
コード例 #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;
        }