Пример #1
0
        private void bNew_Click(object sender, RoutedEventArgs e)
        {
            WorkersWindow worwin = new WorkersWindow();

            worwin.tbWorkerID.Text = "1";
            worwin.ShowDialog();
        }
Пример #2
0
        private void bOpen_Click(object sender, RoutedEventArgs e)
        {
            WorkersWindow worwin = new WorkersWindow();

            worwin.tbWorkerID.Text = "0";
            worwin.tbName.Text     = "Éster";
            worwin.tbDNI.Text      = "12345678-A";
            worwin.tbSurname.Text  = "Píscore";
            worwin.tbPhone0.Text   = "612345789";
            worwin.tbPhone1.Text   = "912345678";
            worwin.tbProvince.Text = "Cuenca";
            worwin.tbCity.Text     = "Villaverde";
            worwin.dpStart.Text    = "01/05/2015";
            worwin.dpEnd.Text      = "01/09/2015";
            worwin.tbAccount.Text  = "1234-5678-9000-0000";
            worwin.tbSalary.Text   = "1000 €";
            worwin.cbType.Text     = "Recepcionista";
            worwin.tbNotes.Text    = "Buena trabajadora";
            worwin.ShowDialog();
        }