コード例 #1
0
        private void FillOfficeList()
        {
            clinic aClinic = new clinic();

            foreach (DataRow aRow in aClinic.GetAllData("name").Rows)
            {
                aClinic = new clinic();
                aClinic.Load(aRow);

                pnlOffices.Children.Add(GenerateClinicUI(aClinic, user_preferences_clinics.Get(ActiveUser.UserObject.id, aClinic.id)));
            }
        }
コード例 #2
0
        private void FillOfficeList()
        {
            clinic aClinic = new clinic();
            int    incr    = 0;

            foreach (DataRow aRow in aClinic.GetAllData("name").Rows)
            {
                incr    = incr + 30;
                aClinic = new clinic();
                aClinic.Load(aRow);
                var a = GenerateClinicUI(aClinic, user_preferences_clinics.Get(ActiveUser.UserObject.id, aClinic.id), incr);
                pnlOffices.Controls.Add(a);
            }
        }
コード例 #3
0
        private void InitializeClinics()
        {
            clinic cln = new clinic();

            cmbClinic.Items.Clear();
            cmbBasicClinic.Items.Clear();
            cmbClinic.Items.Add("Show All");
            cmbBasicClinic.Items.Add("Show All");

            DataTable dt = cln.Search(cln.SearchSQL + " ORDER BY name");

            foreach (DataRow aClinic in dt.Rows)
            {
                cln = new clinic();
                cln.Load(aClinic);
                cmbClinic.Items.Add(cln);
                cmbBasicClinic.Items.Add(cln);
            }
        }