Exemple #1
0
        public FmEmployeeCard()
        {
            InitializeComponent();
            listTextBox = new List <Interface.ITextBox>();

            TxtSurname     = new Tools.MyTextBox(txtSurname, false, true);
            TxtName        = new Tools.MyTextBox(txtName, false, true);
            TxtPatronymic  = new Tools.MyTextBox(txtPatronymic, false, false);
            TxtSeries      = new Tools.MyTextBox(txtSeries, false, false);
            TxtNumber      = new Tools.MyTextBox(txtNumber, true, false);
            TxtPosition    = new Tools.MyTextBox(txtPosition, false, true);
            DtpDateOfBirth = new Tools.MyDataTimePicker(dtpDateOfBirth);
            LbYear         = new Tools.MyLabel(lbEmployeeYear);
            BtnOk          = new Tools.MyButton(btnOK);
            BtnCancel      = new Tools.MyButton(btnCancel);

            base.FormClosing += FmEmployeeCard_FormClosing;

            listTextBox.Add(TxtSurname);
            listTextBox.Add(TxtName);
            listTextBox.Add(TxtPosition);
        }
 public FmConnectionDBView()
 {
     InitializeComponent();
     TxtServer   = new Tools.MyTextBox(txtServer, false, true);
     TxtDatabase = new Tools.MyTextBox(txtDataBase, false, true);
 }