Example #1
0
        public SignUpForm(DirectumsConfig config)
            : base(config)
        {
            InitializeComponent();

            lbLoginStatus.Text = lbPassStatus.Text = lbConfirmPassStatus.Text = lbEmailStatus.Text = "";
        }
Example #2
0
        public DirectumsForm(DirectumsConfig config)
            : base()
        {
            Config = config;

            StartPosition = FormStartPosition.CenterParent;
        }
Example #3
0
        public UserFilterForm(DirectumsConfig config, UserFilter filter)
            : base(config)
        {
            InitializeComponent();

            this.filter = filter;
            FillForm();
        }
Example #4
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            DirectumsConfig config = new DirectumsConfig();
            LoginForm form = new LoginForm(config);

            Application.Run(form);
        }
Example #5
0
        public UserEditForm(DirectumsConfig config, User user)
            : base(config)
        {
            InitializeComponent();

            this.user = user;

            FillForm();
            RefreshInterface();
        }
Example #6
0
        public LoginForm(DirectumsConfig config)
            : base(config)
        {
            InitializeComponent();

            if (Config.IsAdmin)
            {
                lbSignUp.Visible = false;
            }

            RefreshInterface();
        }
Example #7
0
        public UserManagementForm(DirectumsConfig config, bool showNew)
            : base(config)
        {
            InitializeComponent();

            if (showNew)
            {
                filter.Status[0] = true;
                filter.Status[1] = filter.Status[2] = false;
            }

            UpdateFilterStatus();
            FillUsers(true);
        }
Example #8
0
 public static bool Execute(DirectumsConfig config, UserFilter filter)
 {
     UserFilterForm form = new UserFilterForm(config, filter);
     return form.ShowDialog() == DialogResult.OK;
 }