Inheritance: System.Windows.Forms.Form
Beispiel #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (!hasConn)
            {
                MessageBox.Show("Please save your project before continuing.", "Adding instruction", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            addInstruction ai = new addInstruction(workingDirectory, conn, 0, this);
            ai.Show();
        }
Beispiel #2
0
        private void instructions_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (!hasConn)
            {
                MessageBox.Show("Please save your project before continuing.", "Editing instruction", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            var tindex = instructions.SelectedNode.Name;
            if (String.IsNullOrEmpty(tindex))
                return;
            int index = Convert.ToInt32(tindex.Replace("id", ""));

            addInstruction ai = new addInstruction(workingDirectory, conn, index, this);
            ai.Show();
        }