示例#1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="document"></param>
 public PreviewForm(TreeViewPrintDocument document)
 {
     InitializeComponent();
     this.ShowInTaskbar = false;
     //this.panel7.Visible = false;
     printDocument = document;
     this.printPreviewControl1.Zoom                 = 0.5;
     this.printPreviewControl1.StartPage            = 0;
     this.printPreviewControl1.Document             = document;
     this.printPreviewControl1.Document.BeginPrint += Document_BeginPrint;
     this.printPreviewControl1.Document.PrintPage  += Document_PrintPage;
     this.printPreviewControl1.Document.EndPrint   += Document_EndPrint;
     this.scrollersFrame3.AttachedTo                = this.printPreviewControl1;
     this.scrollersFrame3.VisualStyle               = ScrollBarCustomDrawStyles.Metro;
     this.Load += new EventHandler(PreviewForm_Load);
     this.groupBarItem4.Visible     = false;
     this.buttonAdv1.ThemeName      = this.buttonAdv16.ThemeName = this.buttonAdv10.ThemeName = this.buttonAdv22.ThemeName = "Office2019Colorful";
     this.buttonAdv2.ThemeName      = this.buttonAdv7.ThemeName = this.buttonAdv11.ThemeName = this.buttonAdv14.ThemeName = "Office2019Colorful";
     this.buttonAdv6.ThemeName      = this.buttonAdv8.ThemeName = this.buttonAdv12.ThemeName = this.buttonAdv15.ThemeName = "Office2019Colorful";
     this.buttonAdv4.ThemeName      = this.buttonAdv9.ThemeName = this.buttonAdv13.ThemeName = this.buttonAdv16.ThemeName = "Office2019Colorful";
     this.buttonAdv20.ThemeName     = this.buttonAdv22.ThemeName = this.buttonAdv19.ThemeName = this.buttonAdv18.ThemeName = this.buttonAdv17.ThemeName = "Office2019Colorful";
     this.groupBar1.ThemeName       = "Office2019Colorful";
     this.integerTextBox1.ThemeName = "Office2019Colorful";
     this.trackBarEx1.BackColor     = Color.White;
     //this.trackBarEx1.Style = TrackBarEx.Theme.Office2016White;
     populateComboBoxItems();
     this.sfomboBox1.ThemeName              = this.sfomboBox2.ThemeName = this.sfomboBox3.ThemeName = "Office2019Colorful";
     this.textBoxExt1.ThemeName             = this.textBoxExt2.ThemeName = this.integerTextBox1.ThemeName = this.integerTextBox2.ThemeName = this.integerTextBox3.ThemeName = "Office2019Colorful";
     this.colorPickerButton1.ThemeName      = this.colorPickerButton2.ThemeName = this.radioButtonAdv1.ThemeName = "Office2019Colorful";
     this.radioButtonAdv1.ThemeName         = this.radioButtonAdv2.ThemeName = this.radioButtonAdv3.ThemeName = "Office2019Colorful";
     this.radioButtonAdv4.ThemeName         = this.radioButtonAdv5.ThemeName = this.radioButtonAdv6.ThemeName = "Office2019Colorful";
     this.numericUpDownExt1.VisualStyle     = this.numericUpDownExt2.VisualStyle = this.numericUpDownExt3.VisualStyle = this.numericUpDownExt4.VisualStyle = this.numericUpDownExt5.VisualStyle =
         this.numericUpDownExt6.VisualStyle = this.numericUpDownExt7.VisualStyle = this.numericUpDownExt8.VisualStyle = VisualStyle.Office2016Colorful;
     this.scrollersFrame1.ThemeName         = this.scrollersFrame2.ThemeName = this.scrollersFrame3.ThemeName = "Office2019Colorful";
 }
示例#2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="document"></param>
 public PreviewForm(TreeViewPrintDocument document)
 {
     InitializeComponent();
     this.ShowInTaskbar = false;
     //this.panel7.Visible = false;
     printDocument = document;
     this.printPreviewControl1.Zoom                 = 0.5;
     this.printPreviewControl1.StartPage            = 0;
     this.printPreviewControl1.Document             = document;
     this.printPreviewControl1.Document.BeginPrint += Document_BeginPrint;
     this.printPreviewControl1.Document.PrintPage  += Document_PrintPage;
     this.printPreviewControl1.Document.EndPrint   += Document_EndPrint;
     this.scrollersFrame3.AttachedTo                = this.printPreviewControl1;
     this.scrollersFrame3.VisualStyle               = ScrollBarCustomDrawStyles.Metro;
     this.Load += new EventHandler(PreviewForm_Load);
     this.groupBarItem4.Visible = false;
 }
