Revit.SDK.Samples.NewHostedSweep.CS.EdgeFetchForm.buttonOK_Click C# (CSharp) Method

buttonOK_Click() private method

Extract checked edges and verify there are edges checked in the treeView, if there aren't edges to be checked, complain about it with a message box, otherwise close this from.
private buttonOK_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void buttonOK_Click(object sender, EventArgs e)
        {
            ExtractCheckedEdgesAndSelectedSymbol();
            if (m_creationData.EdgesForHostedSweep.Count == 0)
            {
                MessageBox.Show("At least one edge should be selected!");
                return;
            }
            this.DialogResult = DialogResult.OK;
            this.Close();
        }