コード例 #1
5
ファイル: PrintClass.cs プロジェクト: mahuidong/c-1200-II
 /// <summary>
 /// 打印信息的初始化
 /// </summary>
 /// <param datagrid="DataGridView">打印数据</param>
 /// <param PageS="int">纸张大小</param>
 /// <param lendscape="bool">是否横向打印</param>
 public PrintClass(DataGridView datagrid, int PageS, bool lendscape)
 {
     this.datagrid = datagrid;//获取打印数据
     this.PageSheet = PageS;//纸张大小
     printdocument = new PrintDocument();//实例化PrintDocument类
     pagesetupdialog = new PageSetupDialog();//实例化PageSetupDialog类
     pagesetupdialog.Document = printdocument;//获取当前页的设置
     printpreviewdialog = new PrintPreviewDialog();//实例化PrintPreviewDialog类
     printpreviewdialog.Document = printdocument;//获取预览文档的信息
     printpreviewdialog.FormBorderStyle = FormBorderStyle.Fixed3D;//设置窗体的边框样式
     //横向打印的设置
     if (PageSheet >= 0)
     {
         if (lendscape == true)
         {
             printdocument.DefaultPageSettings.Landscape = lendscape;//横向打印
         }
         else
         {
             printdocument.DefaultPageSettings.Landscape = lendscape;//纵向打印
         }
     }
     pagesetupdialog.Document = printdocument;
     printdocument.PrintPage += new PrintPageEventHandler(this.printdocument_printpage);//事件的重载
 }
コード例 #2
0
        /// <summary>
        /// 打印变量的基础定义.
        /// </summary>
        private void Init()
        {
            // 初始化 打印文档.
            printDocument1 = new PrintDocument();
            // 定义 打印文档的事件.
            printDocument1.BeginPrint += new System.Drawing.Printing.PrintEventHandler(this.BeginPrint);
            printDocument1.EndPrint   += new System.Drawing.Printing.PrintEventHandler(this.EndPrint);
            printDocument1.PrintPage  += new System.Drawing.Printing.PrintPageEventHandler(this.PrintPage);

            // 定义打印文档的附加信息.
            printDocument1.DocumentName = "打印测试";


            // 初始化 页面设置对话框.
            pageSetupDialog1          = new PageSetupDialog();
            pageSetupDialog1.Document = printDocument1;

            // 初始化 打印预览对话框.
            printPreviewDialog1          = new PrintPreviewDialog();
            printPreviewDialog1.Document = printDocument1;

            // 初始化 打印对话框.
            printDialog1          = new PrintDialog();
            printDialog1.Document = printDocument1;
        }
コード例 #3
0
        /// <summary>
        /// Display a <see cref="PageSetupDialog" /> to the user, allowing them to modify
        /// the print settings for this <see cref="ZedGraphControl" />.
        /// </summary>
        public void DoPageSetup()
        {
            PrintDocument pd = PrintDocument;

            // Add a try/catch pair since the users of the control can't catch this one
            try {
                if (pd != null) {
                    //pd.PrintPage += new PrintPageEventHandler( GraphPrintPage );
                    PageSetupDialog setupDlg = new PageSetupDialog();
                    setupDlg.Document = pd;

                    if (setupDlg.ShowDialog() == DialogResult.OK) {
                        pd.PrinterSettings = setupDlg.PrinterSettings;
                        pd.DefaultPageSettings = setupDlg.PageSettings;

                        // BUG in PrintDocument!!!  Converts in/mm repeatedly
                        // http://support.microsoft.com/?id=814355
                        // from http://www.vbinfozine.com/tpagesetupdialog.shtml, by Palo Mraz
                        //if ( System.Globalization.RegionInfo.CurrentRegion.IsMetric )
                        //{
                        //	setupDlg.Document.DefaultPageSettings.Margins = PrinterUnitConvert.Convert(
                        //	setupDlg.Document.DefaultPageSettings.Margins,
                        //	PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter );
                        //}
                    }
                }
            }

            catch (Exception exception) {
                MessageBox.Show(exception.Message);
            }
        }
コード例 #4
0
 private void InitializeComponent()
 {
     this.PageSetupDialog1 =
         new System.Windows.Forms.PageSetupDialog();
     this.Button1  = new System.Windows.Forms.Button();
     this.ListBox1 = new System.Windows.Forms.ListBox();
     this.SuspendLayout();
     //
     //Button1
     //
     this.Button1.Location = new System.Drawing.Point(104, 24);
     this.Button1.Name     = "Button1";
     this.Button1.Size     = new System.Drawing.Size(88, 40);
     this.Button1.TabIndex = 0;
     this.Button1.Text     = "Modify page settings";
     this.Button1.Click   += new System.EventHandler(Button1_Click);
     //
     //ListBox1
     //
     this.ListBox1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.ListBox1.Location = new System.Drawing.Point(0, 106);
     this.ListBox1.Name     = "ListBox1";
     this.ListBox1.Size     = new System.Drawing.Size(292, 160);
     this.ListBox1.TabIndex = 1;
     //
     //Form1
     //
     this.ClientSize = new System.Drawing.Size(292, 266);
     this.Controls.Add(this.ListBox1);
     this.Controls.Add(this.Button1);
     this.Name = "Form1";
     this.Text = "Form1";
     this.ResumeLayout(false);
 }
コード例 #5
0
 /// <summary>
 /// Shows the page settings dialog</summary>
 public void ShowPageSettingsDialog()
 {
     PageSetupDialog pageSetupDialog = new PageSetupDialog();
     PrintDocument printDocument = GetPrintDocument();
     pageSetupDialog.Document = printDocument;
     pageSetupDialog.ShowDialog();
 }
コード例 #6
0
        //Stream streamToPrint, string streamType
        //2�����Print��ӡ����
        public void StartPrint()
        {
            //����ֵ��PageSettings A4\A5
            PageSettings ps = new PageSettings();
            //��ʾ���ô�ӡҳ�Ի���
            PageSetupDialog Psdl = new PageSetupDialog();
            //��ӡ������ã�ע�⣬�÷��������printpage�������档
            PrintDialog pt = new PrintDialog();
            pt.AllowCurrentPage = true;
            pt.AllowSomePages = true;
            pt.AllowPrintToFile = true;
            //       StreamToPrint = streamToPrint;//��ӡ���ֽ���
            //       StreamType = streamType; //��ӡ������
            //       printDocument1.DocumentName = Filename; //��ӡ���ļ���
            Psdl.Document = printDocument1;
            //       PrintPreview.Document = printDocument1;
            pt.Document = printDocument1;
            Psdl.PageSettings = printDocument1.DefaultPageSettings;
            try
            {
                //ҳ�����öԻ���
                if (Psdl.ShowDialog() == DialogResult.OK)
                {
                    ps = Psdl.PageSettings;
                    printDocument1.DefaultPageSettings = Psdl.PageSettings;
                }
                //ѡ���ӡ���Ի���
                if (pt.ShowDialog() == DialogResult.OK)
                {
                    printDocument1.PrinterSettings.Copies = pt.PrinterSettings.Copies;
                    //printDocument1.Print();
                    if (!checkBoxAll.Checked)
                    {
                        printDocument1.Print();
                    }
                    else
                    {
                        for (int i = 0; i < dataGridView1.RowCount; i++)
                        {
                            ShowTag(i);
                            printDocument1.Print();
                        }
                    }

                }
                ////��ӡԤ���Ի���
                //if (PrintPreview.ShowDialog() == DialogResult.OK)
                //{
                //    //���ô�ӡ
                //    printDocument1.Print();
                //}

                //PrintDocument�����Print()������PrintController����ִ��PrintPage�¼���
            }
            catch (InvalidPrinterException ex)
            {
                MessageBox.Show(ex.Message, "Simple Editor", MessageBoxButtons.OK, MessageBoxIcon.Error);
                throw;
            }
        }
コード例 #7
0
ファイル: PrintDV.cs プロジェクト: Avaruz/Avaruz.FrameWork
        public static void Print_DataGridView(DataGridView dgv1, string printTitle, bool printAllRows, bool fitToPageWidth)
        {
            PrintPreviewDialog ppvw;
            try
            {

                // Getting DataGridView object to print
                dgv = dgv1;

                // Getting all Coulmns Names in the DataGridView
                AvailableColumns.Clear();
                foreach (DataGridViewColumn c in dgv.Columns)
                {
                    if (!c.Visible) continue;
                    AvailableColumns.Add(c.HeaderText);
                }

                // Showing the PrintOption Form
                //PrintOptions dlg = new PrintOptions(AvailableColumns);
                //if (dlg.ShowDialog() != DialogResult.OK) return;

                PrintTitle = printTitle;
                PrintAllRows = printAllRows;
                FitToPageWidth = fitToPageWidth;
                SelectedColumns = AvailableColumns;

                RowsPerPage = 0;

                ppvw = new PrintPreviewDialog();
                PageSetupDialog psd = new PageSetupDialog();
                psd.Document = printDoc;
                psd.ShowDialog();
                printDoc.DefaultPageSettings = psd.PageSettings;
                ppvw.Document = printDoc;

                // Showing the Print Preview Page
                printDoc.BeginPrint += new System.Drawing.Printing.PrintEventHandler(PrintDoc_BeginPrint);
                printDoc.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(PrintDoc_PrintPage);
                //printDoc.QueryPageSettings += new System.Drawing.Printing.QueryPageSettingsEventHandler(printDoc_QueryPageSettings);
                if (ppvw.ShowDialog() != DialogResult.OK)
                {
                    printDoc.BeginPrint -= new System.Drawing.Printing.PrintEventHandler(PrintDoc_BeginPrint);
                    printDoc.PrintPage -= new System.Drawing.Printing.PrintPageEventHandler(PrintDoc_PrintPage);
                    return;
                }

                // Printing the Documnet
                printDoc.Print();
                printDoc.BeginPrint -= new System.Drawing.Printing.PrintEventHandler(PrintDoc_BeginPrint);
                printDoc.PrintPage -= new System.Drawing.Printing.PrintPageEventHandler(PrintDoc_PrintPage);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            finally
            {

            }
        }
コード例 #8
0
ファイル: Printing.cs プロジェクト: dbbotkin/PrimeComm
		public DialogResult ShowPageSetupDialog()
		{
			PageSetupDialog psd = new PageSetupDialog();
			psd.PageSettings = PageSettings;
			psd.PrinterSettings = PageSettings.PrinterSettings;
			return psd.ShowDialog();
		}
コード例 #9
0
ファイル: PrintService.cs プロジェクト: rizwan3d/elalang
 public DialogResult ShowPageSetupDialog(ScintillaPrintDocument doc)
 {
     var psd = new PageSetupDialog();
     psd.AllowPrinter = true;
     psd.PageSettings = doc.DefaultPageSettings;
     psd.PrinterSettings = doc.DefaultPageSettings.PrinterSettings;
     return psd.ShowDialog(WB.Form);
 }
コード例 #10
0
ファイル: forms.cs プロジェクト: eddylin2015/SALForm
 public PubPrintMemo(RichTextBox rtb)
 {
     this.printDoc     = new PubPrintTextMemoDoc(rtb);
     this.ppDialog     = new System.Windows.Forms.PrintPreviewDialog();
     this.oPrintDialog = new System.Windows.Forms.PrintDialog();
     this.oPageSetup   = new System.Windows.Forms.PageSetupDialog();
     oPageSettings     = new PageSettings();
     this.oPrintDialog.AllowSomePages = true;
 }
コード例 #11
0
ファイル: TextPrinter.cs プロジェクト: k4gdw/GSharpTools
 void IPrinter.ShowPageSettings()
 {
     PageSetupDialog pageSetupDialog = new PageSetupDialog();
     pageSetupDialog.PageSettings = pgSettings;
     pageSetupDialog.PrinterSettings = prtSettings;
     pageSetupDialog.AllowOrientation = true;
     pageSetupDialog.AllowMargins = true;
     pageSetupDialog.ShowDialog();
 }
コード例 #12
0
ファイル: PagePrinter.cs プロジェクト: sorvis/Fast-Script
 public void filePageSetupMenuItem_Click(Object sender, EventArgs e)
 {
     PageSetupDialog pageSetupDialog = new PageSetupDialog();
     pageSetupDialog.PageSettings = _pageSettings;
     pageSetupDialog.PrinterSettings = _printSettings;
     pageSetupDialog.AllowOrientation = true;
     pageSetupDialog.AllowMargins = true;
     pageSetupDialog.ShowDialog();
 }
コード例 #13
0
ファイル: Printing.cs プロジェクト: erisonliang/qizmt
		public DialogResult ShowPageSetupDialog(IWin32Window owner)
		{
			PageSetupDialog psd = new PageSetupDialog();
			psd.AllowPrinter = true;
			psd.PageSettings = PageSettings;
			psd.PrinterSettings = PageSettings.PrinterSettings;

			return psd.ShowDialog(owner);
		}
コード例 #14
0
        public InvoiceDocumentPrinter()
        {
            pDoc = new PrintDocument();
            pSDlg = new PageSetupDialog();
            pDlg = new PrintDialog();

            pDoc.PrintPage += new PrintPageEventHandler(print_material);
            pSDlg.Document = pDoc;
            pDlg.Document = pDoc;
        }
コード例 #15
0
ファイル: MapOutPut.cs プロジェクト: cardinals/HXCropWatchDB
 private void InitializePageSetupDialog()
 {
     //create a new PageSetupDialog using constructor
     pageSetupDialog1 = new System.Windows.Forms.PageSetupDialog();
     //initialize the dialog's PrinterSettings property to hold user defined printer settings
     pageSetupDialog1.PageSettings = new System.Drawing.Printing.PageSettings();
     //initialize dialog's PrinterSettings property to hold user set printer settings
     pageSetupDialog1.PrinterSettings = new System.Drawing.Printing.PrinterSettings();
     //do not show the network in the printer dialog
     pageSetupDialog1.ShowNetwork = false;
 }
コード例 #16
0
 private void _btnPageSetup_Click(object sender, EventArgs e)
 {
     using (PageSetupDialog dialog = new PageSetupDialog())
     {
         dialog.Document = this.Document;
         if (dialog.ShowDialog(this) == DialogResult.OK)
         {
             this._preview.method_2();
         }
     }
 }
コード例 #17
0
ファイル: Form1.cs プロジェクト: vmykh/printer_labs
 private void button3_Click(object sender, EventArgs e)
 {
     PageSetupDialog pageSetupDialog = new PageSetupDialog();
     pageSetupDialog.PageSettings = pgSettings;
     pageSetupDialog.PrinterSettings = prtSettings;
     pageSetupDialog.AllowOrientation = true;
     pageSetupDialog.AllowMargins = true;
     pageSetupDialog.ShowDialog();
     pd.PrinterSettings = prtSettings;
     pd.DefaultPageSettings = pgSettings;
 }
コード例 #18
0
        private void PageSetupButton_Click(object sender, EventArgs e)
        {
            PageSetupDialog pageSetupDialog = new PageSetupDialog();

            pageSetupDialog.PageSettings = m_DocumentPageSettings;

            if (pageSetupDialog.ShowDialog() == DialogResult.OK)
            {
                m_DocumentPageSettings = pageSetupDialog.PageSettings;
            }
        }
コード例 #19
0
ファイル: TestLogic.cs プロジェクト: linghuyong/DeckManager
        public void TestPrint()
        {
            PrintDocument document = new PrintDocument();
            document.PrintPage += new PrintPageEventHandler(Document_PrintPage);
            PageSetupDialog setup_dialog = new PageSetupDialog();
            setup_dialog.Document = document;
            setup_dialog.ShowDialog();

            PrintPreviewDialog preview_dialog = new PrintPreviewDialog();
            preview_dialog.Document = document;
            //document.DefaultPageSettings.Landscape = true;
            preview_dialog.ShowDialog();
        }
コード例 #20
0
ファイル: Print_Manager.CS プロジェクト: kcb146/editor
    public static void Install ()
    { PrintDoc = new PrintDocument () ;

      SetupDlg = new PageSetupDialog () ;
      PreviewDlg = new PrintPreviewDialog () ;
      PrintDlg = new PrintDialog () ;

      SetupDlg.Document = PrintDoc ;
      PreviewDlg.Document = PrintDoc ;
      PrintDlg.Document = PrintDoc ;

      PrintDoc.PrintPage += new PrintPageEventHandler (OnPrintPage) ;
    }
コード例 #21
0
        // Edit the print settings.
        public void EditPrintSettings()
        {
            // Show the page setup dialog
            PageSetupDialog pageSetupDialog = new PageSetupDialog();
            pageSetupDialog.PageSettings = _pageSettings;
            pageSetupDialog.PrinterSettings = _printerSettings;
            pageSetupDialog.ShowNetwork = false;

            if (pageSetupDialog.ShowDialog() == DialogResult.OK)
            {
                _pageSettings = pageSetupDialog.PageSettings;
                _printerSettings = pageSetupDialog.PrinterSettings;
            }
        }
コード例 #22
0
        /// <summary>
        /// Sets the print document for both the page setup dialog and the print dialog.
        /// </summary>
        /// <param name="printDocument">The document to set.</param>
        public override void SetPrintDocument(System.Drawing.Printing.PrintDocument printDocument)
        {
            if (_pageSetupDialog == null)
            {
                _pageSetupDialog = new System.Windows.Forms.PageSetupDialog();
            }
            if (_printDialog == null)
            {
                _printDialog = new System.Windows.Forms.PrintDialog();
            }

            _pageSetupDialog.Document = printDocument;
            _printDialog.Document     = printDocument;
        }
コード例 #23
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(RepPreview));
     this.crv              = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
     this.button1          = new System.Windows.Forms.Button();
     this.pageSetupDialog1 = new System.Windows.Forms.PageSetupDialog();
     this.printDialog1     = new System.Windows.Forms.PrintDialog();
     this.SuspendLayout();
     //
     // crv
     //
     this.crv.ActiveViewIndex       = -1;
     this.crv.DisplayBackgroundEdge = false;
     this.crv.DisplayGroupTree      = false;
     this.crv.Dock             = System.Windows.Forms.DockStyle.Fill;
     this.crv.Font             = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.crv.Name             = "crv";
     this.crv.ReportSource     = "";
     this.crv.ShowExportButton = false;
     this.crv.Size             = new System.Drawing.Size(416, 281);
     this.crv.TabIndex         = 0;
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(314, 0);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(100, 24);
     this.button1.TabIndex = 1;
     this.button1.Text     = "Выбор принтера";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // RepPreview
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.ClientSize        = new System.Drawing.Size(416, 281);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.button1,
         this.crv
     });
     this.Font          = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.KeyPreview    = true;
     this.Name          = "RepPreview";
     this.ShowInTaskbar = true;
     this.Text          = "Предварительный просмотр документа";
     this.WindowState   = System.Windows.Forms.FormWindowState.Maximized;
     this.KeyDown      += new System.Windows.Forms.KeyEventHandler(this.RepPreview_KeyDown);
     this.ResumeLayout(false);
 }
コード例 #24
0
 private void btn_PageSetup_Click(object sender, EventArgs e)
 {
     try
     {
         PageSetupDialog psetup = new PageSetupDialog();
         if (this.m_PageSetting == null)
             this.m_PageSetting = new PageSettings();
         psetup.PageSettings = this.m_PageSetting;
         psetup.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #25
0
ファイル: PrintService.cs プロジェクト: ikvm/webmatrix
 void IPrintService.ConfigurePrintSettings()
 {
     PageSetupDialog dialog = new PageSetupDialog();
     dialog.PageSettings = this.PageSettings;
     dialog.PrinterSettings = this.PageSettings.PrinterSettings;
     dialog.ShowHelp = false;
     try
     {
         dialog.ShowDialog();
     }
     catch (Exception exception)
     {
         MessageBox.Show("Unable to open print settings.\n\nDetails:\n" + exception.Message, "Print Setttings");
     }
 }
コード例 #26
0
ファイル: Form1.cs プロジェクト: Vlanta/CspBase
        /// <summary>
        /// 页面设置事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void pageSteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                PageSetupDialog setupDialog = new PageSetupDialog();
                if (storedPageSettings == null)
                    storedPageSettings = new PageSettings();

                setupDialog.PageSettings = storedPageSettings;
                setupDialog.ShowDialog();
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message);
            }
        }
コード例 #27
0
        //2�����Print��ӡ����
        public void StartPrint(Stream streamToPrint, string streamType)
        {
            //����ֵ��PageSettings A4\A5
            PageSettings ps = new PageSettings();
            //��ʾ���ô�ӡҳ�Ի���
            PageSetupDialog Psdl = new PageSetupDialog();
            //��ӡ������ã�ע�⣬�÷��������printpage�������档
            PrintDialog pt = new PrintDialog();
            pt.AllowCurrentPage = true;
            pt.AllowSomePages = true;
            pt.AllowPrintToFile = true;
            StreamToPrint = streamToPrint;//��ӡ���ֽ���
            StreamType = streamType; //��ӡ������
            pdDocument.DocumentName = Filename; //��ӡ���ļ���
            Psdl.Document = pdDocument;
            PrintPreview.Document = pdDocument;
            pt.Document = pdDocument;
            Psdl.PageSettings = pdDocument.DefaultPageSettings;
            try
            {
                //ҳ�����öԻ���
                if (Psdl.ShowDialog() == DialogResult.OK)
                {
                    ps = Psdl.PageSettings;
                    pdDocument.DefaultPageSettings = Psdl.PageSettings;
                }
                //ѡ���ӡ���Ի���
                if (pt.ShowDialog() == DialogResult.OK)
                {
                    pdDocument.PrinterSettings.Copies = pt.PrinterSettings.Copies;
                    pdDocument.Print();
                }
                //��ӡԤ���Ի���
                if (PrintPreview.ShowDialog() == DialogResult.OK)
                {
                    //���ô�ӡ
                    pdDocument.Print();
                }

                //PrintDocument�����Print()������PrintController����ִ��PrintPage�¼���
            }
            catch (InvalidPrinterException ex)
            {
                MessageBox.Show(ex.Message, "Simple Editor", MessageBoxButtons.OK, MessageBoxIcon.Error);
                throw;
            }
        }
コード例 #28
0
 public PubPrintMemo(RichTextBox rtb)
 {
     this.printDoc     = new PubPrintTextMemoDoc(rtb);
     this.ppDialog     = new System.Windows.Forms.PrintPreviewDialog();
     this.oPrintDialog = new System.Windows.Forms.PrintDialog();
     this.oPageSetup   = new System.Windows.Forms.PageSetupDialog();
     oPageSettings     = new PageSettings();
     //
     // oPrintDialog
     //
     //
     // printDoc
     //
     //this.printDoc.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDoc_PrintPage);
     //
     this.oPrintDialog.AllowSomePages = true;
     // this.oPrintDialog.PrintToFile = true;
 }
コード例 #29
0
ファイル: printView.cs プロジェクト: lordsokol/ShaolinApp
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(printView));
     this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
     this.printDocument1      = new System.Drawing.Printing.PrintDocument();
     this.button1             = new System.Windows.Forms.Button();
     this.pageSetupDialog1    = new System.Windows.Forms.PageSetupDialog();
     this.SuspendLayout();
     //
     // printPreviewDialog1
     //
     this.printPreviewDialog1.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.ClientSize        = new System.Drawing.Size(400, 300);
     this.printPreviewDialog1.Enabled           = true;
     this.printPreviewDialog1.Icon            = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon")));
     this.printPreviewDialog1.Location        = new System.Drawing.Point(17, 17);
     this.printPreviewDialog1.MinimumSize     = new System.Drawing.Size(375, 250);
     this.printPreviewDialog1.Name            = "printPreviewDialog1";
     this.printPreviewDialog1.TransparencyKey = System.Drawing.Color.Empty;
     this.printPreviewDialog1.Visible         = false;
     //
     // button1
     //
     this.button1.Font     = new System.Drawing.Font("Tempus Sans ITC", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.button1.Location = new System.Drawing.Point(256, 232);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(336, 24);
     this.button1.TabIndex = 2;
     this.button1.Text     = "Close Word After printing is finished";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // printView
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(9, 25);
     this.BackgroundImage   = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.ClientSize        = new System.Drawing.Size(787, 548);
     this.Controls.Add(this.button1);
     this.Font          = new System.Drawing.Font("Tempus Sans ITC", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Name          = "printView";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text          = "Print Flash Cards";
     this.ResumeLayout(false);
 }
コード例 #30
0
ファイル: PageSetup.cs プロジェクト: gipasoft/Sfera
      public static void pageSetup_Click(
         object                     sender, 
         System.EventArgs           e, 
         TXTextControl.TextControl  tc,
         FileHandler                fh
      )
      {
         PageSetupDialog psd = new PageSetupDialog();
         psd.Document = new PrintDocument();

         tc.PageUnit = TXTextControl.MeasuringUnit.CentiInch;

         psd.EnableMetric = true;
         psd.PageSettings.PaperSize 
            = GetTxPaperSize(
                  tc.Selection.SectionFormat.PageSize, 
                  tc.Selection.SectionFormat.Landscape
              );

         Margins mrgDlg = psd.PageSettings.Margins;
         TXTextControl.PageMargins mrgTX = tc.Selection.SectionFormat.PageMargins;
         mrgDlg.Top = (int)mrgTX.Top; mrgDlg.Right = (int)mrgTX.Right;
         mrgDlg.Bottom = (int)mrgTX.Bottom; mrgDlg.Left = (int)mrgTX.Left;

         psd.PageSettings.Landscape = tc.Selection.SectionFormat.Landscape;

         if (psd.ShowDialog() == DialogResult.OK)
         {
            mrgDlg = psd.PageSettings.Margins;

            mrgTX.Top = mrgDlg.Top; mrgTX.Right = mrgDlg.Right; 
            mrgTX.Bottom = mrgDlg.Bottom; mrgTX.Left = mrgDlg.Left;

            // Temporarily set page orientation to portrait so the 
            // page size is set correctly
            tc.Selection.SectionFormat.Landscape = false;

            tc.Selection.SectionFormat.PageSize.Height = psd.PageSettings.PaperSize.Height;
            tc.Selection.SectionFormat.PageSize.Width = psd.PageSettings.PaperSize.Width;
            tc.Selection.SectionFormat.Landscape = psd.PageSettings.Landscape;

            fh.DocumentDirty = true;
         }
      }
コード例 #31
0
ファイル: Printing.cs プロジェクト: jbunzel/MvcRQ_git
        /// <summary>
        /// Invokes a Windows.Forms.PrintPreviewDialog.
        /// </summary>
        public static void PageSetupDialog(this TextEditor textEditor)
        {
            PrintSettings settings = textEditor.Tag as PrintSettings;
            if (settings == null)
            {
                settings = new PrintSettings();
                textEditor.Tag = settings;
            }

            settings.PageSettings.Landscape = (settings.PrintTicket.PageOrientation == PageOrientation.Landscape);

            PageSetupDialog setup = new PageSetupDialog();
            setup.EnableMetric = true;
            setup.PageSettings = settings.PageSettings;
            if (setup.ShowDialog() == DialogResult.OK)
            {
                settings.PageSettings = setup.PageSettings;
                settings.PrintTicket.PageOrientation = (settings.PageSettings.Landscape ? PageOrientation.Landscape : PageOrientation.Portrait);
                settings.PrintTicket.PageMediaSize = ConvertPaperSizeToMediaSize(settings.PageSettings.PaperSize);
            }
        }
コード例 #32
0
ファイル: PrintDialog.cs プロジェクト: EdgarEDT/myitoppsp
        // Methods
        internal PrintDialog(ItopVector.DrawArea.DrawArea vcontrol)
        {
            this.components = null;
            this.vectorControl = vcontrol;
            this.pageSetting =  vcontrol.PageSettings;
            this.pageSetupdlg=new PageSetupDialog();
            this.pageSetupdlg.PageSettings=this.pageSetting;
            this.margin = 10;
            this.printdoc = new PrintDocument();
            this.pos = Point.Empty;
            this.scalex = 1f;
            this.scaley = 1f;
            this.startPoint = Point.Empty;
            this.oriPoint = Point.Empty;
            this.InitializeComponent();

            this.printdoc.PrintPage += new PrintPageEventHandler(this.printdoc_PrintPage);

            this.label8.Cursor = SpecialCursors.handCurosr;
            this.CalculateScale();
        }
コード例 #33
0
ファイル: Printing.cs プロジェクト: almostEric/DotNetRDF-4.0
        /// <summary>
        /// Invokes a Windows.Forms.PrintPreviewDialog.
        /// </summary>
        public static void PageSetupDialog()
        {
            InitPageSettings();

            if (m_PrintTicket.PageOrientation == PageOrientation.Landscape)
            {
                m_PageSettings.Landscape = true;
            }
            else
            {
                m_PageSettings.Landscape = false;
            }

            PageSetupDialog setup = new PageSetupDialog();
            setup.EnableMetric = true;
            setup.PageSettings = m_PageSettings;
            if (setup.ShowDialog() == DialogResult.OK)
            {
                m_PageSettings = setup.PageSettings;
                m_PrintTicket.PageOrientation = (m_PageSettings.Landscape ? PageOrientation.Landscape : PageOrientation.Portrait);
                m_PrintTicket.PageMediaSize = ConvertPaperSizeToMediaSize(m_PageSettings.PaperSize);
            }
        }
コード例 #34
0
ファイル: CommonPrinter.cs プロジェクト: marcellus/fivemen
        /// <summary>
        /// Inits the print.
        /// </summary>
        private void  InitPrint()
        {
            printDocument1 = new System.Drawing.Printing.PrintDocument();



            printDialog1 = new System.Windows.Forms.PrintDialog();

            //
            // printDialog1
            //
            printDialog1.Document    = printDocument1;
            printDialog1.UseEXDialog = true;


            printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
            //  printPreviewDialog1.KeyDown += new KeyEventHandler(printPreviewDialog1_KeyDown);
            // printPreviewDialog1.ActiveControl = printPreviewDialog1.Controls[1];

            //
            // printPreviewDialog1
            //
            printPreviewDialog1.AutoScrollMargin  = new System.Drawing.Size(0, 0);
            printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
            printPreviewDialog1.ClientSize        = new System.Drawing.Size(400, 300);
            printPreviewDialog1.Document          = printDocument1;
            printPreviewDialog1.Enabled           = true;
            printPreviewDialog1.Name    = "printPreviewDialog1";
            printPreviewDialog1.Visible = false;


            pageSetupDialog1 = new System.Windows.Forms.PageSetupDialog();
            //
            // pageSetupDialog1
            //
            pageSetupDialog1.Document = printDocument1;
        }
コード例 #35
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                PageSetupDialog psd = new PageSetupDialog();
                PageSettings pageSet = new PageSettings();
                psd.PageSettings = pageSet;
                psd.ShowDialog();

                PrintDocument pd = new PrintDocument();
                pd.PrintPage += new PrintPageEventHandler(pd_PrintPage);

                // pageSettings 값 설정
                pd.DefaultPageSettings = pageSet;

                PrintPreviewDialog ppd = new PrintPreviewDialog();
                ppd.Document = pd;
                ppd.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
コード例 #36
0
ファイル: PrintOption.cs プロジェクト: lexzh/Myproject
 public void PageSetup()
 {
     this.printInit();
     if (this.m_oPgSetupDlg == null)
     {
         this.m_oPgSetupDlg = new PageSetupDialog();
         this.m_oPgSetupDlg.Document = this.m_oPntDoc;
         this.m_oPgSetupDlg.PageSettings = this.m_oPntDoc.DefaultPageSettings;
         this.m_oPgSetupDlg.PageSettings.Landscape = true;
     }
     try
     {
         new PageSettings();
         Margins margins = this.m_oPntDoc.DefaultPageSettings.Margins;
         if (RegionInfo.CurrentRegion.IsMetric)
         {
             margins = PrinterUnitConvert.Convert(margins, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter);
         }
         PageSettings settings = (PageSettings) this.m_oPntDoc.DefaultPageSettings.Clone();
         this.m_oPgSetupDlg.PageSettings = settings;
         this.m_oPgSetupDlg.PageSettings.Margins = margins;
         if (this.m_oPgSetupDlg.ShowDialog() == DialogResult.OK)
         {
             PageSettings pageSettings = this.m_oPgSetupDlg.PageSettings;
             this.m_oPntDoc.DefaultPageSettings = this.m_oPgSetupDlg.PageSettings;
         }
     }
     catch (InvalidPrinterException)
     {
         MessageBox.Show("未安装打印机,请进入系统控制面版添加打印机!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Hand);
     }
 }
コード例 #37
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ConsolePrintUtility));
     this.dialogPrintPreview = new System.Windows.Forms.PrintPreviewDialog();
     this.document           = new System.Drawing.Printing.PrintDocument();
     this.dialogPrint        = new System.Windows.Forms.PrintDialog();
     this.dialogPageSetup    = new System.Windows.Forms.PageSetupDialog();
     //
     // dialogPrintPreview
     //
     this.dialogPrintPreview.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.dialogPrintPreview.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.dialogPrintPreview.ClientSize        = new System.Drawing.Size(400, 300);
     this.dialogPrintPreview.Document          = this.document;
     this.dialogPrintPreview.Enabled           = true;
     this.dialogPrintPreview.Icon            = ((System.Drawing.Icon)(resources.GetObject("dialogPrintPreview.Icon")));
     this.dialogPrintPreview.Location        = new System.Drawing.Point(118, 17);
     this.dialogPrintPreview.MinimumSize     = new System.Drawing.Size(375, 250);
     this.dialogPrintPreview.Name            = "dialogPrintPreview";
     this.dialogPrintPreview.TransparencyKey = System.Drawing.Color.Empty;
     this.dialogPrintPreview.Visible         = false;
     //
     // document
     //
     this.document.BeginPrint += new System.Drawing.Printing.PrintEventHandler(this.document_BeginPrint);
     this.document.PrintPage  += new System.Drawing.Printing.PrintPageEventHandler(this.document_PrintPage);
     //
     // dialogPrint
     //
     this.dialogPrint.Document = this.document;
     //
     // dialogPageSetup
     //
     this.dialogPageSetup.Document   = this.document;
     this.dialogPageSetup.MinMargins = new System.Drawing.Printing.Margins(50, 50, 50, 50);
 }
