public static void OpenForm(NtToken token, string text, bool copy) { if (token != null) { TokenForm form = new TokenForm(copy ? token.Duplicate() : token, text); _forms.Add(form); form.FormClosed += form_FormClosed; form.Show(_main_form); } }
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(NtToken token, bool copy) { if (token != null) { TokenForm form = new TokenForm(copy ? token.Duplicate() : token); _forms.Add(form); form.FormClosed += form_FormClosed; form.Show(_main_form); } }
private static void OpenForm(TokenForm form) { _forms.Add(form); form.FormClosed += form_FormClosed; form.Show(_main_form); }