示例#1
0
        private void Form_FormClosed1(object sender, FormClosedEventArgs e)
        {
            FormRenameNetwork form = (FormRenameNetwork)sender;

            if (form.DialogResult == DialogResult.OK)
            {
                toolStripStatusLabel2.Text = nn._state.name;
            }
        }
示例#2
0
        /// <summary>
        /// Rename network
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripStatusLabel2_Click(object sender, EventArgs e)
        {
            if (nn == null)
            {
                MessageBox.Show("Load or create network first", "Error",
                                MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

            FormRenameNetwork form = new FormRenameNetwork(nn._state);

            form.FormClosed += Form_FormClosed1;

            form.ShowDialog();
        }