public override bool Evaluate(string input) { var printBlock = new PrintBlock(block); text = Expand(printBlock.String.Text); return(base.Evaluate(input)); }
private void 출력ToolStripMenuItem_Click(object sender, EventArgs e) { PrintBlock block = new PrintBlock(Board, Board); block.Location = _lastRightClicked; AddBlock(block); }
protected override void Initialize() { base.Initialize(); graphicsDevice = GraphicsDevice; /* * Random r = new Random(); * for(int i = 0; i < 5; i++) * { * var temp = new PrintBlock(); * temp.Position = new Point(r.Next(20, 900), r.Next(20, 600)); * Objects.Add(temp); * } */ var temp = new PrintBlock() { name = "1" }; temp.Position = new Point(100, 50); Objects.Add(temp); temp = new PrintBlock() { name = "2" }; temp.Position = new Point(100, 150); Objects.Add(temp); temp = new PrintBlock() { name = "3" }; temp.Position = new Point(100, 250); Objects.Add(temp); temp = new PrintBlock() { name = "4" }; temp.Position = new Point(100, 350); Objects.Add(temp); temp = new PrintBlock() { name = "5" }; temp.Position = new Point(100, 450); Objects.Add(temp); }
public static PrintingDataGridViewProvider Create(PrintDocument printDocument, DataGridView dgv, bool printLevelByLevel, bool mustCenterPartition, bool mustFitColumnsToPage, PrintBlock titlePrintBlock, PrintBlock sheetHeader, PrintBlock sheetFooter) { return(new PrintingDataGridViewProvider( new GridDrawer(dgv, mustCenterPartition, mustFitColumnsToPage) { SheetHeader = sheetHeader, SheetFooter = sheetFooter, TitlePrintBlock = titlePrintBlock, MustPrintLevelByLevel = printLevelByLevel }, printDocument)); }
public static PrintingDataGridViewProvider Create(PrintDocument printDocument, DataGridView dgv, bool printLevelByLevel, bool mustCenterPartition, bool mustFitColumnsToPage, PrintBlock titlePrintBlock, PrintBlock sheetHeader, PrintBlock sheetFooter) { return new PrintingDataGridViewProvider( new GridDrawer(dgv, mustCenterPartition, mustFitColumnsToPage) { SheetHeader = sheetHeader, SheetFooter = sheetFooter, TitlePrintBlock = titlePrintBlock, MustPrintLevelByLevel = printLevelByLevel }, printDocument); }
public MessageBoxBlockControl(PrintBlock block) { InitializeComponent(); _block = block; }