private void MenuItem_Click_3(object sender, RoutedEventArgs e) { WindowCompanyPlan windowCompanyPlan = new WindowCompanyPlan(); windowCompanyPlan.ShowDialog(); if (windowCompanyPlan.DialogResult.Value && windowCompanyPlan.DialogResult.HasValue) { init(); } }