Example #1
0
        public Principal()
        {
            InitializeComponent();


            this.SetStyle(ControlStyles.AllPaintingInWmPaint |
                          ControlStyles.UserPaint |
                          ControlStyles.DoubleBuffer, true);
            this.SetStyle(ControlStyles.ResizeRedraw, true);
            ComboboxSetup();
            dataGridView1.ColumnHeadersDefaultCellStyle.Alignment =
                DataGridViewContentAlignment.MiddleCenter;
            dataGridView1.RowHeadersDefaultCellStyle.Alignment =
                DataGridViewContentAlignment.MiddleRight;
            dataGridView1.RowHeadersWidth = 70;
            limEixos = new DadosEntrada();
            propertyGridEntrada.SelectedObject = limEixos;
            cm   = new CampoMagnetico();
            ce   = new CampoEletrico();
            tipo = "";
        }
Example #2
0
        private void Principal_Load(object sender, EventArgs e)
        {
            DadosEntrada limEixos = new DadosEntrada();

            propertyGridEntrada.SelectedObject = limEixos;
        }