private void toolStripButtonAddWorker_Click(object sender, EventArgs e) { FormWorker_AddEdit frmWorAdd = new FormWorker_AddEdit(); frmWorAdd.ShowDialog(); this.view_workerTableAdapter.Fill(this.accessControlSystemDataSet.View_worker); }
private void toolStripButtonEditWorker_Click(object sender, EventArgs e) { FormWorker_AddEdit frmWorEdd = new FormWorker_AddEdit( Convert.ToUInt32(((DataRowView)this.view_workerBindingSource.Current).Row["ID_worker"].ToString()), ((DataRowView)this.view_workerBindingSource.Current).Row["Second_name"].ToString(), ((DataRowView)this.view_workerBindingSource.Current).Row["Name"].ToString(), ((DataRowView)this.view_workerBindingSource.Current).Row["Patronymic"].ToString(), pictureBoxWorker.Image, ((DataRowView)this.view_workerBindingSource.Current).Row["Phone"].ToString(), ((DataRowView)this.view_workerBindingSource.Current).Row["Email"].ToString(), ((DataRowView)this.view_workerBindingSource.Current).Row["Passport"].ToString(), ((DataRowView)this.view_workerBindingSource.Current).Row["Education"].ToString(), Convert.ToUInt32(((DataRowView)this.view_workerBindingSource.Current).Row["ID_department"].ToString()), Convert.ToUInt32(((DataRowView)this.view_workerBindingSource.Current).Row["ID_position"].ToString()) ); frmWorEdd.ShowDialog(); this.view_workerTableAdapter.Fill(this.accessControlSystemDataSet.View_worker); }