コード例 #1
0
        public formEditNationalAgency(modelNationalAgency agency)
        {
            InitializeComponent();

            originalData = new modelNationalAgency();
            originalData = agency.DeepClone();
            newData      = new modelNationalAgency();
            newData      = agency.DeepClone();
            savedData    = null;

            ShowCountries();
            ShowData(originalData);
        }
コード例 #2
0
        private void ibuttonSave_Click(object sender, EventArgs e)
        {
            GetData(ref newData);

            savedData = new modelNationalAgency();
            savedData = newData.DeepClone();
            this.Hide();
        }