private void ToolbarItem_AboutClicked(object sender, System.EventArgs e) { if (aboutView == null) { aboutView = new AboutView(); aboutView.Closed += AboutClosed; bool needsMove = true; if (aboutViewLocation.X > 0 && aboutViewLocation.Y > 0) { aboutView.Left = aboutViewLocation.X; aboutView.Top = aboutViewLocation.Y; needsMove = false; } aboutView.Show(); if (needsMove) { setWindowPosition(aboutView); aboutViewLocation.X = aboutView.Left; aboutViewLocation.Y = aboutView.Top; } } else { aboutView.Activate(); } }
private void AboutClosed(object sender, System.EventArgs e) { aboutView = null; }