Example #1
0
        private void btnGroupsAdd_Click(object sender, System.EventArgs e)
        {
            // show the form user
            FormGroup formGroup = new FormGroup(String.Empty);

            formGroup.Text = "Add Group";
            formGroup.SetMonitorList(groupPresenter.GetMonitorsList());
            formGroup.SetApplicationList(groupPresenter.GetApplicationList());
            if (formGroup.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
            {
                // add to database
                groupPresenter.AddGroup(
                    formGroup.GroupName,
                    formGroup.WholeDesktop,
                    formGroup.AllowMaintenance,
                    formGroup.AllowRemoteControl,
                    formGroup.MonitorId,
                    formGroup.GetSelectedApplicationsId());
            }
        }