Example #1
0
        public static void OpenForm(IWin32Window parent, UserToken token, bool copy)
        {
            if (token != null)
            {
                TokenForm form = new TokenForm(copy ? token.DuplicateHandle() : token);

                _forms.Add(form);
                form.FormClosed += form_FormClosed;

                form.Show(parent);
            }
        }
        public static void OpenForm(IWin32Window parent, UserToken token, bool copy)
        {
            if (token != null)
            {
                TokenForm form = new TokenForm(copy ? token.DuplicateHandle() : token);

                _forms.Add(form);
                form.FormClosed += form_FormClosed;

                form.Show(parent);
            }
        }