コード例 #1
0
 public OpretInstrumentForm(VisInstrumenterForm inPrevForm, int inVareGruppe)
 {
     InitializeComponent();
     prevForm   = inPrevForm;
     vareGruppe = inVareGruppe;
     FyldProducentCombo();
     ProducentCombo.SelectedIndex = 0;
 }
コード例 #2
0
 public OpdaterInstrumentForm(VisInstrumenterForm inPrevForm, Instrument inInstrument, int inGruppeId)
 {
     //sætter variabler der skal bruges af formen
     InitializeComponent();
     prevForm   = inPrevForm;
     instrument = inInstrument;
     gruppeId   = inGruppeId;
     LoadTextBokse();
     FyldProducentCombo();
     ProducentCombo.SelectedIndex = 0;
 }
コード例 #3
0
        private void InstrumentGrpGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            //Modtager id på valgt varegruppe
            valgtVareGruppeId = (int)InstrumentGrpGrid.Rows[InstrumentGrpGrid.CurrentRow.Index].Cells[0].Value;
            //instanciere en visinstrumenter form som modtager den nuværende form samt det valgte gruppeid
            VisInstrumenterForm visInstrumenter = new VisInstrumenterForm(this, valgtVareGruppeId);

            //Skjuler denne form og viser instrumentform med instrumenter for den valgte varegruppe
            this.Hide();
            visInstrumenter.Show();
        }