/// <summary> /// Get the selected conference and open the dialog box that allows to /// select the streams to play for this conference /// </summary> /// <param name="sender">The event sender object</param> /// <param name="e">The event arguments</param> private void btnSelect_Click(object sender, System.EventArgs e) { // Ensure there is an item selected (the listview is configured for single row select) Debug.Assert(lvwConferences.SelectedItems.Count == 1); // Get the conference ID of the selected item in the listview ArchiveService.Conference conf = (ArchiveService.Conference)lvwConferences.SelectedItems[0].Tag; this.Hide(); // Note: we pass a reference to FMain form and this form in the ctor so the created form // can communicate with FMain and this form frmArchiveClient client = new frmArchiveClient(this.archiver, conf, Streams, this.refFMain, this); client.Show(); client.Location = new Point( SystemInformation.WorkingArea.Right - client.Width, SystemInformation.WorkingArea.Bottom - client.Height); }
/// <summary> /// Get the selected conference and open the dialog box that allows to /// select the streams to play for this conference /// </summary> /// <param name="sender">The event sender object</param> /// <param name="e">The event arguments</param> private void btnSelect_Click(object sender, System.EventArgs e) { // Ensure there is an item selected (the listview is configured for single row select) Debug.Assert(lvwConferences.SelectedItems.Count == 1); // Get the conference ID of the selected item in the listview ArchiveService.Conference conf = (ArchiveService.Conference)lvwConferences.SelectedItems[0].Tag; this.Hide(); // Note: we pass a reference to FMain form and this form in the ctor so the created form // can communicate with FMain and this form frmArchiveClient client = new frmArchiveClient(this.archiver, conf, Streams, this.refFMain, this); client.Show(); client.Location = new Point( SystemInformation.WorkingArea.Right - client.Width, SystemInformation.WorkingArea.Bottom - client.Height); }