コード例 #38
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(SimpleEditorForm));
     this.textBoxEdit          = new System.Windows.Forms.TextBox();
     this.mainMenu1            = new System.Windows.Forms.MainMenu();
     this.miFile               = new System.Windows.Forms.MenuItem();
     this.miFileNew            = new System.Windows.Forms.MenuItem();
     this.miFileOpen           = new System.Windows.Forms.MenuItem();
     this.miFileSave           = new System.Windows.Forms.MenuItem();
     this.miFileSaveAs         = new System.Windows.Forms.MenuItem();
     this.dlgOpenFile          = new System.Windows.Forms.OpenFileDialog();
     this.dlgSaveFile          = new System.Windows.Forms.SaveFileDialog();
     this.menuItem1            = new System.Windows.Forms.MenuItem();
     this.miFilePrint          = new System.Windows.Forms.MenuItem();
     this.miFilePrintPreview   = new System.Windows.Forms.MenuItem();
     this.miFilePageSetup      = new System.Windows.Forms.MenuItem();
     this.miFileExit           = new System.Windows.Forms.MenuItem();
     this.printDocument        = new System.Drawing.Printing.PrintDocument();
     this.dlgPageSetup         = new System.Windows.Forms.PageSetupDialog();
     this.dlgPrint             = new System.Windows.Forms.PrintDialog();
     this.dlgPrintPreview      = new System.Windows.Forms.PrintPreviewDialog();
     this.printPreviewControl1 = new System.Windows.Forms.PrintPreviewControl();
     this.SuspendLayout();
     //
     // textBoxEdit
     //
     this.textBoxEdit.AcceptsReturn = true;
     this.textBoxEdit.AcceptsTab    = true;
     this.textBoxEdit.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.textBoxEdit.Multiline     = true;
     this.textBoxEdit.Name          = "textBoxEdit";
     this.textBoxEdit.ScrollBars    = System.Windows.Forms.ScrollBars.Both;
     this.textBoxEdit.Size          = new System.Drawing.Size(568, 273);
     this.textBoxEdit.TabIndex      = 0;
     this.textBoxEdit.Text          = "";
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miFile
     });
     //
     // miFile
     //
     this.miFile.Index = 0;
     this.miFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miFileNew,
         this.miFileOpen,
         this.miFileSave,
         this.miFileSaveAs,
         this.menuItem1,
         this.miFilePrint,
         this.miFilePrintPreview,
         this.miFilePageSetup,
         this.miFileExit
     });
     this.miFile.Text = "&File";
     //
     // miFileNew
     //
     this.miFileNew.Index  = 0;
     this.miFileNew.Text   = "&New";
     this.miFileNew.Click += new System.EventHandler(this.miFileNew_Click);
     //
     // miFileOpen
     //
     this.miFileOpen.Index  = 1;
     this.miFileOpen.Text   = "&Open...";
     this.miFileOpen.Click += new System.EventHandler(this.miFileOpen_Click);
     //
     // miFileSave
     //
     this.miFileSave.Index  = 2;
     this.miFileSave.Text   = "&Save";
     this.miFileSave.Click += new System.EventHandler(this.miFileSave_Click);
     //
     // miFileSaveAs
     //
     this.miFileSaveAs.Index  = 3;
     this.miFileSaveAs.Text   = "Save &As...";
     this.miFileSaveAs.Click += new System.EventHandler(this.miFileSaveAs_Click);
     //
     // dlgOpenFile
     //
     this.dlgOpenFile.Filter = "Text Documents (*.txt)|*.txt|Wrox Documents (*.wroxtext)|*.wroxtext|All Files|*.*" +
                               "";
     this.dlgOpenFile.FilterIndex = 2;
     //
     // dlgSaveFile
     //
     this.dlgSaveFile.FileName    = "doc1";
     this.dlgSaveFile.Filter      = "Text Document (*.txt)|*.txt|Wrox Documents (*.wroxtext)|*.wroxtext";
     this.dlgSaveFile.FilterIndex = 2;
     //
     // menuItem1
     //
     this.menuItem1.Index = 4;
     this.menuItem1.Text  = "-";
     //
     // miFilePrint
     //
     this.miFilePrint.Index  = 5;
     this.miFilePrint.Text   = "&Print";
     this.miFilePrint.Click += new System.EventHandler(this.miFilePrint_Click);
     //
     // miFilePrintPreview
     //
     this.miFilePrintPreview.Index  = 6;
     this.miFilePrintPreview.Text   = "Print Pre&view";
     this.miFilePrintPreview.Click += new System.EventHandler(this.miFilePrintPreview_Click);
     //
     // miFilePageSetup
     //
     this.miFilePageSetup.Index  = 7;
     this.miFilePageSetup.Text   = "Page Set&up";
     this.miFilePageSetup.Click += new System.EventHandler(this.miFilePageSetup_Click);
     //
     // miFileExit
     //
     this.miFileExit.Index = 8;
     this.miFileExit.Text  = "E&xit";
     //
     // printDocument
     //
     this.printDocument.BeginPrint += new System.Drawing.Printing.PrintEventHandler(this.OnBeginPrint);
     this.printDocument.PrintPage  += new System.Drawing.Printing.PrintPageEventHandler(this.OnPrintPage);
     //
     // dlgPageSetup
     //
     this.dlgPageSetup.Document = this.printDocument;
     //
     // dlgPrint
     //
     this.dlgPrint.Document = this.printDocument;
     //
     // dlgPrintPreview
     //
     this.dlgPrintPreview.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.dlgPrintPreview.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.dlgPrintPreview.ClientSize        = new System.Drawing.Size(400, 300);
     this.dlgPrintPreview.Document          = this.printDocument;
     this.dlgPrintPreview.Enabled           = true;
     this.dlgPrintPreview.Icon            = ((System.Drawing.Icon)(resources.GetObject("dlgPrintPreview.Icon")));
     this.dlgPrintPreview.Location        = new System.Drawing.Point(17, 54);
     this.dlgPrintPreview.MaximumSize     = new System.Drawing.Size(0, 0);
     this.dlgPrintPreview.Name            = "dlgPrintPreview";
     this.dlgPrintPreview.Opacity         = 1;
     this.dlgPrintPreview.TransparencyKey = System.Drawing.Color.Empty;
     this.dlgPrintPreview.Visible         = false;
     //
     // printPreviewControl1
     //
     this.printPreviewControl1.Document = this.printDocument;
     this.printPreviewControl1.Name     = "printPreviewControl1";
     this.printPreviewControl1.Size     = new System.Drawing.Size(512, 248);
     this.printPreviewControl1.TabIndex = 1;
     this.printPreviewControl1.Visible  = false;
     this.printPreviewControl1.Zoom     = 0.20359281437125748;
     //
     // SimpleEditorForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(568, 273);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.printPreviewControl1,
         this.textBoxEdit
     });
     this.Menu = this.mainMenu1;
     this.Name = "SimpleEditorForm";
     this.Text = "Simple Editor";
     this.ResumeLayout(false);
 }
コード例 #39
0
 /// <summary>
 /// Metodo necessario per il supporto della finestra di progettazione. Non modificare
 /// il contenuto del metodo con l'editor di codice.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmCustomView));
     this.label1              = new System.Windows.Forms.Label();
     this.textBox1            = new System.Windows.Forms.TextBox();
     this.label2              = new System.Windows.Forms.Label();
     this.textBox2            = new System.Windows.Forms.TextBox();
     this.pageSetupDialog1    = new System.Windows.Forms.PageSetupDialog();
     this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
     this.printDialog1        = new System.Windows.Forms.PrintDialog();
     this.DS           = new /*Rana:CustomViewSystem.*/ vistaForm();
     this.tabControl1  = new System.Windows.Forms.TabControl();
     this.tabPage1     = new System.Windows.Forms.TabPage();
     this.textBox11    = new System.Windows.Forms.TextBox();
     this.label11      = new System.Windows.Forms.Label();
     this.textBox10    = new System.Windows.Forms.TextBox();
     this.label10      = new System.Windows.Forms.Label();
     this.checkBox8    = new System.Windows.Forms.CheckBox();
     this.textBox9     = new System.Windows.Forms.TextBox();
     this.label9       = new System.Windows.Forms.Label();
     this.checkBox7    = new System.Windows.Forms.CheckBox();
     this.checkBox6    = new System.Windows.Forms.CheckBox();
     this.checkBox5    = new System.Windows.Forms.CheckBox();
     this.checkBox4    = new System.Windows.Forms.CheckBox();
     this.checkBox3    = new System.Windows.Forms.CheckBox();
     this.checkBox2    = new System.Windows.Forms.CheckBox();
     this.checkBox1    = new System.Windows.Forms.CheckBox();
     this.groupBox1    = new System.Windows.Forms.GroupBox();
     this.textBox5     = new System.Windows.Forms.TextBox();
     this.label7       = new System.Windows.Forms.Label();
     this.label5       = new System.Windows.Forms.Label();
     this.label6       = new System.Windows.Forms.Label();
     this.textBox8     = new System.Windows.Forms.TextBox();
     this.textBox7     = new System.Windows.Forms.TextBox();
     this.textBox6     = new System.Windows.Forms.TextBox();
     this.label8       = new System.Windows.Forms.Label();
     this.textBox4     = new System.Windows.Forms.TextBox();
     this.label4       = new System.Windows.Forms.Label();
     this.textBox3     = new System.Windows.Forms.TextBox();
     this.label3       = new System.Windows.Forms.Label();
     this.tabPage2     = new System.Windows.Forms.TabPage();
     this.dataGrid1    = new System.Windows.Forms.DataGrid();
     this.button3      = new System.Windows.Forms.Button();
     this.button2      = new System.Windows.Forms.Button();
     this.button1      = new System.Windows.Forms.Button();
     this.tabPage3     = new System.Windows.Forms.TabPage();
     this.txtSQLfilter = new System.Windows.Forms.TextBox();
     this.label13      = new System.Windows.Forms.Label();
     this.dataGrid2    = new System.Windows.Forms.DataGrid();
     this.button4      = new System.Windows.Forms.Button();
     this.button5      = new System.Windows.Forms.Button();
     this.button6      = new System.Windows.Forms.Button();
     this.tabPage4     = new System.Windows.Forms.TabPage();
     this.dataGrid3    = new System.Windows.Forms.DataGrid();
     this.button7      = new System.Windows.Forms.Button();
     this.button8      = new System.Windows.Forms.Button();
     this.button9      = new System.Windows.Forms.Button();
     this.checkBox9    = new System.Windows.Forms.CheckBox();
     this.checkBox10   = new System.Windows.Forms.CheckBox();
     this.textBox12    = new System.Windows.Forms.TextBox();
     this.label12      = new System.Windows.Forms.Label();
     this.BtnCancel    = new System.Windows.Forms.Button();
     this.BtnOk        = new System.Windows.Forms.Button();
     ((System.ComponentModel.ISupportInitialize)(this.DS)).BeginInit();
     this.tabControl1.SuspendLayout();
     this.tabPage1.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.tabPage2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
     this.tabPage3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid2)).BeginInit();
     this.tabPage4.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid3)).BeginInit();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 8);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(100, 16);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Object Name";
     //
     // textBox1
     //
     this.textBox1.Location = new System.Drawing.Point(8, 24);
     this.textBox1.Name     = "textBox1";
     this.textBox1.ReadOnly = true;
     this.textBox1.Size     = new System.Drawing.Size(168, 20);
     this.textBox1.TabIndex = 1;
     this.textBox1.Tag      = "customview.objectname";
     this.textBox1.Text     = "";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(200, 8);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(104, 16);
     this.label2.TabIndex = 2;
     this.label2.Text     = "Listing Type";
     //
     // textBox2
     //
     this.textBox2.Location  = new System.Drawing.Point(200, 24);
     this.textBox2.Name      = "textBox2";
     this.textBox2.Size      = new System.Drawing.Size(200, 20);
     this.textBox2.TabIndex  = 3;
     this.textBox2.Tag       = "customview.viewname";
     this.textBox2.Text      = "";
     this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // printPreviewDialog1
     //
     this.printPreviewDialog1.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.ClientSize        = new System.Drawing.Size(400, 300);
     this.printPreviewDialog1.Enabled           = true;
     this.printPreviewDialog1.Icon            = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon")));
     this.printPreviewDialog1.Location        = new System.Drawing.Point(160, 19);
     this.printPreviewDialog1.MaximumSize     = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.Name            = "printPreviewDialog1";
     this.printPreviewDialog1.Opacity         = 1;
     this.printPreviewDialog1.TransparencyKey = System.Drawing.Color.Empty;
     this.printPreviewDialog1.Visible         = false;
     //
     // DS
     //
     this.DS.DataSetName = "vistaForm";
     this.DS.Locale      = new System.Globalization.CultureInfo("en-US");
     this.DS.Namespace   = "http://tempuri.org/vistaForm.xsd";
     //
     // tabControl1
     //
     this.tabControl1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.tabPage1,
         this.tabPage2,
         this.tabPage3,
         this.tabPage4
     });
     this.tabControl1.Location      = new System.Drawing.Point(8, 104);
     this.tabControl1.Name          = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size          = new System.Drawing.Size(680, 368);
     this.tabControl1.TabIndex      = 4;
     //
     // tabPage1
     //
     this.tabPage1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.textBox11,
         this.label11,
         this.textBox10,
         this.label10,
         this.checkBox8,
         this.textBox9,
         this.label9,
         this.checkBox7,
         this.checkBox6,
         this.checkBox5,
         this.checkBox4,
         this.checkBox3,
         this.checkBox2,
         this.checkBox1,
         this.groupBox1,
         this.textBox4,
         this.label4,
         this.textBox3,
         this.label3
     });
     this.tabPage1.Location = new System.Drawing.Point(4, 22);
     this.tabPage1.Name     = "tabPage1";
     this.tabPage1.Size     = new System.Drawing.Size(672, 342);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text     = "Main settings";
     //
     // textBox11
     //
     this.textBox11.Location  = new System.Drawing.Point(88, 272);
     this.textBox11.Name      = "textBox11";
     this.textBox11.TabIndex  = 32;
     this.textBox11.Tag       = "customview.vpages";
     this.textBox11.Text      = "";
     this.textBox11.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // label11
     //
     this.label11.Location  = new System.Drawing.Point(16, 272);
     this.label11.Name      = "label11";
     this.label11.Size      = new System.Drawing.Size(64, 23);
     this.label11.TabIndex  = 31;
     this.label11.Text      = "V Pages";
     this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // textBox10
     //
     this.textBox10.Location  = new System.Drawing.Point(88, 248);
     this.textBox10.Name      = "textBox10";
     this.textBox10.TabIndex  = 30;
     this.textBox10.Tag       = "customview.hpages";
     this.textBox10.Text      = "";
     this.textBox10.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // label10
     //
     this.label10.Location  = new System.Drawing.Point(16, 248);
     this.label10.Name      = "label10";
     this.label10.Size      = new System.Drawing.Size(64, 23);
     this.label10.TabIndex  = 29;
     this.label10.Text      = "H pages";
     this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // checkBox8
     //
     this.checkBox8.Location = new System.Drawing.Point(88, 224);
     this.checkBox8.Name     = "checkBox8";
     this.checkBox8.Size     = new System.Drawing.Size(120, 24);
     this.checkBox8.TabIndex = 28;
     this.checkBox8.Tag      = "customview.fittopage:1:0";
     this.checkBox8.Text     = "Fit to page";
     //
     // textBox9
     //
     this.textBox9.Location  = new System.Drawing.Point(88, 200);
     this.textBox9.Name      = "textBox9";
     this.textBox9.TabIndex  = 27;
     this.textBox9.Tag       = "customview.scale";
     this.textBox9.Text      = "";
     this.textBox9.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // label9
     //
     this.label9.Location  = new System.Drawing.Point(16, 200);
     this.label9.Name      = "label9";
     this.label9.Size      = new System.Drawing.Size(64, 23);
     this.label9.TabIndex  = 26;
     this.label9.Text      = "Scale";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // checkBox7
     //
     this.checkBox7.Location = new System.Drawing.Point(248, 224);
     this.checkBox7.Name     = "checkBox7";
     this.checkBox7.Size     = new System.Drawing.Size(120, 24);
     this.checkBox7.TabIndex = 25;
     this.checkBox7.Tag      = "customview.rowheading:1:0";
     this.checkBox7.Text     = "Row Heading";
     //
     // checkBox6
     //
     this.checkBox6.Location = new System.Drawing.Point(248, 200);
     this.checkBox6.Name     = "checkBox6";
     this.checkBox6.Size     = new System.Drawing.Size(120, 24);
     this.checkBox6.TabIndex = 24;
     this.checkBox6.Tag      = "customview.landscape:1:0";
     this.checkBox6.Text     = "Landscape";
     //
     // checkBox5
     //
     this.checkBox5.Location = new System.Drawing.Point(248, 176);
     this.checkBox5.Name     = "checkBox5";
     this.checkBox5.Size     = new System.Drawing.Size(120, 24);
     this.checkBox5.TabIndex = 23;
     this.checkBox5.Tag      = "customview.colheading:1:0";
     this.checkBox5.Text     = "Column Heading";
     //
     // checkBox4
     //
     this.checkBox4.Location = new System.Drawing.Point(248, 152);
     this.checkBox4.Name     = "checkBox4";
     this.checkBox4.Size     = new System.Drawing.Size(120, 24);
     this.checkBox4.TabIndex = 22;
     this.checkBox4.Tag      = "customview.rowheading:1:0";
     this.checkBox4.Text     = "Row Heading";
     //
     // checkBox3
     //
     this.checkBox3.Location = new System.Drawing.Point(248, 128);
     this.checkBox3.Name     = "checkBox3";
     this.checkBox3.Size     = new System.Drawing.Size(120, 24);
     this.checkBox3.TabIndex = 21;
     this.checkBox3.Tag      = "customview.vcenter:1:0";
     this.checkBox3.Text     = "Vertical Center";
     //
     // checkBox2
     //
     this.checkBox2.Location = new System.Drawing.Point(248, 104);
     this.checkBox2.Name     = "checkBox2";
     this.checkBox2.Size     = new System.Drawing.Size(120, 24);
     this.checkBox2.TabIndex = 20;
     this.checkBox2.Tag      = "customview.hcenter:1:0";
     this.checkBox2.Text     = "Horizontal Center";
     //
     // checkBox1
     //
     this.checkBox1.Location = new System.Drawing.Point(248, 80);
     this.checkBox1.Name     = "checkBox1";
     this.checkBox1.TabIndex = 19;
     this.checkBox1.Tag      = "customview.lefttoright:1:0";
     this.checkBox1.Text     = "Left To Right";
     //
     // groupBox1
     //
     this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.textBox5,
         this.label7,
         this.label5,
         this.label6,
         this.textBox8,
         this.textBox7,
         this.textBox6,
         this.label8
     });
     this.groupBox1.Location = new System.Drawing.Point(16, 72);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(216, 120);
     this.groupBox1.TabIndex = 12;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Margins";
     //
     // textBox5
     //
     this.textBox5.Location  = new System.Drawing.Point(96, 16);
     this.textBox5.Name      = "textBox5";
     this.textBox5.TabIndex  = 5;
     this.textBox5.Tag       = "customview.topmargin";
     this.textBox5.Text      = "";
     this.textBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // label7
     //
     this.label7.Location  = new System.Drawing.Point(8, 64);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(80, 23);
     this.label7.TabIndex  = 8;
     this.label7.Text      = "Right Margin";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label5
     //
     this.label5.Location  = new System.Drawing.Point(24, 16);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(64, 23);
     this.label5.TabIndex  = 4;
     this.label5.Text      = "Top Margin";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label6
     //
     this.label6.Location  = new System.Drawing.Point(8, 40);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(80, 23);
     this.label6.TabIndex  = 6;
     this.label6.Text      = "Bottom Margin";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // textBox8
     //
     this.textBox8.Location  = new System.Drawing.Point(96, 88);
     this.textBox8.Name      = "textBox8";
     this.textBox8.TabIndex  = 11;
     this.textBox8.Tag       = "customview.leftmargin";
     this.textBox8.Text      = "";
     this.textBox8.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // textBox7
     //
     this.textBox7.Location  = new System.Drawing.Point(96, 64);
     this.textBox7.Name      = "textBox7";
     this.textBox7.TabIndex  = 9;
     this.textBox7.Tag       = "customview.rightmargin";
     this.textBox7.Text      = "";
     this.textBox7.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // textBox6
     //
     this.textBox6.Location  = new System.Drawing.Point(96, 40);
     this.textBox6.Name      = "textBox6";
     this.textBox6.TabIndex  = 7;
     this.textBox6.Tag       = "customview.bottommargin";
     this.textBox6.Text      = "";
     this.textBox6.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // label8
     //
     this.label8.Location  = new System.Drawing.Point(24, 88);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(64, 23);
     this.label8.TabIndex  = 10;
     this.label8.Text      = "Left Margin";
     this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // textBox4
     //
     this.textBox4.Location = new System.Drawing.Point(96, 40);
     this.textBox4.Name     = "textBox4";
     this.textBox4.Size     = new System.Drawing.Size(288, 20);
     this.textBox4.TabIndex = 3;
     this.textBox4.Tag      = "customview.footer";
     this.textBox4.Text     = "";
     //
     // label4
     //
     this.label4.Location  = new System.Drawing.Point(24, 40);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(64, 23);
     this.label4.TabIndex  = 2;
     this.label4.Text      = "Footer";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // textBox3
     //
     this.textBox3.Location = new System.Drawing.Point(96, 16);
     this.textBox3.Name     = "textBox3";
     this.textBox3.Size     = new System.Drawing.Size(288, 20);
     this.textBox3.TabIndex = 1;
     this.textBox3.Tag      = "customview.header";
     this.textBox3.Text     = "";
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(24, 16);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(64, 23);
     this.label3.TabIndex  = 0;
     this.label3.Text      = "Header";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // tabPage2
     //
     this.tabPage2.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.dataGrid1,
         this.button3,
         this.button2,
         this.button1
     });
     this.tabPage2.Location = new System.Drawing.Point(4, 22);
     this.tabPage2.Name     = "tabPage2";
     this.tabPage2.Size     = new System.Drawing.Size(672, 342);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text     = "Columns";
     //
     // dataGrid1
     //
     this.dataGrid1.DataMember      = "";
     this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGrid1.Location        = new System.Drawing.Point(16, 48);
     this.dataGrid1.Name            = "dataGrid1";
     this.dataGrid1.Size            = new System.Drawing.Size(648, 288);
     this.dataGrid1.TabIndex        = 3;
     this.dataGrid1.Tag             = "customviewcolumn.default.default";
     //
     // button3
     //
     this.button3.Location = new System.Drawing.Point(192, 16);
     this.button3.Name     = "button3";
     this.button3.TabIndex = 2;
     this.button3.Tag      = "delete";
     this.button3.Text     = "Delete";
     //
     // button2
     //
     this.button2.Location = new System.Drawing.Point(104, 16);
     this.button2.Name     = "button2";
     this.button2.TabIndex = 1;
     this.button2.Tag      = "edit.default";
     this.button2.Text     = "Edit";
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(16, 16);
     this.button1.Name     = "button1";
     this.button1.TabIndex = 0;
     this.button1.Tag      = "insert.default";
     this.button1.Text     = "New";
     //
     // tabPage3
     //
     this.tabPage3.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.txtSQLfilter,
         this.label13,
         this.dataGrid2,
         this.button4,
         this.button5,
         this.button6
     });
     this.tabPage3.Location = new System.Drawing.Point(4, 22);
     this.tabPage3.Name     = "tabPage3";
     this.tabPage3.Size     = new System.Drawing.Size(672, 342);
     this.tabPage3.TabIndex = 2;
     this.tabPage3.Text     = "Filter";
     //
     // txtSQLfilter
     //
     this.txtSQLfilter.Location  = new System.Drawing.Point(16, 24);
     this.txtSQLfilter.Multiline = true;
     this.txtSQLfilter.Name      = "txtSQLfilter";
     this.txtSQLfilter.ReadOnly  = true;
     this.txtSQLfilter.Size      = new System.Drawing.Size(648, 40);
     this.txtSQLfilter.TabIndex  = 11;
     this.txtSQLfilter.Text      = "";
     //
     // label13
     //
     this.label13.Location  = new System.Drawing.Point(16, 8);
     this.label13.Name      = "label13";
     this.label13.Size      = new System.Drawing.Size(100, 16);
     this.label13.TabIndex  = 10;
     this.label13.Text      = "Sql Filter";
     this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // dataGrid2
     //
     this.dataGrid2.DataMember      = "";
     this.dataGrid2.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGrid2.Location        = new System.Drawing.Point(12, 104);
     this.dataGrid2.Name            = "dataGrid2";
     this.dataGrid2.Size            = new System.Drawing.Size(648, 224);
     this.dataGrid2.TabIndex        = 7;
     this.dataGrid2.Tag             = "customviewwhere.default.default";
     //
     // button4
     //
     this.button4.Location = new System.Drawing.Point(192, 72);
     this.button4.Name     = "button4";
     this.button4.TabIndex = 6;
     this.button4.Tag      = "delete";
     this.button4.Text     = "Delete";
     //
     // button5
     //
     this.button5.Location = new System.Drawing.Point(104, 72);
     this.button5.Name     = "button5";
     this.button5.TabIndex = 5;
     this.button5.Tag      = "edit.default";
     this.button5.Text     = "Edit";
     //
     // button6
     //
     this.button6.Location = new System.Drawing.Point(16, 72);
     this.button6.Name     = "button6";
     this.button6.TabIndex = 4;
     this.button6.Tag      = "insert.default";
     this.button6.Text     = "New";
     //
     // tabPage4
     //
     this.tabPage4.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.dataGrid3,
         this.button7,
         this.button8,
         this.button9
     });
     this.tabPage4.Location = new System.Drawing.Point(4, 22);
     this.tabPage4.Name     = "tabPage4";
     this.tabPage4.Size     = new System.Drawing.Size(672, 342);
     this.tabPage4.TabIndex = 3;
     this.tabPage4.Text     = "Sort";
     //
     // dataGrid3
     //
     this.dataGrid3.DataMember      = "";
     this.dataGrid3.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this.dataGrid3.Location        = new System.Drawing.Point(16, 48);
     this.dataGrid3.Name            = "dataGrid3";
     this.dataGrid3.Size            = new System.Drawing.Size(648, 272);
     this.dataGrid3.TabIndex        = 7;
     this.dataGrid3.Tag             = "customvieworderby.default.default";
     //
     // button7
     //
     this.button7.Location = new System.Drawing.Point(192, 8);
     this.button7.Name     = "button7";
     this.button7.TabIndex = 6;
     this.button7.Tag      = "delete";
     this.button7.Text     = "Delete";
     //
     // button8
     //
     this.button8.Location = new System.Drawing.Point(104, 8);
     this.button8.Name     = "button8";
     this.button8.TabIndex = 5;
     this.button8.Tag      = "edit.default";
     this.button8.Text     = "Edit";
     //
     // button9
     //
     this.button9.Location = new System.Drawing.Point(16, 8);
     this.button9.Name     = "button9";
     this.button9.TabIndex = 4;
     this.button9.Tag      = "insert.default";
     this.button9.Text     = "New";
     //
     // checkBox9
     //
     this.checkBox9.Location = new System.Drawing.Point(416, 24);
     this.checkBox9.Name     = "checkBox9";
     this.checkBox9.Size     = new System.Drawing.Size(48, 24);
     this.checkBox9.TabIndex = 20;
     this.checkBox9.Tag      = "customview.isreal:S:N";
     this.checkBox9.Text     = "Real";
     //
     // checkBox10
     //
     this.checkBox10.Location = new System.Drawing.Point(480, 24);
     this.checkBox10.Name     = "checkBox10";
     this.checkBox10.Size     = new System.Drawing.Size(72, 24);
     this.checkBox10.TabIndex = 21;
     this.checkBox10.Tag      = "customview.issystem:S:N";
     this.checkBox10.Text     = "System";
     //
     // textBox12
     //
     this.textBox12.Location = new System.Drawing.Point(16, 72);
     this.textBox12.Name     = "textBox12";
     this.textBox12.Size     = new System.Drawing.Size(512, 20);
     this.textBox12.TabIndex = 23;
     this.textBox12.Tag      = "customview.staticfilter";
     this.textBox12.Text     = "";
     //
     // label12
     //
     this.label12.Location = new System.Drawing.Point(16, 56);
     this.label12.Name     = "label12";
     this.label12.Size     = new System.Drawing.Size(100, 16);
     this.label12.TabIndex = 22;
     this.label12.Text     = "Static filter";
     //
     // BtnCancel
     //
     this.BtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.BtnCancel.Location     = new System.Drawing.Point(224, 480);
     this.BtnCancel.Name         = "BtnCancel";
     this.BtnCancel.TabIndex     = 31;
     this.BtnCancel.Text         = "Cancel";
     //
     // BtnOk
     //
     this.BtnOk.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.BtnOk.Location     = new System.Drawing.Point(368, 480);
     this.BtnOk.Name         = "BtnOk";
     this.BtnOk.Size         = new System.Drawing.Size(80, 24);
     this.BtnOk.TabIndex     = 30;
     this.BtnOk.Tag          = "mainsave";
     this.BtnOk.Text         = "Ok";
     //
     // frmCustomView
     //
     this.AcceptButton      = this.BtnOk;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.BtnCancel;
     this.ClientSize        = new System.Drawing.Size(696, 517);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.BtnCancel,
         this.BtnOk,
         this.textBox12,
         this.label12,
         this.checkBox10,
         this.checkBox9,
         this.tabControl1,
         this.textBox2,
         this.label2,
         this.textBox1,
         this.label1
     });
     this.Name = "frmCustomView";
     this.Text = "frmCustomView";
     ((System.ComponentModel.ISupportInitialize)(this.DS)).EndInit();
     this.tabControl1.ResumeLayout(false);
     this.tabPage1.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     this.tabPage2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
     this.tabPage3.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid2)).EndInit();
     this.tabPage4.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid3)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #40
0
ファイル: Print.cs プロジェクト: LagakisGeorge/cshart-lag1
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPrint));
     this.richTextBox1        = new System.Windows.Forms.RichTextBox();
     this.printDialog1        = new System.Windows.Forms.PrintDialog();
     this.printDocument1      = new System.Drawing.Printing.PrintDocument();
     this.pageSetupDialog1    = new System.Windows.Forms.PageSetupDialog();
     this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
     this.mainMenu1           = new System.Windows.Forms.MainMenu(this.components);
     this.miFile    = new System.Windows.Forms.MenuItem();
     this.miSetup   = new System.Windows.Forms.MenuItem();
     this.miPreview = new System.Windows.Forms.MenuItem();
     this.miPrint   = new System.Windows.Forms.MenuItem();
     this.SuspendLayout();
     //
     // richTextBox1
     //
     this.richTextBox1.Location = new System.Drawing.Point(73, 12);
     this.richTextBox1.Name     = "richTextBox1";
     this.richTextBox1.Size     = new System.Drawing.Size(296, 240);
     this.richTextBox1.TabIndex = 0;
     this.richTextBox1.Text     = "richTextBox1";
     //
     // printDialog1
     //
     this.printDialog1.Document = this.printDocument1;
     //
     // printDocument1
     //
     this.printDocument1.BeginPrint += new System.Drawing.Printing.PrintEventHandler(this.OnBeginPrint);
     this.printDocument1.PrintPage  += new System.Drawing.Printing.PrintPageEventHandler(this.OnPrintPage);
     //
     // pageSetupDialog1
     //
     this.pageSetupDialog1.Document = this.printDocument1;
     //
     // printPreviewDialog1
     //
     this.printPreviewDialog1.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.ClientSize        = new System.Drawing.Size(400, 300);
     this.printPreviewDialog1.Document          = this.printDocument1;
     this.printPreviewDialog1.Enabled           = true;
     this.printPreviewDialog1.Icon    = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon")));
     this.printPreviewDialog1.Name    = "printPreviewDialog1";
     this.printPreviewDialog1.Visible = false;
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miFile
     });
     //
     // miFile
     //
     this.miFile.Index = 0;
     this.miFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miSetup,
         this.miPreview,
         this.miPrint
     });
     this.miFile.Text = "File";
     //
     // miSetup
     //
     this.miSetup.Index  = 0;
     this.miSetup.Text   = "Page Setup";
     this.miSetup.Click += new System.EventHandler(this.miSetup_Click);
     //
     // miPreview
     //
     this.miPreview.Index  = 1;
     this.miPreview.Text   = "Print Preview";
     this.miPreview.Click += new System.EventHandler(this.miPreview_Click);
     //
     // miPrint
     //
     this.miPrint.Index  = 2;
     this.miPrint.Text   = "Print";
     this.miPrint.Click += new System.EventHandler(this.miPrint_Click);
     //
     // frmPrint
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
     this.ClientSize        = new System.Drawing.Size(508, 571);
     this.Controls.Add(this.richTextBox1);
     this.Menu  = this.mainMenu1;
     this.Name  = "frmPrint";
     this.Text  = "Simple Print";
     this.Load += new System.EventHandler(this.Form1_Load);
     this.ResumeLayout(false);
 }
