Exemplo n.º 1
0
 /// <summary>
 /// Конструктор по умолчанию.
 /// </summary>
 public AddingCol()
 {
     StartPosition = FormStartPosition.CenterScreen;
     InitializeComponent();
     ActiveControl        = aCName;
     AcceptButton         = okCButton;
     CancelButton         = cancelCButton;
     comboBox1.DataSource = markList.ToNameList();
     comboBox2.DataSource = CountryList();
 }
Exemplo n.º 2
0
        /// <summary>
        /// Конструктор с параметрами.
        /// </summary>
        public EditCol(string name, string country, string phone, string email, string marks)
        {
            InitializeComponent();
            ActiveControl = aCName;
            AcceptButton  = okCButton;
            CancelButton  = cancelCButton;

            aCName.Text         = name;
            contr.Text          = country;
            maskedTextBox1.Text = phone;
            aCMail.Text         = email;
            string[] cmarks;
            cmarks = marks.Split(new string[] { ", " }, StringSplitOptions.RemoveEmptyEntries);
            List <string> list = new List <string>(cmarks);

            markComboBox.DataSource = markList.ToNameList();
            markListBox.DataSource  = list;
            contr.DataSource        = CountryList();
        }