示例#3
0
        internal Form1()
        {
            InitializeComponent();

            //this.MinimumSize = this.Size;
            colorTable.ArrowNormal  = Color.LightGray;
            colorTable.ArrowHovered = ColorTranslator.FromHtml("#16A5DC");
            this.treeViewAdv1.MetroArrowColorTable = colorTable;
            this.treeViewAdv1.UpdateStyles();
            printDocument = new TreeViewPrintDocument(this.treeViewAdv1);
            this.Load    += Form1_Load;
            this.gridControl1.RowCount = 10;
            this.gridControl2.RowCount = 10;
            this.gridControl3.RowCount = 10;
            #region Default Grid Values

            this.gridControl1[0, 0].Text  = "S.No";
            this.gridControl2[0, 0].Text  = "S.No";
            this.gridControl3[0, 0].Text  = "S.No";
            this.gridControl1[0, 1].Text  = "Country";
            this.gridControl2[0, 1].Text  = "Country";
            this.gridControl3[0, 1].Text  = "Country";
            this.gridControl1[0, 2].Text  = "Year";
            this.gridControl2[0, 2].Text  = "Year";
            this.gridControl3[0, 2].Text  = "Year";
            this.gridControl1[0, 3].Text  = "Population";
            this.gridControl2[0, 3].Text  = "Population";
            this.gridControl3[0, 3].Text  = "Population";
            this.gridControl1[1, 1].Text  = "Mexico";
            this.gridControl2[1, 1].Text  = "Belize";
            this.gridControl3[1, 1].Text  = "Brazil";
            this.gridControl1[2, 1].Text  = "Mexico";
            this.gridControl2[2, 1].Text  = "Belize";
            this.gridControl3[2, 1].Text  = "Brazil";
            this.gridControl1[3, 1].Text  = "Mexico";
            this.gridControl2[3, 1].Text  = "Belize";
            this.gridControl3[3, 1].Text  = "Brazil";
            this.gridControl1[4, 1].Text  = "Mexico";
            this.gridControl2[4, 1].Text  = "Belize";
            this.gridControl3[4, 1].Text  = "Brazil";
            this.gridControl1[5, 1].Text  = "Mexico";
            this.gridControl2[5, 1].Text  = "Belize";
            this.gridControl3[5, 1].Text  = "Brazil";
            this.gridControl1[6, 1].Text  = "Mexico";
            this.gridControl2[6, 1].Text  = "Belize";
            this.gridControl3[6, 1].Text  = "Brazil";
            this.gridControl1[7, 1].Text  = "Mexico";
            this.gridControl2[7, 1].Text  = "Belize";
            this.gridControl3[7, 1].Text  = "Brazil";
            this.gridControl1[8, 1].Text  = "Mexico";
            this.gridControl2[8, 1].Text  = "Belize";
            this.gridControl3[8, 1].Text  = "Brazil";
            this.gridControl1[9, 1].Text  = "Mexico";
            this.gridControl2[9, 1].Text  = "Belize";
            this.gridControl3[9, 1].Text  = "Brazil";
            this.gridControl1[10, 1].Text = "Mexico";
            this.gridControl2[10, 1].Text = "Belize";
            this.gridControl3[10, 1].Text = "Brazil";

            this.gridControl1[1, 2].Text  = "2005";
            this.gridControl2[1, 2].Text  = "2005";
            this.gridControl3[1, 2].Text  = "2005";
            this.gridControl1[2, 2].Text  = "2006";
            this.gridControl2[2, 2].Text  = "2006";
            this.gridControl3[2, 2].Text  = "2006";
            this.gridControl1[3, 2].Text  = "2007";
            this.gridControl2[3, 2].Text  = "2007";
            this.gridControl3[3, 2].Text  = "2007";
            this.gridControl1[4, 2].Text  = "2008";
            this.gridControl2[4, 2].Text  = "2008";
            this.gridControl3[4, 2].Text  = "2008";
            this.gridControl1[5, 2].Text  = "2009";
            this.gridControl2[5, 2].Text  = "2009";
            this.gridControl3[5, 2].Text  = "2009";
            this.gridControl1[6, 2].Text  = "2010";
            this.gridControl2[6, 2].Text  = "2010";
            this.gridControl3[6, 2].Text  = "2010";
            this.gridControl1[7, 2].Text  = "2011";
            this.gridControl2[7, 2].Text  = "2011";
            this.gridControl3[7, 2].Text  = "2011";
            this.gridControl1[8, 2].Text  = "2012";
            this.gridControl2[8, 2].Text  = "2012";
            this.gridControl3[8, 2].Text  = "2012";
            this.gridControl1[9, 2].Text  = "2013";
            this.gridControl2[9, 2].Text  = "2013";
            this.gridControl3[9, 2].Text  = "2013";
            this.gridControl1[10, 2].Text = "2014";
            this.gridControl2[10, 2].Text = "2014";
            this.gridControl3[10, 2].Text = "2014";

            this.gridControl1[1, 3].Text  = "10.1 Million";
            this.gridControl2[1, 3].Text  = "11.1 Million";
            this.gridControl3[1, 3].Text  = "17.1 Million";
            this.gridControl1[2, 3].Text  = "25.3 Million";
            this.gridControl2[2, 3].Text  = "29.3 Million";
            this.gridControl3[2, 3].Text  = "28.3 Million";
            this.gridControl1[3, 3].Text  = "100.1 Million";
            this.gridControl2[3, 3].Text  = "190.1 Million";
            this.gridControl3[3, 3].Text  = "150.1 Million";
            this.gridControl1[4, 3].Text  = "1.2 Billion";
            this.gridControl2[4, 3].Text  = "1.3 Billion";
            this.gridControl3[4, 3].Text  = "1.1 Billion";
            this.gridControl1[5, 3].Text  = "224.3 Million";
            this.gridControl2[5, 3].Text  = "194.3 Million";
            this.gridControl3[5, 3].Text  = "294.3 Million";
            this.gridControl1[6, 3].Text  = "678 Million";
            this.gridControl2[6, 3].Text  = "456 Million";
            this.gridControl3[6, 3].Text  = "374 Million";
            this.gridControl1[7, 3].Text  = "389.3 Million";
            this.gridControl2[7, 3].Text  = "569.3 Million";
            this.gridControl3[7, 3].Text  = "239.3 Million";
            this.gridControl1[8, 3].Text  = "686.6 Million";
            this.gridControl2[8, 3].Text  = "676.6 Million";
            this.gridControl3[8, 3].Text  = "786.6 Million";
            this.gridControl1[9, 3].Text  = "891.2 Million";
            this.gridControl2[9, 3].Text  = "861.2 Million";
            this.gridControl3[9, 3].Text  = "781.2 Million";
            this.gridControl1[10, 3].Text = "719 Million";
            this.gridControl2[10, 3].Text = "709 Million";
            this.gridControl3[10, 3].Text = "711 Million";
            this.treeViewAdv1.Nodes[0].Nodes[0].Nodes[2].Nodes[0].Height = 222;
            this.treeViewAdv1.Nodes[0].Nodes[1].Nodes[2].Nodes[0].Height = 222;
            this.treeViewAdv1.Nodes[0].Nodes[2].Nodes[2].Nodes[0].Height = 222;
            this.treeViewAdv1.Nodes[0].Nodes[0].Nodes[2].Nodes[0].CustomControl.Location = new Point(2, 2);
            this.gridControl1.HScrollBehavior = Syncfusion.Windows.Forms.Grid.GridScrollbarMode.Disabled;
            this.gridControl2.HScrollBehavior = Syncfusion.Windows.Forms.Grid.GridScrollbarMode.Disabled;
            this.gridControl3.HScrollBehavior = Syncfusion.Windows.Forms.Grid.GridScrollbarMode.Disabled;
            populateComboBoxItems();
            sfComboBox1.SelectedIndex          = 0;
            sfComboBox2.SelectedIndex          = 0;
            sfComboBox3.SelectedIndex          = 0;
            this.dateTimePickerAdv1.Value      = DateTime.Now;
            this.dateTimePickerAdv2.Value      = DateTime.Now;
            this.dateTimePickerAdv3.Value      = DateTime.Now;
            this.treeViewAdv1.ThemeName        = "Office2019Colorful";
            this.sfComboBox1.ThemeName         = "Office2019Colorful";
            this.sfComboBox2.ThemeName         = "Office2019Colorful";
            this.sfComboBox3.ThemeName         = "Office2019Colorful";
            this.gridControl1.GridVisualStyles = GridVisualStyles.Office2016Colorful;
            this.gridControl2.GridVisualStyles = GridVisualStyles.Office2016Colorful;
            this.gridControl3.GridVisualStyles = GridVisualStyles.Office2016Colorful;
            this.dateTimePickerAdv1.ThemeName  = "Office2019Colorful";
            this.dateTimePickerAdv2.ThemeName  = "Office2019Colorful";
            this.dateTimePickerAdv3.ThemeName  = "Office2019Colorful";
            this.buttonAdv1.ThemeName          = "Office2019Colorful";
            this.buttonAdv2.ThemeName          = "Office2019Colorful";
            #endregion
        }