コード例 #41
0
ファイル: Form1.cs プロジェクト: oluwabukola/script
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
     this.mainMenu1               = new System.Windows.Forms.MainMenu();
     this.menuItem1               = new System.Windows.Forms.MenuItem();
     this.menuItem2_New           = new System.Windows.Forms.MenuItem();
     this.menuItem3_Open          = new System.Windows.Forms.MenuItem();
     this.menuItem8_Save          = new System.Windows.Forms.MenuItem();
     this.menuItem9_SaveAs        = new System.Windows.Forms.MenuItem();
     this.menuItem4               = new System.Windows.Forms.MenuItem();
     this.menuItem11_PageSetup    = new System.Windows.Forms.MenuItem();
     this.menuItem12_PrintPreview = new System.Windows.Forms.MenuItem();
     this.menuItem10_Print        = new System.Windows.Forms.MenuItem();
     this.menuItem5_RecentFiles4  = new System.Windows.Forms.MenuItem();
     this.menuItem6               = new System.Windows.Forms.MenuItem();
     this.menuItem7_Exit          = new System.Windows.Forms.MenuItem();
     this.menuItem13              = new System.Windows.Forms.MenuItem();
     this.menuItem14_Undo         = new System.Windows.Forms.MenuItem();
     this.menuItem16              = new System.Windows.Forms.MenuItem();
     this.menuItem17_Cut          = new System.Windows.Forms.MenuItem();
     this.menuItem18_Copy         = new System.Windows.Forms.MenuItem();
     this.menuItem19_Paste        = new System.Windows.Forms.MenuItem();
     this.menuItem15              = new System.Windows.Forms.MenuItem();
     this.menuItem20_WordWrap     = new System.Windows.Forms.MenuItem();
     this.menuItem21              = new System.Windows.Forms.MenuItem();
     this.statusBar1              = new System.Windows.Forms.StatusBar();
     this.openFileDialog1         = new System.Windows.Forms.OpenFileDialog();
     this.saveFileDialog1         = new System.Windows.Forms.SaveFileDialog();
     this.printDialog1            = new System.Windows.Forms.PrintDialog();
     this.printDocument1          = new System.Drawing.Printing.PrintDocument();
     this.printPreviewDialog1     = new System.Windows.Forms.PrintPreviewDialog();
     this.pageSetupDialog1        = new System.Windows.Forms.PageSetupDialog();
     this.fontDialog1             = new System.Windows.Forms.FontDialog();
     this.imageList1              = new System.Windows.Forms.ImageList(this.components);
     this.toolBar1             = new System.Windows.Forms.ToolBar();
     this.toolBarButton1_New   = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton2_Open  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton3_Save  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton4       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton5_Cut   = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton6_Copy  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton7_Paste = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton1       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton2       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton3       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton5       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton6       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton7       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton8       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton9       = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton10      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton11      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton12      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton13      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton14      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton15      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton16      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton17      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton18      = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton_Print  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton20      = new System.Windows.Forms.ToolBarButton();
     this.text_Box1            = new Salford.VisualClearWin.Text_Box();
     this.comboBox1            = new System.Windows.Forms.ComboBox();
     this.toolTip1             = new System.Windows.Forms.ToolTip(this.components);
     this.SuspendLayout();
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1,
         this.menuItem13,
         this.menuItem15
     });
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem2_New,
         this.menuItem3_Open,
         this.menuItem8_Save,
         this.menuItem9_SaveAs,
         this.menuItem4,
         this.menuItem11_PageSetup,
         this.menuItem12_PrintPreview,
         this.menuItem10_Print,
         this.menuItem5_RecentFiles4,
         this.menuItem6,
         this.menuItem7_Exit
     });
     this.menuItem1.MergeType = System.Windows.Forms.MenuMerge.MergeItems;
     this.menuItem1.Text      = "&File";
     //
     // menuItem2_New
     //
     this.menuItem2_New.Index = 0;
     this.menuItem2_New.Text  = "New|Creates a new document";
     //
     // menuItem3_Open
     //
     this.menuItem3_Open.Index = 1;
     this.menuItem3_Open.Text  = "&Open|Opens files";
     //
     // menuItem8_Save
     //
     this.menuItem8_Save.Enabled = false;
     this.menuItem8_Save.Index   = 2;
     this.menuItem8_Save.Text    = "Save|Saves the document";
     //
     // menuItem9_SaveAs
     //
     this.menuItem9_SaveAs.Index = 3;
     this.menuItem9_SaveAs.Text  = "Save As|Saves the document with a different name";
     //
     // menuItem4
     //
     this.menuItem4.Index = 4;
     this.menuItem4.Text  = "-";
     //
     // menuItem11_PageSetup
     //
     this.menuItem11_PageSetup.Index = 5;
     this.menuItem11_PageSetup.Text  = "Page Setup|Displays the Page Setup dialog";
     //
     // menuItem12_PrintPreview
     //
     this.menuItem12_PrintPreview.Index = 6;
     this.menuItem12_PrintPreview.Text  = "Print Preview|Displays the Print Preview dialog";
     //
     // menuItem10_Print
     //
     this.menuItem10_Print.Index = 7;
     this.menuItem10_Print.Text  = "Print...|Starts a printing process";
     //
     // menuItem5_RecentFiles4
     //
     this.menuItem5_RecentFiles4.Index = 8;
     this.menuItem5_RecentFiles4.Text  = "Recent files";
     //
     // menuItem6
     //
     this.menuItem6.Index = 9;
     this.menuItem6.Text  = "-";
     //
     // menuItem7_Exit
     //
     this.menuItem7_Exit.Index = 10;
     this.menuItem7_Exit.Text  = "Exit|Exits from the application";
     //
     // menuItem13
     //
     this.menuItem13.Index = 1;
     this.menuItem13.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem14_Undo,
         this.menuItem16,
         this.menuItem17_Cut,
         this.menuItem18_Copy,
         this.menuItem19_Paste
     });
     this.menuItem13.Text = "Edit";
     //
     // menuItem14_Undo
     //
     this.menuItem14_Undo.Index = 0;
     this.menuItem14_Undo.Text  = "Undo|Undoes the last edit";
     //
     // menuItem16
     //
     this.menuItem16.Index = 1;
     this.menuItem16.Text  = "-";
     //
     // menuItem17_Cut
     //
     this.menuItem17_Cut.Index = 2;
     this.menuItem17_Cut.Text  = "Cut|Cuts the selection to the clipboard";
     //
     // menuItem18_Copy
     //
     this.menuItem18_Copy.Index = 3;
     this.menuItem18_Copy.Text  = "Copy|Copies the selection to the clipboard";
     //
     // menuItem19_Paste
     //
     this.menuItem19_Paste.Index = 4;
     this.menuItem19_Paste.Text  = "Paste|Pastes the clipboard at the current position";
     //
     // menuItem15
     //
     this.menuItem15.Index = 2;
     this.menuItem15.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem20_WordWrap,
         this.menuItem21
     });
     this.menuItem15.Text = "Format";
     //
     // menuItem20_WordWrap
     //
     this.menuItem20_WordWrap.Index = 0;
     this.menuItem20_WordWrap.Text  = "Word Wrap|Toggles the Word Wrap property";
     //
     // menuItem21
     //
     this.menuItem21.Index = 1;
     this.menuItem21.Text  = "Font...|Displays the Font dialog";
     //
     // statusBar1
     //
     this.statusBar1.Location = new System.Drawing.Point(0, 401);
     this.statusBar1.Name     = "statusBar1";
     this.statusBar1.Size     = new System.Drawing.Size(696, 24);
     this.statusBar1.TabIndex = 1;
     this.statusBar1.Text     = "Ready";
     //
     // openFileDialog1
     //
     this.openFileDialog1.Filter = "Fotran files (*.f95)|*.f95|All files (*.*)|*.*";
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.Filter = "Fortran files (*.f95)|*.f95|All files (*.*)|*.*";
     //
     // printDialog1
     //
     this.printDialog1.AllowSomePages = true;
     this.printDialog1.Document       = this.printDocument1;
     //
     // printPreviewDialog1
     //
     this.printPreviewDialog1.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.ClientSize        = new System.Drawing.Size(400, 300);
     this.printPreviewDialog1.Document          = this.printDocument1;
     this.printPreviewDialog1.Enabled           = true;
     this.printPreviewDialog1.Icon            = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon")));
     this.printPreviewDialog1.Location        = new System.Drawing.Point(627, 17);
     this.printPreviewDialog1.MaximumSize     = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.Name            = "printPreviewDialog1";
     this.printPreviewDialog1.Opacity         = 1;
     this.printPreviewDialog1.TransparencyKey = System.Drawing.Color.Empty;
     this.printPreviewDialog1.Visible         = false;
     //
     // pageSetupDialog1
     //
     this.pageSetupDialog1.Document = this.printDocument1;
     //
     // fontDialog1
     //
     this.fontDialog1.ShowColor = true;
     //
     // imageList1
     //
     this.imageList1.ColorDepth       = System.Windows.Forms.ColorDepth.Depth24Bit;
     this.imageList1.ImageSize        = new System.Drawing.Size(16, 16);
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     // toolBar1
     //
     this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
     this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.toolBarButton1_New,
         this.toolBarButton2_Open,
         this.toolBarButton3_Save,
         this.toolBarButton4,
         this.toolBarButton5_Cut,
         this.toolBarButton6_Copy,
         this.toolBarButton7_Paste,
         this.toolBarButton1,
         this.toolBarButton2,
         this.toolBarButton3,
         this.toolBarButton5,
         this.toolBarButton6,
         this.toolBarButton7,
         this.toolBarButton8,
         this.toolBarButton9,
         this.toolBarButton10,
         this.toolBarButton11,
         this.toolBarButton12,
         this.toolBarButton13,
         this.toolBarButton14,
         this.toolBarButton15,
         this.toolBarButton16,
         this.toolBarButton17,
         this.toolBarButton18,
         this.toolBarButton_Print,
         this.toolBarButton20
     });
     this.toolBar1.ButtonSize     = new System.Drawing.Size(16, 16);
     this.toolBar1.DropDownArrows = true;
     this.toolBar1.ImageList      = this.imageList1;
     this.toolBar1.Name           = "toolBar1";
     this.toolBar1.ShowToolTips   = true;
     this.toolBar1.Size           = new System.Drawing.Size(696, 25);
     this.toolBar1.TabIndex       = 4;
     //
     // toolBarButton1_New
     //
     this.toolBarButton1_New.ImageIndex  = 0;
     this.toolBarButton1_New.ToolTipText = "New";
     //
     // toolBarButton2_Open
     //
     this.toolBarButton2_Open.ImageIndex  = 1;
     this.toolBarButton2_Open.ToolTipText = "Open";
     //
     // toolBarButton3_Save
     //
     this.toolBarButton3_Save.ImageIndex  = 2;
     this.toolBarButton3_Save.ToolTipText = "Save";
     //
     // toolBarButton4
     //
     this.toolBarButton4.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton5_Cut
     //
     this.toolBarButton5_Cut.ImageIndex  = 4;
     this.toolBarButton5_Cut.ToolTipText = "Cut";
     //
     // toolBarButton6_Copy
     //
     this.toolBarButton6_Copy.ImageIndex  = 5;
     this.toolBarButton6_Copy.ToolTipText = "Copy";
     //
     // toolBarButton7_Paste
     //
     this.toolBarButton7_Paste.ImageIndex  = 6;
     this.toolBarButton7_Paste.ToolTipText = "Paste";
     //
     // toolBarButton1
     //
     this.toolBarButton1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     this.toolBarButton1.Text  = "comboBox1";
     //
     // toolBarButton2
     //
     this.toolBarButton2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton3
     //
     this.toolBarButton3.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton5
     //
     this.toolBarButton5.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton6
     //
     this.toolBarButton6.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton7
     //
     this.toolBarButton7.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton8
     //
     this.toolBarButton8.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton9
     //
     this.toolBarButton9.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton10
     //
     this.toolBarButton10.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton11
     //
     this.toolBarButton11.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton12
     //
     this.toolBarButton12.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton13
     //
     this.toolBarButton13.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton14
     //
     this.toolBarButton14.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton15
     //
     this.toolBarButton15.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton16
     //
     this.toolBarButton16.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton17
     //
     this.toolBarButton17.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // toolBarButton18
     //
     this.toolBarButton18.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     this.toolBarButton18.Text  = "comboBox1";
     //
     // toolBarButton_Print
     //
     this.toolBarButton_Print.ImageIndex  = 7;
     this.toolBarButton_Print.ToolTipText = "Print";
     //
     // toolBarButton20
     //
     this.toolBarButton20.ImageIndex  = 8;
     this.toolBarButton20.ToolTipText = "Find";
     //
     // text_Box1
     //
     this.text_Box1.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.text_Box1.Font          = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.text_Box1.HideSelection = false;
     this.text_Box1.Location      = new System.Drawing.Point(0, 25);
     this.text_Box1.MaxLength     = 0;
     this.text_Box1.Multiline     = true;
     this.text_Box1.Name          = "text_Box1";
     this.text_Box1.ScrollBars    = System.Windows.Forms.ScrollBars.Both;
     this.text_Box1.Size          = new System.Drawing.Size(696, 376);
     this.text_Box1.TabIndex      = 0;
     this.text_Box1.Text          = "";
     //
     // comboBox1
     //
     this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox1.Font          = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.comboBox1.Items.AddRange(new object[] {
         "Courier New",
         "Microsoft Sans Serif"
     });
     this.comboBox1.Location         = new System.Drawing.Point(150, 4);
     this.comboBox1.MaxDropDownItems = 16;
     this.comboBox1.MaxLength        = 80;
     this.comboBox1.Name             = "comboBox1";
     this.comboBox1.Size             = new System.Drawing.Size(126, 21);
     this.comboBox1.TabIndex         = 6;
     this.toolTip1.SetToolTip(this.comboBox1, "Font name");
     //
     // Form1
     //
     this.AllowDrop         = true;
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
     this.ClientSize        = new System.Drawing.Size(696, 425);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.comboBox1,
         this.text_Box1,
         this.toolBar1,
         this.statusBar1
     });
     this.Font          = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Menu          = this.mainMenu1;
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "MyNotes";
     this.ResumeLayout(false);
 }
コード例 #42
0
ファイル: PrintUtil.cs プロジェクト: Tetian/SampleProject
 /// <summary>
 /// 开始打印
 /// </summary>
 /// <param name="title"></param>
 /// <param name="content"></param>
 /// <param name="bigContent"></param>
 /// <param name="pterName"></param>
 /// <param name="pageX"></param>
 /// <param name="pageY"></param>
 /// <param name="siding"></param>
 public void StartPrint(string title, string content, string bigContent, string pterName, int pageX, int pageY, int siding)
 {
     try
     {
         _printTitle = title;
         _printContent = content;
         _printContentBig = bigContent;
         if (pterName != string.Empty)
         {
             _printerName = pterName;
         }
         PrintDocument pd = InintPrintDoucment("打印文档", _printerName, pageX, pageY, siding);
         pd.BeginPrint += printDocument_BeginPrint;
         //打印输出(过程)
         pd.PrintPage += printDocument_PrintPage;
         //打印结束
         pd.EndPrint += printDocument_EndPrint;
         if (_canSet)
         {
             //跳出打印对话框,提供打印参数可视化设置,如选择哪个打印机打印此文档等
             PrintDialog pdl = new PrintDialog { Document = pd };
             if (DialogResult.OK == pdl.ShowDialog()) //如果确认,将会覆盖所有的打印参数设置
             {
                 //页面设置对话框(可以不使用,其实PrintDialog对话框已提供页面设置)
                 var psd = new PageSetupDialog { Document = pd };
                 if (DialogResult.OK == psd.ShowDialog())
                 {
                     //打印预览
                     var ppd = new PrintPreviewDialog { Document = pd };
                     if (DialogResult.OK == ppd.ShowDialog())
                         pd.Print(); //开始打印
                 }
             }
         }
         else
         {
             pd.PrintController = new StandardPrintController();
             pd.Print();
         }
     }
     catch (Exception ex)
     {
         //PrintLog.ServerLog()
         //FormUtil.ShowMessage(ex.Message);
     }
 }
コード例 #43
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form2));
     this.printDialog1             = new System.Windows.Forms.PrintDialog();
     this.printDocument1           = new System.Drawing.Printing.PrintDocument();
     this.saveFileDialog1          = new System.Windows.Forms.SaveFileDialog();
     this.mainMenu1                = new System.Windows.Forms.MainMenu();
     this.menuItem1                = new System.Windows.Forms.MenuItem();
     this.menuItem6                = new System.Windows.Forms.MenuItem();
     this.menuItem30               = new System.Windows.Forms.MenuItem();
     this.menuItem31               = new System.Windows.Forms.MenuItem();
     this.menuItem13_Open          = new System.Windows.Forms.MenuItem();
     this.menuItem8_Close          = new System.Windows.Forms.MenuItem();
     this.menuItem11               = new System.Windows.Forms.MenuItem();
     this.menuItem10_Save          = new System.Windows.Forms.MenuItem();
     this.menuItem9_SaveAs         = new System.Windows.Forms.MenuItem();
     this.menuItem12               = new System.Windows.Forms.MenuItem();
     this.menuItem29_PageSetup     = new System.Windows.Forms.MenuItem();
     this.menuItem28_PrintPreview  = new System.Windows.Forms.MenuItem();
     this.menuItem7_Print          = new System.Windows.Forms.MenuItem();
     this.menuItem14_RecentFiles4  = new System.Windows.Forms.MenuItem();
     this.menuItem15               = new System.Windows.Forms.MenuItem();
     this.menuItem16_Exit          = new System.Windows.Forms.MenuItem();
     this.menuItem18               = new System.Windows.Forms.MenuItem();
     this.menuItem19_Undo          = new System.Windows.Forms.MenuItem();
     this.menuItem20_Redo          = new System.Windows.Forms.MenuItem();
     this.menuItem21               = new System.Windows.Forms.MenuItem();
     this.menuItem22_Cut           = new System.Windows.Forms.MenuItem();
     this.menuItem23_Copy          = new System.Windows.Forms.MenuItem();
     this.menuItem24_Paste         = new System.Windows.Forms.MenuItem();
     this.menuItem5_Delete         = new System.Windows.Forms.MenuItem();
     this.menuItem26               = new System.Windows.Forms.MenuItem();
     this.menuItem27_SelectAll     = new System.Windows.Forms.MenuItem();
     this.menuItem32               = new System.Windows.Forms.MenuItem();
     this.menuItem33_WordWrap      = new System.Windows.Forms.MenuItem();
     this.menuItem34_Font          = new System.Windows.Forms.MenuItem();
     this.menuItem2                = new System.Windows.Forms.MenuItem();
     this.menuItem3_Cascade        = new System.Windows.Forms.MenuItem();
     this.menuItem4_TileHorizontal = new System.Windows.Forms.MenuItem();
     this.menuItem5_TileVertical   = new System.Windows.Forms.MenuItem();
     this.menuItem17               = new System.Windows.Forms.MenuItem();
     this.printPreviewDialog1      = new System.Windows.Forms.PrintPreviewDialog();
     this.pageSetupDialog1         = new System.Windows.Forms.PageSetupDialog();
     this.fontDialog1              = new System.Windows.Forms.FontDialog();
     this.text_Box1                = new Salford.VisualClearWin.Text_Box();
     this.imageList1               = new System.Windows.Forms.ImageList(this.components);
     this.toolBar1             = new System.Windows.Forms.ToolBar();
     this.toolBarButton1       = new System.Windows.Forms.ToolBarButton();
     this.contextMenu1         = new System.Windows.Forms.ContextMenu();
     this.menuItem4            = new System.Windows.Forms.MenuItem();
     this.menuItem3            = new System.Windows.Forms.MenuItem();
     this.toolBarButton2__Open = new System.Windows.Forms.ToolBarButton();
     this.SuspendLayout();
     //
     // printDialog1
     //
     this.printDialog1.AllowSomePages = true;
     this.printDialog1.Document       = this.printDocument1;
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.Filter = "Fortran files (*.f95)|*.f95|All files (*.*)|*.*";
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1,
         this.menuItem18,
         this.menuItem32,
         this.menuItem2
     });
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem6,
         this.menuItem13_Open,
         this.menuItem8_Close,
         this.menuItem11,
         this.menuItem10_Save,
         this.menuItem9_SaveAs,
         this.menuItem12,
         this.menuItem29_PageSetup,
         this.menuItem28_PrintPreview,
         this.menuItem7_Print,
         this.menuItem14_RecentFiles4,
         this.menuItem15,
         this.menuItem16_Exit
     });
     this.menuItem1.MergeType = System.Windows.Forms.MenuMerge.Replace;
     this.menuItem1.Text      = "&File";
     //
     // menuItem6
     //
     this.menuItem6.Index = 0;
     this.menuItem6.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem30,
         this.menuItem31
     });
     this.menuItem6.Text = "New";
     //
     // menuItem30
     //
     this.menuItem30.Index = 0;
     this.menuItem30.Text  = "Text file";
     //
     // menuItem31
     //
     this.menuItem31.Index = 1;
     this.menuItem31.Text  = "RichText file";
     //
     // menuItem13_Open
     //
     this.menuItem13_Open.Index = 1;
     this.menuItem13_Open.Text  = "&Open";
     //
     // menuItem8_Close
     //
     this.menuItem8_Close.Index = 2;
     this.menuItem8_Close.Text  = "Close";
     //
     // menuItem11
     //
     this.menuItem11.Index = 3;
     this.menuItem11.Text  = "-";
     //
     // menuItem10_Save
     //
     this.menuItem10_Save.Enabled = false;
     this.menuItem10_Save.Index   = 4;
     this.menuItem10_Save.Text    = "Save";
     //
     // menuItem9_SaveAs
     //
     this.menuItem9_SaveAs.Index = 5;
     this.menuItem9_SaveAs.Text  = "Save As";
     //
     // menuItem12
     //
     this.menuItem12.Index = 6;
     this.menuItem12.Text  = "-";
     //
     // menuItem29_PageSetup
     //
     this.menuItem29_PageSetup.Index = 7;
     this.menuItem29_PageSetup.Text  = "Page Setup";
     //
     // menuItem28_PrintPreview
     //
     this.menuItem28_PrintPreview.Index = 8;
     this.menuItem28_PrintPreview.Text  = "Print Preview";
     //
     // menuItem7_Print
     //
     this.menuItem7_Print.Index = 9;
     this.menuItem7_Print.Text  = "Print...";
     //
     // menuItem14_RecentFiles4
     //
     this.menuItem14_RecentFiles4.Index = 10;
     this.menuItem14_RecentFiles4.Text  = "Recent files";
     //
     // menuItem15
     //
     this.menuItem15.Index = 11;
     this.menuItem15.Text  = "-";
     //
     // menuItem16_Exit
     //
     this.menuItem16_Exit.Index = 12;
     this.menuItem16_Exit.Text  = "Exit";
     //
     // menuItem18
     //
     this.menuItem18.Index = 1;
     this.menuItem18.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem19_Undo,
         this.menuItem20_Redo,
         this.menuItem21,
         this.menuItem22_Cut,
         this.menuItem23_Copy,
         this.menuItem24_Paste,
         this.menuItem5_Delete,
         this.menuItem26,
         this.menuItem27_SelectAll
     });
     this.menuItem18.Text = "&Edit";
     //
     // menuItem19_Undo
     //
     this.menuItem19_Undo.Index = 0;
     this.menuItem19_Undo.Text  = "Undo";
     //
     // menuItem20_Redo
     //
     this.menuItem20_Redo.Index = 1;
     this.menuItem20_Redo.Text  = "Redo";
     //
     // menuItem21
     //
     this.menuItem21.Index = 2;
     this.menuItem21.Text  = "-";
     //
     // menuItem22_Cut
     //
     this.menuItem22_Cut.Index = 3;
     this.menuItem22_Cut.Text  = "Cut";
     //
     // menuItem23_Copy
     //
     this.menuItem23_Copy.Index = 4;
     this.menuItem23_Copy.Text  = "Copy";
     //
     // menuItem24_Paste
     //
     this.menuItem24_Paste.Index = 5;
     this.menuItem24_Paste.Text  = "Paste";
     //
     // menuItem5_Delete
     //
     this.menuItem5_Delete.Index = 6;
     this.menuItem5_Delete.Text  = "Delete";
     //
     // menuItem26
     //
     this.menuItem26.Index = 7;
     this.menuItem26.Text  = "-";
     //
     // menuItem27_SelectAll
     //
     this.menuItem27_SelectAll.Index = 8;
     this.menuItem27_SelectAll.Text  = "Select All";
     //
     // menuItem32
     //
     this.menuItem32.Index = 2;
     this.menuItem32.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem33_WordWrap,
         this.menuItem34_Font
     });
     this.menuItem32.Text = "Format";
     //
     // menuItem33_WordWrap
     //
     this.menuItem33_WordWrap.Index = 0;
     this.menuItem33_WordWrap.Text  = "Word Wrap";
     //
     // menuItem34_Font
     //
     this.menuItem34_Font.Index = 1;
     this.menuItem34_Font.Text  = "Font";
     //
     // menuItem2
     //
     this.menuItem2.Index = 3;
     this.menuItem2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem3_Cascade,
         this.menuItem4_TileHorizontal,
         this.menuItem5_TileVertical,
         this.menuItem17
     });
     this.menuItem2.Text = "&Window";
     //
     // menuItem3_Cascade
     //
     this.menuItem3_Cascade.Index = 0;
     this.menuItem3_Cascade.Text  = "Cascade";
     //
     // menuItem4_TileHorizontal
     //
     this.menuItem4_TileHorizontal.Index = 1;
     this.menuItem4_TileHorizontal.Text  = "Tile Horizontally";
     //
     // menuItem5_TileVertical
     //
     this.menuItem5_TileVertical.Index = 2;
     this.menuItem5_TileVertical.Text  = "Tile Vertically";
     //
     // menuItem17
     //
     this.menuItem17.Index   = 3;
     this.menuItem17.MdiList = true;
     this.menuItem17.Text    = "Windows";
     //
     // printPreviewDialog1
     //
     this.printPreviewDialog1.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.ClientSize        = new System.Drawing.Size(400, 300);
     this.printPreviewDialog1.Document          = this.printDocument1;
     this.printPreviewDialog1.Enabled           = true;
     this.printPreviewDialog1.Icon            = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon")));
     this.printPreviewDialog1.Location        = new System.Drawing.Point(491, 18);
     this.printPreviewDialog1.MinimumSize     = new System.Drawing.Size(375, 250);
     this.printPreviewDialog1.Name            = "printPreviewDialog1";
     this.printPreviewDialog1.TransparencyKey = System.Drawing.Color.Empty;
     this.printPreviewDialog1.Visible         = false;
     //
     // pageSetupDialog1
     //
     this.pageSetupDialog1.Document = this.printDocument1;
     //
     // fontDialog1
     //
     this.fontDialog1.Font      = new System.Drawing.Font("Courier New", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.fontDialog1.ShowColor = true;
     //
     // text_Box1
     //
     this.text_Box1.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.text_Box1.Font       = new System.Drawing.Font("Courier New", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.text_Box1.Location   = new System.Drawing.Point(0, 0);
     this.text_Box1.Multiline  = true;
     this.text_Box1.Name       = "text_Box1";
     this.text_Box1.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.text_Box1.Size       = new System.Drawing.Size(208, 69);
     this.text_Box1.TabIndex   = 2;
     this.text_Box1.Text       = "";
     //
     // imageList1
     //
     this.imageList1.ImageSize        = new System.Drawing.Size(16, 16);
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     // toolBar1
     //
     this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
     this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.toolBarButton1,
         this.toolBarButton2__Open
     });
     this.toolBar1.ButtonSize     = new System.Drawing.Size(16, 16);
     this.toolBar1.DropDownArrows = true;
     this.toolBar1.ImageList      = this.imageList1;
     this.toolBar1.Location       = new System.Drawing.Point(0, 0);
     this.toolBar1.Name           = "toolBar1";
     this.toolBar1.ShowToolTips   = true;
     this.toolBar1.Size           = new System.Drawing.Size(208, 28);
     this.toolBar1.TabIndex       = 4;
     //
     // toolBarButton1
     //
     this.toolBarButton1.DropDownMenu = this.contextMenu1;
     this.toolBarButton1.ImageIndex   = 0;
     this.toolBarButton1.Style        = System.Windows.Forms.ToolBarButtonStyle.DropDownButton;
     //
     // contextMenu1
     //
     this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem4,
         this.menuItem3
     });
     //
     // menuItem4
     //
     this.menuItem4.Index = 0;
     this.menuItem4.Text  = "Text file";
     //
     // menuItem3
     //
     this.menuItem3.Index = 1;
     this.menuItem3.Text  = "RichText file";
     //
     // toolBarButton2__Open
     //
     this.toolBarButton2__Open.ImageIndex = 1;
     //
     // Form2
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(208, 69);
     this.Controls.Add(this.toolBar1);
     this.Controls.Add(this.text_Box1);
     this.Menu        = this.mainMenu1;
     this.Name        = "Form2";
     this.Text        = "Form2";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.ResumeLayout(false);
 }
