Example #1
0
        //*******************************************************************
        //Tables
        public void Afficher_Table(MetroFramework.Controls.MetroGrid grid)
        {
            cmd = new SqlCommand("SELECT id_table,nom_serveur,reservee FROM Tablee", conn);

            adapt = new SqlDataAdapter(cmd);
            cmd.ExecuteNonQuery();
            ds = new DataSet();
            adapt.Fill(ds);

            ds.Tables[0].Columns.Add("Reservation", typeof(string));

            grid.DataSource = ds.Tables[0];
            grid.Columns["reservee"].Visible = false;
            for (int i = 0; i < grid.Rows.Count - 1; i++)
            {
                if (grid.Rows[i].Cells[2].Value.ToString() == "True")
                {
                    grid.Rows[i].Cells[3].Value = "reservée";
                }
                if (grid.Rows[i].Cells[2].Value.ToString() == "False")
                {
                    grid.Rows[i].Cells[3].Value = "non reservée";
                }
            }
        }
Example #2
0
        //Método Seleciona Campo:
        public void SelecionarCampo(//Parametros
            MaterialSkin.Controls.MaterialSingleLineTextField txtProduto,
            MaterialSkin.Controls.MaterialSingleLineTextField txtCategoria,
            MaterialSkin.Controls.MaterialSingleLineTextField txtQuantidade,
            MaterialSkin.Controls.MaterialSingleLineTextField txtID,
            MaterialSkin.Controls.MaterialFlatButton btnLimpar,
            MaterialSkin.Controls.MaterialFlatButton btnAtualizar,
            MaterialSkin.Controls.MaterialFlatButton btnDeletar,
            MaterialSkin.Controls.MaterialFlatButton btnInserir,
            MetroFramework.Controls.MetroGrid dataGridViewProdutos,
            MetroFramework.Controls.MetroGrid dataGridViewConsultas)
        {
            //Ao clicar em um registro, os dados do mesmo serão passados para as TXT em modo ReadOnly:
            string DataGrid_Id         = dataGridViewProdutos.SelectedRows[0].Cells[0].Value + string.Empty;
            string DataGrid_Produto    = dataGridViewProdutos.SelectedRows[0].Cells[1].Value + string.Empty;
            string DataGrid_Categoria  = dataGridViewProdutos.SelectedRows[0].Cells[2].Value + string.Empty;
            string DataGrid_Quantidade = dataGridViewProdutos.SelectedRows[0].Cells[3].Value + string.Empty;

            //Modo ReadyOnly:
            txtProduto.Enabled    = false;
            txtCategoria.Enabled  = false;
            txtQuantidade.Enabled = false;
            btnLimpar.Enabled     = false;
            btnAtualizar.Enabled  = false;
            btnDeletar.Enabled    = false;
            btnInserir.Enabled    = false;

            //Atribuições:
            txtID.Text         = DataGrid_Id;
            txtProduto.Text    = DataGrid_Produto;
            txtCategoria.Text  = DataGrid_Categoria;
            txtQuantidade.Text = DataGrid_Quantidade;
        }
Example #3
0
 public FrmBuscarPrendas(ref MetroFramework.Controls.MetroGrid pGrid)
 {
     InitializeComponent();
     inventario = new GestionInventario();
     grid       = pGrid;
     inventario.ObtenerInventario(ref this.InventarioPrendasGrid);
 }
Example #4
0
 private void ToggleGrid(MetroFramework.Controls.MetroGrid obj, bool status, String type = "hide")
 {
     try
     {
         if (obj.InvokeRequired)
         {
             this.Invoke((MethodInvoker) delegate {
                 if (type == "hide")
                 {
                     obj.Visible = status;
                 }
                 else
                 {
                     obj.Enabled = status;
                 }
             });
         }
         else
         {
             if (type == "hide")
             {
                 obj.Visible = status;
             }
             else
             {
                 obj.Enabled = status;
             }
         }
     }
     catch (Exception e)
     {
         ErrorHandler.logError("Error Hiding Grid", "Error while hiding the grid " + obj.Name.ToString(), "error", false);
     }
 }
Example #5
0
        private void AddDynamicLinkOnGrid(MetroFramework.Controls.MetroGrid Grid, int viewEditIndex, int deleteIndex)
        {
            if (!IsUpdatedToDB)
            {
                DataGridViewLinkColumn linkColumnViewEdit = new DataGridViewLinkColumn();
                linkColumnViewEdit.Name       = "View/Edit";
                linkColumnViewEdit.HeaderText = "View/Edit";
                linkColumnViewEdit.Text       = "View/Edit";
                linkColumnViewEdit.UseColumnTextForLinkValue = true;
                Grid.Columns.Insert(viewEditIndex, linkColumnViewEdit);

                if (PurchaseOrderStatusId == (int)Constants.PurchaseOrderStatus.Pending)
                {
                    DataGridViewLinkColumn linkColumnDelete = new DataGridViewLinkColumn();
                    linkColumnDelete.Name       = "Delete";
                    linkColumnDelete.HeaderText = "Delete";
                    linkColumnDelete.Text       = "Delete";
                    linkColumnDelete.UseColumnTextForLinkValue = true;
                    Grid.Columns.Insert(deleteIndex, linkColumnDelete);
                }
                else
                {
                    AddChangeStatusLinkOnGrid();
                }
            }
        }
Example #6
0
 public void GetTransaction(int row, MetroFramework.Controls.MetroGrid grid)
 {
     val.TransID        = (int)grid[0, row].Value;
     val.TransLabType   = (int)grid[2, row].Value;
     val.TransCreatedBy = (int)grid[5, row].Value;
     val.TransCreated   = (DateTime)grid[4, row].Value;
 }