示例#4
0
        internal Form1()
        {
            InitializeComponent();

            this.CaptionFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            //this.MinimumSize = this.Size;
            colorTable.ArrowNormal  = Color.LightGray;
            colorTable.ArrowHovered = ColorTranslator.FromHtml("#16A5DC");
            this.treeViewAdv1.MetroArrowColorTable = colorTable;
            this.treeViewAdv1.UpdateStyles();
            printDocument = new TreeViewPrintDocument(this.treeViewAdv1);
            this.Load    += Form1_Load;
            this.gridControl1.RowCount = 10;
            this.gridControl2.RowCount = 10;
            this.gridControl3.RowCount = 10;
            #region Default Grid Values

            this.gridControl1[0, 0].Text  = "S.No";
            this.gridControl2[0, 0].Text  = "S.No";
            this.gridControl3[0, 0].Text  = "S.No";
            this.gridControl1[0, 1].Text  = "Country";
            this.gridControl2[0, 1].Text  = "Country";
            this.gridControl3[0, 1].Text  = "Country";
            this.gridControl1[0, 2].Text  = "Year";
            this.gridControl2[0, 2].Text  = "Year";
            this.gridControl3[0, 2].Text  = "Year";
            this.gridControl1[0, 3].Text  = "Population";
            this.gridControl2[0, 3].Text  = "Population";
            this.gridControl3[0, 3].Text  = "Population";
            this.gridControl1[1, 1].Text  = "Mexico";
            this.gridControl2[1, 1].Text  = "Belize";
            this.gridControl3[1, 1].Text  = "Brazil";
            this.gridControl1[2, 1].Text  = "Mexico";
            this.gridControl2[2, 1].Text  = "Belize";
            this.gridControl3[2, 1].Text  = "Brazil";
            this.gridControl1[3, 1].Text  = "Mexico";
            this.gridControl2[3, 1].Text  = "Belize";
            this.gridControl3[3, 1].Text  = "Brazil";
            this.gridControl1[4, 1].Text  = "Mexico";
            this.gridControl2[4, 1].Text  = "Belize";
            this.gridControl3[4, 1].Text  = "Brazil";
            this.gridControl1[5, 1].Text  = "Mexico";
            this.gridControl2[5, 1].Text  = "Belize";
            this.gridControl3[5, 1].Text  = "Brazil";
            this.gridControl1[6, 1].Text  = "Mexico";
            this.gridControl2[6, 1].Text  = "Belize";
            this.gridControl3[6, 1].Text  = "Brazil";
            this.gridControl1[7, 1].Text  = "Mexico";
            this.gridControl2[7, 1].Text  = "Belize";
            this.gridControl3[7, 1].Text  = "Brazil";
            this.gridControl1[8, 1].Text  = "Mexico";
            this.gridControl2[8, 1].Text  = "Belize";
            this.gridControl3[8, 1].Text  = "Brazil";
            this.gridControl1[9, 1].Text  = "Mexico";
            this.gridControl2[9, 1].Text  = "Belize";
            this.gridControl3[9, 1].Text  = "Brazil";
            this.gridControl1[10, 1].Text = "Mexico";
            this.gridControl2[10, 1].Text = "Belize";
            this.gridControl3[10, 1].Text = "Brazil";

            this.gridControl1[1, 2].Text  = "2005";
            this.gridControl2[1, 2].Text  = "2005";
            this.gridControl3[1, 2].Text  = "2005";
            this.gridControl1[2, 2].Text  = "2006";
            this.gridControl2[2, 2].Text  = "2006";
            this.gridControl3[2, 2].Text  = "2006";
            this.gridControl1[3, 2].Text  = "2007";
            this.gridControl2[3, 2].Text  = "2007";
            this.gridControl3[3, 2].Text  = "2007";
            this.gridControl1[4, 2].Text  = "2008";
            this.gridControl2[4, 2].Text  = "2008";
            this.gridControl3[4, 2].Text  = "2008";
            this.gridControl1[5, 2].Text  = "2009";
            this.gridControl2[5, 2].Text  = "2009";
            this.gridControl3[5, 2].Text  = "2009";
            this.gridControl1[6, 2].Text  = "2010";
            this.gridControl2[6, 2].Text  = "2010";
            this.gridControl3[6, 2].Text  = "2010";
            this.gridControl1[7, 2].Text  = "2011";
            this.gridControl2[7, 2].Text  = "2011";
            this.gridControl3[7, 2].Text  = "2011";
            this.gridControl1[8, 2].Text  = "2012";
            this.gridControl2[8, 2].Text  = "2012";
            this.gridControl3[8, 2].Text  = "2012";
            this.gridControl1[9, 2].Text  = "2013";
            this.gridControl2[9, 2].Text  = "2013";
            this.gridControl3[9, 2].Text  = "2013";
            this.gridControl1[10, 2].Text = "2014";
            this.gridControl2[10, 2].Text = "2014";
            this.gridControl3[10, 2].Text = "2014";

            this.gridControl1[1, 3].Text  = "10.1 Million";
            this.gridControl2[1, 3].Text  = "10.1 Million";
            this.gridControl3[1, 3].Text  = "10.1 Million";
            this.gridControl1[2, 3].Text  = "29.3 Million";
            this.gridControl2[2, 3].Text  = "29.3 Million";
            this.gridControl3[2, 3].Text  = "29.3 Million";
            this.gridControl1[3, 3].Text  = "120.1 Million";
            this.gridControl2[3, 3].Text  = "120.1 Million";
            this.gridControl3[3, 3].Text  = "120.1 Million";
            this.gridControl1[4, 3].Text  = "1.2 Billion";
            this.gridControl2[4, 3].Text  = "1.2 Billion";
            this.gridControl3[4, 3].Text  = "1.2 Billion";
            this.gridControl1[5, 3].Text  = "294.3 Million";
            this.gridControl2[5, 3].Text  = "294.3 Million";
            this.gridControl3[5, 3].Text  = "294.3 Million";
            this.gridControl1[6, 3].Text  = "478 Million";
            this.gridControl2[6, 3].Text  = "478 Million";
            this.gridControl3[6, 3].Text  = "478 Million";
            this.gridControl1[7, 3].Text  = "389.3 Million";
            this.gridControl2[7, 3].Text  = "389.3 Million";
            this.gridControl3[7, 3].Text  = "389.3 Million";
            this.gridControl1[8, 3].Text  = "686.6 Million";
            this.gridControl2[8, 3].Text  = "686.6 Million";
            this.gridControl3[8, 3].Text  = "686.6 Million";
            this.gridControl1[9, 3].Text  = "891.2 Million";
            this.gridControl2[9, 3].Text  = "891.2 Million";
            this.gridControl3[9, 3].Text  = "891.2 Million";
            this.gridControl1[10, 3].Text = "719 Million";
            this.gridControl2[10, 3].Text = "719 Million";
            this.gridControl3[10, 3].Text = "719 Million";
            this.treeViewAdv1.Nodes[0].Nodes[0].Nodes[2].Nodes[0].Height = 222;
            this.treeViewAdv1.Nodes[0].Nodes[1].Nodes[2].Nodes[0].Height = 222;
            this.treeViewAdv1.Nodes[0].Nodes[2].Nodes[2].Nodes[0].Height = 222;
            this.treeViewAdv1.Nodes[0].Nodes[0].Nodes[2].Nodes[0].CustomControl.Location = new Point(2, 2);
            this.gridControl1.HScrollBehavior = Syncfusion.Windows.Forms.Grid.GridScrollbarMode.Disabled;
            this.gridControl2.HScrollBehavior = Syncfusion.Windows.Forms.Grid.GridScrollbarMode.Disabled;
            this.gridControl3.HScrollBehavior = Syncfusion.Windows.Forms.Grid.GridScrollbarMode.Disabled;
            comboBoxAdv1.SelectedIndex        = 0;
            comboBoxAdv2.SelectedIndex        = 0;
            comboBoxAdv3.SelectedIndex        = 0;
            this.dateTimePickerAdv1.Value     = DateTime.Now;
            this.dateTimePickerAdv2.Value     = DateTime.Now;
            this.dateTimePickerAdv3.Value     = DateTime.Now;
            #endregion
        }