Пример #1
0
        public TextBox(String parkExt = "", FormMain.Data Owner = null)
        {
            InitializeComponent();
            ParkExt = parkExt;
            _Owner  = Owner;

            foreach (var it in _Owner._Owner.extnames)
            {
                cmbExt.Items.Add(it);
            }
        }
Пример #2
0
        public Calling(FormMain.Data mOwner, Bitmap bmpDlg)
        {
            using (new StackTracer("Calling", new object[] { mOwner, bmpDlg }))
            {
                InitializeComponent();
                _Owner = mOwner;
                cmbGroups.SelectedIndex = _Owner.GroupId >= 0 && _Owner.GroupId < cmbGroups.Items.Count ? _Owner.GroupId : 0;

                /*
                 * FormMain.NewMobileEuromedClinic
                 *  _Owner.NewPhoneEuromedClinic
                 *  _Owner.NewEuromedInVitro
                 */
                //PatientGroup.Text = (_Owner.GroupId == 4 || _Owner.GroupId == 5 || _Owner.GroupId == 9) ? "" : FormMain.NameGroups[_Owner.GroupId];
                FIO.Text  = string.IsNullOrEmpty(_Owner.sFIO) ? FormMain.FormatNumber(_Owner.Number) : _Owner.sFIO;
                Text      = "Звонок от " + FormMain.FormatNumber(_Owner.Number) + " на " + FormMain.FormatNumber(_Owner.NumberReceiv);
                Note.Text = (DateTime.MinValue != _Owner.dtBirthDay ? _Owner.dtBirthDay.ToShortDateString() + " г.р.\n" : "") +
                            _Owner.Comment;

                /*string[] answers = _Owner.GetListAnswer(cmbGroups.SelectedIndex);
                 * cmbAnswers.Items.Clear();
                 * if (answers != null)
                 * {
                 *  foreach (var it in answers)
                 *  {
                 *      cmbAnswers.Items.Add(it);
                 *  }
                 * }*/

                timerClock.Start();
                if (bmpDlg != null)
                {
                    head.BackgroundImage = bmpDlg;
                }
            }
        }