コード例 #1
0
        public SpecificationForm(int ID)
        {
            InitializeComponent();

            // Defines the progressbar and submit button to allow the progressbar methods to work in the FormUserControl(base)
            progressBar  = prog;
            submitButton = btnSubmit;

            _specRepo = new SpecificationRepository();

            SpecModel = _specRepo.Get(ID);

            _updatingPage = !SpecModel.IsNew();

            PrepareUpdate();

            DataContext = this;
        }