コード例 #1
0
        private void btn_NewProfile_Click(object sender, EventArgs e)
        {
            f_EditProfile ep = new f_EditProfile();

            ep.sqlc = _sqlc;
            ep.edit = false;
            ep.ShowDialog();
            fillProfiles();
        }
コード例 #2
0
        private void btn_EditProfile_Click(object sender, EventArgs e)
        {
            f_EditProfile fedp = new f_EditProfile();

            fedp.prof = prof;
            fedp.edit = true;
            fedp.sqlc = sqlc;
            fedp.ShowDialog();

            foreach (profile p in c_DBHandler.getProfiles(sqlc))
            {
                if (p.name == prof.name)
                {
                    prof = p;
                }
            }
        }