public FixedAssetView() { InitializeComponent(); DataContext = new FixedAssetPresenter(this); }
private void ChangeCurrentRow(FixedAssetPresenter fixedAssetPresenter, FixedAssetEditPresenter fixedassetEdit, FixedAsset obj) { FixedAsset asset = ((FixedAsset)fixedassetEdit.View.DataContext); obj.id = asset.id; obj.cassation = asset.cassation; obj.comment = asset.comment; obj.created_by = asset.created_by; obj.date_of_activation = asset.date_of_activation; obj.date_of_desactivation = asset.date_of_desactivation; obj.id_contractor = asset.id_contractor; obj.id_kind = asset.id_kind; obj.id_person = asset.id_person; obj.id_subgroup = asset.id_subgroup; obj.inventory_number = asset.inventory_number; obj.last_modifed_login = asset.last_modifed_login; obj.last_modified_date = asset.last_modified_date; obj.localization = asset.localization; obj.MPK = asset.MPK; obj.quantity = asset.quantity; obj.serial_number = asset.serial_number; fixedAssetPresenter.View.dataGridFixedAssets.Items.Refresh(); }