void ReleaseDesignerOutlets() { if (NewNoteOutlet != null) { NewNoteOutlet.Dispose(); NewNoteOutlet = null; } if (MyTextField != null) { MyTextField.Dispose(); MyTextField = null; } if (tblNotes != null) { tblNotes.Dispose(); tblNotes = null; } if (tblColmnNoteTitle != null) { tblColmnNoteTitle.Dispose(); tblColmnNoteTitle = null; } if (noteWebView != null) { noteWebView.Dispose(); noteWebView = null; } if (searchField != null) { searchField.Dispose(); searchField = null; } if (mainWindow != null) { mainWindow.Dispose(); mainWindow = null; } if (notesScrollView != null) { notesScrollView.Dispose(); notesScrollView = null; } }