private void lblNewGroup_Click(object sender, EventArgs e)
        {
            using (var form = new Dialogs.NewGroup())
            {
                form.ShowDialog();
                if (!form.Success)
                    return;

                var newGroupId = _controller.NewGroup(_databaseId, form.NewName);
                if (newGroupId == null)
                    return;

                SetActiveGroup(newGroupId.Value);
            }
        }
Exemple #2
0
        private void lblNewGroup_Click(object sender, EventArgs e)
        {
            using (var form = new Dialogs.NewGroup())
            {
                form.ShowDialog();
                if (!form.Success)
                {
                    return;
                }

                var newGroupId = _controller.NewGroup(_databaseId, form.NewName);
                if (newGroupId == null)
                {
                    return;
                }

                SetActiveGroup(newGroupId.Value);
            }
        }