Nicolas Jager | bf406b2 | 2016-10-21 11:32:33 -0400 | [diff] [blame] | 1 | #pragma once
|
| 2 | /**************************************************************************
|
| 3 | * Copyright (C) 2016 by Savoir-faire Linux *
|
| 4 | * Author: Jäger Nicolas <nicolas.jager@savoirfairelinux.com> *
|
| 5 | * Author: Traczyk Andreas <traczyk.andreas@savoirfairelinux.com> *
|
| 6 | * *
|
| 7 | * This program is free software; you can redistribute it and/or modify *
|
| 8 | * it under the terms of the GNU General Public License as published by *
|
| 9 | * the Free Software Foundation; either version 3 of the License, or *
|
| 10 | * (at your option) any later version. *
|
| 11 | * *
|
| 12 | * This program is distributed in the hope that it will be useful, *
|
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
| 15 | * GNU General Public License for more details. *
|
| 16 | * *
|
| 17 | * You should have received a copy of the GNU General Public License *
|
| 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
| 19 | **************************************************************************/
|
| 20 | using namespace Platform;
|
| 21 | using namespace Windows::Data::Json;
|
| 22 | using namespace Windows::UI::Xaml;
|
| 23 | using namespace Windows::UI::Xaml::Data;
|
| 24 |
|
| 25 | namespace RingClientUWP
|
| 26 | {
|
| 27 | namespace Controls {
|
| 28 | public ref class AccountListItem sealed : public INotifyPropertyChanged
|
| 29 | {
|
| 30 | public:
|
| 31 | AccountListItem(Account^ a);
|
| 32 |
|
| 33 | virtual event PropertyChangedEventHandler^ PropertyChanged;
|
| 34 | property Account^ _account;
|
| 35 | property bool _isSelected {
|
| 36 | void set(bool value) {
|
| 37 | isSelected_ = value;
|
| 38 | PropertyChanged(this, ref new PropertyChangedEventArgs("_isSelected"));
|
| 39 | }
|
| 40 | bool get() {
|
| 41 | return isSelected_;
|
| 42 | }
|
| 43 | }
|
Nicolas Jager | 6abfc0d | 2016-10-21 14:57:47 -0400 | [diff] [blame^] | 44 | property bool _editionMode;
|
Nicolas Jager | bf406b2 | 2016-10-21 11:32:33 -0400 | [diff] [blame] | 45 |
|
| 46 | protected:
|
| 47 | void NotifyPropertyChanged(String^ propertyName);
|
| 48 |
|
| 49 | private:
|
| 50 | bool isSelected_;
|
| 51 |
|
| 52 | };
|
| 53 | }
|
| 54 | }
|
| 55 |
|