Exemple #1
0
        private void button_editOldRecord_Click(object sender, EventArgs e)
        {
            if (this._oldRecord == null)
            {
                this._oldRecord = new Record();
            }

            RecordDialog dlg = new RecordDialog();

            dlg.Record = this._oldRecord;
            dlg.ShowDialog(this);
            if (dlg.DialogResult == System.Windows.Forms.DialogResult.Cancel)
            {
                return;
            }
            this._oldRecord             = dlg.Record;
            this.textBox_oldRecord.Text = SetInfoDialog.ToString(this._oldRecord);
        }
Exemple #2
0
        void FillInfo()
        {
            this.Clear();

            if (this.Entity == null)
            {
                return;
            }

            this.textBox_action.Text    = this.Entity.Action;
            this.textBox_newRecord.Text = SetInfoDialog.ToString(this.Entity.NewRecord);
            this.textBox_oldRecord.Text = SetInfoDialog.ToString(this.Entity.OldRecord);
            this.textBox_refID.Text     = this.Entity.RefID;
            this.textBox_style.Text     = this.Entity.Style;

            if (this.Entity.OldRecord != null)
            {
                this._oldRecord = this.Entity.OldRecord.Clone();
            }
            if (this.Entity.NewRecord != null)
            {
                this._newRecord = this.Entity.NewRecord.Clone();
            }
        }