コード例 #1
0
        /// <summary>
        /// <para>Basic Constructor for Culmulative Count</para>
        /// <para>Gets the current researcher controller</para>
        /// </summary>
        public CumulativeCountView()
        {
            InitializeComponent();
            //get researcher and controller instance
            ObjectDataProvider researcherlist = (ObjectDataProvider)FindResource("researcherlist");

            researcherController = (Controller.ResearcherController)researcherlist.ObjectInstance;
        }
        /// <summary>
        /// <para>Basic constructor for ResearcherListView</para>
        /// <para>Gets current controller instance</para>
        /// </summary>
        public ResearcherListView()
        {
            InitializeComponent();

            //get researcher and controller instance
            ObjectDataProvider researcherlist = (ObjectDataProvider)FindResource("researcherlist");

            controller = (Controller.ResearcherController)researcherlist.ObjectInstance;

            //ListBox initialisation
            ResearcherListView_DisplayBox.SelectionMode = SelectionMode.Single;
        }
コード例 #3
0
        /// <summary>
        /// Basic constructor for Reports window
        /// </summary>
        public Reports()
        {
            InitializeComponent();
            //Get the current researcher list and researcher conrtoller instance
            ObjectDataProvider researcherlist = (ObjectDataProvider)FindResource("researcherlist");

            con = (Controller.ResearcherController)researcherlist.ObjectInstance;

            //Create reports
            controller = new Controller.ReportsController();
            controller.Generate(con.Reseachers);
            Reports_Poor.ItemsSource  = controller.Create_Table(Controller.Report.Poor);
            Reports_Below.ItemsSource = controller.Create_Table(Controller.Report.Below);
            Reports_Min.ItemsSource   = controller.Create_Table(Controller.Report.Meeting);
            Reports_Star.ItemsSource  = controller.Create_Table(Controller.Report.Star);
        }