コード例 #44
0
ファイル: MainForm.cs プロジェクト: HDBread/GM
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     this.mainMenu                 = new System.Windows.Forms.MainMenu(this.components);
     this.fileMenuItem             = new System.Windows.Forms.MenuItem();
     this.openFileMenuItem         = new System.Windows.Forms.MenuItem();
     this.fileCloseMenuItem        = new System.Windows.Forms.MenuItem();
     this.fileSaveMenuItem         = new System.Windows.Forms.MenuItem();
     this.fileSaveAsMenuItem       = new System.Windows.Forms.MenuItem();
     this.fileSeparatorMenuItem1   = new System.Windows.Forms.MenuItem();
     this.filePrintMenuItem        = new System.Windows.Forms.MenuItem();
     this.filePrintPreviewMenuItem = new System.Windows.Forms.MenuItem();
     this.filePrintSetupMenuItem   = new System.Windows.Forms.MenuItem();
     this.fileSeparatorMenuItem2   = new System.Windows.Forms.MenuItem();
     this.exitFileMenuItem         = new System.Windows.Forms.MenuItem();
     this.editMenuItem             = new System.Windows.Forms.MenuItem();
     this.editUndoMenuItem         = new System.Windows.Forms.MenuItem();
     this.editStopMenuItem         = new System.Windows.Forms.MenuItem();
     this.editSeparatorMenuItem3   = new System.Windows.Forms.MenuItem();
     this.editHalfMenuItem         = new System.Windows.Forms.MenuItem();
     this.editSeparatorMenuItem2   = new System.Windows.Forms.MenuItem();
     this.editHistogramMenuItem    = new System.Windows.Forms.MenuItem();
     this.editConstrastMenuItem    = new System.Windows.Forms.MenuItem();
     this.editInvertColorsMenuItem = new System.Windows.Forms.MenuItem();
     this.editEmbossMenuItem       = new System.Windows.Forms.MenuItem();
     this.editSeparatorMenuItem    = new System.Windows.Forms.MenuItem();
     this.editBlurMenuItem         = new System.Windows.Forms.MenuItem();
     this.editCountourMenuItem     = new System.Windows.Forms.MenuItem();
     this.editSharpMenuItem        = new System.Windows.Forms.MenuItem();
     this.editDenoiseMenuItem      = new System.Windows.Forms.MenuItem();
     this.viewMenuItem             = new System.Windows.Forms.MenuItem();
     this.viewZoomInMenuItem       = new System.Windows.Forms.MenuItem();
     this.viewZoomOutMenuItem      = new System.Windows.Forms.MenuItem();
     this.separatorMenuItem2       = new System.Windows.Forms.MenuItem();
     this.stretchBublicMenuItem    = new System.Windows.Forms.MenuItem();
     this.stretchNeigborMenuItem   = new System.Windows.Forms.MenuItem();
     this.windowMenuItem           = new System.Windows.Forms.MenuItem();
     this.windowNewWindowMenuItem  = new System.Windows.Forms.MenuItem();
     this.cascaedWindowMenuItem    = new System.Windows.Forms.MenuItem();
     this.tileWindowMenuItem       = new System.Windows.Forms.MenuItem();
     this.arrangeWindowMenuItem    = new System.Windows.Forms.MenuItem();
     this.helpMenuItem             = new System.Windows.Forms.MenuItem();
     this.helpAboutMenuItem        = new System.Windows.Forms.MenuItem();
     this.openFileDialog           = new System.Windows.Forms.OpenFileDialog();
     this.imageList                = new System.Windows.Forms.ImageList(this.components);
     this.saveFileDialog           = new System.Windows.Forms.SaveFileDialog();
     this.printPreviewDialog       = new System.Windows.Forms.PrintPreviewDialog();
     this.pageSetupDialog          = new System.Windows.Forms.PageSetupDialog();
     this.SuspendLayout();
     //
     // mainMenu
     //
     this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.fileMenuItem,
         this.editMenuItem,
         this.viewMenuItem,
         this.windowMenuItem,
         this.helpMenuItem
     });
     //
     // fileMenuItem
     //
     this.fileMenuItem.Index = 0;
     this.fileMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.openFileMenuItem,
         this.fileCloseMenuItem,
         this.fileSaveMenuItem,
         this.fileSaveAsMenuItem,
         this.fileSeparatorMenuItem1,
         this.filePrintMenuItem,
         this.filePrintPreviewMenuItem,
         this.filePrintSetupMenuItem,
         this.fileSeparatorMenuItem2,
         this.exitFileMenuItem
     });
     this.fileMenuItem.Text = "&File";
     //
     // openFileMenuItem
     //
     this.openFileMenuItem.Index    = 0;
     this.openFileMenuItem.Shortcut = System.Windows.Forms.Shortcut.CtrlO;
     this.openFileMenuItem.Text     = "&Open...";
     this.openFileMenuItem.Click   += new System.EventHandler(this.openFileMenuItem_Click);
     //
     // fileCloseMenuItem
     //
     this.fileCloseMenuItem.Index  = 1;
     this.fileCloseMenuItem.Text   = "&Close";
     this.fileCloseMenuItem.Click += new System.EventHandler(this.fileCloseMenuItem_Click);
     //
     // fileSaveMenuItem
     //
     this.fileSaveMenuItem.Index    = 2;
     this.fileSaveMenuItem.Shortcut = System.Windows.Forms.Shortcut.CtrlS;
     this.fileSaveMenuItem.Text     = "&Save";
     //
     // fileSaveAsMenuItem
     //
     this.fileSaveAsMenuItem.Index  = 3;
     this.fileSaveAsMenuItem.Text   = "Save &As...";
     this.fileSaveAsMenuItem.Click += new System.EventHandler(this.fileSaveAsMenuItem_Click);
     //
     // fileSeparatorMenuItem1
     //
     this.fileSeparatorMenuItem1.Index = 4;
     this.fileSeparatorMenuItem1.Text  = "-";
     //
     // filePrintMenuItem
     //
     this.filePrintMenuItem.Index    = 5;
     this.filePrintMenuItem.Shortcut = System.Windows.Forms.Shortcut.CtrlP;
     this.filePrintMenuItem.Text     = "&Print...";
     this.filePrintMenuItem.Click   += new System.EventHandler(this.filePrintMenuItem_Click);
     //
     // filePrintPreviewMenuItem
     //
     this.filePrintPreviewMenuItem.Index  = 6;
     this.filePrintPreviewMenuItem.Text   = "Print Pre&view...";
     this.filePrintPreviewMenuItem.Click += new System.EventHandler(this.filePrintPreviewMenuItem_Click);
     //
     // filePrintSetupMenuItem
     //
     this.filePrintSetupMenuItem.Index  = 7;
     this.filePrintSetupMenuItem.Text   = "Pa&ge Setup...";
     this.filePrintSetupMenuItem.Click += new System.EventHandler(this.filePrintSetupMenuItem_Click);
     //
     // fileSeparatorMenuItem2
     //
     this.fileSeparatorMenuItem2.Index = 8;
     this.fileSeparatorMenuItem2.Text  = "-";
     //
     // exitFileMenuItem
     //
     this.exitFileMenuItem.Index  = 9;
     this.exitFileMenuItem.Text   = "&Exit";
     this.exitFileMenuItem.Click += new System.EventHandler(this.exitFileMenuItem_Click);
     //
     // editMenuItem
     //
     this.editMenuItem.Index = 1;
     this.editMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.editUndoMenuItem,
         this.editStopMenuItem,
         this.editSeparatorMenuItem3,
         this.editHalfMenuItem,
         this.editSeparatorMenuItem2,
         this.editHistogramMenuItem,
         this.editConstrastMenuItem,
         this.editInvertColorsMenuItem,
         this.editEmbossMenuItem,
         this.editSeparatorMenuItem,
         this.editBlurMenuItem,
         this.editCountourMenuItem,
         this.editSharpMenuItem,
         this.editDenoiseMenuItem
     });
     this.editMenuItem.Text   = "&Edit";
     this.editMenuItem.Click += new System.EventHandler(this.editMenuItem_Click);
     this.editMenuItem.Popup += new System.EventHandler(this.editMenuItem_Popup);
     //
     // editUndoMenuItem
     //
     this.editUndoMenuItem.Index    = 0;
     this.editUndoMenuItem.Shortcut = System.Windows.Forms.Shortcut.CtrlZ;
     this.editUndoMenuItem.Text     = "&Undo";
     this.editUndoMenuItem.Click   += new System.EventHandler(this.editUndoMenuItem_Click);
     //
     // editStopMenuItem
     //
     this.editStopMenuItem.Index    = 1;
     this.editStopMenuItem.Shortcut = System.Windows.Forms.Shortcut.F10;
     this.editStopMenuItem.Text     = "&Stop";
     this.editStopMenuItem.Click   += new System.EventHandler(this.editStopMenuItem_Click);
     //
     // editSeparatorMenuItem3
     //
     this.editSeparatorMenuItem3.Index = 2;
     this.editSeparatorMenuItem3.Text  = "-";
     //
     // editHalfMenuItem
     //
     this.editHalfMenuItem.Index  = 3;
     this.editHalfMenuItem.Text   = "Edit Half";
     this.editHalfMenuItem.Click += new System.EventHandler(this.editHalfMenuItem_Click);
     //
     // editSeparatorMenuItem2
     //
     this.editSeparatorMenuItem2.Index = 4;
     this.editSeparatorMenuItem2.Text  = "-";
     //
     // editHistogramMenuItem
     //
     this.editHistogramMenuItem.Index    = 5;
     this.editHistogramMenuItem.Shortcut = System.Windows.Forms.Shortcut.CtrlH;
     this.editHistogramMenuItem.Text     = "&Histrogram...";
     this.editHistogramMenuItem.Click   += new System.EventHandler(this.editHistogramMenuItem_Click);
     //
     // editConstrastMenuItem
     //
     this.editConstrastMenuItem.Index    = 6;
     this.editConstrastMenuItem.Shortcut = System.Windows.Forms.Shortcut.CtrlB;
     this.editConstrastMenuItem.Text     = "&Brightness and Contrast...";
     this.editConstrastMenuItem.Click   += new System.EventHandler(this.editConstrastMenuItem_Click);
     //
     // editInvertColorsMenuItem
     //
     this.editInvertColorsMenuItem.Index    = 7;
     this.editInvertColorsMenuItem.Shortcut = System.Windows.Forms.Shortcut.CtrlI;
     this.editInvertColorsMenuItem.Text     = "Invert Colors";
     this.editInvertColorsMenuItem.Click   += new System.EventHandler(this.editInvertColorsMenuItem_Click);
     //
     // editEmbossMenuItem
     //
     this.editEmbossMenuItem.Index    = 8;
     this.editEmbossMenuItem.Shortcut = System.Windows.Forms.Shortcut.CtrlE;
     this.editEmbossMenuItem.Text     = "&Emboss";
     this.editEmbossMenuItem.Click   += new System.EventHandler(this.editEmbossMenuItem_Click);
     //
     // editSeparatorMenuItem
     //
     this.editSeparatorMenuItem.Index = 9;
     this.editSeparatorMenuItem.Text  = "-";
     //
     // editBlurMenuItem
     //
     this.editBlurMenuItem.Index  = 10;
     this.editBlurMenuItem.Text   = "B&lur";
     this.editBlurMenuItem.Click += new System.EventHandler(this.editBlurMenuItem_Click);
     //
     // editCountourMenuItem
     //
     this.editCountourMenuItem.Index  = 11;
     this.editCountourMenuItem.Text   = "Contour";
     this.editCountourMenuItem.Click += new System.EventHandler(this.editCountourMenuItem_Click);
     //
     // editSharpMenuItem
     //
     this.editSharpMenuItem.Index  = 12;
     this.editSharpMenuItem.Text   = "Sharp";
     this.editSharpMenuItem.Click += new System.EventHandler(this.editSharpMenuItem_Click);
     //
     // editDenoiseMenuItem
     //
     this.editDenoiseMenuItem.Index  = 13;
     this.editDenoiseMenuItem.Text   = "DeNoise...";
     this.editDenoiseMenuItem.Click += new System.EventHandler(this.editDenoiseMenuItem_Click);
     //
     // viewMenuItem
     //
     this.viewMenuItem.Index = 2;
     this.viewMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.viewZoomInMenuItem,
         this.viewZoomOutMenuItem,
         this.separatorMenuItem2,
         this.stretchBublicMenuItem,
         this.stretchNeigborMenuItem
     });
     this.viewMenuItem.Text   = "&View";
     this.viewMenuItem.Popup += new System.EventHandler(this.viewMenuItem_Popup);
     //
     // viewZoomInMenuItem
     //
     this.viewZoomInMenuItem.Index    = 0;
     this.viewZoomInMenuItem.Shortcut = System.Windows.Forms.Shortcut.Ctrl1;
     this.viewZoomInMenuItem.Text     = "Zoom &In";
     this.viewZoomInMenuItem.Click   += new System.EventHandler(this.viewZoomInMenuItem_Click);
     //
     // viewZoomOutMenuItem
     //
     this.viewZoomOutMenuItem.Index    = 1;
     this.viewZoomOutMenuItem.Shortcut = System.Windows.Forms.Shortcut.Ctrl2;
     this.viewZoomOutMenuItem.Text     = "Zoom &Out";
     this.viewZoomOutMenuItem.Click   += new System.EventHandler(this.viewZoomOutMenuItem_Click);
     //
     // separatorMenuItem2
     //
     this.separatorMenuItem2.Index = 2;
     this.separatorMenuItem2.Text  = "-";
     //
     // stretchBublicMenuItem
     //
     this.stretchBublicMenuItem.Checked  = true;
     this.stretchBublicMenuItem.Index    = 3;
     this.stretchBublicMenuItem.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftB;
     this.stretchBublicMenuItem.Text     = "Stretch &BICUBIC";
     this.stretchBublicMenuItem.Click   += new System.EventHandler(this.stretchBublicMenuItem_Click);
     //
     // stretchNeigborMenuItem
     //
     this.stretchNeigborMenuItem.Index    = 4;
     this.stretchNeigborMenuItem.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftN;
     this.stretchNeigborMenuItem.Text     = "Stretch &NEIGHBOR";
     this.stretchNeigborMenuItem.Click   += new System.EventHandler(this.stretchNeigborMenuItem_Click);
     //
     // windowMenuItem
     //
     this.windowMenuItem.Index   = 3;
     this.windowMenuItem.MdiList = true;
     this.windowMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.windowNewWindowMenuItem,
         this.cascaedWindowMenuItem,
         this.tileWindowMenuItem,
         this.arrangeWindowMenuItem
     });
     this.windowMenuItem.Text = "&Window";
     //
     // windowNewWindowMenuItem
     //
     this.windowNewWindowMenuItem.Index  = 0;
     this.windowNewWindowMenuItem.Text   = "&New Window";
     this.windowNewWindowMenuItem.Click += new System.EventHandler(this.windowNewWindowMenuItem_Click);
     //
     // cascaedWindowMenuItem
     //
     this.cascaedWindowMenuItem.Index  = 1;
     this.cascaedWindowMenuItem.Text   = "&Cascade";
     this.cascaedWindowMenuItem.Click += new System.EventHandler(this.cascaedWindowMenuItem_Click);
     //
     // tileWindowMenuItem
     //
     this.tileWindowMenuItem.Index  = 2;
     this.tileWindowMenuItem.Text   = "&Tile";
     this.tileWindowMenuItem.Click += new System.EventHandler(this.tileWindowMenuItem_Click);
     //
     // arrangeWindowMenuItem
     //
     this.arrangeWindowMenuItem.Index  = 3;
     this.arrangeWindowMenuItem.Text   = "&Arrange Icons";
     this.arrangeWindowMenuItem.Click += new System.EventHandler(this.arrangeWindowMenuItem_Click);
     //
     // helpMenuItem
     //
     this.helpMenuItem.Index = 4;
     this.helpMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.helpAboutMenuItem
     });
     this.helpMenuItem.Text = "&Help";
     //
     // helpAboutMenuItem
     //
     this.helpAboutMenuItem.Index  = 0;
     this.helpAboutMenuItem.Text   = "&About BWViewer...";
     this.helpAboutMenuItem.Click += new System.EventHandler(this.helpMenuItem_Click);
     //
     // imageList
     //
     this.imageList.ColorDepth       = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.imageList.ImageSize        = new System.Drawing.Size(16, 16);
     this.imageList.TransparentColor = System.Drawing.Color.Transparent;
     //
     // printPreviewDialog
     //
     this.printPreviewDialog.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.printPreviewDialog.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.printPreviewDialog.ClientSize        = new System.Drawing.Size(400, 300);
     this.printPreviewDialog.Enabled           = true;
     this.printPreviewDialog.Icon    = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog.Icon")));
     this.printPreviewDialog.Name    = "printPreviewDialog";
     this.printPreviewDialog.Visible = false;
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(712, 366);
     this.IsMdiContainer    = true;
     this.Menu = this.mainMenu;
     this.Name = "MainForm";
     this.Text = "BWViewer";
     this.ResumeLayout(false);
 }
コード例 #45
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Chart));
     this.contextMenu1        = new System.Windows.Forms.ContextMenu();
     this.miTrace             = new System.Windows.Forms.MenuItem();
     this.menuItem4           = new System.Windows.Forms.MenuItem();
     this.menuItem11          = new System.Windows.Forms.MenuItem();
     this.menuItem10          = new System.Windows.Forms.MenuItem();
     this.miChartType         = new System.Windows.Forms.MenuItem();
     this.miXaxis             = new System.Windows.Forms.MenuItem();
     this.miYaxis             = new System.Windows.Forms.MenuItem();
     this.menuItem5           = new System.Windows.Forms.MenuItem();
     this.miShow              = new System.Windows.Forms.MenuItem();
     this.menuItem16          = new System.Windows.Forms.MenuItem();
     this.menuItem15          = new System.Windows.Forms.MenuItem();
     this.menuItem18          = new System.Windows.Forms.MenuItem();
     this.menuItem19          = new System.Windows.Forms.MenuItem();
     this.menuItem20          = new System.Windows.Forms.MenuItem();
     this.menuItem21          = new System.Windows.Forms.MenuItem();
     this.mainMenu1           = new System.Windows.Forms.MainMenu();
     this.menuItem1           = new System.Windows.Forms.MenuItem();
     this.menuItem3           = new System.Windows.Forms.MenuItem();
     this.cmdMerge            = new System.Windows.Forms.MenuItem();
     this.cmdExport           = new System.Windows.Forms.MenuItem();
     this.menuItem7           = new System.Windows.Forms.MenuItem();
     this.menuItem22          = new System.Windows.Forms.MenuItem();
     this.miPrintSetup        = new System.Windows.Forms.MenuItem();
     this.miPrint             = new System.Windows.Forms.MenuItem();
     this.miPrinting          = new System.Windows.Forms.MenuItem();
     this.menuItem9           = new System.Windows.Forms.MenuItem();
     this.menuItem8           = new System.Windows.Forms.MenuItem();
     this.menuItem12          = new System.Windows.Forms.MenuItem();
     this.menuItem13          = new System.Windows.Forms.MenuItem();
     this.menuItem17          = new System.Windows.Forms.MenuItem();
     this.menuItem14          = new System.Windows.Forms.MenuItem();
     this.menuItem2           = new System.Windows.Forms.MenuItem();
     this.menuItem6           = new System.Windows.Forms.MenuItem();
     this.cmdCopyToClip       = new System.Windows.Forms.MenuItem();
     this.miFFT               = new System.Windows.Forms.MenuItem();
     this.miFFTDi             = new System.Windows.Forms.MenuItem();
     this.miAdjX              = new System.Windows.Forms.MenuItem();
     this.openFileDialog1     = new System.Windows.Forms.OpenFileDialog();
     this.colorDialog1        = new System.Windows.Forms.ColorDialog();
     this.saveFileDialog1     = new System.Windows.Forms.SaveFileDialog();
     this.printDialog1        = new System.Windows.Forms.PrintDialog();
     this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
     this.pageSetupDialog1    = new System.Windows.Forms.PageSetupDialog();
     //
     // contextMenu1
     //
     this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miTrace,
         this.menuItem10,
         this.miChartType,
         this.miXaxis,
         this.miYaxis,
         this.menuItem5,
         this.miShow,
         this.menuItem18,
         this.menuItem19,
         this.menuItem20,
         this.menuItem21
     });
     //
     // miTrace
     //
     this.miTrace.Index = 0;
     this.miTrace.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem4,
         this.menuItem11
     });
     this.miTrace.Text   = "Pick Points";
     this.miTrace.Click += new System.EventHandler(this.menuItem14_Click);
     //
     // menuItem4
     //
     this.menuItem4.Index  = 0;
     this.menuItem4.Text   = "Enabled";
     this.menuItem4.Click += new System.EventHandler(this.menuItem14_Click);
     //
     // menuItem11
     //
     this.menuItem11.Enabled = false;
     this.menuItem11.Index   = 1;
     this.menuItem11.Text    = "Trace";
     this.menuItem11.Click  += new System.EventHandler(this.menuItem11_Click_1);
     //
     // menuItem10
     //
     this.menuItem10.Index = 1;
     this.menuItem10.Text  = "-";
     //
     // miChartType
     //
     this.miChartType.Index = 2;
     this.miChartType.Text  = "ChartType";
     //
     // miXaxis
     //
     this.miXaxis.Index = 3;
     this.miXaxis.Text  = "X-Axis";
     //
     // miYaxis
     //
     this.miYaxis.Index = 4;
     this.miYaxis.Text  = "Y-Axis";
     //
     // menuItem5
     //
     this.menuItem5.Index = 5;
     this.menuItem5.Text  = "-";
     //
     // miShow
     //
     this.miShow.Index = 6;
     this.miShow.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem16,
         this.menuItem15
     });
     this.miShow.Text = "Show";
     //
     // menuItem16
     //
     this.menuItem16.Checked = true;
     this.menuItem16.Index   = 0;
     this.menuItem16.Text    = "Legend";
     this.menuItem16.Click  += new System.EventHandler(this.menuItem16_Click);
     //
     // menuItem15
     //
     this.menuItem15.Checked = true;
     this.menuItem15.Index   = 1;
     this.menuItem15.Text    = "Title";
     this.menuItem15.Click  += new System.EventHandler(this.menuItem15_Click);
     //
     // menuItem18
     //
     this.menuItem18.Index = 7;
     this.menuItem18.Text  = "-";
     //
     // menuItem19
     //
     this.menuItem19.Index  = 8;
     this.menuItem19.Text   = "Adjust Axis";
     this.menuItem19.Click += new System.EventHandler(this.menuItem19_Click);
     //
     // menuItem20
     //
     this.menuItem20.Index  = 9;
     this.menuItem20.Text   = "FFT";
     this.menuItem20.Click += new System.EventHandler(this.menuItem20_Click);
     //
     // menuItem21
     //
     this.menuItem21.Index  = 10;
     this.menuItem21.Text   = "FFT Dialog";
     this.menuItem21.Click += new System.EventHandler(this.miFFTDi_Click);
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1,
         this.menuItem13,
         this.menuItem6
     });
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem3,
         this.cmdMerge,
         this.cmdExport,
         this.menuItem7,
         this.menuItem22,
         this.miPrintSetup,
         this.miPrint,
         this.miPrinting,
         this.menuItem9,
         this.menuItem8,
         this.menuItem12
     });
     this.menuItem1.MergeType = System.Windows.Forms.MenuMerge.MergeItems;
     this.menuItem1.Text      = "File";
     //
     // menuItem3
     //
     this.menuItem3.Index    = 0;
     this.menuItem3.Shortcut = System.Windows.Forms.Shortcut.CtrlO;
     this.menuItem3.Text     = "Open";
     this.menuItem3.Click   += new System.EventHandler(this.menuItem3_Click);
     //
     // cmdMerge
     //
     this.cmdMerge.Index     = 1;
     this.cmdMerge.MergeType = System.Windows.Forms.MenuMerge.MergeItems;
     this.cmdMerge.Shortcut  = System.Windows.Forms.Shortcut.CtrlM;
     this.cmdMerge.Text      = "Merge";
     this.cmdMerge.Click    += new System.EventHandler(this.cmdMerge_Click);
     //
     // cmdExport
     //
     this.cmdExport.Index  = 2;
     this.cmdExport.Text   = "Export";
     this.cmdExport.Click += new System.EventHandler(this.cmdExport_Click);
     //
     // menuItem7
     //
     this.menuItem7.Index    = 3;
     this.menuItem7.Shortcut = System.Windows.Forms.Shortcut.CtrlS;
     this.menuItem7.Text     = "Save";
     this.menuItem7.Click   += new System.EventHandler(this.menuItem7_Click_1);
     //
     // menuItem22
     //
     this.menuItem22.Index = 4;
     this.menuItem22.Text  = "-";
     //
     // miPrintSetup
     //
     this.miPrintSetup.Index  = 5;
     this.miPrintSetup.Text   = "Print Setup";
     this.miPrintSetup.Click += new System.EventHandler(this.miPrintSetup_Click);
     //
     // miPrint
     //
     this.miPrint.Index  = 6;
     this.miPrint.Text   = "Print Preview";
     this.miPrint.Click += new System.EventHandler(this.miPrint_Click);
     //
     // miPrinting
     //
     this.miPrinting.Index  = 7;
     this.miPrinting.Text   = "Print";
     this.miPrinting.Click += new System.EventHandler(this.miPrinting_Click);
     //
     // menuItem9
     //
     this.menuItem9.Index = 8;
     this.menuItem9.Text  = "-";
     //
     // menuItem8
     //
     this.menuItem8.Index  = 9;
     this.menuItem8.Text   = "Close";
     this.menuItem8.Click += new System.EventHandler(this.menuItem8_Click);
     //
     // menuItem12
     //
     this.menuItem12.Index = 10;
     this.menuItem12.Text  = "-";
     //
     // menuItem13
     //
     this.menuItem13.Index = 1;
     this.menuItem13.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem17,
         this.menuItem14,
         this.menuItem2
     });
     this.menuItem13.MergeOrder = 2;
     this.menuItem13.MergeType  = System.Windows.Forms.MenuMerge.MergeItems;
     this.menuItem13.Text       = "View";
     //
     // menuItem17
     //
     this.menuItem17.Index = 0;
     this.menuItem17.Text  = "-";
     //
     // menuItem14
     //
     this.menuItem14.Index    = 1;
     this.menuItem14.Shortcut = System.Windows.Forms.Shortcut.CtrlT;
     this.menuItem14.Text     = "Pick Points";
     this.menuItem14.Click   += new System.EventHandler(this.menuItem14_Click);
     //
     // menuItem2
     //
     this.menuItem2.Index = 2;
     this.menuItem2.Text  = "-";
     //
     // menuItem6
     //
     this.menuItem6.Index = 2;
     this.menuItem6.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.cmdCopyToClip,
         this.miFFT,
         this.miFFTDi,
         this.miAdjX
     });
     this.menuItem6.Text = "Edit";
     //
     // cmdCopyToClip
     //
     this.cmdCopyToClip.Index  = 0;
     this.cmdCopyToClip.Text   = "Copy to Clipboard";
     this.cmdCopyToClip.Click += new System.EventHandler(this.cmdCopyToClip_Click);
     //
     // miFFT
     //
     this.miFFT.Index  = 1;
     this.miFFT.Text   = "FFT";
     this.miFFT.Click += new System.EventHandler(this.miFFT_Click);
     //
     // miFFTDi
     //
     this.miFFTDi.Index  = 2;
     this.miFFTDi.Text   = "FFT Dialog";
     this.miFFTDi.Click += new System.EventHandler(this.miFFTDi_Click);
     //
     // miAdjX
     //
     this.miAdjX.Index  = 3;
     this.miAdjX.Text   = "Adujst Axis";
     this.miAdjX.Click += new System.EventHandler(this.miAdjX_Click);
     //
     // printPreviewDialog1
     //
     this.printPreviewDialog1.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.ClientSize        = new System.Drawing.Size(400, 300);
     this.printPreviewDialog1.Enabled           = true;
     this.printPreviewDialog1.Icon            = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon")));
     this.printPreviewDialog1.Location        = new System.Drawing.Point(731, 17);
     this.printPreviewDialog1.MinimumSize     = new System.Drawing.Size(375, 250);
     this.printPreviewDialog1.Name            = "printPreviewDialog1";
     this.printPreviewDialog1.TransparencyKey = System.Drawing.Color.Empty;
     this.printPreviewDialog1.Visible         = false;
     //
     // Chart
     //
     //this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor  = System.Drawing.SystemColors.ControlLightLight;
     this.ClientSize = new System.Drawing.Size(648, 361);
     this.ForeColor  = System.Drawing.SystemColors.ControlLightLight;
     //this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     //this.KeyPreview = true;
     //this.Menu = this.mainMenu1;
     this.Name = "Chart";
     this.Text = "Chart";
 }
