private void btnAdd_Click(object sender, EventArgs e)
        {
            var parameters = new AddConnectionsDialog.Parameters();

            if (AddConnectionsDialog.ShowNewDialog(this, parameters) == DialogResult.OK)
            {
                foreach (var _ in parameters.Connections)
                {
                    _monitored[_.Id] = _.Description;
                }
                lsvConnections.Items.Clear();
                var items = _monitored.OrderBy(_ => _.Value);
                foreach (var _ in items)
                {
                    var item_ = lsvConnections.Items.Add(_.Key, _.Value, -1);
                    item_.Tag = _.Key;
                    item_.SubItems.Add("");
                }
                _RefreshStatus();
                _RefreshInterface();
            }
        }
 public static DialogResult ShowNewDialog(IWin32Window owner, Parameters parameters)
 {
     using (var dialog = new AddConnectionsDialog(parameters)) return(dialog.ShowDialog(owner));
 }