private void displaySingleCompany(company c) { if (editMode != EditMode.AddNew) { currentlyEditedCompany = c; } if (c != null) { tbName.Text = c.name; tbEmail.Text = c.email; tbPhone.Text = c.phone; tbID.Text = c.id.ToString(); } else { //wyswietlanie pustego koloru tbName.Text = ""; tbEmail.Text = ""; tbPhone.Text = ""; tbID.Text = ""; } return; }
private void CompanyEditorWindow_insertCompany(IErrorable arg1, ICommunicative arg3, company arg2) { insertCompany(arg1, arg3, arg2); }
public CompanyEditor() { InitializeComponent(); currentlySelectedCompany = null; currentlyEditedCompany = new company(); }
private void CompanyEditorWindow_removeCompany(IErrorable arg1, ICommunicative arg3, company arg2) { removeCompany(arg1, arg3, arg2); }