コード例 #46
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
     this.chartBar             = new C1.Win.C1Chart.C1Chart();
     this.chartXY              = new C1.Win.C1Chart.C1Chart();
     this.chartPie             = new C1.Win.C1Chart.C1Chart();
     this.timer1               = new System.Windows.Forms.Timer(this.components);
     this.toolBar1             = new System.Windows.Forms.ToolBar();
     this.tbbPrint             = new System.Windows.Forms.ToolBarButton();
     this.tbbPreview           = new System.Windows.Forms.ToolBarButton();
     this.tbbPageSetup         = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton1       = new System.Windows.Forms.ToolBarButton();
     this.tbbStart             = new System.Windows.Forms.ToolBarButton();
     this.ilToolbar            = new System.Windows.Forms.ImageList(this.components);
     this.mainMenu1            = new System.Windows.Forms.MainMenu();
     this.menuItem1            = new System.Windows.Forms.MenuItem();
     this.menuFileStart        = new System.Windows.Forms.MenuItem();
     this.menuFileStop         = new System.Windows.Forms.MenuItem();
     this.menuItem5            = new System.Windows.Forms.MenuItem();
     this.menuFilePageSetup    = new System.Windows.Forms.MenuItem();
     this.menuFilePrintPreview = new System.Windows.Forms.MenuItem();
     this.menuFilePrint        = new System.Windows.Forms.MenuItem();
     this.menuItem4            = new System.Windows.Forms.MenuItem();
     this.menuFileExit         = new System.Windows.Forms.MenuItem();
     this.menuItem3            = new System.Windows.Forms.MenuItem();
     this.menuHelpAbout        = new System.Windows.Forms.MenuItem();
     this.printDocument        = new System.Drawing.Printing.PrintDocument();
     this.printPreviewDialog   = new System.Windows.Forms.PrintPreviewDialog();
     this.printDialog          = new System.Windows.Forms.PrintDialog();
     this.pageSetupDialog      = new System.Windows.Forms.PageSetupDialog();
     ((System.ComponentModel.ISupportInitialize)(this.chartBar)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.chartXY)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.chartPie)).BeginInit();
     this.SuspendLayout();
     //
     // chartBar
     //
     this.chartBar.BackColor = System.Drawing.Color.LightBlue;
     this.chartBar.Location  = new System.Drawing.Point(296, 24);
     this.chartBar.Name      = "chartBar";
     this.chartBar.PropBag   = "<?xml version=\"1.0\"?><Chart2DPropBag Version=\"\"><StyleCollection><NamedStyle><Par" +
                               "entName>Area</ParentName><StyleData>Border=Solid,ControlText,1;BackColor=Silver;" +
                               "</StyleData><Name>PlotArea</Name></NamedStyle><NamedStyle><ParentName>Legend.def" +
                               "ault</ParentName><StyleData>Border=Raised,LightBlue,1;AlignHorz=Center;BackColor" +
                               "=Azure;</StyleData><Name>Legend</Name></NamedStyle><NamedStyle><ParentName>Contr" +
                               "ol</ParentName><StyleData>Border=None,LightBlue,1;</StyleData><Name>Footer</Name" +
                               "></NamedStyle><NamedStyle><ParentName>Area.default</ParentName><StyleData /><Nam" +
                               "e>Area</Name></NamedStyle><NamedStyle><ParentName>Control.default</ParentName><S" +
                               "tyleData>Border=Raised,LightBlue,1;BackColor=LightBlue;</StyleData><Name>Control" +
                               "</Name></NamedStyle><NamedStyle><ParentName>Area</ParentName><StyleData>Rotation" +
                               "=Rotate270;Border=None,LightBlue,1;AlignHorz=Near;BackColor=Transparent;AlignVer" +
                               "t=Center;</StyleData><Name>AxisX</Name></NamedStyle><NamedStyle><ParentName>Area" +
                               "</ParentName><StyleData>Rotation=Rotate0;Border=None,LightBlue,1;AlignHorz=Cente" +
                               "r;BackColor=Transparent;AlignVert=Bottom;</StyleData><Name>AxisY</Name></NamedSt" +
                               "yle><NamedStyle><ParentName>LabelStyleDefault.default</ParentName><StyleData /><" +
                               "Name>LabelStyleDefault</Name></NamedStyle><NamedStyle><ParentName>Control</Paren" +
                               "tName><StyleData>Border=None,LightBlue,1;Wrap=False;AlignVert=Top;</StyleData><N" +
                               "ame>Legend.default</Name></NamedStyle><NamedStyle><ParentName>Control</ParentNam" +
                               "e><StyleData>Border=None,Control,1;BackColor=Transparent;</StyleData><Name>Label" +
                               "StyleDefault.default</Name></NamedStyle><NamedStyle><ParentName>Control</ParentN" +
                               "ame><StyleData>Border=None,LightBlue,1;Font=Microsoft Sans Serif, 12pt, style=Bo" +
                               "ld, Underline;</StyleData><Name>Header</Name></NamedStyle><NamedStyle><ParentNam" +
                               "e /><StyleData>ForeColor=ControlText;Border=None,LightBlue,1;BackColor=Control;<" +
                               "/StyleData><Name>Control.default</Name></NamedStyle><NamedStyle><ParentName>Area" +
                               "</ParentName><StyleData>Rotation=Rotate0;Border=None,Transparent,1;AlignHorz=Cen" +
                               "ter;BackColor=Transparent;AlignVert=Top;</StyleData><Name>AxisY2</Name></NamedSt" +
                               "yle><NamedStyle><ParentName>Control</ParentName><StyleData>Border=None,LightBlue" +
                               ",1;AlignVert=Top;</StyleData><Name>Area.default</Name></NamedStyle></StyleCollec" +
                               "tion><Axes><Axis Max=\"2.5\" Min=\"0.5\" UnitMajor=\"0.5\" UnitMinor=\"0.25\" AutoMajor=" +
                               "\"True\" AutoMinor=\"True\" AutoMax=\"False\" AutoMin=\"False\" AnnoMethod=\"ValueLabels\"" +
                               " _onTop=\"0\" Compass=\"West\"><ValueLabels><ValueLabel Value=\"1\" Text=\"Current\" /><" +
                               "ValueLabel Value=\"2\" Text=\"History\" /></ValueLabels><GridMajor AutoSpace=\"True\" " +
                               "Thickness=\"1\" Color=\"LightGray\" Pattern=\"Dash\" /><GridMinor AutoSpace=\"True\" Thi" +
                               "ckness=\"1\" Color=\"LightGray\" Pattern=\"Dash\" /><Text /></Axis><Axis Max=\"25\" Min=" +
                               "\"0\" UnitMajor=\"10\" UnitMinor=\"5\" AutoMajor=\"True\" AutoMinor=\"True\" AutoMax=\"Fals" +
                               "e\" AutoMin=\"False\" _onTop=\"0\" Compass=\"South\"><GridMajor Spacing=\"10\" AutoSpace=" +
                               "\"True\" Visible=\"True\" Thickness=\"1\" Color=\"Black\" Pattern=\"Dash\" /><GridMinor Sp" +
                               "acing=\"5\" AutoSpace=\"True\" Visible=\"True\" Thickness=\"1\" Color=\"Black\" Pattern=\"D" +
                               "ash\" /><Text /></Axis><Axis Max=\"0\" Min=\"0\" UnitMajor=\"0\" UnitMinor=\"0\" AutoMajo" +
                               "r=\"True\" AutoMinor=\"True\" AutoMax=\"True\" AutoMin=\"True\" _onTop=\"0\" Compass=\"Nort" +
                               "h\"><GridMajor AutoSpace=\"True\" Thickness=\"1\" Color=\"LightGray\" Pattern=\"Dash\" />" +
                               "<GridMinor AutoSpace=\"True\" Thickness=\"1\" Color=\"LightGray\" Pattern=\"Dash\" /><Te" +
                               "xt /></Axis></Axes><Header Compass=\"North\"><Text>Vehicle Comparison</Text></Head" +
                               "er><Footer Compass=\"South\"><Text /></Footer><Legend Compass=\"East\" Visible=\"True" +
                               "\"><Text /></Legend><ChartArea Inverted=\"True\" /><ChartGroupsCollection><ChartGro" +
                               "up><Bar>ClusterOverlap=0,ClusterWidth=50</Bar><ShowOutline>True</ShowOutline><Po" +
                               "lar>Degrees=True,PiRatioAnnotations=True,Start=0</Polar><Radar>Degrees=True,Fill" +
                               "ed=False,Start=0</Radar><Pie>OtherOffset=0,Start=0</Pie><Name>Group1</Name><Char" +
                               "tType>Bar</ChartType><Stacked>False</Stacked><Bubble>EncodingMethod=Diameter,Max" +
                               "imumSize=20,MinimumSize=5</Bubble><HiLoData>FillFalling=True,FillTransparent=Tru" +
                               "e,FullWidth=False,ShowClose=True,ShowOpen=True</HiLoData><DataSerializer Default" +
                               "Set=\"True\"><DataSeriesCollection><DataSeriesSerializer><Y3 /><Y2 /><Y>20;22</Y><" +
                               "LineStyle Thickness=\"1\" Color=\"Orange\" Pattern=\"Solid\" /><SymbolStyle Shape=\"Box" +
                               "\" Color=\"Coral\" /><SeriesLabel>Cars</SeriesLabel><DataTypes>Single;Single;Single" +
                               ";Single;Single</DataTypes><Y1 /><X>1;2</X></DataSeriesSerializer><DataSeriesSeri" +
                               "alizer><Y3 /><Y2 /><Y>8;12</Y><LineStyle Thickness=\"1\" Color=\"Violet\" Pattern=\"S" +
                               "olid\" /><SymbolStyle Shape=\"Dot\" Color=\"CornflowerBlue\" /><SeriesLabel>Trucks</S" +
                               "eriesLabel><DataTypes>Single;Single;Single;Single;Single</DataTypes><Y1 /><X>1;2" +
                               "</X></DataSeriesSerializer><DataSeriesSerializer><Y3 /><Y2 /><Y>10;10</Y><LineSt" +
                               "yle Thickness=\"1\" Color=\"Aquamarine\" Pattern=\"Solid\" /><SymbolStyle Shape=\"Inver" +
                               "tedTri\" Color=\"Cyan\" /><SeriesLabel>Buses</SeriesLabel><DataTypes>Single;Single;" +
                               "Single;Single;Single</DataTypes><Y1 /><X>1;2</X></DataSeriesSerializer><DataSeri" +
                               "esSerializer><Y3 /><Y2 /><Y>15;15</Y><LineStyle Thickness=\"1\" Color=\"LightGray\" " +
                               "Pattern=\"Solid\" /><SymbolStyle Shape=\"Star\" Color=\"DarkBlue\" /><SeriesLabel>Plan" +
                               "es</SeriesLabel><DataTypes>Single;Single;Single;Single;Single</DataTypes><Y1 /><" +
                               "X>1;2</X></DataSeriesSerializer></DataSeriesCollection></DataSerializer></ChartG" +
                               "roup><ChartGroup><Bar>ClusterOverlap=0,ClusterWidth=50</Bar><ShowOutline>True</S" +
                               "howOutline><Polar>Degrees=True,PiRatioAnnotations=True,Start=0</Polar><Radar>Deg" +
                               "rees=True,Filled=False,Start=0</Radar><Pie>OtherOffset=0,Start=0</Pie><Name>Grou" +
                               "p2</Name><ChartType>XYPlot</ChartType><Stacked>False</Stacked><Bubble>EncodingMe" +
                               "thod=Diameter,MaximumSize=20,MinimumSize=5</Bubble><HiLoData>FillFalling=True,Fi" +
                               "llTransparent=True,FullWidth=False,ShowClose=True,ShowOpen=True</HiLoData><DataS" +
                               "erializer /></ChartGroup></ChartGroupsCollection></Chart2DPropBag>";
     this.chartBar.Size     = new System.Drawing.Size(296, 192);
     this.chartBar.TabIndex = 1;
     //
     // chartXY
     //
     this.chartXY.BackColor = System.Drawing.Color.PaleGreen;
     this.chartXY.ForeColor = System.Drawing.SystemColors.ControlText;
     this.chartXY.Location  = new System.Drawing.Point(0, 216);
     this.chartXY.Name      = "chartXY";
     this.chartXY.PropBag   = "<?xml version=\"1.0\"?><Chart2DPropBag Version=\"\"><StyleCollection><NamedStyle><Par" +
                              "entName>Area</ParentName><StyleData>ForeColor=Blue;Border=Solid,Blue,1;</StyleDa" +
                              "ta><Name>PlotArea</Name></NamedStyle><NamedStyle><ParentName>Legend.default</Par" +
                              "entName><StyleData /><Name>Legend</Name></NamedStyle><NamedStyle><ParentName>Con" +
                              "trol</ParentName><StyleData>Border=None,PaleGreen,1;</StyleData><Name>Footer</Na" +
                              "me></NamedStyle><NamedStyle><ParentName>Area.default</ParentName><StyleData>Fore" +
                              "Color=Blue;</StyleData><Name>Area</Name></NamedStyle><NamedStyle><ParentName>Con" +
                              "trol.default</ParentName><StyleData>ForeColor=ControlText;Border=Raised,PaleGree" +
                              "n,1;BackColor=PaleGreen;</StyleData><Name>Control</Name></NamedStyle><NamedStyle" +
                              "><ParentName>Area</ParentName><StyleData>Rotation=Rotate0;Border=None,PaleGreen," +
                              "1;AlignHorz=Center;BackColor=Transparent;AlignVert=Bottom;</StyleData><Name>Axis" +
                              "X</Name></NamedStyle><NamedStyle><ParentName>Area</ParentName><StyleData>Rotatio" +
                              "n=Rotate270;Border=None,PaleGreen,1;AlignHorz=Near;BackColor=Transparent;AlignVe" +
                              "rt=Center;</StyleData><Name>AxisY</Name></NamedStyle><NamedStyle><ParentName>Lab" +
                              "elStyleDefault.default</ParentName><StyleData /><Name>LabelStyleDefault</Name></" +
                              "NamedStyle><NamedStyle><ParentName>Control</ParentName><StyleData>Border=None,Pa" +
                              "leGreen,1;Wrap=False;AlignVert=Top;</StyleData><Name>Legend.default</Name></Name" +
                              "dStyle><NamedStyle><ParentName>Control</ParentName><StyleData>Border=None,Contro" +
                              "l,1;BackColor=Transparent;</StyleData><Name>LabelStyleDefault.default</Name></Na" +
                              "medStyle><NamedStyle><ParentName>Control</ParentName><StyleData>Border=None,Pale" +
                              "Green,1;Font=Microsoft Sans Serif, 12pt, style=Bold, Underline;</StyleData><Name" +
                              ">Header</Name></NamedStyle><NamedStyle><ParentName /><StyleData>ForeColor=Contro" +
                              "lText;Border=None,PaleGreen,1;BackColor=Control;</StyleData><Name>Control.defaul" +
                              "t</Name></NamedStyle><NamedStyle><ParentName>Area</ParentName><StyleData>Rotatio" +
                              "n=Rotate90;Border=None,Transparent,1;AlignHorz=Far;BackColor=Transparent;AlignVe" +
                              "rt=Center;</StyleData><Name>AxisY2</Name></NamedStyle><NamedStyle><ParentName>Co" +
                              "ntrol</ParentName><StyleData>Border=None,PaleGreen,1;AlignVert=Top;</StyleData><" +
                              "Name>Area.default</Name></NamedStyle></StyleCollection><Axes><Axis Max=\"5\" Min=\"" +
                              "1\" UnitMajor=\"1\" UnitMinor=\"0.5\" AutoMajor=\"True\" AutoMinor=\"True\" AutoMax=\"Fals" +
                              "e\" Thickness=\"1\" AutoMin=\"False\" _onTop=\"0\" Compass=\"South\"><GridMajor Spacing=\"" +
                              "1\" AutoSpace=\"True\" Visible=\"True\" Thickness=\"1\" Color=\"Blue\" Pattern=\"Dot\" /><G" +
                              "ridMinor AutoSpace=\"True\" Thickness=\"1\" Color=\"LightGray\" Pattern=\"Dash\" /><Text" +
                              " /></Axis><Axis Max=\"12\" Min=\"-12\" UnitMajor=\"10\" UnitMinor=\"5\" AutoMajor=\"True\"" +
                              " AutoMinor=\"False\" AutoMax=\"False\" Thickness=\"1\" AutoMin=\"False\" _onTop=\"0\" Comp" +
                              "ass=\"West\"><GridMajor Spacing=\"10\" AutoSpace=\"False\" Visible=\"True\" Thickness=\"1" +
                              "\" Color=\"Blue\" Pattern=\"Solid\" /><GridMinor AutoSpace=\"True\" Thickness=\"1\" Color" +
                              "=\"LightGray\" Pattern=\"Dash\" /><Text /></Axis><Axis Max=\"0\" Min=\"0\" UnitMajor=\"0\"" +
                              " UnitMinor=\"0\" AutoMajor=\"True\" AutoMinor=\"True\" AutoMax=\"True\" AutoMin=\"True\" _" +
                              "onTop=\"0\" Compass=\"East\"><GridMajor AutoSpace=\"True\" Thickness=\"1\" Color=\"LightG" +
                              "ray\" Pattern=\"Dash\" /><GridMinor AutoSpace=\"True\" Thickness=\"1\" Color=\"LightGray" +
                              "\" Pattern=\"Dash\" /><Text /></Axis></Axes><Header Compass=\"North\"><Text>Noise Lev" +
                              "el</Text></Header><Footer Compass=\"South\"><Text /></Footer><Legend Compass=\"East" +
                              "\" Visible=\"False\"><Text /></Legend><ChartArea /><ChartGroupsCollection><ChartGro" +
                              "up><Bar>ClusterOverlap=0,ClusterWidth=50</Bar><ShowOutline>True</ShowOutline><Po" +
                              "lar>Degrees=True,PiRatioAnnotations=True,Start=0</Polar><Radar>Degrees=True,Fill" +
                              "ed=False,Start=0</Radar><Pie>OtherOffset=0,Start=0</Pie><Name>Group1</Name><Char" +
                              "tType>XYPlot</ChartType><Stacked>False</Stacked><Bubble>EncodingMethod=Diameter," +
                              "MaximumSize=20,MinimumSize=5</Bubble><HiLoData>FillFalling=True,FillTransparent=" +
                              "True,FullWidth=False,ShowClose=True,ShowOpen=True</HiLoData><DataSerializer Defa" +
                              "ultSet=\"True\"><DataSeriesCollection><DataSeriesSerializer><Y3 /><Y2 /><Y>20;22;1" +
                              "9;24;25</Y><LineStyle Thickness=\"1\" Color=\"Black\" Pattern=\"Solid\" /><SymbolStyle" +
                              " Shape=\"None\" Color=\"Coral\" /><SeriesLabel>series 0</SeriesLabel><DataTypes>Sing" +
                              "le;Single;Single;Single;Single</DataTypes><Y1 /><X>1;2;3;4;5</X></DataSeriesSeri" +
                              "alizer></DataSeriesCollection></DataSerializer></ChartGroup><ChartGroup><Bar>Clu" +
                              "sterOverlap=0,ClusterWidth=50</Bar><ShowOutline>True</ShowOutline><Polar>Degrees" +
                              "=True,PiRatioAnnotations=True,Start=0</Polar><Radar>Degrees=True,Filled=False,St" +
                              "art=0</Radar><Pie>OtherOffset=0,Start=0</Pie><Name>Group2</Name><ChartType>XYPlo" +
                              "t</ChartType><Stacked>False</Stacked><Bubble>EncodingMethod=Diameter,MaximumSize" +
                              "=20,MinimumSize=5</Bubble><HiLoData>FillFalling=True,FillTransparent=True,FullWi" +
                              "dth=False,ShowClose=True,ShowOpen=True</HiLoData><DataSerializer /></ChartGroup>" +
                              "</ChartGroupsCollection></Chart2DPropBag>";
     this.chartXY.Size     = new System.Drawing.Size(592, 184);
     this.chartXY.TabIndex = 2;
     //
     // chartPie
     //
     this.chartPie.BackColor = System.Drawing.Color.PaleGoldenrod;
     this.chartPie.Location  = new System.Drawing.Point(0, 24);
     this.chartPie.Name      = "chartPie";
     this.chartPie.PropBag   = "<?xml version=\"1.0\"?><Chart2DPropBag Version=\"\"><StyleCollection><NamedStyle><Par" +
                               "entName>Area</ParentName><StyleData>Border=None,PaleGoldenrod,1;</StyleData><Nam" +
                               "e>PlotArea</Name></NamedStyle><NamedStyle><ParentName>Legend.default</ParentName" +
                               "><StyleData>Border=Raised,PaleGoldenrod,1;AlignHorz=Center;BackColor=LightYellow" +
                               ";</StyleData><Name>Legend</Name></NamedStyle><NamedStyle><ParentName>Control</Pa" +
                               "rentName><StyleData>Border=None,PaleGoldenrod,1;</StyleData><Name>Footer</Name><" +
                               "/NamedStyle><NamedStyle><ParentName>Area.default</ParentName><StyleData /><Name>" +
                               "Area</Name></NamedStyle><NamedStyle><ParentName>Control.default</ParentName><Sty" +
                               "leData>Border=Raised,PaleGoldenrod,1;BackColor=PaleGoldenrod;</StyleData><Name>C" +
                               "ontrol</Name></NamedStyle><NamedStyle><ParentName>Control</ParentName><StyleData" +
                               ">Border=None,PaleGoldenrod,1;BackColor=Transparent;</StyleData><Name>LabelStyleD" +
                               "efault.default</Name></NamedStyle><NamedStyle><ParentName>Area</ParentName><Styl" +
                               "eData>Rotation=Rotate270;Border=None,Control,1;AlignHorz=Near;BackColor=Transpar" +
                               "ent;AlignVert=Center;</StyleData><Name>AxisY</Name></NamedStyle><NamedStyle><Par" +
                               "entName>Area</ParentName><StyleData>Rotation=Rotate0;Border=None,Control,1;Align" +
                               "Horz=Center;BackColor=Transparent;AlignVert=Bottom;</StyleData><Name>AxisX</Name" +
                               "></NamedStyle><NamedStyle><ParentName>LabelStyleDefault.default</ParentName><Sty" +
                               "leData /><Name>LabelStyleDefault</Name></NamedStyle><NamedStyle><ParentName>Cont" +
                               "rol</ParentName><StyleData>Border=None,PaleGoldenrod,1;Wrap=False;AlignVert=Top;" +
                               "</StyleData><Name>Legend.default</Name></NamedStyle><NamedStyle><ParentName>Cont" +
                               "rol</ParentName><StyleData>Border=None,PaleGoldenrod,1;Font=Microsoft Sans Serif" +
                               ", 12pt, style=Bold, Underline;</StyleData><Name>Header</Name></NamedStyle><Named" +
                               "Style><ParentName /><StyleData>ForeColor=ControlText;Border=None,PaleGoldenrod,1" +
                               ";BackColor=Control;</StyleData><Name>Control.default</Name></NamedStyle><NamedSt" +
                               "yle><ParentName>Area</ParentName><StyleData>Rotation=Rotate90;Border=None,Transp" +
                               "arent,1;AlignHorz=Far;BackColor=Transparent;AlignVert=Center;</StyleData><Name>A" +
                               "xisY2</Name></NamedStyle><NamedStyle><ParentName>Control</ParentName><StyleData>" +
                               "Border=None,PaleGoldenrod,1;AlignVert=Top;</StyleData><Name>Area.default</Name><" +
                               "/NamedStyle></StyleCollection><Axes><Axis Max=\"5\" Min=\"1\" UnitMajor=\"1\" UnitMino" +
                               "r=\"0.5\" AutoMajor=\"True\" AutoMinor=\"True\" AutoMax=\"True\" AutoMin=\"True\" _onTop=\"" +
                               "0\" Compass=\"South\"><GridMajor AutoSpace=\"True\" Thickness=\"1\" Color=\"LightGray\" P" +
                               "attern=\"Dash\" /><GridMinor AutoSpace=\"True\" Thickness=\"1\" Color=\"LightGray\" Patt" +
                               "ern=\"Dash\" /><Text /></Axis><Axis Max=\"25\" Min=\"8\" UnitMajor=\"5\" UnitMinor=\"2.5\"" +
                               " AutoMajor=\"True\" AutoMinor=\"True\" AutoMax=\"True\" AutoMin=\"True\" _onTop=\"0\" Comp" +
                               "ass=\"West\"><GridMajor AutoSpace=\"True\" Thickness=\"1\" Color=\"LightGray\" Pattern=\"" +
                               "Dash\" /><GridMinor AutoSpace=\"True\" Thickness=\"1\" Color=\"LightGray\" Pattern=\"Das" +
                               "h\" /><Text /></Axis><Axis Max=\"0\" Min=\"0\" UnitMajor=\"0\" UnitMinor=\"0\" AutoMajor=" +
                               "\"True\" AutoMinor=\"True\" AutoMax=\"True\" AutoMin=\"True\" _onTop=\"0\" Compass=\"East\">" +
                               "<GridMajor AutoSpace=\"True\" Thickness=\"1\" Color=\"LightGray\" Pattern=\"Dash\" /><Gr" +
                               "idMinor AutoSpace=\"True\" Thickness=\"1\" Color=\"LightGray\" Pattern=\"Dash\" /><Text " +
                               "/></Axis></Axes><Header Compass=\"North\"><Text>Vehicle Comparison</Text></Header>" +
                               "<Footer Compass=\"South\"><Text>Current</Text></Footer><Legend Compass=\"East\" Visi" +
                               "ble=\"True\"><Text /></Legend><ChartArea /><ChartGroupsCollection><ChartGroup><Bar" +
                               ">ClusterOverlap=0,ClusterWidth=50</Bar><ShowOutline>True</ShowOutline><Polar>Deg" +
                               "rees=True,PiRatioAnnotations=True,Start=0</Polar><Radar>Degrees=True,Filled=Fals" +
                               "e,Start=0</Radar><Pie>OtherOffset=0,Start=0</Pie><Name>Group1</Name><ChartType>P" +
                               "ie</ChartType><Stacked>False</Stacked><Bubble>EncodingMethod=Diameter,MaximumSiz" +
                               "e=20,MinimumSize=5</Bubble><HiLoData>FillFalling=True,FillTransparent=True,FullW" +
                               "idth=False,ShowClose=True,ShowOpen=True</HiLoData><DataSerializer DefaultSet=\"Tr" +
                               "ue\"><DataSeriesCollection><DataSeriesSerializer><Y3 /><Y2 /><Y>20</Y><LineStyle " +
                               "Thickness=\"1\" Color=\"Red\" Pattern=\"Solid\" /><SymbolStyle Shape=\"Box\" Color=\"Cora" +
                               "l\" /><SeriesLabel>Cars</SeriesLabel><DataTypes>Single;Single;Single;Single;Singl" +
                               "e</DataTypes><Y1 /><X>1</X></DataSeriesSerializer><DataSeriesSerializer><Y3 /><Y" +
                               "2 /><Y>8</Y><LineStyle Thickness=\"1\" Color=\"Tan\" Pattern=\"Solid\" /><SymbolStyle " +
                               "Shape=\"Dot\" Color=\"CornflowerBlue\" /><SeriesLabel>Trucks</SeriesLabel><DataTypes" +
                               ">Single;Single;Single;Single;Single</DataTypes><Y1 /><X>1</X></DataSeriesSeriali" +
                               "zer><DataSeriesSerializer><Y3 /><Y2 /><Y>10</Y><LineStyle Thickness=\"1\" Color=\"L" +
                               "ightGreen\" Pattern=\"Solid\" /><SymbolStyle Shape=\"Tri\" Color=\"Cornsilk\" /><Series" +
                               "Label>Buses</SeriesLabel><DataTypes>Single;Single;Single;Single;Single</DataType" +
                               "s><Y1 /><X>1</X></DataSeriesSerializer><DataSeriesSerializer><Y3 /><Y2 /><Y>16</" +
                               "Y><LineStyle Thickness=\"1\" Color=\"MediumTurquoise\" Pattern=\"Solid\" /><SymbolStyl" +
                               "e Shape=\"Diamond\" Color=\"Crimson\" /><SeriesLabel>Planes</SeriesLabel><DataTypes>" +
                               "Single;Single;Single;Single;Single</DataTypes><Y1 /><X>1</X></DataSeriesSerializ" +
                               "er></DataSeriesCollection></DataSerializer></ChartGroup><ChartGroup><Bar>Cluster" +
                               "Overlap=0,ClusterWidth=50</Bar><ShowOutline>True</ShowOutline><Polar>Degrees=Tru" +
                               "e,PiRatioAnnotations=True,Start=0</Polar><Radar>Degrees=True,Filled=False,Start=" +
                               "0</Radar><Pie>OtherOffset=0,Start=0</Pie><Name>Group2</Name><ChartType>XYPlot</C" +
                               "hartType><Stacked>False</Stacked><Bubble>EncodingMethod=Diameter,MaximumSize=20," +
                               "MinimumSize=5</Bubble><HiLoData>FillFalling=True,FillTransparent=True,FullWidth=" +
                               "False,ShowClose=True,ShowOpen=True</HiLoData><DataSerializer /></ChartGroup></Ch" +
                               "artGroupsCollection></Chart2DPropBag>";
     this.chartPie.Size     = new System.Drawing.Size(296, 192);
     this.chartPie.TabIndex = 3;
     //
     // timer1
     //
     this.timer1.Interval = 300;
     this.timer1.Tick    += new System.EventHandler(this.timer1_Tick);
     //
     // toolBar1
     //
     this.toolBar1.Appearance  = System.Windows.Forms.ToolBarAppearance.Flat;
     this.toolBar1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.tbbPrint,
         this.tbbPreview,
         this.tbbPageSetup,
         this.toolBarButton1,
         this.tbbStart
     });
     this.toolBar1.Divider        = false;
     this.toolBar1.DropDownArrows = true;
     this.toolBar1.ImageList      = this.ilToolbar;
     this.toolBar1.Name           = "toolBar1";
     this.toolBar1.ShowToolTips   = true;
     this.toolBar1.Size           = new System.Drawing.Size(592, 24);
     this.toolBar1.TabIndex       = 8;
     this.toolBar1.TextAlign      = System.Windows.Forms.ToolBarTextAlign.Right;
     this.toolBar1.ButtonClick   += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
     //
     // tbbPrint
     //
     this.tbbPrint.ImageIndex  = 0;
     this.tbbPrint.Text        = "Print";
     this.tbbPrint.ToolTipText = "Print";
     //
     // tbbPreview
     //
     this.tbbPreview.ImageIndex  = 1;
     this.tbbPreview.Text        = "Print Preview";
     this.tbbPreview.ToolTipText = "Print Preview";
     //
     // tbbPageSetup
     //
     this.tbbPageSetup.ImageIndex  = 4;
     this.tbbPageSetup.Text        = "Page Setup";
     this.tbbPageSetup.ToolTipText = "Page Setup";
     //
     // toolBarButton1
     //
     this.toolBarButton1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // tbbStart
     //
     this.tbbStart.ImageIndex  = 2;
     this.tbbStart.Style       = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     this.tbbStart.Text        = "Start";
     this.tbbStart.ToolTipText = "Start";
     //
     // ilToolbar
     //
     this.ilToolbar.ColorDepth       = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.ilToolbar.ImageSize        = new System.Drawing.Size(16, 16);
     this.ilToolbar.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilToolbar.ImageStream")));
     this.ilToolbar.TransparentColor = System.Drawing.Color.Transparent;
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1,
         this.menuItem3
     });
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuFileStart,
         this.menuFileStop,
         this.menuItem5,
         this.menuFilePageSetup,
         this.menuFilePrintPreview,
         this.menuFilePrint,
         this.menuItem4,
         this.menuFileExit
     });
     this.menuItem1.Text = "&File";
     //
     // menuFileStart
     //
     this.menuFileStart.Index  = 0;
     this.menuFileStart.Text   = "&Start";
     this.menuFileStart.Click += new System.EventHandler(this.menuFileStart_Click);
     //
     // menuFileStop
     //
     this.menuFileStop.Index  = 1;
     this.menuFileStop.Text   = "Sto&p";
     this.menuFileStop.Click += new System.EventHandler(this.menuFileStop_Click);
     //
     // menuItem5
     //
     this.menuItem5.Index = 2;
     this.menuItem5.Text  = "-";
     //
     // menuFilePageSetup
     //
     this.menuFilePageSetup.Index  = 3;
     this.menuFilePageSetup.Text   = "Page Set&up ...";
     this.menuFilePageSetup.Click += new System.EventHandler(this.menuFilePageSetup_Click);
     //
     // menuFilePrintPreview
     //
     this.menuFilePrintPreview.Index  = 4;
     this.menuFilePrintPreview.Text   = "Print Pre&view";
     this.menuFilePrintPreview.Click += new System.EventHandler(this.menuFilePrintPreview_Click);
     //
     // menuFilePrint
     //
     this.menuFilePrint.Index  = 5;
     this.menuFilePrint.Text   = "&Print ...";
     this.menuFilePrint.Click += new System.EventHandler(this.menuFilePrint_Click);
     //
     // menuItem4
     //
     this.menuItem4.Index = 6;
     this.menuItem4.Text  = "-";
     //
     // menuFileExit
     //
     this.menuFileExit.Index  = 7;
     this.menuFileExit.Text   = "E&xit";
     this.menuFileExit.Click += new System.EventHandler(this.menuFileExit_Click);
     //
     // menuItem3
     //
     this.menuItem3.Index = 1;
     this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuHelpAbout
     });
     this.menuItem3.Text = "&Help";
     //
     // menuHelpAbout
     //
     this.menuHelpAbout.Index  = 0;
     this.menuHelpAbout.Text   = "&About";
     this.menuHelpAbout.Click += new System.EventHandler(this.menuHelpAbout_Click);
     //
     // printDocument
     //
     this.printDocument.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.pd_PrintPage);
     //
     // printPreviewDialog
     //
     this.printPreviewDialog.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.printPreviewDialog.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.printPreviewDialog.ClientSize        = new System.Drawing.Size(400, 300);
     this.printPreviewDialog.Document          = this.printDocument;
     this.printPreviewDialog.Enabled           = true;
     this.printPreviewDialog.Icon            = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog.Icon")));
     this.printPreviewDialog.Location        = new System.Drawing.Point(526, 17);
     this.printPreviewDialog.MaximumSize     = new System.Drawing.Size(0, 0);
     this.printPreviewDialog.Name            = "printPreviewDialog";
     this.printPreviewDialog.Opacity         = 1;
     this.printPreviewDialog.TransparencyKey = System.Drawing.Color.Empty;
     this.printPreviewDialog.Visible         = false;
     //
     // printDialog
     //
     this.printDialog.Document = this.printDocument;
     //
     // pageSetupDialog
     //
     this.pageSetupDialog.Document = this.printDocument;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(592, 403);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.toolBar1,
         this.chartPie,
         this.chartXY,
         this.chartBar
     });
     this.Menu          = this.mainMenu1;
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "ComponentOne Chart for .NET 2D - Multiple Charts Demo";
     this.SizeChanged  += new System.EventHandler(this.Form1_SizeChanged);
     this.Load         += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.chartBar)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.chartXY)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.chartPie)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #47
