printDG() public méthode

public printDG ( DataGrid, dataGrid, string title ) : void
dataGrid DataGrid,
title string
Résultat void
Exemple #1
0
        private void Tipareste_Btn_Click(object sender, RoutedEventArgs e)
        {
            PrintDG print = new PrintDG();

            if (opentab == "HS_8")
            {
                coloane = 4;
            }
            print.printDG(Grid_HS, opentab);
        }
Exemple #2
0
        public override void Execute()
        {
            PrintDG print = new PrintDG();

            string[] columns = new string[6];
            columns[0] = "Date";
            columns[1] = "Patient.Surname";
            columns[2] = "Patient.GivenNames";
            columns[3] = "Name";
            columns[4] = "Request.Referrer.FullName";
            columns[5] = "Ward.AbbreviatedFullName";

            string[] columnNames = new string[6];
            columnNames[0] = "Date & Time";
            columnNames[1] = "Surname";
            columnNames[2] = "Given Names";
            columnNames[3] = "Appointment";
            columnNames[4] = "Referrer";
            columnNames[5] = "Ward";

            int[] columnWidths = new int[6];
            columnWidths[0] = 175;
            columnWidths[1] = 100;
            columnWidths[2] = 100;
            columnWidths[3] = 200;
            columnWidths[4] = 250;
            columnWidths[5] = 200;

            var studies = CollectionViewSource.GetDefaultView(StudyList.RetrievedStudies);


            print.printDG(studies, "Appointment List", columns, columnNames, columnWidths);



            //print.printDG(datagridName, "Title");
        }
Exemple #3
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            PrintDG print = new PrintDG();

            print.printDG(listBox, listBox.SelectedItems.ToString());
        }
Exemple #4
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            PrintDG print = new PrintDG();

            print.printDG(dg2, "Title");
        }