Example #7
0
        //===================================Livros================================
        public void CarregarDados(MetroFramework.Controls.MetroGrid mgLivros)
        {
            SQLiteConnection Conexao = new SQLiteConnection(BancoDs);

            if (Conexao.State == ConnectionState.Closed)
            {
                Conexao.Open();
            }

            SQLiteCommand            cmd   = new SQLiteCommand("SELECT * FROM LIVROS", Conexao);
            SQLiteDataReader         Dr    = cmd.ExecuteReader();
            List <ClienteDTO.Livros> Lista = new List <ClienteDTO.Livros>();

            while (Dr.Read())
            {
                Lista.Add(new ClienteDTO.Livros
                {
                    Id         = Convert.ToInt32(Dr["ID"]),
                    Titulo     = Dr["TITULO"].ToString(),
                    Autor      = Dr["AUTOR"].ToString(),
                    Categoria  = Dr["CATEGORIA"].ToString(),
                    Lancamento = Convert.ToInt32(Dr["LANCAMENTO"]),
                    Exemplares = Convert.ToInt32(Dr["EXEMPLARES"])
                });
            }
            mgLivros.DataSource = Lista;
        }
Example #8
0
 private void CreateSettingsTable(MetroFramework.Controls.MetroGrid Table, string _ConfigFullName)
 {
     if (File.Exists(_ConfigFullName))
     {
         try
         {
             Table.Rows.Clear();
             DataSet ds = new DataSet();
             ds.ReadXml(_ConfigFullName);
             foreach (DataRow item in ds.Tables["exe"].Rows)
             {
                 int n = -1;
                 foreach (object cell in item.ItemArray)
                 {
                     n++;
                     if (n < (item.ItemArray.Length / 2))
                     {
                         Table.Rows.Add();
                         Table.Rows[n].Cells[0].Value = item["key" + n];
                         Table.Rows[n].Cells[1].Value = item["par" + n];
                     }
                 }
             }
         }
         catch
         {
             MetroFramework.MetroMessageBox.Show(this, "Некорректный XML файл.", "Оповещение", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
     else
     {
         MetroFramework.MetroMessageBox.Show(this, "XML файл не найден.", "Оповещение", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
Example #9
0
 public MetroFramework.Controls.MetroGrid CreateNewPageGird(TabControl ReceiveOrSend)
 {
     if (ReceiveOrSend.InvokeRequired)
     {
         GreatePageCallBackGird d = new GreatePageCallBackGird(CreateNewPageGird);
         return((MetroFramework.Controls.MetroGrid) this.Invoke(d, new object[] { ReceiveOrSend }));
     }
     else
     {
         if (ReceiveOrSend.TabCount == 12)
         {
             ClearMessagePage();
         }
         MetroFramework.Controls.MetroTabPage Tp = new MetroFramework.Controls.MetroTabPage();
         MetroFramework.Controls.MetroGrid    Tv = new MetroFramework.Controls.MetroGrid();
         ReceiveOrSend.Controls.Add(Tp);
         Tp.Controls.Add(Tv);
         Tv.Dock = DockStyle.Fill;
         Tv.AutoSizeColumnsMode           = DataGridViewAutoSizeColumnsMode.AllCells;
         Tv.AutoSizeRowsMode              = DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders;
         Tv.RowsDefaultCellStyle.WrapMode = (DataGridViewTriState.True);
         Tv.CellBorderStyle =
             DataGridViewCellBorderStyle.Sunken;
         Tv.RowHeadersBorderStyle =
             DataGridViewHeaderBorderStyle.Single;
         Tv.ColumnHeadersBorderStyle =
             DataGridViewHeaderBorderStyle.Single;
         Tv.AllowUserToAddRows     = false;
         Tp.Padding                = new Padding(5, 5, 0, 0);
         Tv.ContextMenuStrip       = MessageClickMenu;
         ReceiveOrSend.SelectedTab = Tp;
         return((MetroFramework.Controls.MetroGrid)ReceiveOrSend.Controls[ReceiveOrSend.Controls.Count - 1].Controls[ReceiveOrSend.Controls[ReceiveOrSend.Controls.Count - 1].Controls.Count - 1]);
     }
 }
 private void catchControls()
 {
     buttonOk       = parentBookArrivWin.Controls.Find("mTileOk", true).First();
     buttonRenew    = parentBookArrivWin.Controls.Find("mTileRenew", true).First();
     labelTitle     = parentBookArrivWin.Controls.Find("mLabelTitle", true).First();
     mgridBookArriv = (MetroFramework.Controls.MetroGrid)parentBookArrivWin.Controls.Find("mGrid", true).First();
 }
Example #11
0
        public void Afficher_Plat_ParFiltre(MetroFramework.Controls.MetroGrid grid, string nom_categorie)
        {
            int code = Categorie_Nom_Code(nom_categorie);

            cmd = new SqlCommand("SELECT id_plat,id_categorie,nom_plat,prix,disponible FROM Plat where id_categorie = @code", conn);
            cmd.Parameters.AddWithValue("@code", code);
            adapt = new SqlDataAdapter(cmd);
            cmd.ExecuteNonQuery();
            ds = new DataSet();
            adapt.Fill(ds);
            grid.DataSource = ds.Tables[0];
            ds.Tables[0].Columns.Add("Disponibilité", typeof(string));

            grid.DataSource = ds.Tables[0];

            for (int i = 0; i < grid.Rows.Count - 1; i++)
            {
                if (grid.Rows[i].Cells[4].Value.ToString() == "True")
                {
                    grid.Rows[i].Cells[5].Value = "disponible";
                }
                if (grid.Rows[i].Cells[4].Value.ToString() == "False")
                {
                    grid.Rows[i].Cells[5].Value = "non disponible";
                }
            }

            grid.Columns["id_plat"].Visible      = false;
            grid.Columns["id_categorie"].Visible = false;
            grid.Columns["disponible"].Visible   = false;
            cmd.Parameters.Clear();
        }
Example #12
0
        //=====================================Alunos===========================
        public void CarregarDadosAlunos(MetroFramework.Controls.MetroGrid mgAlunos)
        {
            SQLiteConnection Conexao = new SQLiteConnection(BancoDs);

            if (Conexao.State == ConnectionState.Closed)
            {
                Conexao.Open();
            }

            SQLiteCommand            cmd   = new SQLiteCommand("SELECT * FROM ALUNOS", Conexao);
            SQLiteDataReader         Dr    = cmd.ExecuteReader();
            List <ClienteDTO.Alunos> Lista = new List <ClienteDTO.Alunos>();

            while (Dr.Read())
            {
                Lista.Add(new ClienteDTO.Alunos
                {
                    Id    = Convert.ToInt32(Dr["ID"]),
                    Nome  = Dr["NOME"].ToString(),
                    Serie = Convert.ToInt32(Dr["SERIE"]),
                    Sala  = Dr["SALA"].ToString()
                });
            }
            mgAlunos.DataSource = Lista;
        }
Example #13
0
        private void metroGridDijagnoze_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            MetroFramework.Controls.MetroGrid mg = sender as MetroFramework.Controls.MetroGrid;
            int row_index = mg.CurrentCell.RowIndex;

            FromDataToControl(row_index);
        }
Example #14
0
        //Método Carregar:
        public void Carregar(//Parametros
            MetroFramework.Controls.MetroGrid dataGridViewProdutos,
            MetroFramework.Controls.MetroGrid dataGridViewConsultas)
        {
            string           var  = DAL.conexao;
            SQLiteConnection conn = new SQLiteConnection(var);

            if (conn.State == ConnectionState.Closed)
            {
                conn.Open();
            }

            SQLiteCommand      cmd        = new SQLiteCommand("SELECT * FROM PRODUTOS", conn);
            SQLiteDataReader   datareader = cmd.ExecuteReader();
            List <LM.Code.DTO> lista      = new List <LM.Code.DTO>();

            while (datareader.Read())
            {
                lista.Add(new LM.Code.DTO
                {
                    Id         = Convert.ToInt32(datareader["ID"]),
                    Produto    = datareader["PRODUTO"].ToString(),
                    Categoria  = datareader["CATEGORIA"].ToString(),
                    Quantidade = datareader["QUANTIDADE"].ToString()
                });
            }

            //Define o DataSource do DataGrid:
            dataGridViewProdutos.DataSource  = lista;
            dataGridViewConsultas.DataSource = lista;
        }
Example #15
0
 public void GetUserDetail(int row, MetroFramework.Controls.MetroGrid grid)
 {
     val.UserID     = (int)grid[0, row].Value;
     val.Username   = (string)grid[1, row].Value;
     val.UserLevel  = (int)grid[3, row].Value;
     val.UserActive = (bool)grid[4, row].Value;
 }
Example #16
0
 public void GetPatientRecord(int row, MetroFramework.Controls.MetroGrid grid)
 {
     val.RecordID      = (int)grid[0, row].Value;
     val.RecordRequest = (string)grid[2, row].Value;
     val.RecordCase    = (int)grid[3, row].Value;
     val.RecordCreated = (DateTime)grid[4, row].Value;
 }
Example #17
0
        //***********************************************************
        //Categorie

        public void Afficher_Categorie(MetroFramework.Controls.MetroGrid grid)
        {
            cmd   = new SqlCommand("SELECT id_categorie,nom_categorie FROM Categorie", conn);
            adapt = new SqlDataAdapter(cmd);
            ds    = new DataSet();
            adapt.Fill(ds);
            grid.DataSource = ds.Tables[0];
        }
 private DataGridViewCellCollection GetSelectedRowData(MetroFramework.Controls.MetroGrid controler)
 {
     if (controler.SelectedRows != null && controler.SelectedRows.Count > 0)
     {
         return(controler.SelectedRows[0].Cells);
     }
     return(null);
 }
 public void Afficher_Facture(MetroFramework.Controls.MetroGrid grid)
 {
     cmd   = new SqlCommand("SELECT code,reference,designation,quantite,prix,total,date,RS FROM facture", conn);
     adapt = new SqlDataAdapter(cmd);
     ds    = new DataSet();
     adapt.Fill(ds);
     grid.DataSource = ds.Tables[0];
 }
 public void Afficher_Devis(MetroFramework.Controls.MetroGrid grid)
 {
     cmd   = new SqlCommand("SELECT status,code,RS,qte,total,date FROM devis", conn);
     adapt = new SqlDataAdapter(cmd);
     ds    = new DataSet();
     adapt.Fill(ds);
     grid.DataSource = ds.Tables[0];
 }
Example #21
0
        public void ShowRequestMessage(ref string errorMessage, ref MainWindow mw, int caseTransNo)
        {
            string tabPageName    = "";
            string SelectCaseName = MainWindow.SelectCaseName;
            int    CaseTransNo    = caseTransNo;
            int    CaseState      = MainWindow.CaseState;
            string LOGSave        = "";

            MetroFramework.Controls.MetroGrid Gr_R = mw.CreateNewPageGird(mw.ReceiveText);
            mes_Dic = mes_Dic.OrderBy(p => p.Key).ToDictionary(p => p.Key, o => o.Value);
            DataTable  dt  = new DataTable();
            DataColumn dc1 = new DataColumn("keyName");
            DataColumn dc2 = new DataColumn("Key");
            DataColumn dc3 = new DataColumn("Value");

            dt.Columns.Add(dc1);
            dt.Columns.Add(dc2);
            dt.Columns.Add(dc3);
            foreach (var item in mes_Dic)
            {
                string    selectcomand = string.Format("DataIdentification = '{0}'", item.Key);
                DataRow[] dr           = Parameters.dtDictionnary.Select(selectcomand);
                if (dr.Length != 0)
                {
                    var name = dr[0][0];
                    dt.Rows.Add(name, item.Key, item.Value);
                }
                else
                {
                    var name = "未知key";
                    dt.Rows.Add(name, item.Key, item.Value);
                    errorMessage += "存在未知key:" + item.Key;
                }
            }
            mw.SetQRReceiveTextGird(Gr_R, dt);
            tabPageName = CaseTransNo.ToString().Trim() + "." + messageName;
            LOGSave    += Tools.DataTableToString(dt);

            mw.SetPageName(tabPageName, mw.ReceiveText);
            if (Project.ProjectPath.Trim() != "" && SelectCaseName.Trim() != "" && CaseState == 1)
            {
                StreamWriter sw = new StreamWriter(Project.ProjectPath.Trim() + "\\" + Project.ProjectName.Trim() + "\\" + SelectCaseName.Trim() + ".txt", true);
                sw.Write(tabPageName + "请求报文\r\n" + LOGSave);
                sw.Close();
            }
            //else if (SelectCaseName.Trim() != "" && CaseState == 1)
            //{
            //    CaseState = 1;
            //    StreamWriter sw = new StreamWriter(Application.StartupPath + "\\" + "Log" + "\\" + Project.ProjectName.Trim() + "\\" + SelectCaseName.Trim() + ".txt", false);
            //    sw.Write(tabPageName + "请求报文\r\n" + LOGSave);
            //    sw.Close();

            //}
            else
            {
                Trace.SaveDefaultTrace(tabPageName + "请求报文\r\n" + LOGSave, 1, "");
            }
        }
Example #22
0
        //Método Inserir:
        public void Inserir(//Parametros
            MaterialSkin.Controls.MaterialSingleLineTextField txtProduto,
            MaterialSkin.Controls.MaterialSingleLineTextField txtCategoria,
            MaterialSkin.Controls.MaterialSingleLineTextField txtQuantidade,
            MaterialSkin.Controls.MaterialSingleLineTextField txtID,
            MetroFramework.Controls.MetroGrid dataGridViewProdutos,
            MetroFramework.Controls.MetroGrid dataGridViewConsultas)
        {
            //Verifica se campos estão preenchidos:
            if (txtProduto.Text == "" || txtCategoria.Text == "" || txtQuantidade.Text == "")
            {
                MessageBox.Show("Preencha os campos corretamente.", "LM-Manager", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else
            {
                //Define a variável como sendo a variável de conexão da classe Cliente DAL:
                string           var  = DAL.conexao;
                SQLiteConnection conn = new SQLiteConnection(var);
                if (conn.State == ConnectionState.Closed)
                {
                    conn.Open();
                }

                //Instancia o Model Pessoas:
                DTO model = new LM.Code.DTO
                {
                    Produto    = txtProduto.Text,
                    Categoria  = txtCategoria.Text,
                    Quantidade = txtQuantidade.Text
                };

                SQLiteCommand cmd = new SQLiteCommand("INSERT INTO PRODUTOS (PRODUTO, CATEGORIA, QUANTIDADE) VALUES (@PRODUTO, @CATEGORIA, @QUANTIDADE)", conn);
                cmd.Parameters.AddWithValue("PRODUTO", model.Produto);
                cmd.Parameters.AddWithValue("CATEGORIA", model.Categoria);
                cmd.Parameters.AddWithValue("QUANTIDADE", model.Quantidade);

                try
                {
                    cmd.ExecuteNonQuery();
                    MessageBox.Show("Registro salvo com sucesso", "LM-Manager", MessageBoxButtons.OK, MessageBoxIcon.Information);

                    //Após Inserir, limpa o campo:
                    txtProduto.Text    = string.Empty;
                    txtCategoria.Text  = string.Empty;
                    txtQuantidade.Text = string.Empty;

                    txtProduto.Focus();

                    //Exibe as ultimas alterações:
                    Carregar(dataGridViewProdutos, dataGridViewConsultas);
                }
                catch (Exception ex)
                {
                    //Exibe erro:
                    MessageBox.Show("Erro ao salvar registro: " + ex.Message, "LM-Manager", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
        }
Example #23
0
 private void addDeleteButton(MetroFramework.Controls.MetroGrid Grid)
 {
     Grid.Columns.Add(new DataGridViewImageColumn()
     {
         Image      = Properties.Resources.delete,
         Name       = "btn",
         HeaderText = "delete"
     });
 }
Example #24
0
        /// <summary>
        /// fills a gridview with class grade data
        /// </summary>
        /// <param name="grid"></param>
        /// <param name="grade"></param>
        /// <param name="value"></param>
        public void FillGridClassGrade(ref MetroFramework.Controls.MetroGrid grid, string grade, object value = null)
        {
            DataTable table = FillObject();

            table.DefaultView.RowFilter          = string.Format("Klassenstufe LIKE '{0}'", grade);
            grid.DataSource                      = table;
            grid.Columns["Klassenstufe"].Visible = false;
            grid.Columns["ks_klasse"].Visible    = false;
        }
        private void DeleteSelectedPoste(MetroFramework.Controls.MetroGrid controler)
        {
            OleDbConnection  dbConn;
            OleDbTransaction dbTransaction;

            // delete a whole Poste if and only if a row was selected
            DataGridViewCellCollection cells = this.GetSelectedRowData(controler);

            if (cells != null)
            {
                dbConn = DatabaseManager.GetConnection();
                dbConn.Open();
                dbTransaction = dbConn.BeginTransaction();

                try
                {
                    // delete the selected poste in cascade then commit the changes
                    int indice = (int)cells[0].Value;
                    PosteRepository.Delete(dbConn, dbTransaction, indice);
                    dbTransaction.Commit();

                    // update Dataset
                    if (controler == dgvRevenus)
                    {
                        indice = dgvRevenus.Rows.GetFirstRow(DataGridViewElementStates.Selected);
                        ds.Tables["PosteRevenus"].Rows.RemoveAt(indice);
                    }
                    else
                    {
                        indice = dgvPostesFixes.Rows.GetFirstRow(DataGridViewElementStates.Selected);
                        ds.Tables["PostesPerFixes"].Rows.RemoveAt(indice);
                    }

                    SaveTablesEnLocal();
                    // Affichage des postes à périodicité fixe
                    dgvPostesFixes.DataSource = ds.Tables["PostesPerFixes"];
                    dgvPostesFixes.ClearSelection();

                    // Affichage des postes à échéances
                    dgvPostesEcheances.DataSource = ds.Tables["PosteEcheances"];
                    dgvPostesEcheances.ClearSelection();

                    // Affichage des postes revenus
                    dgvRevenus.DataSource = ds.Tables["PosteRevenus"];
                    dgvRevenus.ClearSelection();
                }
                catch (OleDbException ex)
                {
                    dbTransaction.Rollback();
                    ErrorManager.HandleOleDBError(ex);
                }
                finally
                {
                    dbConn.Close();
                }
            }
        }
Example #26
0
        private void copyAlltoClipboard(MetroFramework.Controls.MetroGrid grid)
        {
            grid.SelectAll();
            DataObject dataObj = grid.GetClipboardContent();

            if (dataObj != null)
            {
                Clipboard.SetDataObject(dataObj);
            }
        }
Example #27
0
 public void Afficher_Cmd(MetroFramework.Controls.MetroGrid grid)
 {
     cmd = new SqlCommand("SELECT id_commande,nom_plat,quantite,prix,id_table,facture FROM Commande where id_table in " +
                          "(Select id_table from Tablee where nom_serveur = '" + Authentification.user_info[1] + "')", conn);
     adapt = new SqlDataAdapter(cmd);
     cmd.ExecuteNonQuery();
     ds = new DataSet();
     adapt.Fill(ds);
     grid.DataSource = ds.Tables[0];
     //grid.Columns["id_table"].Visible = false;
 }
Example #28
0
 /// <summary>
 /// Prüft die aktuelle Auswahl auf Vorhandensein einiger Einträge (Anhand der BackColor)
 /// </summary>
 private bool IsNotEmpty(ref MetroFramework.Controls.MetroGrid grid)
 {
     if (grid.RowCount != 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #29
0
        //Método AjustaStartADM:
        public void AjustaStartADM(//Parametros
            System.Windows.Forms.ToolStripStatusLabel lblStatus,
            MetroFramework.Controls.MetroGrid dataGridViewProdutos,
            MetroFramework.Controls.MetroGrid dataGridViewConsultas)
        {
            //Exibe o nome do Usuário em uma label no menu Status Strip:
            lblStatus.Text = "Olá, " + Environment.UserName;

            //Método Carregar:
            Carregar(dataGridViewProdutos, dataGridViewConsultas);
        }
 //==============================Exibir o Grid================================
 internal void ExibirGridTxt(MaterialSkin.Controls.MaterialSingleLineTextField txtNome,
                             MaterialSkin.Controls.MaterialSingleLineTextField txtSerie,
                             MaterialSkin.Controls.MaterialSingleLineTextField txtSala,
                             MetroFramework.Controls.MetroGrid mgAlunos)
 {
     IDRegistro    = 0;
     IDRegistro    = Convert.ToInt32(mgAlunos.CurrentRow.Cells[0].Value);
     txtNome.Text  = mgAlunos.CurrentRow.Cells[1].Value.ToString();
     txtSerie.Text = mgAlunos.CurrentRow.Cells[2].Value.ToString();
     txtSala.Text  = mgAlunos.CurrentRow.Cells[2].Value.ToString();
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmDerivacion));
     this.dgvDerivaciones = new MetroFramework.Controls.MetroGrid();
     this.metroLabel2 = new MetroFramework.Controls.MetroLabel();
     this.txtPaciente = new MetroFramework.Controls.MetroTextBox();
     this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
     this.metroLabel3 = new MetroFramework.Controls.MetroLabel();
     this.metroLabel4 = new MetroFramework.Controls.MetroLabel();
     this.metroLabel5 = new MetroFramework.Controls.MetroLabel();
     this.txtHistoria = new MetroFramework.Controls.MetroTextBox();
     this.gbDerivacion = new System.Windows.Forms.GroupBox();
     this.btnCancelar = new MetroFramework.Controls.MetroButton();
     this.btnGuardar = new MetroFramework.Controls.MetroButton();
     this.dtpFecha = new MetroFramework.Controls.MetroDateTime();
     this.metroLabel6 = new MetroFramework.Controls.MetroLabel();
     this.txtCie = new MetroFramework.Controls.MetroTextBox();
     this.metroTextBox1 = new MetroFramework.Controls.MetroTextBox();
     this.txtEspecialidad = new MetroFramework.Controls.MetroTextBox();
     this.txtEESS = new MetroFramework.Controls.MetroTextBox();
     this.txtdcie = new MetroFramework.Controls.MetroTextBox();
     this.metroLabel7 = new MetroFramework.Controls.MetroLabel();
     this.btnNuevo = new MetroFramework.Controls.MetroButton();
     this.btnSalir = new MetroFramework.Controls.MetroButton();
     this.mtFiltro = new MetroFramework.Controls.MetroGrid();
     ((System.ComponentModel.ISupportInitialize)(this.dgvDerivaciones)).BeginInit();
     this.gbDerivacion.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.mtFiltro)).BeginInit();
     this.SuspendLayout();
     //
     // dgvDerivaciones
     //
     this.dgvDerivaciones.AllowUserToResizeRows = false;
     this.dgvDerivaciones.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.dgvDerivaciones.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.dgvDerivaciones.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
     this.dgvDerivaciones.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
     dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
     dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvDerivaciones.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
     this.dgvDerivaciones.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     dataGridViewCellStyle2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(136)))), ((int)(((byte)(136)))), ((int)(((byte)(136)))));
     dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
     dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
     this.dgvDerivaciones.DefaultCellStyle = dataGridViewCellStyle2;
     this.dgvDerivaciones.EnableHeadersVisualStyles = false;
     this.dgvDerivaciones.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     this.dgvDerivaciones.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.dgvDerivaciones.Location = new System.Drawing.Point(24, 107);
     this.dgvDerivaciones.Name = "dgvDerivaciones";
     this.dgvDerivaciones.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
     dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
     dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvDerivaciones.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
     this.dgvDerivaciones.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
     this.dgvDerivaciones.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgvDerivaciones.Size = new System.Drawing.Size(508, 305);
     this.dgvDerivaciones.TabIndex = 2;
     //
     // metroLabel2
     //
     this.metroLabel2.AutoSize = true;
     this.metroLabel2.FontWeight = MetroFramework.MetroLabelWeight.Bold;
     this.metroLabel2.Location = new System.Drawing.Point(24, 70);
     this.metroLabel2.Name = "metroLabel2";
     this.metroLabel2.Size = new System.Drawing.Size(130, 19);
     this.metroLabel2.TabIndex = 0;
     this.metroLabel2.Text = "N° Historia Clínica";
     //
     // txtPaciente
     //
     this.txtPaciente.Lines = new string[0];
     this.txtPaciente.Location = new System.Drawing.Point(159, 71);
     this.txtPaciente.MaxLength = 32767;
     this.txtPaciente.Name = "txtPaciente";
     this.txtPaciente.PasswordChar = '\0';
     this.txtPaciente.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.txtPaciente.SelectedText = "";
     this.txtPaciente.Size = new System.Drawing.Size(170, 23);
     this.txtPaciente.TabIndex = 3;
     this.txtPaciente.UseSelectable = true;
     //
     // metroLabel1
     //
     this.metroLabel1.AutoSize = true;
     this.metroLabel1.FontWeight = MetroFramework.MetroLabelWeight.Bold;
     this.metroLabel1.Location = new System.Drawing.Point(11, 35);
     this.metroLabel1.Name = "metroLabel1";
     this.metroLabel1.Size = new System.Drawing.Size(82, 19);
     this.metroLabel1.TabIndex = 0;
     this.metroLabel1.Text = "N° Historia";
     //
     // metroLabel3
     //
     this.metroLabel3.AutoSize = true;
     this.metroLabel3.FontWeight = MetroFramework.MetroLabelWeight.Bold;
     this.metroLabel3.Location = new System.Drawing.Point(11, 156);
     this.metroLabel3.Name = "metroLabel3";
     this.metroLabel3.Size = new System.Drawing.Size(92, 19);
     this.metroLabel3.TabIndex = 0;
     this.metroLabel3.Text = "Especialidad";
     //
     // metroLabel4
     //
     this.metroLabel4.AutoSize = true;
     this.metroLabel4.FontWeight = MetroFramework.MetroLabelWeight.Bold;
     this.metroLabel4.Location = new System.Drawing.Point(11, 79);
     this.metroLabel4.Name = "metroLabel4";
     this.metroLabel4.Size = new System.Drawing.Size(88, 19);
     this.metroLabel4.TabIndex = 0;
     this.metroLabel4.Text = "Diagnóstico";
     //
     // metroLabel5
     //
     this.metroLabel5.AutoSize = true;
     this.metroLabel5.FontWeight = MetroFramework.MetroLabelWeight.Bold;
     this.metroLabel5.Location = new System.Drawing.Point(11, 118);
     this.metroLabel5.Name = "metroLabel5";
     this.metroLabel5.Size = new System.Drawing.Size(99, 19);
     this.metroLabel5.TabIndex = 0;
     this.metroLabel5.Text = "Centro Salud ";
     //
     // txtHistoria
     //
     this.txtHistoria.Lines = new string[0];
     this.txtHistoria.Location = new System.Drawing.Point(117, 35);
     this.txtHistoria.MaxLength = 32767;
     this.txtHistoria.Name = "txtHistoria";
     this.txtHistoria.PasswordChar = '\0';
     this.txtHistoria.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.txtHistoria.SelectedText = "";
     this.txtHistoria.Size = new System.Drawing.Size(118, 23);
     this.txtHistoria.TabIndex = 4;
     this.txtHistoria.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     this.txtHistoria.UseSelectable = true;
     //
     // gbDerivacion
     //
     this.gbDerivacion.Controls.Add(this.btnCancelar);
     this.gbDerivacion.Controls.Add(this.btnGuardar);
     this.gbDerivacion.Controls.Add(this.dtpFecha);
     this.gbDerivacion.Controls.Add(this.metroLabel6);
     this.gbDerivacion.Controls.Add(this.txtCie);
     this.gbDerivacion.Controls.Add(this.metroTextBox1);
     this.gbDerivacion.Controls.Add(this.txtEspecialidad);
     this.gbDerivacion.Controls.Add(this.txtEESS);
     this.gbDerivacion.Controls.Add(this.txtdcie);
     this.gbDerivacion.Controls.Add(this.txtHistoria);
     this.gbDerivacion.Controls.Add(this.metroLabel1);
     this.gbDerivacion.Controls.Add(this.metroLabel7);
     this.gbDerivacion.Controls.Add(this.metroLabel3);
     this.gbDerivacion.Controls.Add(this.metroLabel5);
     this.gbDerivacion.Controls.Add(this.metroLabel4);
     this.gbDerivacion.Font = new System.Drawing.Font("Lucida Console", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.gbDerivacion.Location = new System.Drawing.Point(538, 54);
     this.gbDerivacion.Name = "gbDerivacion";
     this.gbDerivacion.Size = new System.Drawing.Size(511, 358);
     this.gbDerivacion.TabIndex = 5;
     this.gbDerivacion.TabStop = false;
     this.gbDerivacion.Text = "DERIVACION";
     //
     // btnCancelar
     //
     this.btnCancelar.BackgroundImage = global::SeguroIntegral.Escritorio.Properties.Resources.cancel;
     this.btnCancelar.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.btnCancelar.FontSize = MetroFramework.MetroButtonSize.Medium;
     this.btnCancelar.Location = new System.Drawing.Point(378, 295);
     this.btnCancelar.Name = "btnCancelar";
     this.btnCancelar.Size = new System.Drawing.Size(119, 31);
     this.btnCancelar.TabIndex = 6;
     this.btnCancelar.Text = "&CANCELAR";
     this.btnCancelar.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.btnCancelar.UseSelectable = true;
     //
     // btnGuardar
     //
     this.btnGuardar.BackgroundImage = global::SeguroIntegral.Escritorio.Properties.Resources.save;
     this.btnGuardar.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.btnGuardar.FontSize = MetroFramework.MetroButtonSize.Medium;
     this.btnGuardar.Location = new System.Drawing.Point(11, 295);
     this.btnGuardar.Name = "btnGuardar";
     this.btnGuardar.Size = new System.Drawing.Size(107, 31);
     this.btnGuardar.TabIndex = 6;
     this.btnGuardar.Text = "&GRABAR";
     this.btnGuardar.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.btnGuardar.UseSelectable = true;
     //
     // dtpFecha
     //
     this.dtpFecha.FontWeight = MetroFramework.MetroDateTimeWeight.Bold;
     this.dtpFecha.Format = System.Windows.Forms.DateTimePickerFormat.Short;
     this.dtpFecha.Location = new System.Drawing.Point(312, 29);
     this.dtpFecha.MinimumSize = new System.Drawing.Size(0, 29);
     this.dtpFecha.Name = "dtpFecha";
     this.dtpFecha.Size = new System.Drawing.Size(151, 29);
     this.dtpFecha.TabIndex = 6;
     //
     // metroLabel6
     //
     this.metroLabel6.AutoSize = true;
     this.metroLabel6.FontWeight = MetroFramework.MetroLabelWeight.Bold;
     this.metroLabel6.Location = new System.Drawing.Point(259, 35);
     this.metroLabel6.Name = "metroLabel6";
     this.metroLabel6.Size = new System.Drawing.Size(47, 19);
     this.metroLabel6.TabIndex = 5;
     this.metroLabel6.Text = "Fecha";
     //
     // txtCie
     //
     this.txtCie.Lines = new string[0];
     this.txtCie.Location = new System.Drawing.Point(117, 75);
     this.txtCie.MaxLength = 32767;
     this.txtCie.Name = "txtCie";
     this.txtCie.PasswordChar = '\0';
     this.txtCie.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.txtCie.SelectedText = "";
     this.txtCie.Size = new System.Drawing.Size(62, 23);
     this.txtCie.TabIndex = 4;
     this.txtCie.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     this.txtCie.UseSelectable = true;
     this.txtCie.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtCie_KeyDown);
     //
     // metroTextBox1
     //
     this.metroTextBox1.Lines = new string[0];
     this.metroTextBox1.Location = new System.Drawing.Point(117, 190);
     this.metroTextBox1.MaxLength = 32767;
     this.metroTextBox1.Multiline = true;
     this.metroTextBox1.Name = "metroTextBox1";
     this.metroTextBox1.PasswordChar = '\0';
     this.metroTextBox1.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.metroTextBox1.SelectedText = "";
     this.metroTextBox1.Size = new System.Drawing.Size(380, 84);
     this.metroTextBox1.TabIndex = 4;
     this.metroTextBox1.UseSelectable = true;
     //
     // txtEspecialidad
     //
     this.txtEspecialidad.Lines = new string[0];
     this.txtEspecialidad.Location = new System.Drawing.Point(117, 152);
     this.txtEspecialidad.MaxLength = 32767;
     this.txtEspecialidad.Name = "txtEspecialidad";
     this.txtEspecialidad.PasswordChar = '\0';
     this.txtEspecialidad.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.txtEspecialidad.SelectedText = "";
     this.txtEspecialidad.Size = new System.Drawing.Size(380, 23);
     this.txtEspecialidad.TabIndex = 4;
     this.txtEspecialidad.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     this.txtEspecialidad.UseSelectable = true;
     //
     // txtEESS
     //
     this.txtEESS.Lines = new string[0];
     this.txtEESS.Location = new System.Drawing.Point(117, 114);
     this.txtEESS.MaxLength = 32767;
     this.txtEESS.Name = "txtEESS";
     this.txtEESS.PasswordChar = '\0';
     this.txtEESS.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.txtEESS.SelectedText = "";
     this.txtEESS.Size = new System.Drawing.Size(380, 23);
     this.txtEESS.TabIndex = 4;
     this.txtEESS.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     this.txtEESS.UseSelectable = true;
     //
     // txtdcie
     //
     this.txtdcie.Lines = new string[0];
     this.txtdcie.Location = new System.Drawing.Point(185, 75);
     this.txtdcie.MaxLength = 32767;
     this.txtdcie.Name = "txtdcie";
     this.txtdcie.PasswordChar = '\0';
     this.txtdcie.ScrollBars = System.Windows.Forms.ScrollBars.None;
     this.txtdcie.SelectedText = "";
     this.txtdcie.Size = new System.Drawing.Size(312, 23);
     this.txtdcie.TabIndex = 4;
     this.txtdcie.UseSelectable = true;
     //
     // metroLabel7
     //
     this.metroLabel7.AutoSize = true;
     this.metroLabel7.FontWeight = MetroFramework.MetroLabelWeight.Bold;
     this.metroLabel7.Location = new System.Drawing.Point(11, 190);
     this.metroLabel7.Name = "metroLabel7";
     this.metroLabel7.Size = new System.Drawing.Size(107, 19);
     this.metroLabel7.TabIndex = 0;
     this.metroLabel7.Text = "Observaciones";
     //
     // btnNuevo
     //
     this.btnNuevo.BackgroundImage = global::SeguroIntegral.Escritorio.Properties.Resources._new;
     this.btnNuevo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.btnNuevo.FontSize = MetroFramework.MetroButtonSize.Medium;
     this.btnNuevo.Location = new System.Drawing.Point(335, 63);
     this.btnNuevo.Name = "btnNuevo";
     this.btnNuevo.Size = new System.Drawing.Size(86, 31);
     this.btnNuevo.TabIndex = 6;
     this.btnNuevo.Text = "&NUEVO";
     this.btnNuevo.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.btnNuevo.UseSelectable = true;
     this.btnNuevo.Click += new System.EventHandler(this.btnNuevo_Click);
     //
     // btnSalir
     //
     this.btnSalir.BackgroundImage = global::SeguroIntegral.Escritorio.Properties.Resources.close;
     this.btnSalir.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.btnSalir.FontSize = MetroFramework.MetroButtonSize.Medium;
     this.btnSalir.Location = new System.Drawing.Point(443, 63);
     this.btnSalir.Name = "btnSalir";
     this.btnSalir.Size = new System.Drawing.Size(89, 31);
     this.btnSalir.TabIndex = 6;
     this.btnSalir.Text = "&SALIR";
     this.btnSalir.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.btnSalir.UseSelectable = true;
     //
     // mtFiltro
     //
     this.mtFiltro.AllowUserToResizeRows = false;
     this.mtFiltro.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.mtFiltro.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.mtFiltro.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
     this.mtFiltro.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
     dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle4.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
     dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
     this.mtFiltro.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
     this.mtFiltro.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle5.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(136)))), ((int)(((byte)(136)))), ((int)(((byte)(136)))));
     dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
     dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
     this.mtFiltro.DefaultCellStyle = dataGridViewCellStyle5;
     this.mtFiltro.EnableHeadersVisualStyles = false;
     this.mtFiltro.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     this.mtFiltro.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.mtFiltro.Location = new System.Drawing.Point(538, 446);
     this.mtFiltro.Name = "mtFiltro";
     this.mtFiltro.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
     dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle6.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
     dataGridViewCellStyle6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219)))));
     dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
     dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
     this.mtFiltro.RowHeadersDefaultCellStyle = dataGridViewCellStyle6;
     this.mtFiltro.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
     this.mtFiltro.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.mtFiltro.Size = new System.Drawing.Size(491, 150);
     this.mtFiltro.TabIndex = 7;
     //
     // frmDerivacion
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.BackImage = global::SeguroIntegral.Escritorio.Properties.Resources.GitHub_Mark;
     this.BackImagePadding = new System.Windows.Forms.Padding(350, 15, 0, 0);
     this.BackMaxSize = 45;
     this.BorderStyle = MetroFramework.Forms.MetroFormBorderStyle.FixedSingle;
     this.ClientSize = new System.Drawing.Size(1067, 456);
     this.Controls.Add(this.mtFiltro);
     this.Controls.Add(this.btnSalir);
     this.Controls.Add(this.btnNuevo);
     this.Controls.Add(this.txtPaciente);
     this.Controls.Add(this.dgvDerivaciones);
     this.Controls.Add(this.metroLabel2);
     this.Controls.Add(this.gbDerivacion);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.Name = "frmDerivacion";
     this.Text = "DERIVACION  PACIENTE EE.SS";
     ((System.ComponentModel.ISupportInitialize)(this.dgvDerivaciones)).EndInit();
     this.gbDerivacion.ResumeLayout(false);
     this.gbDerivacion.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.mtFiltro)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }