Ejemplo n.º 1
0
        private void Button_Add(object sender, RoutedEventArgs e)
        {
            // int ID = int.Parse(LstTrack.SelectedValue.ToString());
            TrackForm tr = new TrackForm();

            tr.Name            = "frmAdd";
            tr.TxtID.IsEnabled = false;
            //tr.btn_up_save.Visibility = Visibility.Hidden;
            tr.ShowDialog();
        }
Ejemplo n.º 2
0
        private void ListBox_MouseDoubleClick()
        {
            int       ID  = int.Parse(LstTrack.SelectedValue.ToString());
            TrackForm trk = new TrackForm(ID);

            trk.TxtName.IsEnabled       = false;
            trk.TxtDesc.IsEnabled       = false;
            trk.btn_add_save.Visibility = Visibility.Hidden;
            trk.btn_up_save.Visibility  = Visibility.Hidden;
            trk.BtnClear.IsEnabled      = false;
            trk.ShowDialog();
        }
Ejemplo n.º 3
0
        private void Button_Update(object sender, RoutedEventArgs e)
        {
            if (LstTrack.SelectedIndex < 0)
            {
                return;
            }
            else
            {
                int       ID  = int.Parse(LstTrack.SelectedValue.ToString());
                TrackForm trk = new TrackForm(ID);
                trk.TxtID.IsEnabled = false;


                trk.Name = "frmUpdate";
                //tr.btn_add_save.Visibility = Visibility.Hidden;
                trk.ShowDialog();
            }
        }
Ejemplo n.º 4
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     TrackForm trk = new TrackForm();
 }