public frmDoctorOrNurse(Form f) { this.parent = f; InitializeComponent(); doctorsOrNurses = new DoctorOrNurseDB(); state = AddState.NAVIGATE; Populate(doctorsOrNurses.GetCurrentRow()); SetButtonStates(true); }
public frmDoctorOrNurse(string id) { InitializeComponent(); this.idDoc = id; doctorsOrNurses = new DoctorOrNurseDB(); state = AddState.NAVIGATE; SetButtonStates(true); doctorsOrNurses.Find(id); Populate(doctorsOrNurses.GetCurrentRow()); flag = true; }