Ejemplo n.º 1
0
        public EditPetForm(Pets petObj, User userObj, bool isAddVisit, bool isEditVisit)
        {
            InitializeComponent();

            pet       = petObj;
            user      = userObj;
            addVisit  = isAddVisit;
            editVisit = isEditVisit;

            pet.GetInfo();

            name_textBox.Text   = pet.Name;
            client_textBox.Text = pet.ClientName;
            breed_textBox.Text  = pet.Breed;
            if (pet.Bday == DateTime.Parse("01.01.0001 0:00:00"))
            {
                unknownBD_radioButton.Checked = true;
            }
            else
            {
                unknownBD_radioButton.Checked = false;
                bday_dateTimePicker.Value     = pet.Bday;
            }

            //age_textBox.Text = pet.Age.ToString();
            about_textBox.Text = pet.About;
            if (pet.ALive == true)
            {
                alive_checkBox.Checked = true;
            }
            else
            {
                alive_checkBox.Checked = false;
            }
            oldPet = (Pets)pet.Clone();
        }
Ejemplo n.º 2
0
 private void GetProceduresList(Pets petObj)
 {
     this.v_proceduresTableAdapter.FillByAnimalId(this.monamurDBDataSet.V_procedures, petObj.GetAnimal());
 }
Ejemplo n.º 3
0
 public void GetProcedureList(Pets petObj)
 {
     this.v_proceduresTableAdapter.FillByAnimalId(this.monamurDBDataSet.V_procedures, petObj.Animal);
     procList_dataGridView.Columns["idDataGridViewTextBoxColumn"].Visible = false;
 }