Esempio n. 1
0
 public CUFormDTO(DbAppContext db, CrudOpr opr, T obj, UserDataDTO userData)
 {
     this.contex   = db;
     this.op       = opr;
     this.obj      = obj;
     this.userData = userData;
 }
Esempio n. 2
0
        public CreateUpdateScientistForm(BaseForm caller, CUFormDTO <ViewScientist> form)
        {
            this.caller = caller;
            //caller.Hide();
            this.formDTO = form;
            this.crudOp  = form.op;
            this.db      = form.contex;

            InitializeComponent();
        }
Esempio n. 3
0
        public CreateUpdateConferenceForm(BaseForm form, CUFormDTO <conference> formDTO)
        {
            caller = form;
            //form.Hide();
            InitializeComponent();

            this.db       = formDTO.contex;
            conferenceDTO = new ConferenceDTO();
            crud          = new ConferenceCrud(db);

            addressCrud = new AddressCrud(db);
            countryCrud = new CountryCrud(db);

            currentCrudOp = formDTO.op;
            this.formDTO  = formDTO;
        }
        public CreateUpdateParticipantForm(BaseForm form, CUFormDTO <ViewConferencesWithParticipant> formDTO)
        {
            caller = form;
            //form.Hide();
            InitializeComponent();

            this.db        = formDTO.contex;
            participantDTO = new ParticipantDTO();

            crud        = new ParticipantCrud(db);
            subjectCrud = new SubjectCrud(db);

            currentCrudOp = formDTO.op;

            this.formDTO = formDTO;

            isChecked = false;
        }
Esempio n. 5
0
        public CarOperationForm(DataFormDTO dataFormDTO, FormDTO <ViewCar> dto)
        {
            this.dataFormDTO = dataFormDTO;

            //dataFormDTO.caller.Hide();

            this.crudOpr = dto.op;
            this.usage   = dto.usage;

            switch (usage)
            {
            case FormUsage.Update:
            case FormUsage.CheckOrder:
                this.dto = dto;
                break;
            }

            InitializeComponent();
        }
Esempio n. 6
0
 public FormDTO(FormUsage usage, CrudOpr opr, T obj)
 {
     this.usage = usage;
     this.op    = opr;
     this.obj   = obj;
 }
Esempio n. 7
0
 public CUScientistFormDTO(DbAppContext db, CrudOpr opr, ViewScientist obj, UserDataDTO userData) : base(db, opr, obj, userData)
 {
 }
 public CUParticipantFormDTO(DbAppContext db, CrudOpr opr, ViewConferencesWithParticipant obj, UserDataDTO userData) : base(db, opr, obj, userData)
 {
 }
Esempio n. 9
0
 public CUConferenceFormDTO(DbAppContext db, CrudOpr opr, conference obj, UserDataDTO userData) : base(db, opr, obj, userData)
 {
 }
 public CUCompanyFormDTO(DbAppContext db, CrudOpr opr, ViewCompany obj, UserDataDTO userData) : base(db, opr, obj, userData)
 {
 }
Esempio n. 11
0
 public CarOperationDTO(FormUsage usage, CrudOpr opr, ViewCar obj) : base(usage, opr, obj)
 {
 }