This is a migrated thread and some comments may be shown as answers.

Creating users with different roles for my winform app

1 Answer 428 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anshul
Top achievements
Rank 1
Anshul asked on 18 Mar 2013, 07:29 AM
Hello
 I'm creating a winform application. I need to create certain users with different roles. Here are the 3 user groups:

Admin : RW: Scheduler, Overall Planning data, Data Filter, Leaves Tracker, Scrum Meeting Data, Available PDs, Resource E-mailer
           : R: Effort Recorder
Coord : RW: Data Filter, Scrum Meeting Data, Resource E-mailer
           : R: Effort Recorder, Leaves Tracker, Available PDs, Overall Planning Data,
Tester    : RW: Effort Recorder, Data Filter
          : R: Overall Planning Data, Leaves Tracker, Scrum Meeting Data

As stated above, Admin, Coord and Tester are the 3 user groups under which I've create multiple users. RW states Read-Write access to each of the modules mentioned above (such as Scheduler, Data Filter etc. ).  R indicates only the Read access.

How could I achieve this using winforms? Could you please help?

Here's the initial code I've so far!

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Login : Form
    {
        public Login()
        {
            InitializeComponent();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Indexer ins = new Indexer();
            ins.MdiParent = this.MdiParent;
            this.Hide();
            ins.ShowDialog();
        }
    }
}

Also, I've attached the design of Indexer which would be the next screens once a user logs in.

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 21 Mar 2013, 08:24 AM
Hello Anshul,

Thank you for writing.

You can read
this codeproject article to help you implement the roles based security model for your application and use our controls to implement the UI portion of your application.

I hope this helps. Do not hesitate to contact us if you have further questions or issues. 

Regards,
Julian Benkov
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
General Discussions
Asked by
Anshul
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or