Exemplo n.º 1
0
        public void InitForm(int w)
        {
            if (w == 0)
            {
                this.Width = 252;

                //AJUSTA LAS POSICIONES DE LOS BOTONES CERRAR Y MINIMIZAR
                label2.Location      = new System.Drawing.Point(82, 8);
                label1.Location      = new System.Drawing.Point(140, 8);
                pictureBox1.Location = new System.Drawing.Point(232, 7);
                pictureBox2.Location = new System.Drawing.Point(214, 7);

                TBXFunction.Text     = "";
                TBXFunction.Enabled  = false;
                BTNx.Enabled         = false;
                BTNy.Enabled         = false;
                BTNz.Enabled         = false;
                BTNw.Enabled         = false;
                BTNresultado.Enabled = false;
                cbxVars.Enabled      = true;
                cbxVars.Text         = "";

                DGVTable.DataSource = null;
                DGVTable.Columns.Clear();
                DGVMap.DataSource = null;
                DGVMap.Columns.Clear();
            }
            else
            {
                this.Width = 800;
                //800
                //780
                //762
                DGVTable.Enabled = false;
                DGVTable.ClearSelection();
                DGVMap.Enabled = false;
                DGVMap.ClearSelection();

                label2.Location      = new System.Drawing.Point(380, 8);
                label1.Location      = new System.Drawing.Point(438, 8);
                pictureBox1.Location = new System.Drawing.Point(780, 7);
                pictureBox2.Location = new System.Drawing.Point(762, 7);
            }
        }
Exemplo n.º 2
0
 private void SaveDataGridView(string file_path)
 {
     DGVTable.EndEdit();
     DGVSaveLoader.SaveDGV(DGVTable, file_path);
 }