示例#1
0
        public Printer(VugraphLin l, MainRoomLin m)
        {
            document = new Document();
            document.AddSection();
            InitializeBridge();
            document.LastSection.PageSetup = SetMargin();
            document.LastSection.Headers.Primary.Add(SetHeader());
            document.LastSection.Footers.Primary.Add(SetFooter());

            int[,] tab = new int[6, 6];
            for (int i = 0; i < 6; i++)
            {
                for (int j = 0; j < 6; j++)
                {
                    tab[i, j] = j;
                }
            }

            document.LastSection.Add(WriteDeepFinesse(tab));

            RtfDocumentRenderer renderer = new RtfDocumentRenderer();

            renderer.Render(document, "Test.doc", null);

            Process.Start("Test.doc");
        }
示例#2
0
 public BlassTreningENG(VugraphLin vu, MainRoomLin m)
 {
     vugraph            = vu;
     game               = m;
     rezultatMeczuVu    = "Result of the original match ";
     napisPorownania    = "The comparision of the training match to the other two tables listed below:";
     napisLicytacja     = "BIDDING";
     napisDF            = "Number of tricks to take:";
     napisOpisStolu1    = "Training match";
     napisOpisStolu2    = "Open room";
     napisOpisStolu3    = "Closed room";
     napisMecz          = "Match";
     napis_rozdanie     = "Board ";
     napis_zalozenia[1] = "None";
     napis_zalozenia[2] = "NS vul";
     napis_zalozenia[3] = "EW vul";
     napis_zalozenia[4] = "Both";
     napisPrzeciwko     = "  against  ";
     napis_strona       = "Page ";
 }
示例#3
0
        public MainWindow()
        {
            InitializeComponent();
            Settings.SettingStart();
            VugraphLin  v = new VugraphLin("60570.lin");
            MainRoomLin m = new MainRoomLin("cerebro.lin");

            v.ReadLin();
            m.ReadLin();

            // Printer p = new Printer(v,m);

            int[,] lewy = new int[4, 5];
            int[] input = { 7, 7, 9, 6, 7, 7, 7, 9, 6, 7, 6, 6, 4, 6, 5, 6, 6, 4, 6, 5 };
            for (int i = 0; i < 4; i++)
            {
                for (int j = 0; j < 5; j++)
                {
                    lewy[i, j] = input[i * 5 + j];
                }
            }

            BridgeInfo.zabawaMAX(lewy, vulnerabilties.none);


            BlassTrening bt = new BlassTrening(v, m);

            bt.Print();
            //    bbogame bg = new bbogame(m);
            //     bg.Print();

            RtfDocumentRenderer renderer = new RtfDocumentRenderer();

            renderer.Render(bt.document, "Tes2t.doc", null);

            Process.Start("Test.pdf");
        }
示例#4
0
 public bbogame(MainRoomLin m)
 {
     game = m;
 }
示例#5
0
 public BlassTrening(VugraphLin vu, MainRoomLin m)
 {
     vugraph = vu;
     game    = m;
 }