示例#1
0
        /// <summary>
        /// Handles the Click event of the propertiesToolStripMenuItem control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void propertiesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Node node = GetNode(m_homeId, m_rightClickNode);

            if (node != null)
            {
                // Wait for refreshed config param values
                ConfigurationWakeUpDlg configDlg = new ConfigurationWakeUpDlg(m_manager, node.HomeID, node.ID);
                if (DialogResult.OK == configDlg.ShowDialog(this))
                {
                    // Show the form
                    NodeForm dlg = new NodeForm(node);
                    dlg.ShowDialog(this);
                    dlg.Dispose();
                }
                configDlg.Dispose();
            }
        }
示例#2
0
 private void propertiesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Node node = GetNode(m_homeId, m_rightClickNode);
     if (node != null)
     {
         // Wait for refreshed config param values
         ConfigurationWakeUpDlg configDlg = new ConfigurationWakeUpDlg( m_manager, node.HomeID, node.ID);
         if (DialogResult.OK == configDlg.ShowDialog(this))
         {
             // Show the form
             NodeForm dlg = new NodeForm(node);
             dlg.ShowDialog(this);
             dlg.Dispose();
         }
         configDlg.Dispose();
     }
 }