Exemplo n.º 1
0
        private void btn_add_Click(object sender, RoutedEventArgs e)
        {
            ManageWorkerViewWindow addWorker = new ManageWorkerViewWindow(this.token, -1);

            addWorker.Closed += AddWorker_Closed;
            addWorker.Show();
        }
Exemplo n.º 2
0
        private void btn_update_Click(object sender, RoutedEventArgs e)
        {
            int id = -1;

            for (int i = 0; i < workerViewers.Count; i++)
            {
                if (workerViewers[i].clicked)
                {
                    id = workerViewers[i].Id;
                    break;
                }
            }
            if (id >= 0)
            {
                ManageWorkerViewWindow v = new ManageWorkerViewWindow(this.token, id);
                v.Closed += AddWorker_Closed;
                v.Show();
            }
        }