Exemplo n.º 1
0
        void InitializeComponent()
        {
            dataGrid = new ourDataGrid();
            SuspendLayout();

            // timer
            timer.Tick    += new EventHandler(OnTimer);
            timer.Enabled  = false;
            timer.Interval = 200;
            timer.Enabled  = true;


            //
            // dataGrid
            //
            dataGrid.HeaderForeColor = System.Drawing.SystemColors.ControlText;
            dataGrid.Location        = new System.Drawing.Point(10, 10);
            dataGrid.Name            = "dataGrid";
            dataGrid.Size            = new System.Drawing.Size(400, 400);
            //dataGrid.Font = new Font ("Arial", 16);


            comboBox          = new ComboBox();
            comboBox.Location = new System.Drawing.Point(450, 30);
            comboBox.Items.AddRange(new object[] { "Array", "Table Navigation", "Several Tables", "Single Table" });
            comboBox.SelectionChangeCommitted += new System.EventHandler(comboSelectionChanged);
            comboBox.SelectedIndex             = 1;

            treeView          = new TreeView();
            treeView.Location = new Point(450, 100);
            treeView.Size     = new Size(350, 400);

            Button buttonUpdate = new Button();

            buttonUpdate.Location = new Point(450, 60);
            buttonUpdate.Text     = "Update";
            buttonUpdate.Size     = new Size(100, 23);
            buttonUpdate.Click   += new System.EventHandler(buttonUpdateClick);

            label          = new Label();
            label.Location = new Point(450, 510);
            label.Size     = new Size(300, 400);

            Controls.Add(label);
            Controls.Add(buttonUpdate);
            Controls.Add(dataGrid);
            Controls.Add(comboBox);
            Controls.Add(treeView);


            //
            // MainForm
            //
            AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            ClientSize        = new System.Drawing.Size(850, 600);
            Name  = "MainForm";
            Text  = "SWF-Datagrid Table Navigation";
            Load += new System.EventHandler(MainFormLoad);
            ResumeLayout(false);
        }
Exemplo n.º 2
0
		void InitializeComponent ()
		{
			SuspendLayout ();

			//
			// dataGrid
			//
			dataGrid = new ourDataGrid ();
			dataGrid.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			dataGrid.Location = new System.Drawing.Point (10, 10);
			dataGrid.Name = "dataGrid";
			dataGrid.Size = new System.Drawing.Size (600, 600);

			buttonLoadStyles = new Button ();
			buttonLoadStyles.Location = new Point (650, 30);
			buttonLoadStyles.Text = "Load table styles";
			buttonLoadStyles.Size = new Size (150, 23);
			buttonLoadStyles.Click += new System.EventHandler (buttonLoadStylesClick);
			Controls.Add (buttonLoadStyles);

			Label labelLoadStyles = new Label ();
			labelLoadStyles.Location = new Point (650, 60);
			labelLoadStyles.Text = "Load table styles settings";
			labelLoadStyles.AutoSize = true;
			Controls.Add (labelLoadStyles);

			Button buttonApplications = new Button ();
			buttonApplications.Location =	new Point (650,	90);
			buttonApplications.Text = "Table: applications";
			buttonApplications.Size = new	Size (150, 23);
			buttonApplications.Click += new System.EventHandler (buttonApplicationsClick);
			Controls.Add (buttonApplications);

			Label labelApplications = new Label ();
			labelApplications.Location = new Point (650, 120);
			labelApplications.Text = "Does not use styles";
			labelApplications.AutoSize = true;
			Controls.Add (labelApplications);

			Button buttonPrograms = new Button ();
			buttonPrograms.Location = new Point (650, 150);
			buttonPrograms.Text = "Table: programs";
			buttonPrograms.Size = new Size (150, 23);
			buttonPrograms.Click += new System.EventHandler (buttonProgramsClick);
			Controls.Add (buttonPrograms);

			Label labelPrograms = new Label ();
			labelPrograms.Location = new Point (650, 180);
			labelPrograms.Text = "Data column's with to 200, header's text for column nom changes...";
			labelPrograms.Size = new Size (200, 30);
			Controls.Add (labelPrograms);

			Button buttonUtilities = new Button ();
			buttonUtilities.Location = new Point (650, 220);
			buttonUtilities.Text = "Table: utilities";
			buttonUtilities.Size = new Size (100, 23);
			buttonUtilities.Click += new System.EventHandler (buttonUtilitiesClick);
			Controls.Add (buttonUtilities);

			Label labelUtilities = new Label ();
			labelUtilities.Location = new Point (650, 250);
			labelUtilities.Text = "Use table styles to show a column only and setting its width";
			labelUtilities.Size = new Size (200, 30);
			Controls.Add (labelUtilities);


			//
			// MainForm
			//
			Text = "SWF-Datagrid Styles";
			ClientSize = new System.Drawing.Size (850, 650);
			Controls.Add(dataGrid);
			Load += new System.EventHandler(MainFormLoad);
			ResumeLayout (false);
		}
