Esempio n. 1
0
 void dgvSoftware_RowEnter(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvSoftware.Rows.Count > 0)
     {
         this.mySelectedSoftware = this.dgvSoftware.Rows[e.RowIndex].DataBoundItem as Model.Entities.Kundensoftware;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Erstellt eine neuen Instanz der SoftwareView Klasse.
 /// </summary>
 public SoftwareView(Model.Entities.Kundensoftware software, Model.Entities.Kunde kunde, Model.Entities.Kundenmaschine maschine = null)
 {
     InitializeComponent();
     mySoftware = software;
     myCustomer = kunde;
     myMachine  = maschine;
     InitializeData();
 }
Esempio n. 3
0
        public PanelSoftware(ContainerControl parentCtrl, Model.Entities.Kundensoftware software, bool keepLoaded) : base(parentCtrl, keepLoaded)
        {
            InitializeComponent();
            this.myParent   = parentCtrl as Views.KundeMainView;
            this.mySoftware = software;
            this.myKunde    = software.Kunde;

            this.InitializeData();
            this.OnClosed += pnlSoftware_OnClosed;
        }
Esempio n. 4
0
        private void dgvSoftware_RowEnter(object sender, DataGridViewCellEventArgs e)
        {
            DataGridViewRow row = dgvSoftware.Rows[e.RowIndex];

            if (row != null)
            {
                currentSoftware      = row.DataBoundItem as Model.Entities.Kundensoftware;
                mtxtAnmerkungen.Text = currentSoftware.Anmerkungen;
            }
        }
Esempio n. 5
0
 private void dgvSoftware_RowEnter(object sender, DataGridViewCellEventArgs e)
 {
     currentSoftware = dgvSoftware.Rows[e.RowIndex].DataBoundItem as Model.Entities.Kundensoftware;
 }