Example #1
0
        /*
         * METODOS GENERALES DE SERVICIOS
         */

        private void btnNewServices_Click(object sender, RoutedEventArgs e)
        {
            NewModService nms = new NewModService(0);

            nms.ShowDialog();
            updateDGServices();
        }
Example #2
0
        private void btnModifyServices_Click(object sender, RoutedEventArgs e)
        {
            int ind = dgServices.SelectedIndex;

            if (ind == -1)
            {
                CustomMessageBox.Show(Strings.MsgSeleccionarServicio);
            }
            else
            {
                DataRowView   tmp = (DataRowView)dgServices.SelectedItem;
                DataRow       drt = tmp.Row;
                int           id  = int.Parse(drt[0].ToString());
                NewModService nms = new NewModService(id);
                nms.ShowDialog();
                updateDGServices();
            }
        }