public static void OpenCloseSwitch() { if (_frmRecordingHistory == null) { _frmRecordingHistory = new FrmRecordingHistory(); var application = ArcMap.Application; int hWnd = application.hWnd; IWin32Window parent = new WindowWrapper(hWnd); _frmRecordingHistory.Show(parent); } else { _frmRecordingHistory.Close(); } }
private void FrmRecordingHistory_FormClosed(object sender, FormClosedEventArgs e) { _frmRecordingHistory = null; }