0
 // Required method for Designer support - do not modify
 // the contents of this method with the code editor.
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PrintPreviewForm));
     this.printPreviewControl1 = new System.Windows.Forms.PrintPreviewControl();
     this.pageSetupDialog1     = new System.Windows.Forms.PageSetupDialog();
     this.printPreviewDialog1  = new System.Windows.Forms.PrintPreviewDialog();
     this.toolBar1             = new System.Windows.Forms.ToolBar();
     this.tbtPrint             = new System.Windows.Forms.ToolBarButton();
     this.tlbtZoom             = new System.Windows.Forms.ToolBarButton();
     this.contextMenu1         = new System.Windows.Forms.ContextMenu();
     this.menuAuto             = new System.Windows.Forms.MenuItem();
     this.menu10              = new System.Windows.Forms.MenuItem();
     this.menu25              = new System.Windows.Forms.MenuItem();
     this.menu50              = new System.Windows.Forms.MenuItem();
     this.menu75              = new System.Windows.Forms.MenuItem();
     this.menu100             = new System.Windows.Forms.MenuItem();
     this.menu150             = new System.Windows.Forms.MenuItem();
     this.menu200             = new System.Windows.Forms.MenuItem();
     this.menu250             = new System.Windows.Forms.MenuItem();
     this.menu500             = new System.Windows.Forms.MenuItem();
     this.separator2          = new System.Windows.Forms.ToolBarButton();
     this.tbtOne              = new System.Windows.Forms.ToolBarButton();
     this.tbtTwo              = new System.Windows.Forms.ToolBarButton();
     this.tbtThree            = new System.Windows.Forms.ToolBarButton();
     this.tbtFour             = new System.Windows.Forms.ToolBarButton();
     this.tbtSix              = new System.Windows.Forms.ToolBarButton();
     this.tbtPageSetup        = new System.Windows.Forms.ToolBarButton();
     this.toolbarImages       = new System.Windows.Forms.ImageList(this.components);
     this.printPreviewDialog2 = new System.Windows.Forms.PrintPreviewDialog();
     this.numericUpDown1      = new System.Windows.Forms.NumericUpDown();
     this.label1              = new System.Windows.Forms.Label();
     this.printDialog1        = new System.Windows.Forms.PrintDialog();
     this.winButton1          = new Xceed.Editors.WinButton();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
     this.SuspendLayout();
     //
     // printPreviewControl1
     //
     this.printPreviewControl1.AutoZoom     = false;
     this.printPreviewControl1.Dock         = System.Windows.Forms.DockStyle.Fill;
     this.printPreviewControl1.Location     = new System.Drawing.Point(0, 34);
     this.printPreviewControl1.Name         = "printPreviewControl1";
     this.printPreviewControl1.Size         = new System.Drawing.Size(592, 332);
     this.printPreviewControl1.TabIndex     = 0;
     this.printPreviewControl1.Zoom         = 0.30000001192092896;
     this.printPreviewControl1.SizeChanged += new System.EventHandler(this.printPreviewControl1_SizeChanged);
     //
     // pageSetupDialog1
     //
     this.pageSetupDialog1.ShowHelp = true;
     //
     // printPreviewDialog1
     //
     this.printPreviewDialog1.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.ClientSize        = new System.Drawing.Size(400, 300);
     this.printPreviewDialog1.Enabled           = true;
     this.printPreviewDialog1.Icon    = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon")));
     this.printPreviewDialog1.Name    = "printPreviewDialog1";
     this.printPreviewDialog1.Visible = false;
     //
     // toolBar1
     //
     this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
     this.toolBar1.AutoSize   = false;
     this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.tbtPrint,
         this.tlbtZoom,
         this.separator2,
         this.tbtOne,
         this.tbtTwo,
         this.tbtThree,
         this.tbtFour,
         this.tbtSix,
         this.tbtPageSetup
     });
     this.toolBar1.ButtonSize     = new System.Drawing.Size(20, 20);
     this.toolBar1.Divider        = false;
     this.toolBar1.DropDownArrows = true;
     this.toolBar1.ImageList      = this.toolbarImages;
     this.toolBar1.Location       = new System.Drawing.Point(0, 0);
     this.toolBar1.Name           = "toolBar1";
     this.toolBar1.ShowToolTips   = true;
     this.toolBar1.Size           = new System.Drawing.Size(592, 34);
     this.toolBar1.TabIndex       = 1;
     this.toolBar1.ButtonClick   += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
     //
     // tbtPrint
     //
     this.tbtPrint.ImageIndex  = 0;
     this.tbtPrint.Name        = "tbtPrint";
     this.tbtPrint.Tag         = "Print";
     this.tbtPrint.ToolTipText = "´òÓ¡";
     //
     // tlbtZoom
     //
     this.tlbtZoom.DropDownMenu = this.contextMenu1;
     this.tlbtZoom.ImageIndex   = 1;
     this.tlbtZoom.Name         = "tlbtZoom";
     this.tlbtZoom.Style        = System.Windows.Forms.ToolBarButtonStyle.DropDownButton;
     //
     // contextMenu1
     //
     this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuAuto,
         this.menu10,
         this.menu25,
         this.menu50,
         this.menu75,
         this.menu100,
         this.menu150,
         this.menu200,
         this.menu250,
         this.menu500
     });
     //
     // menuAuto
     //
     this.menuAuto.Checked     = true;
     this.menuAuto.DefaultItem = true;
     this.menuAuto.Index       = 0;
     this.menuAuto.Text        = "×Ô¶¯";
     this.menuAuto.Click      += new System.EventHandler(this.menuItem1_Click);
     //
     // menu10
     //
     this.menu10.Index  = 1;
     this.menu10.Text   = "10%";
     this.menu10.Click += new System.EventHandler(this.menuItem1_Click);
     //
     // menu25
     //
     this.menu25.Index  = 2;
     this.menu25.Text   = "25%";
     this.menu25.Click += new System.EventHandler(this.menuItem1_Click);
     //
     // menu50
     //
     this.menu50.Index  = 3;
     this.menu50.Text   = "50%";
     this.menu50.Click += new System.EventHandler(this.menuItem1_Click);
     //
     // menu75
     //
     this.menu75.Index  = 4;
     this.menu75.Text   = "75%";
     this.menu75.Click += new System.EventHandler(this.menuItem1_Click);
     //
     // menu100
     //
     this.menu100.Index  = 5;
     this.menu100.Text   = "100%";
     this.menu100.Click += new System.EventHandler(this.menuItem1_Click);
     //
     // menu150
     //
     this.menu150.Index  = 6;
     this.menu150.Text   = "150%";
     this.menu150.Click += new System.EventHandler(this.menuItem1_Click);
     //
     // menu200
     //
     this.menu200.Index  = 7;
     this.menu200.Text   = "200%";
     this.menu200.Click += new System.EventHandler(this.menuItem1_Click);
     //
     // menu250
     //
     this.menu250.Index  = 8;
     this.menu250.Text   = "250%";
     this.menu250.Click += new System.EventHandler(this.menuItem1_Click);
     //
     // menu500
     //
     this.menu500.Index  = 9;
     this.menu500.Text   = "500%";
     this.menu500.Click += new System.EventHandler(this.menuItem1_Click);
     //
     // separator2
     //
     this.separator2.Name  = "separator2";
     this.separator2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
     //
     // tbtOne
     //
     this.tbtOne.ImageIndex = 5;
     this.tbtOne.Name       = "tbtOne";
     this.tbtOne.Pushed     = true;
     //
     // tbtTwo
     //
     this.tbtTwo.ImageIndex = 6;
     this.tbtTwo.Name       = "tbtTwo";
     //
     // tbtThree
     //
     this.tbtThree.ImageIndex = 7;
     this.tbtThree.Name       = "tbtThree";
     //
     // tbtFour
     //
     this.tbtFour.ImageIndex = 8;
     this.tbtFour.Name       = "tbtFour";
     //
     // tbtSix
     //
     this.tbtSix.ImageIndex = 9;
     this.tbtSix.Name       = "tbtSix";
     //
     // tbtPageSetup
     //
     this.tbtPageSetup.ImageIndex  = 10;
     this.tbtPageSetup.Name        = "tbtPageSetup";
     this.tbtPageSetup.Style       = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     this.tbtPageSetup.Tag         = "PageSetup";
     this.tbtPageSetup.ToolTipText = "Ò³ÃæÉèÖÃ";
     //
     // toolbarImages
     //
     this.toolbarImages.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("toolbarImages.ImageStream")));
     this.toolbarImages.TransparentColor = System.Drawing.Color.Transparent;
     this.toolbarImages.Images.SetKeyName(0, "");
     this.toolbarImages.Images.SetKeyName(1, "");
     this.toolbarImages.Images.SetKeyName(2, "");
     this.toolbarImages.Images.SetKeyName(3, "");
     this.toolbarImages.Images.SetKeyName(4, "");
     this.toolbarImages.Images.SetKeyName(5, "");
     this.toolbarImages.Images.SetKeyName(6, "");
     this.toolbarImages.Images.SetKeyName(7, "");
     this.toolbarImages.Images.SetKeyName(8, "");
     this.toolbarImages.Images.SetKeyName(9, "");
     this.toolbarImages.Images.SetKeyName(10, "");
     //
     // printPreviewDialog2
     //
     this.printPreviewDialog2.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.printPreviewDialog2.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.printPreviewDialog2.ClientSize        = new System.Drawing.Size(400, 300);
     this.printPreviewDialog2.Enabled           = true;
     this.printPreviewDialog2.Icon    = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog2.Icon")));
     this.printPreviewDialog2.Name    = "printPreviewDialog2";
     this.printPreviewDialog2.Visible = false;
     //
     // numericUpDown1
     //
     this.numericUpDown1.Location = new System.Drawing.Point(336, 4);
     this.numericUpDown1.Maximum  = new decimal(new int[] {
         8,
         0,
         0,
         0
     });
     this.numericUpDown1.Minimum = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.numericUpDown1.Name     = "numericUpDown1";
     this.numericUpDown1.Size     = new System.Drawing.Size(58, 21);
     this.numericUpDown1.TabIndex = 3;
     this.numericUpDown1.Value    = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(288, 2);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(38, 26);
     this.label1.TabIndex  = 4;
     this.label1.Text      = "Ò³Âë";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // printDialog1
     //
     this.printDialog1.AllowSomePages = true;
     this.printDialog1.ShowHelp       = true;
     //
     // winButton1
     //
     this.winButton1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.winButton1.Location = new System.Drawing.Point(420, 3);
     this.winButton1.Name     = "winButton1";
     this.winButton1.Size     = new System.Drawing.Size(153, 26);
     this.winButton1.TabIndex = 7;
     this.winButton1.Text     = "ҳüҳ½ÅÉèÖÃ";
     this.winButton1.Click   += new System.EventHandler(this.button2_Click);
     //
     // PrintPreviewForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(592, 366);
     this.Controls.Add(this.winButton1);
     this.Controls.Add(this.printPreviewControl1);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.numericUpDown1);
     this.Controls.Add(this.toolBar1);
     this.Name = "PrintPreviewForm";
     this.Text = "´òÓ¡Ô¤ÀÀ";
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #48
0
 /// <summary>
 /// 디자이너 지원에 필요한 메서드입니다.
 /// 이 메서드의 내용을 코드 편집기로 수정하지 마십시오.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.mainMenu1          = new System.Windows.Forms.MainMenu(this.components);
     this.menuFile           = new System.Windows.Forms.MenuItem();
     this.menuFileNew        = new System.Windows.Forms.MenuItem();
     this.menuFileOpen       = new System.Windows.Forms.MenuItem();
     this.menuFileSave       = new System.Windows.Forms.MenuItem();
     this.menuFileNewSave    = new System.Windows.Forms.MenuItem();
     this.menuItem10         = new System.Windows.Forms.MenuItem();
     this.menuFilePage       = new System.Windows.Forms.MenuItem();
     this.menuFilePrint      = new System.Windows.Forms.MenuItem();
     this.menuItem13         = new System.Windows.Forms.MenuItem();
     this.menuFileExit       = new System.Windows.Forms.MenuItem();
     this.menuIEdit          = new System.Windows.Forms.MenuItem();
     this.menuEditUndo       = new System.Windows.Forms.MenuItem();
     this.menuItem16         = new System.Windows.Forms.MenuItem();
     this.menuEditCut        = new System.Windows.Forms.MenuItem();
     this.menuEditCopy       = new System.Windows.Forms.MenuItem();
     this.menuEditPaste      = new System.Windows.Forms.MenuItem();
     this.menuEditDelete     = new System.Windows.Forms.MenuItem();
     this.menuItem21         = new System.Windows.Forms.MenuItem();
     this.menuEditSearch     = new System.Windows.Forms.MenuItem();
     this.menuEditNextSearch = new System.Windows.Forms.MenuItem();
     this.menuEditChange     = new System.Windows.Forms.MenuItem();
     this.menuEditMove       = new System.Windows.Forms.MenuItem();
     this.menuItem26         = new System.Windows.Forms.MenuItem();
     this.menuEditSelectAll  = new System.Windows.Forms.MenuItem();
     this.menuEditDateTime   = new System.Windows.Forms.MenuItem();
     this.menuOption         = new System.Windows.Forms.MenuItem();
     this.menuOptionLine     = new System.Windows.Forms.MenuItem();
     this.menuItem2          = new System.Windows.Forms.MenuItem();
     this.menuOptionFont     = new System.Windows.Forms.MenuItem();
     this.menuItem1          = new System.Windows.Forms.MenuItem();
     this.menuView           = new System.Windows.Forms.MenuItem();
     this.menuItem3          = new System.Windows.Forms.MenuItem();
     this.menuViewStatus     = new System.Windows.Forms.MenuItem();
     this.menuHelp           = new System.Windows.Forms.MenuItem();
     this.menuHelpList       = new System.Windows.Forms.MenuItem();
     this.menuItem33         = new System.Windows.Forms.MenuItem();
     this.menuHelpVersion    = new System.Windows.Forms.MenuItem();
     this.openFileDialog1    = new System.Windows.Forms.OpenFileDialog();
     this.saveFileDialog1    = new System.Windows.Forms.SaveFileDialog();
     this.fontDialog1        = new System.Windows.Forms.FontDialog();
     this.pageSetupDialog1   = new System.Windows.Forms.PageSetupDialog();
     this.printDocument1     = new System.Drawing.Printing.PrintDocument();
     this.printDialog1       = new System.Windows.Forms.PrintDialog();
     this.statusBar1         = new System.Windows.Forms.StatusBar();
     this.statusBarPanel1    = new System.Windows.Forms.StatusBarPanel();
     this.statusBarPanel2    = new System.Windows.Forms.StatusBarPanel();
     this.colorDialog1       = new System.Windows.Forms.ColorDialog();
     this.toolBar1           = new System.Windows.Forms.ToolBar();
     this.toolBarButton1     = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton2     = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton3     = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton4     = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton5     = new System.Windows.Forms.ToolBarButton();
     this.imageList1         = new System.Windows.Forms.ImageList(this.components);
     this.mainTextBox        = new System.Windows.Forms.TextBox();
     this.panel1             = new System.Windows.Forms.Panel();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuFile,
         this.menuIEdit,
         this.menuOption,
         this.menuView,
         this.menuHelp
     });
     //
     // menuFile
     //
     this.menuFile.Index = 0;
     this.menuFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuFileNew,
         this.menuFileOpen,
         this.menuFileSave,
         this.menuFileNewSave,
         this.menuItem10,
         this.menuFilePage,
         this.menuFilePrint,
         this.menuItem13,
         this.menuFileExit
     });
     this.menuFile.Text = "파일(&F)";
     //
     // menuFileNew
     //
     this.menuFileNew.Index    = 0;
     this.menuFileNew.Shortcut = System.Windows.Forms.Shortcut.CtrlN;
     this.menuFileNew.Text     = "새로 만들기(&N)";
     this.menuFileNew.Click   += new System.EventHandler(this.menuFileNew_Click);
     //
     // menuFileOpen
     //
     this.menuFileOpen.Index    = 1;
     this.menuFileOpen.Shortcut = System.Windows.Forms.Shortcut.CtrlO;
     this.menuFileOpen.Text     = "열기(&O)...";
     this.menuFileOpen.Click   += new System.EventHandler(this.menuFileOpen_Click);
     //
     // menuFileSave
     //
     this.menuFileSave.Index    = 2;
     this.menuFileSave.Shortcut = System.Windows.Forms.Shortcut.CtrlS;
     this.menuFileSave.Text     = "저장(&S)";
     this.menuFileSave.Click   += new System.EventHandler(this.menuFileSave_Click);
     //
     // menuFileNewSave
     //
     this.menuFileNewSave.Index  = 3;
     this.menuFileNewSave.Text   = "다른 이름으로 저장(&A)...";
     this.menuFileNewSave.Click += new System.EventHandler(this.menuFileNewSave_Click);
     //
     // menuItem10
     //
     this.menuItem10.Index = 4;
     this.menuItem10.Text  = "-";
     //
     // menuFilePage
     //
     this.menuFilePage.Index  = 5;
     this.menuFilePage.Text   = "페이지 설정(&U)...";
     this.menuFilePage.Click += new System.EventHandler(this.menuFilePage_Click);
     //
     // menuFilePrint
     //
     this.menuFilePrint.Index    = 6;
     this.menuFilePrint.Shortcut = System.Windows.Forms.Shortcut.CtrlP;
     this.menuFilePrint.Text     = "인쇄(&P)...";
     this.menuFilePrint.Click   += new System.EventHandler(this.menuFilePrint_Click);
     //
     // menuItem13
     //
     this.menuItem13.Index = 7;
     this.menuItem13.Text  = "-";
     //
     // menuFileExit
     //
     this.menuFileExit.Index  = 8;
     this.menuFileExit.Text   = "끝내기(&X)";
     this.menuFileExit.Click += new System.EventHandler(this.menuFileExit_Click);
     //
     // menuIEdit
     //
     this.menuIEdit.Index = 1;
     this.menuIEdit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuEditUndo,
         this.menuItem16,
         this.menuEditCut,
         this.menuEditCopy,
         this.menuEditPaste,
         this.menuEditDelete,
         this.menuItem21,
         this.menuEditSearch,
         this.menuEditNextSearch,
         this.menuEditChange,
         this.menuEditMove,
         this.menuItem26,
         this.menuEditSelectAll,
         this.menuEditDateTime
     });
     this.menuIEdit.Text = "편집(&E)";
     //
     // menuEditUndo
     //
     this.menuEditUndo.Enabled  = false;
     this.menuEditUndo.Index    = 0;
     this.menuEditUndo.Shortcut = System.Windows.Forms.Shortcut.CtrlZ;
     this.menuEditUndo.Text     = "실행 취소(&U)";
     this.menuEditUndo.Click   += new System.EventHandler(this.menuEditUndo_Click);
     //
     // menuItem16
     //
     this.menuItem16.Index = 1;
     this.menuItem16.Text  = "-";
     //
     // menuEditCut
     //
     this.menuEditCut.Enabled  = false;
     this.menuEditCut.Index    = 2;
     this.menuEditCut.Shortcut = System.Windows.Forms.Shortcut.CtrlX;
     this.menuEditCut.Text     = "잘라내기(&T)";
     this.menuEditCut.Click   += new System.EventHandler(this.menuEditCut_Click);
     //
     // menuEditCopy
     //
     this.menuEditCopy.Enabled  = false;
     this.menuEditCopy.Index    = 3;
     this.menuEditCopy.Shortcut = System.Windows.Forms.Shortcut.CtrlC;
     this.menuEditCopy.Text     = "복사(&C)";
     this.menuEditCopy.Click   += new System.EventHandler(this.menuEditCopy_Click);
     //
     // menuEditPaste
     //
     this.menuEditPaste.Index    = 4;
     this.menuEditPaste.Shortcut = System.Windows.Forms.Shortcut.CtrlV;
     this.menuEditPaste.Text     = "붙여넣기(&P)";
     this.menuEditPaste.Click   += new System.EventHandler(this.menuEditPaste_Click);
     //
     // menuEditDelete
     //
     this.menuEditDelete.Enabled  = false;
     this.menuEditDelete.Index    = 5;
     this.menuEditDelete.Shortcut = System.Windows.Forms.Shortcut.Del;
     this.menuEditDelete.Text     = "삭제(&L)";
     this.menuEditDelete.Click   += new System.EventHandler(this.menuEditDelete_Click);
     //
     // menuItem21
     //
     this.menuItem21.Index = 6;
     this.menuItem21.Text  = "-";
     //
     // menuEditSearch
     //
     this.menuEditSearch.Enabled  = false;
     this.menuEditSearch.Index    = 7;
     this.menuEditSearch.Shortcut = System.Windows.Forms.Shortcut.CtrlF;
     this.menuEditSearch.Text     = "찾기(&F)...";
     this.menuEditSearch.Click   += new System.EventHandler(this.menuEditSearch_Click);
     //
     // menuEditNextSearch
     //
     this.menuEditNextSearch.Enabled  = false;
     this.menuEditNextSearch.Index    = 8;
     this.menuEditNextSearch.Shortcut = System.Windows.Forms.Shortcut.F3;
     this.menuEditNextSearch.Text     = "다음 찾기(&N)";
     this.menuEditNextSearch.Click   += new System.EventHandler(this.menuEditNextSearch_Click);
     //
     // menuEditChange
     //
     this.menuEditChange.Index    = 9;
     this.menuEditChange.Shortcut = System.Windows.Forms.Shortcut.CtrlH;
     this.menuEditChange.Text     = "바꾸기(&R)...";
     this.menuEditChange.Click   += new System.EventHandler(this.menuEditChange_Click);
     //
     // menuEditMove
     //
     this.menuEditMove.Enabled  = false;
     this.menuEditMove.Index    = 10;
     this.menuEditMove.Shortcut = System.Windows.Forms.Shortcut.CtrlG;
     this.menuEditMove.Text     = "이동(&G)...";
     this.menuEditMove.Click   += new System.EventHandler(this.menuEditMove_Click);
     //
     // menuItem26
     //
     this.menuItem26.Index = 11;
     this.menuItem26.Text  = "-";
     //
     // menuEditSelectAll
     //
     this.menuEditSelectAll.Index    = 12;
     this.menuEditSelectAll.Shortcut = System.Windows.Forms.Shortcut.CtrlA;
     this.menuEditSelectAll.Text     = "모두 선택(&A)";
     this.menuEditSelectAll.Click   += new System.EventHandler(this.menuEditSelectAll_Click);
     //
     // menuEditDateTime
     //
     this.menuEditDateTime.Index    = 13;
     this.menuEditDateTime.Shortcut = System.Windows.Forms.Shortcut.F5;
     this.menuEditDateTime.Text     = "시간/날짜(&D)";
     this.menuEditDateTime.Click   += new System.EventHandler(this.menuEditDateTime_Click);
     //
     // menuOption
     //
     this.menuOption.Index = 2;
     this.menuOption.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuOptionLine,
         this.menuItem2,
         this.menuOptionFont,
         this.menuItem1
     });
     this.menuOption.Text = "서식(&O)";
     //
     // menuOptionLine
     //
     this.menuOptionLine.Checked = true;
     this.menuOptionLine.Index   = 0;
     this.menuOptionLine.Text    = "자동 줄 바꿈(&W)";
     this.menuOptionLine.Click  += new System.EventHandler(this.menuOptionLine_Click);
     //
     // menuItem2
     //
     this.menuItem2.Index = 1;
     this.menuItem2.Text  = "-";
     //
     // menuOptionFont
     //
     this.menuOptionFont.Index  = 2;
     this.menuOptionFont.Text   = "글꼴(&F)...";
     this.menuOptionFont.Click += new System.EventHandler(this.menuOptionFont_Click);
     //
     // menuItem1
     //
     this.menuItem1.Index  = 3;
     this.menuItem1.Text   = "색상(&C)...";
     this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
     //
     // menuView
     //
     this.menuView.Index = 3;
     this.menuView.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem3,
         this.menuViewStatus
     });
     this.menuView.Text = "보기(&V)";
     //
     // menuItem3
     //
     this.menuItem3.Index  = 0;
     this.menuItem3.Text   = "툴바(&T)";
     this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
     //
     // menuViewStatus
     //
     this.menuViewStatus.Enabled = false;
     this.menuViewStatus.Index   = 1;
     this.menuViewStatus.Text    = "상태 표시줄(&S)";
     this.menuViewStatus.Click  += new System.EventHandler(this.menuViewStatus_Click);
     //
     // menuHelp
     //
     this.menuHelp.Index = 4;
     this.menuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuHelpList,
         this.menuItem33,
         this.menuHelpVersion
     });
     this.menuHelp.Text = "도움말(&H)";
     //
     // menuHelpList
     //
     this.menuHelpList.Index  = 0;
     this.menuHelpList.Text   = "도움말 항목(&H)";
     this.menuHelpList.Click += new System.EventHandler(this.menuHelpList_Click);
     //
     // menuItem33
     //
     this.menuItem33.Index = 1;
     this.menuItem33.Text  = "-";
     //
     // menuHelpVersion
     //
     this.menuHelpVersion.Index  = 2;
     this.menuHelpVersion.Text   = "메모장 정보(&A)";
     this.menuHelpVersion.Click += new System.EventHandler(this.menuHelpVersion_Click);
     //
     // openFileDialog1
     //
     this.openFileDialog1.Filter = "텍스트 문서(*.txt)|*.txt|모든 파일|*.*";
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.Filter = "텍스트 문서(*.txt)|*.txt|모든 파일|*.*";
     //
     // pageSetupDialog1
     //
     this.pageSetupDialog1.Document = this.printDocument1;
     //
     // printDocument1
     //
     this.printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_PrintPage);
     //
     // printDialog1
     //
     this.printDialog1.Document = this.printDocument1;
     //
     // statusBar1
     //
     this.statusBar1.Location = new System.Drawing.Point(0, 335);
     this.statusBar1.Name     = "statusBar1";
     this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
         this.statusBarPanel1,
         this.statusBarPanel2
     });
     this.statusBar1.ShowPanels      = true;
     this.statusBar1.Size            = new System.Drawing.Size(492, 26);
     this.statusBar1.TabIndex        = 2;
     this.statusBar1.Visible         = false;
     this.statusBar1.VisibleChanged += new System.EventHandler(this.statusBar1_VisibleChanged);
     //
     // statusBarPanel1
     //
     this.statusBarPanel1.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
     this.statusBarPanel1.MinWidth = 350;
     this.statusBarPanel1.Name     = "statusBarPanel1";
     this.statusBarPanel1.Text     = "To. 그녀에게...";
     this.statusBarPanel1.Width    = 350;
     //
     // statusBarPanel2
     //
     this.statusBarPanel2.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
     this.statusBarPanel2.MinWidth = 2000;
     this.statusBarPanel2.Name     = "statusBarPanel2";
     this.statusBarPanel2.Width    = 2000;
     //
     // toolBar1
     //
     this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.toolBarButton1,
         this.toolBarButton2,
         this.toolBarButton3,
         this.toolBarButton4,
         this.toolBarButton5
     });
     this.toolBar1.ButtonSize     = new System.Drawing.Size(21, 21);
     this.toolBar1.DropDownArrows = true;
     this.toolBar1.ImageList      = this.imageList1;
     this.toolBar1.Location       = new System.Drawing.Point(0, 0);
     this.toolBar1.Name           = "toolBar1";
     this.toolBar1.ShowToolTips   = true;
     this.toolBar1.Size           = new System.Drawing.Size(492, 23);
     this.toolBar1.TabIndex       = 4;
     this.toolBar1.Visible        = false;
     this.toolBar1.ButtonClick   += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
     //
     // toolBarButton1
     //
     this.toolBarButton1.ImageIndex  = 0;
     this.toolBarButton1.Name        = "toolBarButton1";
     this.toolBarButton1.ToolTipText = "실행 취소";
     //
     // toolBarButton2
     //
     this.toolBarButton2.ImageIndex  = 1;
     this.toolBarButton2.Name        = "toolBarButton2";
     this.toolBarButton2.ToolTipText = "잘라내기";
     //
     // toolBarButton3
     //
     this.toolBarButton3.ImageIndex  = 2;
     this.toolBarButton3.Name        = "toolBarButton3";
     this.toolBarButton3.ToolTipText = "복사";
     //
     // toolBarButton4
     //
     this.toolBarButton4.ImageIndex  = 3;
     this.toolBarButton4.Name        = "toolBarButton4";
     this.toolBarButton4.ToolTipText = "붙여넣기";
     //
     // toolBarButton5
     //
     this.toolBarButton5.ImageIndex  = 4;
     this.toolBarButton5.Name        = "toolBarButton5";
     this.toolBarButton5.ToolTipText = "삭제";
     //
     // imageList1
     //
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "");
     this.imageList1.Images.SetKeyName(1, "");
     this.imageList1.Images.SetKeyName(2, "");
     this.imageList1.Images.SetKeyName(3, "");
     this.imageList1.Images.SetKeyName(4, "");
     //
     // mainTextBox
     //
     this.mainTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                      | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.mainTextBox.HideSelection = false;
     this.mainTextBox.Location      = new System.Drawing.Point(0, 0);
     this.mainTextBox.Multiline     = true;
     this.mainTextBox.Name          = "mainTextBox";
     this.mainTextBox.ScrollBars    = System.Windows.Forms.ScrollBars.Both;
     this.mainTextBox.Size          = new System.Drawing.Size(492, 313);
     this.mainTextBox.TabIndex      = 0;
     this.mainTextBox.TextChanged  += new System.EventHandler(this.mainTextBox_TextChanged);
     this.mainTextBox.KeyUp        += new System.Windows.Forms.KeyEventHandler(this.mainTextBox_KeyUp);
     this.mainTextBox.MouseUp      += new System.Windows.Forms.MouseEventHandler(this.mainTextBox_MouseUp);
     //
     // panel1
     //
     this.panel1.Controls.Add(this.mainTextBox);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 23);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(492, 312);
     this.panel1.TabIndex = 5;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(8, 18);
     this.ClientSize        = new System.Drawing.Size(492, 361);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.toolBar1);
     this.Controls.Add(this.statusBar1);
     this.Icon         = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Menu         = this.mainMenu1;
     this.Name         = "Form1";
     this.Text         = "제목 없음 - 메모장";
     this.Closing     += new System.ComponentModel.CancelEventHandler(this.Form1_Closing);
     this.SizeChanged += new System.EventHandler(this.Form1_SizeChanged);
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #49
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(XtraForm1));
     this.printDialog1        = new System.Windows.Forms.PrintDialog();
     this.printDocument1      = new System.Drawing.Printing.PrintDocument();
     this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
     this.pageSetupDialog1    = new System.Windows.Forms.PageSetupDialog();
     this.dataSet11           = new CPTTProTest.DataSet1();
     this.sqlDataAdapter1     = new System.Data.SqlClient.SqlDataAdapter();
     this.sqlDeleteCommand1   = new System.Data.SqlClient.SqlCommand();
     this.sqlConnection1      = new System.Data.SqlClient.SqlConnection();
     this.sqlInsertCommand1   = new System.Data.SqlClient.SqlCommand();
     this.sqlSelectCommand1   = new System.Data.SqlClient.SqlCommand();
     this.sqlUpdateCommand1   = new System.Data.SqlClient.SqlCommand();
     this.button1             = new System.Windows.Forms.Button();
     this.label1 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.label4 = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
     this.SuspendLayout();
     //
     // printPreviewDialog1
     //
     this.printPreviewDialog1.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.ClientSize        = new System.Drawing.Size(400, 300);
     this.printPreviewDialog1.Enabled           = true;
     this.printPreviewDialog1.Icon            = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon")));
     this.printPreviewDialog1.Location        = new System.Drawing.Point(260, 17);
     this.printPreviewDialog1.MinimumSize     = new System.Drawing.Size(375, 250);
     this.printPreviewDialog1.Name            = "printPreviewDialog1";
     this.printPreviewDialog1.TransparencyKey = System.Drawing.Color.Empty;
     this.printPreviewDialog1.Visible         = false;
     //
     // dataSet11
     //
     this.dataSet11.DataSetName = "DataSet1";
     this.dataSet11.Locale      = new System.Globalization.CultureInfo("zh-CN");
     //
     // sqlDataAdapter1
     //
     this.sqlDataAdapter1.DeleteCommand = this.sqlDeleteCommand1;
     this.sqlDataAdapter1.InsertCommand = this.sqlInsertCommand1;
     this.sqlDataAdapter1.SelectCommand = this.sqlSelectCommand1;
     this.sqlDataAdapter1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "SMS_Register_Info", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("smsInfo_id", "smsInfo_id"),
             new System.Data.Common.DataColumnMapping("studInfo_stuid", "studInfo_stuid"),
             new System.Data.Common.DataColumnMapping("familial_name", "familial_name"),
             new System.Data.Common.DataColumnMapping("mobilePhone_number", "mobilePhone_number"),
             new System.Data.Common.DataColumnMapping("stu_grade", "stu_grade"),
             new System.Data.Common.DataColumnMapping("stu_class", "stu_class")
         })
     });
     this.sqlDataAdapter1.UpdateCommand = this.sqlUpdateCommand1;
     //
     // sqlDeleteCommand1
     //
     this.sqlDeleteCommand1.CommandText = @"DELETE FROM SMS_Register_Info WHERE (smsInfo_id = @Original_smsInfo_id) AND (familial_name = @Original_familial_name) AND (mobilePhone_number = @Original_mobilePhone_number) AND (stu_class = @Original_stu_class) AND (stu_grade = @Original_stu_grade) AND (studInfo_stuid = @Original_studInfo_stuid)";
     this.sqlDeleteCommand1.Connection  = this.sqlConnection1;
     this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_smsInfo_id", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "smsInfo_id", System.Data.DataRowVersion.Original, null));
     this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_familial_name", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "familial_name", System.Data.DataRowVersion.Original, null));
     this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_mobilePhone_number", System.Data.SqlDbType.VarChar, 15, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "mobilePhone_number", System.Data.DataRowVersion.Original, null));
     this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_stu_class", System.Data.SqlDbType.SmallInt, 2, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "stu_class", System.Data.DataRowVersion.Original, null));
     this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_stu_grade", System.Data.SqlDbType.SmallInt, 2, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "stu_grade", System.Data.DataRowVersion.Original, null));
     this.sqlDeleteCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_studInfo_stuid", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "studInfo_stuid", System.Data.DataRowVersion.Original, null));
     //
     // sqlConnection1
     //
     this.sqlConnection1.ConnectionString = "workstation id=YOUNG;packet size=4096;user id=ctpp;password=ctpp;data source=\"YAN" +
                                            "FASERVER\\CZSERVER\";persist security info=False;initial catalog=CTPPDB";
     //
     // sqlInsertCommand1
     //
     this.sqlInsertCommand1.CommandText = @"INSERT INTO SMS_Register_Info(studInfo_stuid, familial_name, mobilePhone_number, stu_grade, stu_class) VALUES (@studInfo_stuid, @familial_name, @mobilePhone_number, @stu_grade, @stu_class); SELECT smsInfo_id, studInfo_stuid, familial_name, mobilePhone_number, stu_grade, stu_class FROM SMS_Register_Info WHERE (smsInfo_id = @@IDENTITY)";
     this.sqlInsertCommand1.Connection  = this.sqlConnection1;
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@studInfo_stuid", System.Data.SqlDbType.VarChar, 50, "studInfo_stuid"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@familial_name", System.Data.SqlDbType.VarChar, 10, "familial_name"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@mobilePhone_number", System.Data.SqlDbType.VarChar, 15, "mobilePhone_number"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@stu_grade", System.Data.SqlDbType.SmallInt, 2, "stu_grade"));
     this.sqlInsertCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@stu_class", System.Data.SqlDbType.SmallInt, 2, "stu_class"));
     //
     // sqlSelectCommand1
     //
     this.sqlSelectCommand1.CommandText = "SELECT smsInfo_id, studInfo_stuid, familial_name, mobilePhone_number, stu_grade, " +
                                          "stu_class FROM SMS_Register_Info";
     this.sqlSelectCommand1.Connection = this.sqlConnection1;
     //
     // sqlUpdateCommand1
     //
     this.sqlUpdateCommand1.CommandText = @"UPDATE SMS_Register_Info SET studInfo_stuid = @studInfo_stuid, familial_name = @familial_name, mobilePhone_number = @mobilePhone_number, stu_grade = @stu_grade, stu_class = @stu_class WHERE (smsInfo_id = @Original_smsInfo_id) AND (familial_name = @Original_familial_name) AND (mobilePhone_number = @Original_mobilePhone_number) AND (stu_class = @Original_stu_class) AND (stu_grade = @Original_stu_grade) AND (studInfo_stuid = @Original_studInfo_stuid); SELECT smsInfo_id, studInfo_stuid, familial_name, mobilePhone_number, stu_grade, stu_class FROM SMS_Register_Info WHERE (smsInfo_id = @smsInfo_id)";
     this.sqlUpdateCommand1.Connection  = this.sqlConnection1;
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@studInfo_stuid", System.Data.SqlDbType.VarChar, 50, "studInfo_stuid"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@familial_name", System.Data.SqlDbType.VarChar, 10, "familial_name"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@mobilePhone_number", System.Data.SqlDbType.VarChar, 15, "mobilePhone_number"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@stu_grade", System.Data.SqlDbType.SmallInt, 2, "stu_grade"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@stu_class", System.Data.SqlDbType.SmallInt, 2, "stu_class"));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_smsInfo_id", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "smsInfo_id", System.Data.DataRowVersion.Original, null));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_familial_name", System.Data.SqlDbType.VarChar, 10, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "familial_name", System.Data.DataRowVersion.Original, null));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_mobilePhone_number", System.Data.SqlDbType.VarChar, 15, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "mobilePhone_number", System.Data.DataRowVersion.Original, null));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_stu_class", System.Data.SqlDbType.SmallInt, 2, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "stu_class", System.Data.DataRowVersion.Original, null));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_stu_grade", System.Data.SqlDbType.SmallInt, 2, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "stu_grade", System.Data.DataRowVersion.Original, null));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Original_studInfo_stuid", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "studInfo_stuid", System.Data.DataRowVersion.Original, null));
     this.sqlUpdateCommand1.Parameters.Add(new System.Data.SqlClient.SqlParameter("@smsInfo_id", System.Data.SqlDbType.Int, 4, "smsInfo_id"));
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(320, 360);
     this.button1.Name     = "button1";
     this.button1.TabIndex = 1;
     this.button1.Text     = "button1";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(312, 168);
     this.label1.Name     = "label1";
     this.label1.TabIndex = 2;
     this.label1.Text     = "label1";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(312, 232);
     this.label2.Name     = "label2";
     this.label2.TabIndex = 2;
     this.label2.Text     = "label1";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(304, 272);
     this.label3.Name     = "label3";
     this.label3.TabIndex = 2;
     this.label3.Text     = "label1";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(304, 312);
     this.label4.Name     = "label4";
     this.label4.TabIndex = 2;
     this.label4.Text     = "label1";
     //
     // XtraForm1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
     this.ClientSize        = new System.Drawing.Size(616, 421);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label4);
     this.Name  = "XtraForm1";
     this.Text  = "XtraForm1";
     this.Load += new System.EventHandler(this.XtraForm1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #50
0
ファイル: DocumentForm.cs プロジェクト: hgarcia/gherkineditor
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Resources.ResourceManager       resources = new System.Resources.ResourceManager(typeof(DocumentForm));
     System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
     this.mainMenu             = new System.Windows.Forms.MainMenu();
     this.menuFile             = new System.Windows.Forms.MenuItem();
     this.menuFileClose        = new System.Windows.Forms.MenuItem();
     this.menuFileCloseAll     = new System.Windows.Forms.MenuItem();
     this.menuItem16           = new System.Windows.Forms.MenuItem();
     this.menuFileSave         = new System.Windows.Forms.MenuItem();
     this.menuFileSaveAs       = new System.Windows.Forms.MenuItem();
     this.menuFileSaveAll      = new System.Windows.Forms.MenuItem();
     this.menuItem5            = new System.Windows.Forms.MenuItem();
     this.menuFilePrint        = new System.Windows.Forms.MenuItem();
     this.menuFilePrintPrivew  = new System.Windows.Forms.MenuItem();
     this.menuFilePageSetup    = new System.Windows.Forms.MenuItem();
     this.menuEdit             = new System.Windows.Forms.MenuItem();
     this.menuEditUndo         = new System.Windows.Forms.MenuItem();
     this.menuEditRedo         = new System.Windows.Forms.MenuItem();
     this.menuItem3            = new System.Windows.Forms.MenuItem();
     this.menuEditCut          = new System.Windows.Forms.MenuItem();
     this.menuEditCopy         = new System.Windows.Forms.MenuItem();
     this.menuEditPaste        = new System.Windows.Forms.MenuItem();
     this.menuItem7            = new System.Windows.Forms.MenuItem();
     this.menuEditSelectAll    = new System.Windows.Forms.MenuItem();
     this.menuFormat           = new System.Windows.Forms.MenuItem();
     this.menuFormatWrap       = new System.Windows.Forms.MenuItem();
     this.menuFormatFont       = new System.Windows.Forms.MenuItem();
     this.menuTools            = new System.Windows.Forms.MenuItem();
     this.menuToolsSpelling    = new System.Windows.Forms.MenuItem();
     this.fontDialog           = new System.Windows.Forms.FontDialog();
     this.printDialog          = new System.Windows.Forms.PrintDialog();
     this.printDocument        = new System.Drawing.Printing.PrintDocument();
     this.printPreviewDialog   = new System.Windows.Forms.PrintPreviewDialog();
     this.Document             = new System.Windows.Forms.RichTextBox();
     this.contextMenu          = new System.Windows.Forms.ContextMenu();
     this.contextMenuUndo      = new System.Windows.Forms.MenuItem();
     this.menuItem1            = new System.Windows.Forms.MenuItem();
     this.menuItem2            = new System.Windows.Forms.MenuItem();
     this.contextMenuCut       = new System.Windows.Forms.MenuItem();
     this.contextMenuCopy      = new System.Windows.Forms.MenuItem();
     this.contextMenuPaste     = new System.Windows.Forms.MenuItem();
     this.menuItem8            = new System.Windows.Forms.MenuItem();
     this.contextMenuSelectAll = new System.Windows.Forms.MenuItem();
     this.SpellChecker         = new NetSpell.SpellChecker.Spelling(this.components);
     this.saveDialog           = new System.Windows.Forms.SaveFileDialog();
     this.openDialog           = new System.Windows.Forms.OpenFileDialog();
     this.pageSetupDialog      = new System.Windows.Forms.PageSetupDialog();
     this.colorDialog          = new System.Windows.Forms.ColorDialog();
     this.SuspendLayout();
     //
     // mainMenu
     //
     this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuFile,
         this.menuEdit,
         this.menuFormat,
         this.menuTools
     });
     //
     // menuFile
     //
     this.menuFile.Index = 0;
     this.menuFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuFileClose,
         this.menuFileCloseAll,
         this.menuItem16,
         this.menuFileSave,
         this.menuFileSaveAs,
         this.menuFileSaveAll,
         this.menuItem5,
         this.menuFilePrint,
         this.menuFilePrintPrivew,
         this.menuFilePageSetup
     });
     this.menuFile.MergeType = System.Windows.Forms.MenuMerge.MergeItems;
     this.menuFile.Text      = "File";
     //
     // menuFileClose
     //
     this.menuFileClose.Index      = 0;
     this.menuFileClose.MergeOrder = 2;
     this.menuFileClose.Text       = "Close";
     this.menuFileClose.Click     += new System.EventHandler(this.menuFileClose_Click);
     //
     // menuFileCloseAll
     //
     this.menuFileCloseAll.Index      = 1;
     this.menuFileCloseAll.MergeOrder = 3;
     this.menuFileCloseAll.Text       = "Close All";
     this.menuFileCloseAll.Click     += new System.EventHandler(this.menuFileCloseAll_Click);
     //
     // menuItem16
     //
     this.menuItem16.Index      = 2;
     this.menuItem16.MergeOrder = 4;
     this.menuItem16.Text       = "-";
     //
     // menuFileSave
     //
     this.menuFileSave.Index      = 3;
     this.menuFileSave.MergeOrder = 5;
     this.menuFileSave.Shortcut   = System.Windows.Forms.Shortcut.CtrlS;
     this.menuFileSave.Text       = "Save";
     this.menuFileSave.Click     += new System.EventHandler(this.menuFileSave_Click);
     //
     // menuFileSaveAs
     //
     this.menuFileSaveAs.Index      = 4;
     this.menuFileSaveAs.MergeOrder = 6;
     this.menuFileSaveAs.Shortcut   = System.Windows.Forms.Shortcut.CtrlShiftS;
     this.menuFileSaveAs.Text       = "Save As...";
     this.menuFileSaveAs.Click     += new System.EventHandler(this.menuFileSaveAs_Click);
     //
     // menuFileSaveAll
     //
     this.menuFileSaveAll.Index      = 5;
     this.menuFileSaveAll.MergeOrder = 7;
     this.menuFileSaveAll.Text       = "Save All";
     this.menuFileSaveAll.Click     += new System.EventHandler(this.menuFileSaveAll_Click);
     //
     // menuItem5
     //
     this.menuItem5.Index      = 6;
     this.menuItem5.MergeOrder = 8;
     this.menuItem5.Text       = "-";
     //
     // menuFilePrint
     //
     this.menuFilePrint.Index      = 7;
     this.menuFilePrint.MergeOrder = 9;
     this.menuFilePrint.Shortcut   = System.Windows.Forms.Shortcut.CtrlP;
     this.menuFilePrint.Text       = "Print...";
     this.menuFilePrint.Click     += new System.EventHandler(this.menuFilePrint_Click);
     //
     // menuFilePrintPrivew
     //
     this.menuFilePrintPrivew.Index      = 8;
     this.menuFilePrintPrivew.MergeOrder = 10;
     this.menuFilePrintPrivew.Shortcut   = System.Windows.Forms.Shortcut.CtrlShiftP;
     this.menuFilePrintPrivew.Text       = "Print Preview";
     this.menuFilePrintPrivew.Click     += new System.EventHandler(this.menuFilePrintPrivew_Click);
     //
     // menuFilePageSetup
     //
     this.menuFilePageSetup.Index      = 9;
     this.menuFilePageSetup.MergeOrder = 11;
     this.menuFilePageSetup.Text       = "Page Setup";
     this.menuFilePageSetup.Click     += new System.EventHandler(this.menuFilePageSetup_Click);
     //
     // menuEdit
     //
     this.menuEdit.Index = 1;
     this.menuEdit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuEditUndo,
         this.menuEditRedo,
         this.menuItem3,
         this.menuEditCut,
         this.menuEditCopy,
         this.menuEditPaste,
         this.menuItem7,
         this.menuEditSelectAll
     });
     this.menuEdit.MergeOrder = 1;
     this.menuEdit.Text       = "Edit";
     //
     // menuEditUndo
     //
     this.menuEditUndo.Index    = 0;
     this.menuEditUndo.Shortcut = System.Windows.Forms.Shortcut.CtrlZ;
     this.menuEditUndo.Text     = "Undo";
     this.menuEditUndo.Click   += new System.EventHandler(this.menuEditUndo_Click);
     //
     // menuEditRedo
     //
     this.menuEditRedo.Index    = 1;
     this.menuEditRedo.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftZ;
     this.menuEditRedo.Text     = "Redo";
     this.menuEditRedo.Click   += new System.EventHandler(this.menuEditRedo_Click);
     //
     // menuItem3
     //
     this.menuItem3.Index = 2;
     this.menuItem3.Text  = "-";
     //
     // menuEditCut
     //
     this.menuEditCut.Index    = 3;
     this.menuEditCut.Shortcut = System.Windows.Forms.Shortcut.CtrlX;
     this.menuEditCut.Text     = "Cut";
     this.menuEditCut.Click   += new System.EventHandler(this.menuEditCut_Click);
     //
     // menuEditCopy
     //
     this.menuEditCopy.Index    = 4;
     this.menuEditCopy.Shortcut = System.Windows.Forms.Shortcut.CtrlC;
     this.menuEditCopy.Text     = "Copy";
     this.menuEditCopy.Click   += new System.EventHandler(this.menuEditCopy_Click);
     //
     // menuEditPaste
     //
     this.menuEditPaste.Index    = 5;
     this.menuEditPaste.Shortcut = System.Windows.Forms.Shortcut.CtrlV;
     this.menuEditPaste.Text     = "Paste";
     this.menuEditPaste.Click   += new System.EventHandler(this.menuEditPaste_Click);
     //
     // menuItem7
     //
     this.menuItem7.Index = 6;
     this.menuItem7.Text  = "-";
     //
     // menuEditSelectAll
     //
     this.menuEditSelectAll.Index    = 7;
     this.menuEditSelectAll.Shortcut = System.Windows.Forms.Shortcut.CtrlA;
     this.menuEditSelectAll.Text     = "Select All";
     this.menuEditSelectAll.Click   += new System.EventHandler(this.menuEditSelectAll_Click);
     //
     // menuFormat
     //
     this.menuFormat.Index = 2;
     this.menuFormat.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuFormatWrap,
         this.menuFormatFont
     });
     this.menuFormat.MergeOrder = 2;
     this.menuFormat.Text       = "Format";
     //
     // menuFormatWrap
     //
     this.menuFormatWrap.Checked = true;
     this.menuFormatWrap.Index   = 0;
     this.menuFormatWrap.Text    = "Word Wrap";
     this.menuFormatWrap.Click  += new System.EventHandler(this.menuFormatWrap_Click);
     //
     // menuFormatFont
     //
     this.menuFormatFont.Index  = 1;
     this.menuFormatFont.Text   = "Font...";
     this.menuFormatFont.Click += new System.EventHandler(this.menuFormatFont_Click);
     //
     // menuTools
     //
     this.menuTools.Index = 3;
     this.menuTools.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuToolsSpelling
     });
     this.menuTools.MergeOrder = 3;
     this.menuTools.Text       = "Tools";
     //
     // menuToolsSpelling
     //
     this.menuToolsSpelling.Index    = 0;
     this.menuToolsSpelling.Shortcut = System.Windows.Forms.Shortcut.F7;
     this.menuToolsSpelling.Text     = "Spelling ...";
     this.menuToolsSpelling.Click   += new System.EventHandler(this.menuToolsSpelling_Click);
     //
     // printDialog
     //
     this.printDialog.AllowSomePages = true;
     this.printDialog.Document       = this.printDocument;
     //
     // printDocument
     //
     this.printDocument.BeginPrint += new System.Drawing.Printing.PrintEventHandler(this.printDocument_BeginPrint);
     this.printDocument.PrintPage  += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument_PrintPage);
     //
     // printPreviewDialog
     //
     this.printPreviewDialog.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.printPreviewDialog.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.printPreviewDialog.ClientSize        = new System.Drawing.Size(400, 300);
     this.printPreviewDialog.Document          = this.printDocument;
     this.printPreviewDialog.Enabled           = true;
     this.printPreviewDialog.Icon            = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog.Icon")));
     this.printPreviewDialog.Location        = new System.Drawing.Point(120, 17);
     this.printPreviewDialog.MinimumSize     = new System.Drawing.Size(375, 250);
     this.printPreviewDialog.Name            = "printPreviewDialog";
     this.printPreviewDialog.TransparencyKey = System.Drawing.Color.Empty;
     this.printPreviewDialog.UseAntiAlias    = true;
     this.printPreviewDialog.Visible         = false;
     //
     // Document
     //
     this.Document.AcceptsTab        = true;
     this.Document.AutoWordSelection = true;
     this.Document.BorderStyle       = System.Windows.Forms.BorderStyle.None;
     this.Document.ContextMenu       = this.contextMenu;
     this.Document.Dock                = System.Windows.Forms.DockStyle.Fill;
     this.Document.Location            = new System.Drawing.Point(0, 0);
     this.Document.Name                = "Document";
     this.Document.ScrollBars          = System.Windows.Forms.RichTextBoxScrollBars.ForcedBoth;
     this.Document.ShowSelectionMargin = true;
     this.Document.Size                = new System.Drawing.Size(520, 446);
     this.Document.TabIndex            = 0;
     this.Document.Text                = "";
     this.Document.TextChanged        += new System.EventHandler(this.Document_TextChanged);
     this.Document.SelectionChanged   += new System.EventHandler(this.Document_SelectionChanged);
     //
     // contextMenu
     //
     this.contextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.contextMenuUndo,
         this.menuItem1,
         this.menuItem2,
         this.contextMenuCut,
         this.contextMenuCopy,
         this.contextMenuPaste,
         this.menuItem8,
         this.contextMenuSelectAll
     });
     //
     // contextMenuUndo
     //
     this.contextMenuUndo.Index  = 0;
     this.contextMenuUndo.Text   = "Undo";
     this.contextMenuUndo.Click += new System.EventHandler(this.menuEditUndo_Click);
     //
     // menuItem1
     //
     this.menuItem1.Index  = 1;
     this.menuItem1.Text   = "Redo";
     this.menuItem1.Click += new System.EventHandler(this.menuEditRedo_Click);
     //
     // menuItem2
     //
     this.menuItem2.Index = 2;
     this.menuItem2.Text  = "-";
     //
     // contextMenuCut
     //
     this.contextMenuCut.Index  = 3;
     this.contextMenuCut.Text   = "Cut";
     this.contextMenuCut.Click += new System.EventHandler(this.menuEditCut_Click);
     //
     // contextMenuCopy
     //
     this.contextMenuCopy.Index  = 4;
     this.contextMenuCopy.Text   = "Copy";
     this.contextMenuCopy.Click += new System.EventHandler(this.menuEditCopy_Click);
     //
     // contextMenuPaste
     //
     this.contextMenuPaste.Index  = 5;
     this.contextMenuPaste.Text   = "Paste";
     this.contextMenuPaste.Click += new System.EventHandler(this.menuEditPaste_Click);
     //
     // menuItem8
     //
     this.menuItem8.Index = 6;
     this.menuItem8.Text  = "-";
     //
     // contextMenuSelectAll
     //
     this.contextMenuSelectAll.Index  = 7;
     this.contextMenuSelectAll.Text   = "Select All";
     this.contextMenuSelectAll.Click += new System.EventHandler(this.menuEditSelectAll_Click);
     //
     // SpellChecker
     //
     this.SpellChecker.Dictionary            = null;
     this.SpellChecker.IgnoreAllCapsWords    = ((bool)(configurationAppSettings.GetValue("SpellChecker.IgnoreAllCapsWords", typeof(bool))));
     this.SpellChecker.IgnoreHtml            = ((bool)(configurationAppSettings.GetValue("SpellChecker.IgnoreHtml", typeof(bool))));
     this.SpellChecker.IgnoreWordsWithDigits = ((bool)(configurationAppSettings.GetValue("SpellChecker.IgnoreWordsWithDigits", typeof(bool))));
     this.SpellChecker.MaxSuggestions        = ((int)(configurationAppSettings.GetValue("SpellChecker.MaxSuggestions", typeof(int))));
     this.SpellChecker.ReplacedWord         += new NetSpell.SpellChecker.Spelling.ReplacedWordEventHandler(this.SpellChecker_ReplacedWord);
     this.SpellChecker.DeletedWord          += new NetSpell.SpellChecker.Spelling.DeletedWordEventHandler(this.SpellChecker_DeletedWord);
     //
     // saveDialog
     //
     this.saveDialog.DefaultExt = "*.txt";
     this.saveDialog.FileName   = "untitled";
     this.saveDialog.Filter     = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*";
     //
     // openDialog
     //
     this.openDialog.Filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*";
     //
     // pageSetupDialog
     //
     this.pageSetupDialog.Document = this.printDocument;
     //
     // DocumentForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(520, 446);
     this.Controls.Add(this.Document);
     this.Icon        = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Menu        = this.mainMenu;
     this.Name        = "DocumentForm";
     this.Text        = "untitled";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.Closing    += new System.ComponentModel.CancelEventHandler(this.DocumentForm_Closing);
     this.Load       += new System.EventHandler(this.DocumentForm_Load);
     this.Activated  += new System.EventHandler(this.DocumentForm_Activated);
     this.Deactivate += new System.EventHandler(this.DocumentForm_Deactivate);
     this.ResumeLayout(false);
 }
