Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 private void CompanyEditorWindow_insertCompany(IErrorable arg1, ICommunicative arg3, company arg2)
 {
     insertCompany(arg1, arg3, arg2);
 }
Esempio n. 3
0
 public CompanyEditor()
 {
     InitializeComponent();
     currentlySelectedCompany = null;
     currentlyEditedCompany   = new company();
 }
Esempio n. 4
0
 private void CompanyEditorWindow_removeCompany(IErrorable arg1, ICommunicative arg3, company arg2)
 {
     removeCompany(arg1, arg3, arg2);
 }