c# - Please tell what approach should be used for desktop application -
i planing develop desktop application have multiple logins , according login type options/from view displayed.
i have done database login part turn of view
how can establish have in mind that
- drag , drop required controls , make them visible = false , check type of login , display accordingly
- create separate forms , display 1 one required
for me depends on numbers.
if u have many diffrent user roles , share few controls easier make diffrent form / panel each user type. approach quite dangerous since when want change common control u forced in forms / panels.
thats why recommend group application logic custom controls , build gui them. for example: if have 2 user types ( let's boss , employee ) can build form shared controls / logic , 2 user controls (bosscontrol, employeecontrol) functions boss , employee. after login check add matching user control gui.
Comments
Post a Comment