示例#1
0
        private void btnAdd_Click(Object sender, EventArgs e)
        {
            using(GBGNodeAddModifyRecord modForm = new GBGNodeAddModifyRecord())
            {
                modForm.ShowDialog(this);

                if(modForm.OkExit)
                {
                    elbRecords.RelativeAdd(modForm.GetRecord(), 1);
                    parent.WriteLogLine("New record accepted.");
                }

                else parent.WriteLogLine("Record creation cancelled.");
            }
        }
示例#2
0
        private void btnAdd_Click(Object sender, EventArgs e)
        {
            using (GBGNodeAddModifyRecord modForm = new GBGNodeAddModifyRecord())
            {
                modForm.ShowDialog(this);

                if (modForm.OkExit)
                {
                    elbRecords.RelativeAdd(modForm.GetRecord(), 1);
                    parent.WriteLogLine("New record accepted.");
                }

                else
                {
                    parent.WriteLogLine("Record creation cancelled.");
                }
            }
        }
示例#3
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.");
                }
            }
        }
示例#4
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.");
            }
        }