コード例 #1
0
        /// <summary>
        /// Open the connection editor window to update a connection
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Edit_Click(object sender, EventArgs e)
        {
            if (!_connectionId.HasValue)
            {
                MessageBox.Show("You must select a connection to edit");
                return;
            }

            ConnectionInfo info = new ConnectionInfo(_connectionId.Value);
            info.ConnectionCreated += info_ConnectionCreated;
            info.ConnectionDeleted += info_ConnectionDeleted;
            info.ConnectionUpdated += info_ConnectionUpdated;
            info.Show();
        }
コード例 #2
0
 /// <summary>
 /// Open the connection editor window to create a new connection
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void CreateNew_Click(object sender, EventArgs e)
 {
     ConnectionInfo info = new ConnectionInfo();
     info.ConnectionCreated += info_ConnectionCreated;
     info.Show();
 }