Пример #1
0
        public void EditReference(int refID)
        {
            var readOnly = !User.HasPermission(PermissionCategory.SUPPORT_REFS, PERMISSION_MASK.UPDATE);

            var control = new ReferenceDetail(User, refID, readOnly);

            PluginManager.Instance.AddNonDockableContent(this, control, string.Format("Reference Detail [{0}]", refID), SizeToContent.Manual);
        }
Пример #2
0
        public void AddNewReference()
        {
            if (!User.HasPermission(PermissionCategory.SUPPORT_REFS, PERMISSION_MASK.INSERT))
            {
                ErrorMessage.Show("You do not have sufficient priviledges to create new references!");
                return;
            }

            var control = new ReferenceDetail(User, -1, false);

            PluginManager.Instance.AddNonDockableContent(this, control, "Reference Detail", SizeToContent.Manual);
        }