Exemple #1
0
        public AddForm(EmpModel model, EmployeeAccountingDataSetTableAdapters.Emplayee_tableTableAdapter emplayee_tableTableAdapter)
        {
            InitializeComponent();
            this.Text           = "Редактировать";
            this.groupBox1.Text = "Редактирование сотрудника";

            this.AddRowTable.Name           = "EditRowTable";
            this.AddRowTable.Text           = "Сохранить";
            this.AddRowTable.Click         += new System.EventHandler(this.SaveButtonRow_Click);
            this.AddRowTable.Click         -= addButtonRow_Click;
            this.emplayee_tableTableAdapter = emplayee_tableTableAdapter;

            empModel = model;

            this.NameTextBox.Text       = empModel.Name;
            this.lastNameTextBox.Text   = empModel.LastNmae;
            this.PatronymicTextBox.Text = empModel.Patronymic;
            this.SalaryNumeric.Value    = empModel.Salary;
        }