Esempio n. 1
0
 private void FormApptTypeEdit_Load(object sender, EventArgs e)
 {
     textName.Text         = AppointmentTypeCur.AppointmentTypeName;
     butColor.BackColor    = AppointmentTypeCur.AppointmentTypeColor;
     checkIsHidden.Checked = AppointmentTypeCur.IsHidden;
     _listProcCodes        = ProcedureCodes.GetFromCommaDelimitedList(AppointmentTypeCur.CodeStr);
     _provColor            = Color.Blue;
     _strBTime             = new StringBuilder();
     if (AppointmentTypeCur.Pattern != null)            //logic copied from FormApptEdit
     {
         for (int i = 0; i < AppointmentTypeCur.Pattern.Length; i++)
         {
             _strBTime.Append(AppointmentTypeCur.Pattern.Substring(i, 1));
             if (PrefC.GetLong(PrefName.AppointmentTimeIncrement) == 10)
             {
                 i++;
             }
             else if (PrefC.GetLong(PrefName.AppointmentTimeIncrement) == 15)
             {
                 i++;
                 i++;
             }
         }
     }
     FillTime();
     RefreshListBoxProcCodes();
 }
Esempio n. 2
0
 private void FormApptTypeEdit_Load(object sender, EventArgs e)
 {
     textName.Text         = AppointmentTypeCur.AppointmentTypeName;
     butColor.BackColor    = AppointmentTypeCur.AppointmentTypeColor;
     checkIsHidden.Checked = AppointmentTypeCur.IsHidden;
     _listProcCodes        = ProcedureCodes.GetFromCommaDelimitedList(AppointmentTypeCur.CodeStr);
     _provColor            = Color.Blue;
     _strBTime             = new StringBuilder();
     if (AppointmentTypeCur.Pattern != null)            //logic copied from FormApptEdit
     {
         _strBTime = new StringBuilder(Appointments.ConvertPatternFrom5(AppointmentTypeCur.Pattern));
     }
     FillTime();
     RefreshListBoxProcCodes();
 }