private void btnAddData_Click(object sender, RoutedEventArgs e) { if (_mapDocument == null) { return; } HideBackstageMenu(); AddData tool = new AddData(); tool.OnCreate(_mapDocument); tool.OnEvent(new MapEvent(_mapDocument.FocusMap)); }