This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.awt.Frame; | |
| import java.awt.event.WindowAdapter; | |
| import java.awt.event.WindowEvent; | |
| import javax.media.opengl.GL; | |
| import javax.media.opengl.GLAutoDrawable; | |
| import javax.media.opengl.GLCanvas; | |
| import javax.media.opengl.GLEventListener; | |
| import com.sun.opengl.util.Animator; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<GL/glut.h> | |
| /* | |
| @author MayogaX (Priscila Mayumi Sato) | |
| Casinha desenhada com OpenGL usando a linguagem C++ | |
| nas aulas da UMESP (aulas do prof Danilo Costa) | |
| 2D Primitivas Gráficas com OpenGL | |
| */ | |
| void desenha(){ | |
| //Fornece os valores para limpeza do buffer de cor no modo RGBA | |
| glClearColor(0.0,0.0,0.0,0.0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @{ | |
| ViewBag.Title = "Tópico"; | |
| Layout = "~/Views/Shared/_Layout.cshtml"; | |
| } | |
| <select multiple="multiple" size="6" id="selectTopicosNaoTema"> | |
| </select> | |
| <input type="button" id="btAddTopico" onclick="AddTopico();" value="Adicionar >>" /> | |
| <input type="button" id="btTirarTopico" onclick="TirarTopico();" value="<< Remover" /> | |
| <select multiple="multiple" size="6" id="selectTopicosDoTema"> | |
| </select> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void PrintRows(DataSet dataSet) | |
| { | |
| // For each table in the DataSet, print the row values. | |
| foreach(DataTable table in dataSet.Tables) | |
| { | |
| foreach(DataRow row in table.Rows) | |
| { | |
| foreach (DataColumn column in table.Columns) | |
| { | |
| Console.WriteLine(row[column]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private List<T> PopulaMinhaLista(List<T> lista) | |
| { | |
| MinhaClasse minha = new MinhaClasse(); | |
| minha.propriedade = “valor em string aê"; | |
| minha.total = 666; | |
| lista.Add(minha); | |
| return lista; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List<MinahClasse> lista = new List<MinhaClasse>(); | |
| SqlDataReader reader = cmd.ExecuteReader(); | |
| while (reader.Read()) | |
| { | |
| MinhaClasse classe = new MinhaClasse(); | |
| classe.propriedade = reader["propriedade"].ToString(); | |
| classe.total = Convert.Toint32(reader["total"]); | |
| lista.Add(classe); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Enable-Migrations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add-Migration NomeDaMigration, | |
| Update-database |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Update-Database -TargetMigration:"201210301049442_second2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Enable-Migrations -EnableAutomaticMigrations |
OlderNewer