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