public IntPtr CreateFrame(IntPtr parentWindow) { _optionsForm = new OptionsForm(); SetParent(_optionsForm.Handle, parentWindow); _optionsForm.OpenWindowOnInitCheckBox.Click += OnCheckBoxClick; _optionsForm.RestoreWindowLocationCheckBox.Click += OnCheckBoxClick; _optionsForm.Show(); return(_optionsForm.Handle); }
public void DestroyFrame() { _optionsForm?.Close(); _optionsForm = null; }