private void tsmiDetails_Click(object sender, EventArgs e) { if (lvLog.SelectedItems.Count > 0) { EventsView.Show(_eventsViewLink); } }
/// <summary> /// Create or active existing "Events" view. /// </summary> public void ShowEvents() { foreach (DocumentView doc in documentViews) { if (doc is EventsView) { doc.Activate(); return; } } var view = new EventsView(); view.Show(dockPanel, DockState.Document); view.FormClosing += new FormClosingEventHandler(OnDocumentWindowClosing); documentViews.Add(view); }
private void ViewTimersExecute() { EventsView e = new EventsView(); e.Show(); }