public PhoneBook(string email, Credentials credentials, Address address, PhoneInfo phoneInfo)
 {
     Email       = email;
     Credentials = credentials;
     Address     = address;
     PhoneInfo   = phoneInfo;
 }
 // стандартный конструктор без параметров
 public PhoneBook()
 {
     Email       = "@";
     Credentials = new Credentials();
     Address     = new Address();
     PhoneInfo   = new PhoneInfo();
 }
Exemple #3
0
 public AddPhoneForm(PhoneInfo phoneInfo, int RowIndex) : this()
 {
     PhoneInfo = phoneInfo; //
     rowIndex  = RowIndex;  //
     //InitializeComponent();
     //PhoneInfoList.Add(new PhoneInfo());
     PhoneInfoList[0] = PhoneInfo;//
     //phoneInfoListDataGridView.DataSource = PhoneInfoList;
     //phoneInfoListDataGridView.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
     //phoneInfoListDataGridView.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Sunken;
     //phoneInfoListDataGridView.ColumnHeadersDefaultCellStyle.Font = new Font("Calibri", 14F, FontStyle.Bold, GraphicsUnit.Pixel);
     this.Text = "Редактирование списка телефонов";//
 }