コード例 #51
0
 [System.Diagnostics.DebuggerStepThrough()] private void InitializeComponent()
 {
     this.ButtonPrint      = new System.Windows.Forms.Button();
     this.ButtonPageSetup  = new System.Windows.Forms.Button();
     this.ButtonCancel     = new System.Windows.Forms.Button();
     this.TextBoxPositionX = new System.Windows.Forms.TextBox();
     this.TextBoxPositionY = new System.Windows.Forms.TextBox();
     this.Label1           = new System.Windows.Forms.Label();
     this.Label2           = new System.Windows.Forms.Label();
     this.TextBoxWidth     = new System.Windows.Forms.TextBox();
     this.TextBoxHeight    = new System.Windows.Forms.TextBox();
     this.Label3           = new System.Windows.Forms.Label();
     this.Label4           = new System.Windows.Forms.Label();
     this.BitmapViewer1    = new Aurigma.GraphicsMill.WinControls.BitmapViewer();
     this.PageSetupDialog1 = new System.Windows.Forms.PageSetupDialog();
     this._printDocument   = new Aurigma.GraphicsMill.WinControls.ImagePrintDocument();
     this.SuspendLayout();
     //
     // ButtonPrint
     //
     this.ButtonPrint.Location = new System.Drawing.Point(512, 16);
     this.ButtonPrint.Name     = "ButtonPrint";
     this.ButtonPrint.Size     = new System.Drawing.Size(88, 24);
     this.ButtonPrint.TabIndex = 0;
     this.ButtonPrint.Text     = "Print";
     this.ButtonPrint.Click   += new System.EventHandler(this.ButtonPrint_Click);
     //
     // ButtonPageSetup
     //
     this.ButtonPageSetup.Location = new System.Drawing.Point(512, 48);
     this.ButtonPageSetup.Name     = "ButtonPageSetup";
     this.ButtonPageSetup.Size     = new System.Drawing.Size(88, 24);
     this.ButtonPageSetup.TabIndex = 1;
     this.ButtonPageSetup.Text     = "Page Setup...";
     this.ButtonPageSetup.Click   += new System.EventHandler(this.ButtonPageSetup_Click);
     //
     // ButtonCancel
     //
     this.ButtonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.ButtonCancel.Location     = new System.Drawing.Point(512, 80);
     this.ButtonCancel.Name         = "ButtonCancel";
     this.ButtonCancel.Size         = new System.Drawing.Size(88, 24);
     this.ButtonCancel.TabIndex     = 2;
     this.ButtonCancel.Text         = "Cancel";
     this.ButtonCancel.Click       += new System.EventHandler(this.ButtonCancel_Click);
     //
     // TextBoxPositionX
     //
     this.TextBoxPositionX.Location   = new System.Drawing.Point(328, 22);
     this.TextBoxPositionX.MaxLength  = 4;
     this.TextBoxPositionX.Name       = "TextBoxPositionX";
     this.TextBoxPositionX.Size       = new System.Drawing.Size(40, 20);
     this.TextBoxPositionX.TabIndex   = 4;
     this.TextBoxPositionX.Text       = "0";
     this.TextBoxPositionX.Validated += new System.EventHandler(this.TextBox_TextChanged);
     //
     // TextBoxPositionY
     //
     this.TextBoxPositionY.Location   = new System.Drawing.Point(328, 44);
     this.TextBoxPositionY.MaxLength  = 4;
     this.TextBoxPositionY.Name       = "TextBoxPositionY";
     this.TextBoxPositionY.Size       = new System.Drawing.Size(40, 20);
     this.TextBoxPositionY.TabIndex   = 5;
     this.TextBoxPositionY.Text       = "0";
     this.TextBoxPositionY.Validated += new System.EventHandler(this.TextBox_TextChanged);
     //
     // Label1
     //
     this.Label1.Location = new System.Drawing.Point(264, 25);
     this.Label1.Name     = "Label1";
     this.Label1.Size     = new System.Drawing.Size(64, 16);
     this.Label1.TabIndex = 6;
     this.Label1.Text     = "Position X:";
     //
     // Label2
     //
     this.Label2.Location = new System.Drawing.Point(264, 47);
     this.Label2.Name     = "Label2";
     this.Label2.Size     = new System.Drawing.Size(64, 16);
     this.Label2.TabIndex = 7;
     this.Label2.Text     = "Position Y:";
     //
     // TextBoxWidth
     //
     this.TextBoxWidth.Location   = new System.Drawing.Point(448, 22);
     this.TextBoxWidth.MaxLength  = 4;
     this.TextBoxWidth.Name       = "TextBoxWidth";
     this.TextBoxWidth.Size       = new System.Drawing.Size(40, 20);
     this.TextBoxWidth.TabIndex   = 8;
     this.TextBoxWidth.Text       = "0";
     this.TextBoxWidth.Validated += new System.EventHandler(this.TextBox_TextChanged);
     //
     // TextBoxHeight
     //
     this.TextBoxHeight.Location   = new System.Drawing.Point(448, 44);
     this.TextBoxHeight.MaxLength  = 4;
     this.TextBoxHeight.Name       = "TextBoxHeight";
     this.TextBoxHeight.Size       = new System.Drawing.Size(40, 20);
     this.TextBoxHeight.TabIndex   = 9;
     this.TextBoxHeight.Text       = "0";
     this.TextBoxHeight.Validated += new System.EventHandler(this.TextBox_TextChanged);
     //
     // Label3
     //
     this.Label3.Location = new System.Drawing.Point(400, 25);
     this.Label3.Name     = "Label3";
     this.Label3.Size     = new System.Drawing.Size(40, 16);
     this.Label3.TabIndex = 10;
     this.Label3.Text     = "Width:";
     //
     // Label4
     //
     this.Label4.Location = new System.Drawing.Point(400, 47);
     this.Label4.Name     = "Label4";
     this.Label4.Size     = new System.Drawing.Size(40, 16);
     this.Label4.TabIndex = 11;
     this.Label4.Text     = "Height:";
     //
     // BitmapViewer1
     //
     this.BitmapViewer1.AlphaEnabled         = false;
     this.BitmapViewer1.BackColor            = System.Drawing.Color.Silver;
     this.BitmapViewer1.Location             = new System.Drawing.Point(8, 8);
     this.BitmapViewer1.MaxZoom              = 1F;
     this.BitmapViewer1.MinZoom              = 1F;
     this.BitmapViewer1.Name                 = "BitmapViewer1";
     this.BitmapViewer1.ScrollingPosition    = new System.Drawing.Point(0, 0);
     this.BitmapViewer1.Size                 = new System.Drawing.Size(248, 312);
     this.BitmapViewer1.TabIndex             = 13;
     this.BitmapViewer1.Text                 = "BitmapViewer1";
     this.BitmapViewer1.WorkspaceBorderColor = System.Drawing.Color.Black;
     this.BitmapViewer1.WorkspaceBorderWidth = 1;
     this.BitmapViewer1.ZoomMode             = Aurigma.GraphicsMill.WinControls.ZoomMode.None;
     //
     // PageSetupDialog1
     //
     this.PageSetupDialog1.Document = this._printDocument;
     //
     // _printDocument
     //
     this._printDocument.PlacementMode                = Aurigma.GraphicsMill.WinControls.PlacementMode.Manual;
     this._printDocument.PrintOptions.FooterFont      = new System.Drawing.Font("Arial", 10F);
     this._printDocument.PrintOptions.HeaderFont      = new System.Drawing.Font("Arial", 10F);
     this._printDocument.PrintOptions.ImageAutoRotate = false;
     this._printDocument.PrintOptions.PlaceholderSize = new System.Drawing.Size(0, 0);
     this._printDocument.Source = null;
     //
     // PrintImageDialog
     //
     this.AcceptButton      = this.ButtonPrint;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.ButtonCancel;
     this.ClientSize        = new System.Drawing.Size(608, 333);
     this.Controls.Add(this.BitmapViewer1);
     this.Controls.Add(this.TextBoxHeight);
     this.Controls.Add(this.TextBoxWidth);
     this.Controls.Add(this.TextBoxPositionY);
     this.Controls.Add(this.TextBoxPositionX);
     this.Controls.Add(this.Label4);
     this.Controls.Add(this.Label3);
     this.Controls.Add(this.Label2);
     this.Controls.Add(this.Label1);
     this.Controls.Add(this.ButtonCancel);
     this.Controls.Add(this.ButtonPageSetup);
     this.Controls.Add(this.ButtonPrint);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Name            = "PrintImageDialog";
     this.Text            = "PrintImageDialog";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #52
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DemoForm));
     this.panel1              = new System.Windows.Forms.Panel();
     this.modulesList         = new System.Windows.Forms.TreeView();
     this.panel5              = new System.Windows.Forms.Panel();
     this.label1              = new System.Windows.Forms.Label();
     this.panel3              = new System.Windows.Forms.Panel();
     this.splitter1           = new System.Windows.Forms.Splitter();
     this.panel4              = new System.Windows.Forms.Panel();
     this.statusBar1          = new System.Windows.Forms.StatusBar();
     this.mainMenu1           = new System.Windows.Forms.MainMenu(this.components);
     this.menuItem1           = new System.Windows.Forms.MenuItem();
     this.menuExit            = new System.Windows.Forms.MenuItem();
     this.menuItem3           = new System.Windows.Forms.MenuItem();
     this.menuRunSelected     = new System.Windows.Forms.MenuItem();
     this.menuItem4           = new System.Windows.Forms.MenuItem();
     this.menuViewTemplate    = new System.Windows.Forms.MenuItem();
     this.menuOpenProject     = new System.Windows.Forms.MenuItem();
     this.menuItem6           = new System.Windows.Forms.MenuItem();
     this.menuAbout           = new System.Windows.Forms.MenuItem();
     this.pageSetupDialog1    = new System.Windows.Forms.PageSetupDialog();
     this.SearchTip           = new System.Windows.Forms.ToolTip(this.components);
     this.mainToolbar         = new System.Windows.Forms.ToolStrip();
     this.btnRunSelected      = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
     this.btnViewTemplate     = new System.Windows.Forms.ToolStripButton();
     this.btnOpenFolder       = new System.Windows.Forms.ToolStripButton();
     this.btnOpenProject      = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.btnExit             = new System.Windows.Forms.ToolStripButton();
     this.btnAbout            = new System.Windows.Forms.ToolStripButton();
     this.sdSearch            = new System.Windows.Forms.ToolStripTextBox();
     this.panel1.SuspendLayout();
     this.panel5.SuspendLayout();
     this.panel3.SuspendLayout();
     this.mainToolbar.SuspendLayout();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.Add(this.modulesList);
     this.panel1.Controls.Add(this.panel5);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Left;
     this.panel1.Location = new System.Drawing.Point(0, 63);
     this.panel1.Margin   = new System.Windows.Forms.Padding(6, 6, 6, 6);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(464, 883);
     this.panel1.TabIndex = 0;
     //
     // modulesList
     //
     this.modulesList.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.modulesList.HideSelection = false;
     this.modulesList.Location      = new System.Drawing.Point(0, 42);
     this.modulesList.Margin        = new System.Windows.Forms.Padding(6, 6, 6, 6);
     this.modulesList.Name          = "modulesList";
     this.modulesList.Size          = new System.Drawing.Size(464, 841);
     this.modulesList.TabIndex      = 4;
     this.modulesList.AfterSelect  += new System.Windows.Forms.TreeViewEventHandler(this.modulesList_AfterSelect);
     //
     // panel5
     //
     this.panel5.BackColor   = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panel5.Controls.Add(this.label1);
     this.panel5.Dock      = System.Windows.Forms.DockStyle.Top;
     this.panel5.ForeColor = System.Drawing.Color.White;
     this.panel5.Location  = new System.Drawing.Point(0, 0);
     this.panel5.Margin    = new System.Windows.Forms.Padding(6, 6, 6, 6);
     this.panel5.Name      = "panel5";
     this.panel5.Size      = new System.Drawing.Size(464, 42);
     this.panel5.TabIndex  = 3;
     //
     // label1
     //
     this.label1.Font     = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(2, 8);
     this.label1.Margin   = new System.Windows.Forms.Padding(6, 0, 6, 0);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(200, 44);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Select a Demo";
     //
     // panel3
     //
     this.panel3.Controls.Add(this.splitter1);
     this.panel3.Controls.Add(this.panel4);
     this.panel3.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel3.Location = new System.Drawing.Point(464, 63);
     this.panel3.Margin   = new System.Windows.Forms.Padding(6, 6, 6, 6);
     this.panel3.Name     = "panel3";
     this.panel3.Size     = new System.Drawing.Size(1232, 883);
     this.panel3.TabIndex = 2;
     //
     // splitter1
     //
     this.splitter1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.splitter1.Location    = new System.Drawing.Point(0, 42);
     this.splitter1.Margin      = new System.Windows.Forms.Padding(6, 6, 6, 6);
     this.splitter1.Name        = "splitter1";
     this.splitter1.Size        = new System.Drawing.Size(4, 841);
     this.splitter1.TabIndex    = 0;
     this.splitter1.TabStop     = false;
     //
     // panel4
     //
     this.panel4.BackColor   = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panel4.Dock        = System.Windows.Forms.DockStyle.Top;
     this.panel4.ForeColor   = System.Drawing.Color.White;
     this.panel4.Location    = new System.Drawing.Point(0, 0);
     this.panel4.Margin      = new System.Windows.Forms.Padding(6, 6, 6, 6);
     this.panel4.Name        = "panel4";
     this.panel4.Size        = new System.Drawing.Size(1232, 42);
     this.panel4.TabIndex    = 2;
     this.panel4.Visible     = false;
     //
     // statusBar1
     //
     this.statusBar1.Location = new System.Drawing.Point(0, 946);
     this.statusBar1.Margin   = new System.Windows.Forms.Padding(6, 6, 6, 6);
     this.statusBar1.Name     = "statusBar1";
     this.statusBar1.Size     = new System.Drawing.Size(1696, 42);
     this.statusBar1.TabIndex = 3;
     this.statusBar1.Text     = "statusBar1";
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1,
         this.menuItem3,
         this.menuItem6
     });
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuExit
     });
     this.menuItem1.Text = "File";
     //
     // menuExit
     //
     this.menuExit.Index  = 0;
     this.menuExit.Text   = "Exit";
     this.menuExit.Click += new System.EventHandler(this.Exit_Click);
     //
     // menuItem3
     //
     this.menuItem3.Index = 1;
     this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuRunSelected,
         this.menuItem4,
         this.menuViewTemplate,
         this.menuOpenProject
     });
     this.menuItem3.Text = "Demo";
     //
     // menuRunSelected
     //
     this.menuRunSelected.Index    = 0;
     this.menuRunSelected.Shortcut = System.Windows.Forms.Shortcut.F5;
     this.menuRunSelected.Text     = "Run Selected";
     this.menuRunSelected.Click   += new System.EventHandler(this.RunSelected_Click);
     //
     // menuItem4
     //
     this.menuItem4.Index = 1;
     this.menuItem4.Text  = "-";
     //
     // menuViewTemplate
     //
     this.menuViewTemplate.Index  = 2;
     this.menuViewTemplate.Text   = "View Template";
     this.menuViewTemplate.Click += new System.EventHandler(this.ViewTemplate_Click);
     //
     // menuOpenProject
     //
     this.menuOpenProject.Index  = 3;
     this.menuOpenProject.Text   = "Open Project";
     this.menuOpenProject.Click += new System.EventHandler(this.btnOpenProject_Click);
     //
     // menuItem6
     //
     this.menuItem6.Index = 2;
     this.menuItem6.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuAbout
     });
     this.menuItem6.Text = "Help";
     //
     // menuAbout
     //
     this.menuAbout.Index  = 0;
     this.menuAbout.Text   = "About...";
     this.menuAbout.Click += new System.EventHandler(this.About_Click);
     //
     // mainToolbar
     //
     this.mainToolbar.ImageScalingSize = new System.Drawing.Size(24, 24);
     this.mainToolbar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.btnRunSelected,
         this.toolStripSeparator2,
         this.btnViewTemplate,
         this.btnOpenFolder,
         this.btnOpenProject,
         this.toolStripSeparator1,
         this.btnExit,
         this.btnAbout,
         this.sdSearch
     });
     this.mainToolbar.Location = new System.Drawing.Point(0, 0);
     this.mainToolbar.Name     = "mainToolbar";
     this.mainToolbar.Padding  = new System.Windows.Forms.Padding(0, 0, 2, 0);
     this.mainToolbar.Size     = new System.Drawing.Size(1696, 63);
     this.mainToolbar.TabIndex = 11;
     this.mainToolbar.Text     = "toolStrip1";
     //
     // btnRunSelected
     //
     this.btnRunSelected.Image = ((System.Drawing.Image)(resources.GetObject("btnRunSelected.Image")));
     this.btnRunSelected.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnRunSelected.Name = "btnRunSelected";
     this.btnRunSelected.Size = new System.Drawing.Size(159, 60);
     this.btnRunSelected.Text = "&Run Selected";
     this.btnRunSelected.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.btnRunSelected.Click            += new System.EventHandler(this.RunSelected_Click);
     //
     // toolStripSeparator2
     //
     this.toolStripSeparator2.Name = "toolStripSeparator2";
     this.toolStripSeparator2.Size = new System.Drawing.Size(6, 63);
     //
     // btnViewTemplate
     //
     this.btnViewTemplate.Image = ((System.Drawing.Image)(resources.GetObject("btnViewTemplate.Image")));
     this.btnViewTemplate.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnViewTemplate.Name = "btnViewTemplate";
     this.btnViewTemplate.Size = new System.Drawing.Size(175, 60);
     this.btnViewTemplate.Text = "View &Template";
     this.btnViewTemplate.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.btnViewTemplate.Click            += new System.EventHandler(this.ViewTemplate_Click);
     //
     // btnOpenFolder
     //
     this.btnOpenFolder.Image = ((System.Drawing.Image)(resources.GetObject("btnOpenFolder.Image")));
     this.btnOpenFolder.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnOpenFolder.Name = "btnOpenFolder";
     this.btnOpenFolder.Size = new System.Drawing.Size(152, 60);
     this.btnOpenFolder.Text = "&Open Folder";
     this.btnOpenFolder.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.btnOpenFolder.Click            += new System.EventHandler(this.btnOpenFolder_Click);
     //
     // btnOpenProject
     //
     this.btnOpenProject.Image = ((System.Drawing.Image)(resources.GetObject("btnOpenProject.Image")));
     this.btnOpenProject.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnOpenProject.Name = "btnOpenProject";
     this.btnOpenProject.Size = new System.Drawing.Size(158, 60);
     this.btnOpenProject.Text = "Open &Project";
     this.btnOpenProject.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.btnOpenProject.Click            += new System.EventHandler(this.btnOpenProject_Click);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(6, 63);
     //
     // btnExit
     //
     this.btnExit.Alignment             = System.Windows.Forms.ToolStripItemAlignment.Right;
     this.btnExit.Image                 = ((System.Drawing.Image)(resources.GetObject("btnExit.Image")));
     this.btnExit.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnExit.Name = "btnExit";
     this.btnExit.Size = new System.Drawing.Size(126, 60);
     this.btnExit.Text = "     E&xit     ";
     this.btnExit.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.btnExit.Click            += new System.EventHandler(this.Exit_Click);
     //
     // btnAbout
     //
     this.btnAbout.Alignment             = System.Windows.Forms.ToolStripItemAlignment.Right;
     this.btnAbout.Image                 = ((System.Drawing.Image)(resources.GetObject("btnAbout.Image")));
     this.btnAbout.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnAbout.Name = "btnAbout";
     this.btnAbout.Size = new System.Drawing.Size(112, 60);
     this.btnAbout.Text = "  About  ";
     this.btnAbout.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.btnAbout.Click            += new System.EventHandler(this.About_Click);
     //
     // sdSearch
     //
     this.sdSearch.Alignment    = System.Windows.Forms.ToolStripItemAlignment.Right;
     this.sdSearch.Margin       = new System.Windows.Forms.Padding(1, 0, 20, 0);
     this.sdSearch.Name         = "sdSearch";
     this.sdSearch.Size         = new System.Drawing.Size(160, 63);
     this.sdSearch.Enter       += new System.EventHandler(this.sdSearch_Enter);
     this.sdSearch.Leave       += new System.EventHandler(this.sdSearch_Leave);
     this.sdSearch.TextChanged += new System.EventHandler(this.sdSearch_TextChanged);
     //
     // DemoForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1696, 988);
     this.Controls.Add(this.panel3);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.statusBar1);
     this.Controls.Add(this.mainToolbar);
     this.Icon   = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
     this.Menu   = this.mainMenu1;
     this.Name   = "DemoForm";
     this.Text   = "FlexCel Well";
     this.panel1.ResumeLayout(false);
     this.panel5.ResumeLayout(false);
     this.panel3.ResumeLayout(false);
     this.mainToolbar.ResumeLayout(false);
     this.mainToolbar.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #53
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormReportLikeCrystal));
     this.butClose             = new OpenDental.UI.Button();
     this.butPrint             = new OpenDental.UI.Button();
     this.panel1               = new System.Windows.Forms.Panel();
     this.button1              = new OpenDental.UI.Button();
     this.labelTotPages        = new System.Windows.Forms.Label();
     this.butBack              = new OpenDental.UI.Button();
     this.butFwd               = new OpenDental.UI.Button();
     this.butSetup             = new OpenDental.UI.Button();
     this.pd2                  = new System.Drawing.Printing.PrintDocument();
     this.setupDialog2         = new System.Windows.Forms.PageSetupDialog();
     this.ToolBarMain          = new OpenDental.UI.ODToolBar();
     this.imageListMain        = new System.Windows.Forms.ImageList(this.components);
     this.printPreviewControl2 = new System.Windows.Forms.PrintPreviewControl();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // butClose
     //
     this.butClose.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butClose.Autosize            = true;
     this.butClose.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butClose.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butClose.CornerRadius        = 4F;
     this.butClose.Location            = new System.Drawing.Point(239, 2);
     this.butClose.Name     = "butClose";
     this.butClose.Size     = new System.Drawing.Size(75, 23);
     this.butClose.TabIndex = 1;
     this.butClose.Text     = "&Close";
     //
     // butPrint
     //
     this.butPrint.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butPrint.Autosize            = true;
     this.butPrint.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butPrint.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butPrint.CornerRadius        = 4F;
     this.butPrint.Location            = new System.Drawing.Point(1, 2);
     this.butPrint.Name     = "butPrint";
     this.butPrint.Size     = new System.Drawing.Size(75, 23);
     this.butPrint.TabIndex = 2;
     this.butPrint.Text     = "&Print";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.button1);
     this.panel1.Controls.Add(this.labelTotPages);
     this.panel1.Controls.Add(this.butBack);
     this.panel1.Controls.Add(this.butFwd);
     this.panel1.Controls.Add(this.butSetup);
     this.panel1.Controls.Add(this.butPrint);
     this.panel1.Controls.Add(this.butClose);
     this.panel1.Location = new System.Drawing.Point(-1, 178);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(831, 35);
     this.panel1.TabIndex = 4;
     this.panel1.Visible  = false;
     //
     // button1
     //
     this.button1.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.button1.Autosize            = true;
     this.button1.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.button1.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.button1.CornerRadius        = 4F;
     this.button1.Location            = new System.Drawing.Point(501, 8);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 4;
     this.button1.Text     = "Test";
     this.button1.Visible  = false;
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // labelTotPages
     //
     this.labelTotPages.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.labelTotPages.Location  = new System.Drawing.Point(137, 4);
     this.labelTotPages.Name      = "labelTotPages";
     this.labelTotPages.Size      = new System.Drawing.Size(54, 18);
     this.labelTotPages.TabIndex  = 19;
     this.labelTotPages.Text      = "1 / 2";
     this.labelTotPages.TextAlign = System.Drawing.ContentAlignment.TopCenter;
     //
     // butBack
     //
     this.butBack.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butBack.Autosize            = true;
     this.butBack.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butBack.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butBack.CornerRadius        = 4F;
     this.butBack.Image    = global::OpenDental.Properties.Resources.Left;
     this.butBack.Location = new System.Drawing.Point(115, 1);
     this.butBack.Name     = "butBack";
     this.butBack.Size     = new System.Drawing.Size(18, 23);
     this.butBack.TabIndex = 20;
     //
     // butFwd
     //
     this.butFwd.AdjustImageLocation = new System.Drawing.Point(1, 0);
     this.butFwd.Autosize            = true;
     this.butFwd.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butFwd.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butFwd.CornerRadius        = 4F;
     this.butFwd.Image    = global::OpenDental.Properties.Resources.Right;
     this.butFwd.Location = new System.Drawing.Point(193, 1);
     this.butFwd.Name     = "butFwd";
     this.butFwd.Size     = new System.Drawing.Size(18, 23);
     this.butFwd.TabIndex = 21;
     //
     // butSetup
     //
     this.butSetup.AdjustImageLocation = new System.Drawing.Point(0, 0);
     this.butSetup.Autosize            = true;
     this.butSetup.BtnShape            = OpenDental.UI.enumType.BtnShape.Rectangle;
     this.butSetup.BtnStyle            = OpenDental.UI.enumType.XPStyle.Silver;
     this.butSetup.CornerRadius        = 4F;
     this.butSetup.Location            = new System.Drawing.Point(590, 2);
     this.butSetup.Name     = "butSetup";
     this.butSetup.Size     = new System.Drawing.Size(75, 23);
     this.butSetup.TabIndex = 3;
     this.butSetup.Text     = "&Setup";
     this.butSetup.Visible  = false;
     this.butSetup.Click   += new System.EventHandler(this.butSetup_Click);
     //
     // ToolBarMain
     //
     this.ToolBarMain.Dock         = System.Windows.Forms.DockStyle.Top;
     this.ToolBarMain.ImageList    = this.imageListMain;
     this.ToolBarMain.Location     = new System.Drawing.Point(0, 0);
     this.ToolBarMain.Name         = "ToolBarMain";
     this.ToolBarMain.Size         = new System.Drawing.Size(831, 25);
     this.ToolBarMain.TabIndex     = 5;
     this.ToolBarMain.ButtonClick += new OpenDental.UI.ODToolBarButtonClickEventHandler(this.ToolBarMain_ButtonClick);
     //
     // imageListMain
     //
     this.imageListMain.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListMain.ImageStream")));
     this.imageListMain.TransparentColor = System.Drawing.Color.Transparent;
     this.imageListMain.Images.SetKeyName(0, "");
     this.imageListMain.Images.SetKeyName(1, "");
     this.imageListMain.Images.SetKeyName(2, "");
     this.imageListMain.Images.SetKeyName(3, "");
     //
     // printPreviewControl2
     //
     this.printPreviewControl2.AutoZoom = false;
     this.printPreviewControl2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.printPreviewControl2.Location = new System.Drawing.Point(0, 0);
     this.printPreviewControl2.Name     = "printPreviewControl2";
     this.printPreviewControl2.Size     = new System.Drawing.Size(831, 570);
     this.printPreviewControl2.TabIndex = 6;
     //
     // FormReportLikeCrystal
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(831, 570);
     this.Controls.Add(this.ToolBarMain);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.printPreviewControl2);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name          = "FormReportOld2";
     this.ShowInTaskbar = false;
     this.Text          = "Report";
     this.WindowState   = System.Windows.Forms.FormWindowState.Maximized;
     this.Load         += new System.EventHandler(this.FormReport_Load);
     this.Layout       += new System.Windows.Forms.LayoutEventHandler(this.FormReport_Layout);
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
コード例 #54
0
        public static void Print_DataGridView(DataGridView dgv1)
        {
            System.Drawing.Printing.PageSettings    oPageSettings = new System.Drawing.Printing.PageSettings();
            System.Windows.Forms.PrintPreviewDialog ppDialog;
            System.Windows.Forms.PrintDialog        oPrintDialog = new System.Windows.Forms.PrintDialog();
            System.Windows.Forms.PageSetupDialog    oPageSetup   = new System.Windows.Forms.PageSetupDialog();
            try
            {
                dgv = dgv1;
                AvailableColumns.Clear();
                foreach (DataGridViewColumn c in dgv.Columns)
                {
                    if (!c.Visible)
                    {
                        continue;
                    }
                    AvailableColumns.Add(c.HeaderText);
                }
                PrintOptions dlg = new PrintOptions(AvailableColumns);
                if (dlg.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
                PrintTitle                = dlg.PrintTitle;
                PrintAllRows              = dlg.PrintAllRows;
                FitToPageWidth            = dlg.FitToPageWidth;
                SelectedColumns           = dlg.GetSelectedColumns();
                RowsPerPage               = 0;
                ppDialog                  = new PrintPreviewDialog();
                oPageSettings.Margins.Top = 30;
                oPageSetup.PageSettings   = oPageSettings;
                if (oPageSetup.ShowDialog() == DialogResult.OK)
                {
                    oPageSettings = oPageSetup.PageSettings;
                }
                oPrintDialog.Document = printDoc;
                if (oPrintDialog.ShowDialog() == DialogResult.OK)
                {
                    try
                    {
                        //Ensure the correct PrinterSettings object is used
                        oPageSettings.PrinterSettings = printDoc.PrinterSettings;
                        //Assign PageSettings object to all pages
                        printDoc.DefaultPageSettings = oPageSettings;
                        ppDialog.Document            = printDoc;

                        // Showing the Print Preview Page
                        printDoc.BeginPrint += new System.Drawing.Printing.PrintEventHandler(PrintDoc_BeginPrint);
                        printDoc.PrintPage  += new System.Drawing.Printing.PrintPageEventHandler(PrintDoc_PrintPage);
                        if (ppDialog.ShowDialog() != DialogResult.OK)
                        {
                            printDoc.BeginPrint -= new System.Drawing.Printing.PrintEventHandler(PrintDoc_BeginPrint);
                            printDoc.PrintPage  -= new System.Drawing.Printing.PrintPageEventHandler(PrintDoc_PrintPage);
                            return;
                        }
                        // Printing the Documnet
                        printDoc.Print();
                        printDoc.BeginPrint -= new System.Drawing.Printing.PrintEventHandler(PrintDoc_BeginPrint);
                        printDoc.PrintPage  -= new System.Drawing.Printing.PrintPageEventHandler(PrintDoc_PrintPage);
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.ToString());
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            finally
            {
            }
        }
コード例 #55
0
 public PrinterForm(PageSetupDialog page_setup_dialog)
 {
     InitializeComponent();
     this.page_setup_dialog = page_setup_dialog;
 }
コード例 #56
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmMain));
     this.imageList1        = new System.Windows.Forms.ImageList(this.components);
     this.barLeftDockSite   = new DevComponents.DotNetBar.DockSite();
     this.barTopDockSite    = new DevComponents.DotNetBar.DockSite();
     this.dotNetBarManager1 = new DevComponents.DotNetBar.DotNetBarManager(this.components);
     this.barBottomDockSite = new DevComponents.DotNetBar.DockSite();
     this.barRightDockSite  = new DevComponents.DotNetBar.DockSite();
     this.tabStrip1         = new DevComponents.DotNetBar.TabStrip();
     this.printDoc          = new System.Drawing.Printing.PrintDocument();
     this.pageSetupDialog1  = new System.Windows.Forms.PageSetupDialog();
     this.SuspendLayout();
     //
     // imageList1
     //
     this.imageList1.ImageSize        = new System.Drawing.Size(16, 16);
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Magenta;
     //
     // barLeftDockSite
     //
     this.barLeftDockSite.AccessibleRole       = System.Windows.Forms.AccessibleRole.Window;
     this.barLeftDockSite.BackgroundImageAlpha = ((System.Byte)(255));
     this.barLeftDockSite.Dock     = System.Windows.Forms.DockStyle.Left;
     this.barLeftDockSite.Location = new System.Drawing.Point(0, 25);
     this.barLeftDockSite.Name     = "barLeftDockSite";
     this.barLeftDockSite.Size     = new System.Drawing.Size(0, 470);
     this.barLeftDockSite.TabIndex = 3;
     this.barLeftDockSite.TabStop  = false;
     //
     // barTopDockSite
     //
     this.barTopDockSite.AccessibleRole       = System.Windows.Forms.AccessibleRole.Window;
     this.barTopDockSite.BackgroundImageAlpha = ((System.Byte)(255));
     this.barTopDockSite.Dock     = System.Windows.Forms.DockStyle.Top;
     this.barTopDockSite.Location = new System.Drawing.Point(0, 0);
     this.barTopDockSite.Name     = "barTopDockSite";
     this.barTopDockSite.Size     = new System.Drawing.Size(819, 25);
     this.barTopDockSite.TabIndex = 1;
     this.barTopDockSite.TabStop  = false;
     //
     // dotNetBarManager1
     //
     this.dotNetBarManager1.BottomDockSite       = this.barBottomDockSite;
     this.dotNetBarManager1.DefinitionName       = "frmMain.dotNetBarManager1.xml";
     this.dotNetBarManager1.Images               = this.imageList1;
     this.dotNetBarManager1.LeftDockSite         = this.barLeftDockSite;
     this.dotNetBarManager1.MdiSystemItemVisible = false;
     this.dotNetBarManager1.ParentForm           = this;
     this.dotNetBarManager1.RightDockSite        = this.barRightDockSite;
     this.dotNetBarManager1.Style                 = DevComponents.DotNetBar.eDotNetBarStyle.Office2003;
     this.dotNetBarManager1.TopDockSite           = this.barTopDockSite;
     this.dotNetBarManager1.MouseLeave           += new System.EventHandler(this.dotNetBarManager1_MouseLeave);
     this.dotNetBarManager1.ContainerLoadControl += new System.EventHandler(this.ContainerLoadControl);
     this.dotNetBarManager1.ItemClick            += new System.EventHandler(this.BarItemClick);
     this.dotNetBarManager1.DockTabChange        += new DevComponents.DotNetBar.DotNetBarManager.DockTabChangeEventHandler(this.dotNetBarManager1_DockTabChange);
     this.dotNetBarManager1.MouseEnter           += new System.EventHandler(this.dotNetBarManager1_MouseEnter);
     this.dotNetBarManager1.DefinitionLoaded     += new System.EventHandler(this.ManagerDefinitionLoaded);
     this.dotNetBarManager1.PopupOpen            += new DevComponents.DotNetBar.DotNetBarManager.PopupOpenEventHandler(this.dotNetBarManager1_PopupOpen);
     //
     // barBottomDockSite
     //
     this.barBottomDockSite.AccessibleRole       = System.Windows.Forms.AccessibleRole.Window;
     this.barBottomDockSite.BackgroundImageAlpha = ((System.Byte)(255));
     this.barBottomDockSite.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.barBottomDockSite.Location = new System.Drawing.Point(0, 495);
     this.barBottomDockSite.Name     = "barBottomDockSite";
     this.barBottomDockSite.Size     = new System.Drawing.Size(819, 21);
     this.barBottomDockSite.TabIndex = 2;
     this.barBottomDockSite.TabStop  = false;
     //
     // barRightDockSite
     //
     this.barRightDockSite.AccessibleRole       = System.Windows.Forms.AccessibleRole.Window;
     this.barRightDockSite.BackgroundImageAlpha = ((System.Byte)(255));
     this.barRightDockSite.Dock     = System.Windows.Forms.DockStyle.Right;
     this.barRightDockSite.Location = new System.Drawing.Point(655, 25);
     this.barRightDockSite.Name     = "barRightDockSite";
     this.barRightDockSite.Size     = new System.Drawing.Size(164, 470);
     this.barRightDockSite.TabIndex = 4;
     this.barRightDockSite.TabStop  = false;
     //
     // tabStrip1
     //
     this.tabStrip1.CanReorderTabs     = true;
     this.tabStrip1.CloseButtonVisible = true;
     this.dotNetBarManager1.SetContextMenuEx(this.tabStrip1, "bTabContext");
     this.tabStrip1.Dock               = System.Windows.Forms.DockStyle.Top;
     this.tabStrip1.Location           = new System.Drawing.Point(0, 25);
     this.tabStrip1.MdiTabbedDocuments = true;
     this.tabStrip1.Name               = "tabStrip1";
     this.tabStrip1.SelectedTab        = null;
     this.tabStrip1.SelectedTabFont    = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.tabStrip1.Size               = new System.Drawing.Size(655, 28);
     this.tabStrip1.Style              = DevComponents.DotNetBar.eTabStripStyle.OneNote;
     this.tabStrip1.TabAlignment       = DevComponents.DotNetBar.eTabStripAlignment.Top;
     this.tabStrip1.TabIndex           = 6;
     this.tabStrip1.Text               = "tabStrip1";
     this.tabStrip1.VariableTabWidth   = false;
     //
     // printDoc
     //
     this.printDoc.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDoc_PrintPage);
     //
     // pageSetupDialog1
     //
     this.pageSetupDialog1.Document = this.printDoc;
     //
     // frmMain
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(819, 516);
     this.Controls.Add(this.tabStrip1);
     this.Controls.Add(this.barLeftDockSite);
     this.Controls.Add(this.barRightDockSite);
     this.Controls.Add(this.barTopDockSite);
     this.Controls.Add(this.barBottomDockSite);
     this.IsMdiContainer    = true;
     this.Name              = "frmMain";
     this.Text              = "票据打印";
     this.WindowState       = System.Windows.Forms.FormWindowState.Maximized;
     this.MdiChildActivate += new System.EventHandler(this.MdiChildActivated);
     this.Load             += new System.EventHandler(this.frmMain_Load);
     this.Move             += new System.EventHandler(this.frmMain_Move);
     this.ResumeLayout(false);
 }
