private void FrmUtilisateur_Load(object sender, EventArgs e) { // mdl.Bind("SELECT * FROM users", paramDataSet.users); mdl.Bind(dataGridView1, bindingNavigator1, paramDataSet.users, usersBindingSource, "SELECT * FROM users"); classerUtilisateur(); Utilitaire.desactiverColonnes_All(dataGridView1); }
private void FormPatient_Load(object sender, EventArgs e) { Tools.Connect(); mdl.Bind(dataGridView1, bindingNavigator1, medecinDataSet.patient, patientBindingSource, "SELECT * FROM patient"); Utilitaire.chargerToolStripComboListe(patientBindingSource, medecinDataSet.patient, toolStripComboBox1, 7); Utilitaire.desactiverColonnes_All(dataGridView1); }
private void FormHospitalisation_Load(object sender, EventArgs e) { mdl.Bind("SELECT * FROM consultation", medecinDataSet.consultation); mdl.Bind(dataGridView1, bindingNavigator1, medecinDataSet.hospitalisation, hospitalisationBindingSource, "SELECT * FROM hospitalisation"); Utilitaire.chargerToolStripComboListe(hospitalisationBindingSource, medecinDataSet.hospitalisation, toolStripComboBox1, 1); Utilitaire.desactiverColonnes_All(dataGridView1); }
private void FicheRendezvous_Load(object sender, EventArgs e) { ConnexionDPI.Tools.Connect(); mdl.Bind("select * from patient", secretaireDataSet.patient); mdl.Bind("select * from personnel", secretaireDataSet.personnel); mdl.Bind("select * from consultation", secretaireDataSet.consultation); dateTimePicker1.MinDate = DateTime.Today; }
private void FormPatient_Load(object sender, EventArgs e) { ConnexionDPI.Tools.Connect(); //mdl.Bind("select * from patient", secretaireDataSet.patient); //mdl.Bind("select * from specialite", paramDataSet.specialite); //Utilitaire.chargerToolStripComboListe(specialiteBindingSource, paramDataSet.specialite, toolStripComboBox1, 1); mdl.Bind(dataGridView1, bindingNavigator1, secretaireDataSet.patient, bindingSourcePatient, "select * from patient"); Utilitaire.desactiverColonnes_All(dataGridView1); }
private void FormRendezvousMedecin_Load(object sender, EventArgs e) { model.Bind("select * from patient", medecinDataSet.patient); dataGridView1.RowCount = 10; gererDate(dateDebut.DayOfWeek + ""); toolStripLabel1.Text = dateDebut.ToString("dd/MM/yyyy"); toolStripLabel2.Text = dateFin.ToString("dd/MM/yyyy"); charger(); }
private void FormConsultationBis_Load(object sender, EventArgs e) { model.Bind("select * from pathologie", medecinDataSet.pathologie); model.Bind("select * from examen", medecinDataSet.examen); model.Bind("select * from medicament", medecinDataSet.medicament); model.Bind("select * from patient where idPatient=" + idPatient, medecinDataSet.patient); hospitaliserToolStripMenuItem.Enabled = false; // this.reportViewer1.RefreshReport(); }
private void FormRendezvous_Load(object sender, EventArgs e) { //ConnexionDPI.Tools.Connect(); mdl.Bind("select * from patient", secretaireDataSet.patient); mdl.Bind("select * from personnel", secretaireDataSet.personnel); mdl.Bind("select * from consultation", secretaireDataSet.consultation); //Utilitaire.chargerToolStripComboListe(specialiteBindingSource, paramDataSet.specialite, toolStripComboBox1, 1); mdl.Bind(dataGridView1, bindingNavigator1, secretaireDataSet.rendezvous, bindingSourceRendezvous, "select * from rendezvous"); Utilitaire.desactiverColonnes_All(dataGridView1); }
private void FicheSalle_Load(object sender, EventArgs e) { mdl.Bind("select * from service", paramDataSet.service); mdl.Bind("select * from typedesalle", paramDataSet.typedesalle); if (appel > 0) { mdl.Bind("select * from salle where idSalle='" + idsalle + "'", paramDataSet.Salle); if (appel == 1) { desactiverTout(); } } }
private void FicheSalle_Load(object sender, EventArgs e) { modele.Bind("select * from typedesalle", dataInfirmier.typedesalle); modele.Bind("select * from service", dataInfirmier.Service); if (choix > 0) { modele.Bind("select * from salle where idSalle=" + idSalle, dataInfirmier.Salle, salleBindingSource); if (choix == 1) { desactiver(); } } }
private void FichePersonnel_Load(object sender, EventArgs e) { mdl.Bind("select * from service", paramDataSet.service); mdl.Bind("select * from specialite", paramDataSet.specialite); if (appel > 0) { mdl.Bind("select * from personnel where idPersonnel='" + idpersonnel + "'", paramDataSet.Personnel); if (appel == 1) { desactiverTout(); } } }
protected override void Check() { var c1 = new C5(); var c2 = new C6(); var c3 = new C6(); var m = new Model(); m.AddRootComponents(c2, c1, c3); m.Bind(c1.RequiredPorts.M = c2.ProvidedPorts.N); m.Bind(c1.RequiredPorts.M = c3.ProvidedPorts.N); Tests.RaisesWith<AmbiguousBindingsException>(() => m.Seal(), e => e.RequiredPort.ShouldBe(m.Metadata.RootComponent.Subcomponents[1].RequiredPorts[0])); }
void recordDraw(CommandBuffer cmd, Framebuffer fb) { cmd.BeginRegion("models", 0.5f, 1f, 0f); pipeline.RenderPass.Begin(cmd, fb); cmd.SetViewport(fb.Width, fb.Height); cmd.SetScissor(fb.Width, fb.Height); cmd.BindDescriptorSet(pipeline.Layout, dsMats); pipeline.Bind(cmd); model.Bind(cmd); model.DrawAll(cmd, pipeline.Layout); cmd.EndRegion(); cmd.BeginRegion("vkvg", 0.5f, 1f, 0f); uiPipeline.Bind(cmd); timestampQPool.Start(cmd); vkvgImage.SetLayout(cmd, VkImageAspectFlags.Color, VkImageLayout.ColorAttachmentOptimal, VkImageLayout.ShaderReadOnlyOptimal, VkPipelineStageFlags.ColorAttachmentOutput, VkPipelineStageFlags.FragmentShader); cmd.Draw(3, 1, 0, 0); vkvgImage.SetLayout(cmd, VkImageAspectFlags.Color, VkImageLayout.ShaderReadOnlyOptimal, VkImageLayout.ColorAttachmentOptimal, VkPipelineStageFlags.FragmentShader, VkPipelineStageFlags.BottomOfPipe); timestampQPool.End(cmd); pipeline.RenderPass.End(cmd); cmd.EndRegion(); }
private void Form2_Load(object sender, EventArgs e) { // Tools.Connect(); model.Bind("select * from patient", test.patient); model.Bind("select * from personnel", test.personnel); dataGridView1.RowCount = 10; Utilitaire.chargerToolStripComboListe(medecinSource1, test.personnel, toolStripComboBox2, 5); MessageBoxButtons button = MessageBoxButtons.YesNoCancel; MessageBoxIcon icon = MessageBoxIcon.Warning; // MessageBox.Show(dateDebut.DayOfWeek+"", "Tester", button, icon); gererDate(dateDebut.DayOfWeek + ""); toolStripLabel3.Text = dateDebut.ToString("dd/MM/yyyy"); toolStripLabel4.Text = dateFin.ToString("dd/MM/yyyy"); }
private void FormConnexion_Load(object sender, EventArgs e) { Tools.Connect(); mdl.Bind("SELECT * FROM personnel", dPIDataSet.personnel); comboBox1.ResetText(); this.AcceptButton = button1; }
private void FormConsultation_Load(object sender, EventArgs e) { mdl.Bind("SELECT * FROM pathologie", medecinDataSet.pathologie); mdl.Bind("SELECT * FROM personnel", medecinDataSet.personnel); mdl.Bind("SELECT * FROM patient", medecinDataSet.patient); mdl.Bind(dataGridView1, bindingNavigator1, medecinDataSet.consultation, consultationBindingSource, "SELECT * FROM consultation"); Utilitaire.chargerToolStripComboListe(consultationBindingSource, medecinDataSet.consultation, toolStripComboBox1, 4); Utilitaire.desactiverColonnes_All(dataGridView1); }
private void FormTest_Load(object sender, EventArgs e) { // Set a cell padding to provide space for the top of the focus // rectangle and for the content that spans multiple columns. Padding newPadding = new Padding(0, 1, 0, CUSTOM_CONTENT_HEIGHT); this.dataGridView1.RowTemplate.DefaultCellStyle.Padding = newPadding; // Set the selection background color to transparent so // the cell won't paint over the custom selection background. this.dataGridView1.RowTemplate.DefaultCellStyle.SelectionBackColor = Color.Transparent; // Set the row height to accommodate the content that // spans multiple columns. this.dataGridView1.RowTemplate.Height += CUSTOM_CONTENT_HEIGHT; // Initialize other DataGridView properties. this.dataGridView1.AllowUserToAddRows = false; this.dataGridView1.EditMode = DataGridViewEditMode.EditOnKeystrokeOrF2; this.dataGridView1.CellBorderStyle = DataGridViewCellBorderStyle.None; this.dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect; Tools.Connect(); modele.Bind("select * from personnel", dataInfirmier.personnel); modele.Bind(dataGridView1, bindingNavigator1, dataInfirmier.prescription, prescriptionBindingSource, "select * from prescription"); Utilitaire.desactiverColonnes_All(dataGridView1); // Adjust the row heights to accommodate the normal cell content. this.dataGridView1.AutoResizeRows( DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders); // Attach handlers to DataGridView events. this.dataGridView1.ColumnWidthChanged += new DataGridViewColumnEventHandler(dataGridView1_ColumnWidthChanged); this.dataGridView1.RowPrePaint += new DataGridViewRowPrePaintEventHandler(dataGridView1_RowPrePaint); this.dataGridView1.RowPostPaint += new DataGridViewRowPostPaintEventHandler(dataGridView1_RowPostPaint); this.dataGridView1.CurrentCellChanged += new EventHandler(dataGridView1_CurrentCellChanged); this.dataGridView1.RowHeightChanged += new DataGridViewRowEventHandler(dataGridView1_RowHeightChanged); }
private void FormPrescription_Load(object sender, EventArgs e) { modele.Bind("select * from personnel", dataInfirmier.personnel); modele.Bind("select * from hospitalisation", dataInfirmier.hospitalisation); modele.Bind(dataGridView1, bindingNavigator1, dataInfirmier.prescription, prescriptionBindingSource, "select * from prescription"); Utilitaire.desactiverColonnes_All(dataGridView1); }
public virtual void Render(Camera camera, CameraRenderData data) { Model.Program.Use(); Model.Bind(); UpdateModelView(); camera.Render(this, data); }
public override void Draw() { model.Bind(); //GL.DrawElements(BeginMode.Triangles, 6, DrawElementsType.UnsignedInt, IntPtr.Zero); GL.DrawArrays(PrimitiveType.Triangles, 0, 6); model.UnBind(); }
protected override void Check() { var c = new C4(); var m = new Model(); m.AddRootComponent(c); m.Bind(c.RequiredPorts.M = c.ProvidedPorts.A); Tests.RaisesWith<AmbiguousBindingsException>(() => m.Seal(), e => e.RequiredPort.ShouldBe(m.Metadata.RootComponent.Subcomponents[0].RequiredPorts[0])); }
private void FichePatient_Load(object sender, EventArgs e) { if (statut > 0) { model.Bind("select * from patient where idPatient=" + id, secretaireDataSet.patient, bindingSourcePatient); if (statut == 1) { DesactiverTextBox(); } } }
private void FicheConsultation_Load(object sender, EventArgs e) { mdl.Bind("SELECT * FROM pathologie", medecinDataSet.pathologie); //comboBox_pathologie.ResetText(); mdl.Bind("SELECT * FROM personnel", medecinDataSet.personnel); //comboBox_medecin.ResetText(); mdl.Bind("SELECT * FROM patient", medecinDataSet.patient); //comboBox_patient.ResetText(); if (appel > 0)//Clic-droit Détails or Clic-droit Modifier { mdl.Bind("SELECT * FROM consultation WHERE idConsultation =" + idConsultation, medecinDataSet.consultation, consultationBindingSource); if (appel == 1) { desactiverTout(); } } }
protected override void Check() { var x = new X(); var y = new Y(); var m = new Model(); m.AddRootComponents(x, y); m.Bind(y.RequiredPorts.M = x.ProvidedPorts.N); m.Seal(); m.Metadata.Bindings.Length.ShouldBe(1); }
protected override void Check() { var x1 = new X1(); var x2 = new X2(); var m = new Model(); m.AddRootComponents(new X3(x1, x2)); m.Bind(x1.RequiredPorts.M = x2.ProvidedPorts.M); m.Seal(); m.Metadata.Bindings.Length.ShouldBe(1); }
private void FormSalle_Load(object sender, EventArgs e) { modele.Bind("select * from service", dataInfirmier.Service); modele.Bind("select * from typedesalle", dataInfirmier.typedesalle); modele.Bind(dataGridView1, bindingNavigator1, dataInfirmier.Salle, salleBindingSource, "select * from salle"); Utilitaire.desactiverColonnes_All(dataGridView1); }
private void FormSalle_Load(object sender, EventArgs e) { mdl.Bind("select * from service", paramDataSet.service); mdl.Bind("select * from typedesalle", paramDataSet.typedesalle); Utilitaire.chargerToolStripComboListe(serviceBindingSource, paramDataSet.service, toolStripComboBox1, 2); mdl.Bind(dataGridView1, bindingNavigator1, paramDataSet.Salle, salleBindingSource, "select * from salle"); Utilitaire.desactiverColonnes_All(dataGridView1); }
private void FormPersonnels_Load(object sender, EventArgs e) { mdl.Bind("select * from service", paramDataSet.service); mdl.Bind("select * from specialite", paramDataSet.specialite); Utilitaire.chargerToolStripComboListe(specialiteBindingSource, paramDataSet.specialite, toolStripComboBox1, 1); mdl.Bind(dataGridView1, bindingNavigator1, paramDataSet.Personnel, personnelBindingSource, "select * from personnel"); Utilitaire.desactiverColonnes_All(dataGridView1); }
protected override void Check() { var x1 = new X1(); var x2 = new X2(); var m = new Model(); m.AddRootComponents(new X3(x1, x2)); m.Bind(x1.RequiredPorts.M = x2.ProvidedPorts.M); m.Seal(); m.Metadata.Bindings[0].DeclaringComponent.ShouldBe(m.Metadata.RootComponent); m.Metadata.Bindings[0].ProvidedPort.ShouldBe(x2.Metadata.ProvidedPorts[0]); m.Metadata.Bindings[0].RequiredPort.ShouldBe(x1.Metadata.RequiredPorts[0]); }
public virtual void Render() { Model.Bind(); var t = Matrix4.CreateTranslation(Position.X, Position.Y, Position.Z); var rX = Matrix4.CreateRotationX(Rotation.X); var rY = Matrix4.CreateRotationY(Rotation.Y); var rZ = Matrix4.CreateRotationZ(Rotation.Z); var s = Matrix4.CreateScale(Scale); ModelView = rX * rY * rZ * s * t; GL.UniformMatrix4(Model.ModelViewParameterId, false, ref ModelView); Model.Render(); }
private void FichePrescription_Load(object sender, EventArgs e) { mdl1.Bind("SELECT * FROM personnel", medecinDataSet.personnel); //comboBox_medecin.Text = Tools.paramUsers.getCurrentUser().getFullName(); //comboBox_medecin.Enabled = false; if (appel > 0) { //comboBox_medecin.Text = Tools.paramUsers.getCurrentUser().getFullName(); //comboBox_medecin.Enabled = false; mdl.Bind("select * from prescription where idPrescription='" + idPrescription + "'", medecinDataSet.Prescription, prescriptionBindingSource); if (appel == 1) { desactiverTout(); } } }
private void FicheHospitalisation_Load(object sender, EventArgs e) { mdl1.Bind("SELECT * FROM consultation", medecinDataSet.consultation); //comboBox_consultation.ResetText(); if (appel > 0)//Clic-droit Détails or Clic-droit Modifier { mdl.Bind("SELECT * FROM hospitalisation WHERE idHospitalisation ='" + idHospitalisation + "'", medecinDataSet.hospitalisation, hospitalisationBindingSource); if (appel == 1) { desactiverTout(); } } }
private void Prescription_Load(object sender, EventArgs e) { if (appel == 4) { mdl.Bind("SELECT * FROM personnel", medecinDataSet.personnel); mdl.Bind("SELECT * FROM hospitalisation where idHospitalisation=" + idHospitalisation, medecinDataSet.hospitalisation); mdl.Bind(dataGridView1, bindingNavigator1, medecinDataSet.Prescription, prescriptionBindingSource, "select * from prescription where prescription.idHospitalisation='" + idHospitalisation + "'"); // comboBox1.Enabled = false; comboBox1.ForeColor = Color.White; comboBox1.BackColor = Color.White; Utilitaire.desactiverColonnes_All(dataGridView1); } }
void recordDraw(CommandBuffer cmd, Framebuffer fb) { renderPass.Begin(cmd, fb); cmd.SetViewport(fb.Width, fb.Height); cmd.SetScissor(fb.Width, fb.Height); cmd.BindDescriptorSet(gBuffPipeline.Layout, dsMain); gBuffPipeline.Bind(cmd); model.Bind(cmd); model.DrawAll(cmd, gBuffPipeline.Layout); renderPass.BeginSubPass(cmd); cmd.BindDescriptorSet(composePipeline.Layout, dsGBuff, 2); composePipeline.Bind(cmd); cmd.Draw(3, 1, 0, 0); renderPass.End(cmd); }
public void Update() { GizmoVertex[] dirtyVerts = Gizmos.GetVertices(); if (dirtyVerts != null) { int count = dirtyVerts.Length; if (count > 0) { List <GizmoVertex> vertices = new List <GizmoVertex>(); List <uint> indices = new List <uint>(); Dictionary <GizmoVertex, uint> vertexLookup = new Dictionary <GizmoVertex, uint>(); for (int i = 0; i < count; ++i) { GizmoVertex vert = dirtyVerts[i]; if (vertexLookup.ContainsKey(vert)) { indices.Add(vertexLookup[vert]); continue; } uint index = (uint)vertices.Count; vertices.Add(vert); indices.Add(index); vertexLookup.Add(vert, index); } m_model.SetData(vertices.ToArray(), indices.ToArray(), 0.0f, m_vertexInfo); m_model.Bind(); GraphicsCommand.BindProgram(m_program); GraphicsCommand.DrawElementsUInt(m_model.Indices); } } }
private static void Bind(Model m, X x) { m.Bind(x.RequiredPorts.N = x.ProvidedPorts.M); }
private void Q(X2 x1, X2 x2, Model m) { m.Bind(x1.RequiredPorts.N = x2.ProvidedPorts.M); this.In.GetModel().Bind(x1.RequiredPorts.N = x2.ProvidedPorts.M); }