Exemplo n.º 1
0
        private void Button_Add(object sender, RoutedEventArgs e)
        {
            frmAddProgram pre = new frmAddProgram();

            pre.Name            = "frmAdd";
            pre.TxtID.IsEnabled = false;
            pre.ShowDialog();
        }
Exemplo n.º 2
0
        private void lstBxInk_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            int           ID  = int.Parse(lstBxprogram.SelectedValue.ToString());
            frmAddProgram pro = new frmAddProgram(ID);

            pro.TxtName.IsEnabled = false;
            pro.TxtDesc.IsEnabled = false;
            //pro.btn_add_save.Visibility = Visibility.Hidden;
            //pro.btn_up_save.Visibility = Visibility.Hidden;
            //pro.BtnClear.IsEnabled = false;
            pro.ShowDialog();
        }
Exemplo n.º 3
0
 private void Button_Update(object sender, RoutedEventArgs e)
 {
     if (lstBxprogram.SelectedIndex < 0)
     {
         return;
     }
     else
     {
         int           ID  = int.Parse(lstBxprogram.SelectedValue.ToString());
         frmAddProgram pro = new frmAddProgram(ID);
         pro.Name = "frmUdate";
         pro.ShowDialog();
     }
 }