コード例 #57
0
        /// <summary>
        /// Displays a Page Setup dialog box with the current page and print settings.
        /// </summary>
        public void ShowPageSetupDialog()
        {
            PageSetupDialog pageSetupDlg = new PageSetupDialog();
            pageSetupDlg.EnableMetric = true;
            pageSetupDlg.PageSettings = this.PageSettings;
            pageSetupDlg.AllowPrinter = true;

            if (pageSetupDlg.ShowDialog() == DialogResult.OK)
                this.PageSettings = pageSetupDlg.PageSettings;
        }
コード例 #58
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainForm));
     this.mainMenu           = new System.Windows.Forms.MainMenu();
     this.fileItem           = new System.Windows.Forms.MenuItem();
     this.newItem            = new System.Windows.Forms.MenuItem();
     this.openItem           = new System.Windows.Forms.MenuItem();
     this.menuItem8          = new System.Windows.Forms.MenuItem();
     this.saveItem           = new System.Windows.Forms.MenuItem();
     this.saveAsItem         = new System.Windows.Forms.MenuItem();
     this.bitmapItem         = new System.Windows.Forms.MenuItem();
     this.menuItem5          = new System.Windows.Forms.MenuItem();
     this.pageSetupItem      = new System.Windows.Forms.MenuItem();
     this.printPreviewItem   = new System.Windows.Forms.MenuItem();
     this.printItem          = new System.Windows.Forms.MenuItem();
     this.menuItem6          = new System.Windows.Forms.MenuItem();
     this.exitItem           = new System.Windows.Forms.MenuItem();
     this.editItem           = new System.Windows.Forms.MenuItem();
     this.addFunctionItem    = new System.Windows.Forms.MenuItem();
     this.addDataItem        = new System.Windows.Forms.MenuItem();
     this.editLibraryItem    = new System.Windows.Forms.MenuItem();
     this.viewItem           = new System.Windows.Forms.MenuItem();
     this.rangeItem          = new System.Windows.Forms.MenuItem();
     this.optionItem         = new System.Windows.Forms.MenuItem();
     this.compilerItem       = new System.Windows.Forms.MenuItem();
     this.fitMenu            = new System.Windows.Forms.MenuItem();
     this.marquardtItem      = new System.Windows.Forms.MenuItem();
     this.helpMenu           = new System.Windows.Forms.MenuItem();
     this.helpContents       = new System.Windows.Forms.MenuItem();
     this.openFileDialog     = new System.Windows.Forms.OpenFileDialog();
     this.saveFileDialog     = new System.Windows.Forms.SaveFileDialog();
     this.newFileDialog      = new System.Windows.Forms.SaveFileDialog();
     this.printDialog        = new System.Windows.Forms.PrintDialog();
     this.printPreviewDialog = new System.Windows.Forms.PrintPreviewDialog();
     this.pageSetupDialog    = new System.Windows.Forms.PageSetupDialog();
     this.statusBar          = new System.Windows.Forms.StatusBar();
     this.progressBar        = new System.Windows.Forms.ProgressBar();
     this.graph        = new FPlotLibrary.GraphControl();
     this.xLabel       = new System.Windows.Forms.TextBox();
     this.yLabel       = new System.Windows.Forms.TextBox();
     this.helpProvider = new System.Windows.Forms.HelpProvider();
     this.helpAbout    = new System.Windows.Forms.MenuItem();
     this.SuspendLayout();
     //
     // mainMenu
     //
     this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.fileItem,
         this.editItem,
         this.viewItem,
         this.fitMenu,
         this.helpMenu
     });
     //
     // fileItem
     //
     this.fileItem.Index = 0;
     this.fileItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.newItem,
         this.openItem,
         this.menuItem8,
         this.saveItem,
         this.saveAsItem,
         this.bitmapItem,
         this.menuItem5,
         this.pageSetupItem,
         this.printPreviewItem,
         this.printItem,
         this.menuItem6,
         this.exitItem
     });
     this.fileItem.Text = "&File";
     //
     // newItem
     //
     this.newItem.Index  = 0;
     this.newItem.Text   = "&New...";
     this.newItem.Click += new System.EventHandler(this.newItem_Click);
     //
     // openItem
     //
     this.openItem.Index  = 1;
     this.openItem.Text   = "&Open...";
     this.openItem.Click += new System.EventHandler(this.openItem_Click);
     //
     // menuItem8
     //
     this.menuItem8.Index = 2;
     this.menuItem8.Text  = "-";
     //
     // saveItem
     //
     this.saveItem.Index  = 3;
     this.saveItem.Text   = "&Save";
     this.saveItem.Click += new System.EventHandler(this.saveItem_Click);
     //
     // saveAsItem
     //
     this.saveAsItem.Index  = 4;
     this.saveAsItem.Text   = "Save &as...";
     this.saveAsItem.Click += new System.EventHandler(this.saveAsItem_Click);
     //
     // bitmapItem
     //
     this.bitmapItem.Index  = 5;
     this.bitmapItem.Text   = "Save as &Image...";
     this.bitmapItem.Click += new System.EventHandler(this.bitmapClick);
     //
     // menuItem5
     //
     this.menuItem5.Index = 6;
     this.menuItem5.Text  = "-";
     //
     // pageSetupItem
     //
     this.pageSetupItem.Index  = 7;
     this.pageSetupItem.Text   = "Page set&up...";
     this.pageSetupItem.Click += new System.EventHandler(this.pageSetupClick);
     //
     // printPreviewItem
     //
     this.printPreviewItem.Index  = 8;
     this.printPreviewItem.Text   = "Print pre&view...";
     this.printPreviewItem.Click += new System.EventHandler(this.printPreviewClick);
     //
     // printItem
     //
     this.printItem.Index  = 9;
     this.printItem.Text   = "&Print...";
     this.printItem.Click += new System.EventHandler(this.printClick);
     //
     // menuItem6
     //
     this.menuItem6.Index = 10;
     this.menuItem6.Text  = "-";
     //
     // exitItem
     //
     this.exitItem.Index  = 11;
     this.exitItem.Text   = "E&xit";
     this.exitItem.Click += new System.EventHandler(this.exitClick);
     //
     // editItem
     //
     this.editItem.Index = 1;
     this.editItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.addFunctionItem,
         this.addDataItem,
         this.editLibraryItem
     });
     this.editItem.Text = "&Edit";
     //
     // addFunctionItem
     //
     this.addFunctionItem.Index  = 0;
     this.addFunctionItem.Text   = "Add &function...";
     this.addFunctionItem.Click += new System.EventHandler(this.addFunctionClick);
     //
     // addDataItem
     //
     this.addDataItem.Index  = 1;
     this.addDataItem.Text   = "Add &data...";
     this.addDataItem.Click += new System.EventHandler(this.dataClick);
     //
     // editLibraryItem
     //
     this.editLibraryItem.Index  = 2;
     this.editLibraryItem.Text   = "&Edit library...";
     this.editLibraryItem.Click += new System.EventHandler(this.libraryClick);
     //
     // viewItem
     //
     this.viewItem.Index = 2;
     this.viewItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.rangeItem,
         this.optionItem,
         this.compilerItem
     });
     this.viewItem.Text = "&Options";
     //
     // rangeItem
     //
     this.rangeItem.Index  = 0;
     this.rangeItem.Text   = "Set view &range...";
     this.rangeItem.Click += new System.EventHandler(this.setRangeClick);
     //
     // optionItem
     //
     this.optionItem.Index  = 1;
     this.optionItem.Text   = "&Options...";
     this.optionItem.Click += new System.EventHandler(this.optionItem_Click);
     //
     // compilerItem
     //
     this.compilerItem.Index  = 2;
     this.compilerItem.Text   = "&Compiler options...";
     this.compilerItem.Click += new System.EventHandler(this.compilerClick);
     //
     // fitMenu
     //
     this.fitMenu.Index = 3;
     this.fitMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.marquardtItem
     });
     this.fitMenu.Text = "Fit &data";
     //
     // marquardtItem
     //
     this.marquardtItem.Index  = 0;
     this.marquardtItem.Text   = "&Fit...";
     this.marquardtItem.Click += new System.EventHandler(this.marquardtClick);
     //
     // helpMenu
     //
     this.helpMenu.Index = 4;
     this.helpMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.helpContents,
         this.helpAbout
     });
     this.helpMenu.Text = "&Help";
     //
     // helpContents
     //
     this.helpContents.Index  = 0;
     this.helpContents.Text   = "&Contents...";
     this.helpContents.Click += new System.EventHandler(this.helpContentsClick);
     //
     // openFileDialog
     //
     this.openFileDialog.DefaultExt = "*.fplot";
     this.openFileDialog.Filter     = "Plot files (*.fplot)|*.fplot";
     this.openFileDialog.Title      = "Open Function";
     //
     // saveFileDialog
     //
     this.saveFileDialog.DefaultExt = "*.fplot";
     this.saveFileDialog.Filter     = "Plot files (*.fplot)|*.fplot";
     this.saveFileDialog.Title      = "Save Function";
     //
     // newFileDialog
     //
     this.newFileDialog.DefaultExt = "*.fplot";
     this.newFileDialog.Filter     = "Function files (*.fplot)|*.fplot";
     this.newFileDialog.Title      = "New Function";
     //
     // printPreviewDialog
     //
     this.printPreviewDialog.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.printPreviewDialog.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.printPreviewDialog.ClientSize        = new System.Drawing.Size(400, 300);
     this.printPreviewDialog.Enabled           = true;
     this.printPreviewDialog.Icon            = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog.Icon")));
     this.printPreviewDialog.Location        = new System.Drawing.Point(633, 17);
     this.printPreviewDialog.MinimumSize     = new System.Drawing.Size(375, 250);
     this.printPreviewDialog.Name            = "printPreviewDialog";
     this.printPreviewDialog.TransparencyKey = System.Drawing.Color.Empty;
     this.printPreviewDialog.Visible         = false;
     //
     // statusBar
     //
     this.statusBar.Location = new System.Drawing.Point(0, 418);
     this.statusBar.Name     = "statusBar";
     this.statusBar.Size     = new System.Drawing.Size(688, 22);
     this.statusBar.TabIndex = 0;
     //
     // progressBar
     //
     this.progressBar.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.progressBar.Location = new System.Drawing.Point(537, 424);
     this.progressBar.Name     = "progressBar";
     this.progressBar.Size     = new System.Drawing.Size(136, 16);
     this.progressBar.Step     = 1;
     this.progressBar.TabIndex = 1;
     //
     // graph
     //
     this.graph.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                | System.Windows.Forms.AnchorStyles.Left)
                                                               | System.Windows.Forms.AnchorStyles.Right)));
     this.graph.BackColor = System.Drawing.Color.White;
     this.graph.Border    = true;
     this.graph.Cursor    = System.Windows.Forms.Cursors.Cross;
     this.graph.FixYtoX   = false;
     this.graph.Legend    = false;
     this.graph.Location  = new System.Drawing.Point(0, 0);
     this.graph.Name      = "graph";
     this.graph.Size      = new System.Drawing.Size(688, 419);
     this.graph.TabIndex  = 8;
     this.graph.x0        = -1;
     this.graph.x1        = 1;
     this.graph.xAxis     = false;
     this.graph.xGrid     = false;
     this.graph.xRaster   = true;
     this.graph.xScale    = true;
     this.graph.y0        = -1;
     this.graph.y1        = 1;
     this.graph.yAxis     = false;
     this.graph.yGrid     = false;
     this.graph.yRaster   = true;
     this.graph.yScale    = true;
     this.graph.z0        = -1;
     this.graph.z1        = 1;
     this.graph.zScale    = true;
     //
     // xLabel
     //
     this.xLabel.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.xLabel.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.xLabel.Location    = new System.Drawing.Point(0, 423);
     this.xLabel.Name        = "xLabel";
     this.xLabel.ReadOnly    = true;
     this.xLabel.Size        = new System.Drawing.Size(133, 13);
     this.xLabel.TabIndex    = 9;
     this.xLabel.Text        = "x = 0";
     this.xLabel.WordWrap    = false;
     //
     // yLabel
     //
     this.yLabel.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.yLabel.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.yLabel.Location    = new System.Drawing.Point(140, 423);
     this.yLabel.Name        = "yLabel";
     this.yLabel.ReadOnly    = true;
     this.yLabel.Size        = new System.Drawing.Size(133, 13);
     this.yLabel.TabIndex    = 10;
     this.yLabel.Text        = "y = 0";
     this.yLabel.WordWrap    = false;
     //
     // helpAbout
     //
     this.helpAbout.Index  = 1;
     this.helpAbout.Text   = "&About...";
     this.helpAbout.Click += new System.EventHandler(this.helpAbout_Click);
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(688, 440);
     this.Controls.Add(this.yLabel);
     this.Controls.Add(this.xLabel);
     this.Controls.Add(this.graph);
     this.Controls.Add(this.progressBar);
     this.Controls.Add(this.statusBar);
     this.Icon        = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Menu        = this.mainMenu;
     this.MinimumSize = new System.Drawing.Size(416, 152);
     this.Name        = "MainForm";
     this.Text        = "Function Plotter";
     this.ResumeLayout(false);
 }
コード例 #59
0
                public virtual Lfx.Types.OperationResult OnPrint(bool selectPrinter)
                {
                        if (Listado.Items.Count == 0)
                                return new Lfx.Types.FailureOperationResult("El listado está vacío");

                        Lazaro.Pres.Spreadsheet.Workbook Workbook = this.ToWorkbook();
                        Lazaro.Impresion.ImpresorListado Impresor = new Lazaro.Impresion.ImpresorListado(Workbook.Sheets[0], null);

                        if (selectPrinter) {
                                using (Lui.Printing.PrinterSelectionDialog SeleccionarImpresroa = new Lui.Printing.PrinterSelectionDialog()) {
                                        if (SeleccionarImpresroa.ShowDialog() == System.Windows.Forms.DialogResult.OK) {
                                                Impresor.Impresora = SeleccionarImpresroa.SelectedPrinter;
                                        } else {
                                                return new Lfx.Types.CancelOperationResult();
                                        }
                                }
                                using (PageSetupDialog PreferenciasDeImpresion = new PageSetupDialog()) {
                                        //PreferenciasDeImpresion.PrinterSettings = Impresor.PrinterSettings;
                                        PreferenciasDeImpresion.Document = Impresor;
                                        PreferenciasDeImpresion.AllowPrinter = true;
                                        PreferenciasDeImpresion.AllowPaper = true;
                                        if (PreferenciasDeImpresion.ShowDialog(this) == DialogResult.OK) {
                                                return Impresor.Imprimir();
                                        } else {
                                                return new Lfx.Types.CancelOperationResult();
                                        }
                                }
                        } else {
                                // Sin diálogo de selección de impresora
                                return Impresor.Imprimir();
                        }
                }
コード例 #60
0
ファイル: Form1.cs プロジェクト: oluwabukola/script
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
     this.mainMenu1           = new System.Windows.Forms.MainMenu();
     this.menuItem1           = new System.Windows.Forms.MenuItem();
     this.menuItem3           = new System.Windows.Forms.MenuItem();
     this.menuItem4           = new System.Windows.Forms.MenuItem();
     this.menuItem5           = new System.Windows.Forms.MenuItem();
     this.menuItem6           = new System.Windows.Forms.MenuItem();
     this.menuItem7           = new System.Windows.Forms.MenuItem();
     this.menuItem8           = new System.Windows.Forms.MenuItem();
     this.menuItem2           = new System.Windows.Forms.MenuItem();
     this.menuItem9           = new System.Windows.Forms.MenuItem();
     this.menuItem10          = new System.Windows.Forms.MenuItem();
     this.statusBar1          = new System.Windows.Forms.StatusBar();
     this.openFileDialog1     = new System.Windows.Forms.OpenFileDialog();
     this.text_Box1           = new Salford.VisualClearWin.Text_Box();
     this.saveFileDialog1     = new System.Windows.Forms.SaveFileDialog();
     this.printDocument1      = new System.Drawing.Printing.PrintDocument();
     this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
     this.pageSetupDialog1    = new System.Windows.Forms.PageSetupDialog();
     this.colorDialog1        = new System.Windows.Forms.ColorDialog();
     this.printDialog1        = new System.Windows.Forms.PrintDialog();
     this.fontDialog1         = new System.Windows.Forms.FontDialog();
     this.drawing_Panel1      = new Salford.VisualClearWin.Drawing_Panel();
     this.text_Box2           = new Salford.VisualClearWin.Text_Box();
     this.SuspendLayout();
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1,
         this.menuItem2
     });
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem3,
         this.menuItem4,
         this.menuItem5,
         this.menuItem6,
         this.menuItem7,
         this.menuItem8
     });
     this.menuItem1.Text = "File";
     //
     // menuItem3
     //
     this.menuItem3.Index = 0;
     this.menuItem3.Text  = "Open|Calls the Open dialog";
     //
     // menuItem4
     //
     this.menuItem4.Index = 1;
     this.menuItem4.Text  = "Save As|Calls the Save As dialog";
     //
     // menuItem5
     //
     this.menuItem5.Index = 2;
     this.menuItem5.Text  = "-";
     //
     // menuItem6
     //
     this.menuItem6.Index = 3;
     this.menuItem6.Text  = "Print Preview|Calls the Print Priview dialog";
     //
     // menuItem7
     //
     this.menuItem7.Index = 4;
     this.menuItem7.Text  = "Page Setup|Calls the Page Setup dialog";
     //
     // menuItem8
     //
     this.menuItem8.Index = 5;
     this.menuItem8.Text  = "Print|Calls the Print dialog";
     //
     // menuItem2
     //
     this.menuItem2.Index = 1;
     this.menuItem2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem9,
         this.menuItem10
     });
     this.menuItem2.Text = "Format";
     //
     // menuItem9
     //
     this.menuItem9.Index = 0;
     this.menuItem9.Text  = "Color|Calls the Choose color dialog";
     //
     // menuItem10
     //
     this.menuItem10.Index = 1;
     this.menuItem10.Text  = "Font|Calls the Choose font dialog";
     //
     // statusBar1
     //
     this.statusBar1.Location = new System.Drawing.Point(0, 169);
     this.statusBar1.Name     = "statusBar1";
     this.statusBar1.Size     = new System.Drawing.Size(216, 16);
     this.statusBar1.TabIndex = 0;
     this.statusBar1.Text     = "Ready";
     //
     // openFileDialog1
     //
     this.openFileDialog1.Multiselect = true;
     //
     // text_Box1
     //
     this.text_Box1.Location  = new System.Drawing.Point(8, 8);
     this.text_Box1.Multiline = true;
     this.text_Box1.Name      = "text_Box1";
     this.text_Box1.Pivoting  = Salford.VisualClearWin.Pivot.Horizontal;
     this.text_Box1.ReadOnly  = true;
     this.text_Box1.Size      = new System.Drawing.Size(200, 112);
     this.text_Box1.TabIndex  = 1;
     this.text_Box1.Text      = "";
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.FileName = "doc1";
     //
     // printPreviewDialog1
     //
     this.printPreviewDialog1.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.ClientSize        = new System.Drawing.Size(400, 300);
     this.printPreviewDialog1.Document          = this.printDocument1;
     this.printPreviewDialog1.Enabled           = true;
     this.printPreviewDialog1.Icon            = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon")));
     this.printPreviewDialog1.Location        = new System.Drawing.Point(256, 17);
     this.printPreviewDialog1.MaximumSize     = new System.Drawing.Size(0, 0);
     this.printPreviewDialog1.Name            = "printPreviewDialog1";
     this.printPreviewDialog1.Opacity         = 1;
     this.printPreviewDialog1.TransparencyKey = System.Drawing.Color.Empty;
     this.printPreviewDialog1.Visible         = false;
     //
     // pageSetupDialog1
     //
     this.pageSetupDialog1.Document = this.printDocument1;
     //
     // printDialog1
     //
     this.printDialog1.Document = this.printDocument1;
     //
     // fontDialog1
     //
     this.fontDialog1.ShowColor = true;
     //
     // drawing_Panel1
     //
     this.drawing_Panel1.BackColor   = System.Drawing.Color.Black;
     this.drawing_Panel1.BitmapSize  = new System.Drawing.Size(0, 0);
     this.drawing_Panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.drawing_Panel1.FillColor   = System.Drawing.Color.Black;
     this.drawing_Panel1.LineColor   = System.Drawing.Color.Black;
     this.drawing_Panel1.Location    = new System.Drawing.Point(8, 128);
     this.drawing_Panel1.Name        = "drawing_Panel1";
     this.drawing_Panel1.Size        = new System.Drawing.Size(72, 24);
     this.drawing_Panel1.StringColor = System.Drawing.Color.Black;
     this.drawing_Panel1.TabIndex    = 2;
     //
     // text_Box2
     //
     this.text_Box2.ForeColor = System.Drawing.Color.Black;
     this.text_Box2.Location  = new System.Drawing.Point(96, 128);
     this.text_Box2.Name      = "text_Box2";
     this.text_Box2.Pivoting  = Salford.VisualClearWin.Pivot.Horizontal;
     this.text_Box2.Size      = new System.Drawing.Size(112, 20);
     this.text_Box2.TabIndex  = 3;
     this.text_Box2.Text      = "Font Sample";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(216, 185);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.text_Box2,
         this.drawing_Panel1,
         this.text_Box1,
         this.statusBar1
     });
     this.MaximizeBox   = false;
     this.Menu          = this.mainMenu1;
     this.MinimizeBox   = false;
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Common dialogs";
     this.ResumeLayout(false);
 }