Exemplo n.º 3
0
        void InitializeComponent()
        {
            SuspendLayout();

            //
            // dataGrid
            //
            dataGrid = new ourDataGrid();
            dataGrid.HeaderForeColor = System.Drawing.SystemColors.ControlText;
            dataGrid.Location        = new System.Drawing.Point(10, 10);
            dataGrid.Name            = "dataGrid";
            dataGrid.Size            = new System.Drawing.Size(600, 600);

            buttonLoadStyles          = new Button();
            buttonLoadStyles.Location = new Point(650, 30);
            buttonLoadStyles.Text     = "Load table styles";
            buttonLoadStyles.Size     = new Size(150, 23);
            buttonLoadStyles.Click   += new System.EventHandler(buttonLoadStylesClick);
            Controls.Add(buttonLoadStyles);

            Label labelLoadStyles = new Label();

            labelLoadStyles.Location = new Point(650, 60);
            labelLoadStyles.Text     = "Load table styles settings";
            labelLoadStyles.AutoSize = true;
            Controls.Add(labelLoadStyles);

            Button buttonApplications = new Button();

            buttonApplications.Location = new Point(650, 90);
            buttonApplications.Text     = "Table: applications";
            buttonApplications.Size     = new   Size(150, 23);
            buttonApplications.Click   += new System.EventHandler(buttonApplicationsClick);
            Controls.Add(buttonApplications);

            Label labelApplications = new Label();

            labelApplications.Location = new Point(650, 120);
            labelApplications.Text     = "Does not use styles";
            labelApplications.AutoSize = true;
            Controls.Add(labelApplications);

            Button buttonPrograms = new Button();

            buttonPrograms.Location = new Point(650, 150);
            buttonPrograms.Text     = "Table: programs";
            buttonPrograms.Size     = new Size(150, 23);
            buttonPrograms.Click   += new System.EventHandler(buttonProgramsClick);
            Controls.Add(buttonPrograms);

            Label labelPrograms = new Label();

            labelPrograms.Location = new Point(650, 180);
            labelPrograms.Text     = "Data column's with to 200, header's text for column nom changes...";
            labelPrograms.Size     = new Size(200, 30);
            Controls.Add(labelPrograms);

            Button buttonUtilities = new Button();

            buttonUtilities.Location = new Point(650, 220);
            buttonUtilities.Text     = "Table: utilities";
            buttonUtilities.Size     = new Size(100, 23);
            buttonUtilities.Click   += new System.EventHandler(buttonUtilitiesClick);
            Controls.Add(buttonUtilities);

            Label labelUtilities = new Label();

            labelUtilities.Location = new Point(650, 250);
            labelUtilities.Text     = "Use table styles to show a column only and setting its width";
            labelUtilities.Size     = new Size(200, 30);
            Controls.Add(labelUtilities);


            //
            // MainForm
            //
            Text       = "SWF-Datagrid Styles";
            ClientSize = new System.Drawing.Size(850, 650);
            Controls.Add(dataGrid);
            Load += new System.EventHandler(MainFormLoad);
            ResumeLayout(false);
        }
Exemplo n.º 4
0
		void InitializeComponent ()
		{
			dataGrid = new ourDataGrid ();
			SuspendLayout ();

			// timer
			timer.Tick += new EventHandler (OnTimer);
			timer.Enabled = false;
			timer.Interval = 200;
			timer.Enabled = true;


			//
			// dataGrid
			//
			dataGrid.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			dataGrid.Location = new	System.Drawing.Point (10, 10);
			dataGrid.Name =	"dataGrid";
			dataGrid.Size =	new System.Drawing.Size	(400, 400);
			//dataGrid.Font = new Font ("Arial", 16);


			comboBox = new ComboBox	();
			comboBox.Location = new	System.Drawing.Point (450, 30);
			comboBox.Items.AddRange	(new object[] {"Array",	"Table Navigation", "Several Tables", "Single Table"});
			comboBox.SelectionChangeCommitted += new System.EventHandler (comboSelectionChanged);
			comboBox.SelectedIndex = 1;

			treeView = new TreeView	();
			treeView.Location = new	Point (450, 100);
			treeView.Size =	new Size (350, 400);

			Button buttonUpdate = new Button ();
			buttonUpdate.Location =	new Point (450,	60);
			buttonUpdate.Text = "Update";
			buttonUpdate.Size = new	Size (100, 23);
			buttonUpdate.Click += new System.EventHandler (buttonUpdateClick);

			label = new Label ();
			label.Location = new Point (450, 510);
			label.Size = new Size (300, 400);

			Controls.Add (label);
			Controls.Add (buttonUpdate);
			Controls.Add (dataGrid);
			Controls.Add (comboBox);
			Controls.Add (treeView);


			//
			// MainForm
			//
			AutoScaleBaseSize = new	System.Drawing.Size (5,	13);
			ClientSize = new System.Drawing.Size (850, 600);
			Name = "MainForm";
			Text = "SWF-Datagrid Table Navigation";
			Load +=	new System.EventHandler	(MainFormLoad);
			ResumeLayout (false);
		}