示例#1
0
        private void button8_Click(object sender, RoutedEventArgs e)
        {
            if (!tb3Text.Text.Equals(""))
            {
                string qeury = "select * from dbo.secmem_board_extra_ssm_project where ex_pr_name =N'" + tb3Text.Text + "'";

                SqlDataAdapter    adapter = new SqlDataAdapter(qeury, App.scon);
                SqlCommandBuilder builder = new SqlCommandBuilder(adapter);

                adapter.Fill(dt);

                DataView view = new DataView(dt);
                foreach (DataRowView drv in view)
                {
                    d = drv;
                    break;
                }

                AssignmentPage newRPpage3 = new AssignmentPage(d);
                Main.pageNavigation.preClear();
                Main.pageNavigation.backClear();

                Main.ft.Send("CLIENT_TECHNOLOGY\a" + d.Row[0]);
                Main.pageFade.ShowPage(newRPpage3);
            }
        }
        private void button2_Click(object sender, RoutedEventArgs e)
        {//버튼1

            //if btn.content == 문서1 이라면 안하고
            //else 실행

            
            if (!tb1Text.Text.Equals(""))
            {
                
                string qeury = "select * from dbo.secmem_board_extra_ssm_project where ex_pr_name =N'" + tb1Text.Text + "'";
               
                SqlDataAdapter adapter = new SqlDataAdapter(qeury, App.scon);
                SqlCommandBuilder builder = new SqlCommandBuilder(adapter);

                adapter.Fill(dt);
                
                DataView view = new DataView(dt);
                foreach (DataRowView drv in view)
                {
                    d = drv;
                    break;
                }

                AssignmentPage newRPpage1 = new AssignmentPage(d);
                Main.pageNavigation.preClear();
                Main.pageNavigation.backClear();


                Main.ft.Send("CLIENT_TECHNOLOGY\a" + d.Row[0]);
                Main.pageFade.ShowPage(newRPpage1);
            }
            
        }
        private void Row_DoubleClick(object sender, RoutedEventArgs e)
        {
            Console.WriteLine("더블클릭됨");

            // 한개의 ROW 값만 가져오기
            DataRowView d = gridAssignment1.CurrentCell.Item as System.Data.DataRowView;


            // 과제 등록 게시판으로 가기
            AssignmentPage assignPage = new AssignmentPage(d);

            Main.pageNavigation.PushBack(this);
            Main.pageNavigation.preClear();
            Main.pageFade.ShowPage(assignPage);

            if (d.Row[10].Equals("진행중"))//승인후에만 태그가 뜨도록
            {
                Main.ft.Send("CLIENT_TECHNOLOGY\a" + d.Row[0]);
            }

            // NavigationService.Navigate(new AssignmentPage(d));  이거 처리해줘야ㅇ되
        }
示例#4
0
 public static void setAssignPage(AssignmentPage handle) //assignment 페이지에 접근하기 위한 핸들 받아오기
 {
     assignPage = handle;
 }
 public static void setAssignPage(AssignmentPage handle) //assignment 페이지에 접근하기 위한 핸들 받아오기
 {
     assignPage = handle;
 }
        private void Row_DoubleClick(object sender, RoutedEventArgs e)
        {
            Console.WriteLine("더블클릭됨");
            
            // 한개의 ROW 값만 가져오기
            DataRowView d = gridAssignment1.CurrentCell.Item as System.Data.DataRowView;
 

            // 과제 등록 게시판으로 가기
            AssignmentPage assignPage = new AssignmentPage(d); 
            Main.pageNavigation.PushBack(this);
            Main.pageNavigation.preClear();
            Main.pageFade.ShowPage(assignPage);

            if(d.Row[10].Equals("진행중"))//승인후에만 태그가 뜨도록
             Main.ft.Send("CLIENT_TECHNOLOGY\a"+ d.Row[0]);

            // NavigationService.Navigate(new AssignmentPage(d));  이거 처리해줘야ㅇ되
        }