Esempio n. 1
0
        private void btnModifyRecord_Click(Object sender, EventArgs e)
        {
            RecordBase record = (RecordBase)lbRecords.SelectedItem;

            using (GBGNodeAddModifyRecord modForm = new GBGNodeAddModifyRecord(record))
            {
                modForm.ShowDialog(this);

                if (modForm.OkExit)
                {
                    elbRecords.SelectedReplace(modForm.GetRecord());
                    parent.WriteLogLine("Record modification accepted.");
                }

                else
                {
                    parent.WriteLogLine("Record modification attempt cancelled.");
                }
            }
        }
Esempio n. 2
0
        private void btnModifyNode_Click(Object sender, EventArgs e)
        {
            using (GBGNodeCreateModify modForm = new GBGNodeCreateModify(this, (GenericNode)lbNodes.SelectedItem, false))
            {
                modForm.ShowDialog(this);

                if (modForm.OkExit)
                {
                    if (elbNodes.SelectedReplace(modForm.InternalNode))
                    {
                        WriteLogLine("Node modification accepted.");
                    }
                    else
                    {
                        WriteLogLine("Node modification rejected?");
                    }
                }

                else
                {
                    WriteLogLine("Node modification cancelled.");
                }
            }
        }