-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(issue-285): update ui for chatdetail view
- Loading branch information
1 parent
c0de605
commit 432d238
Showing
3 changed files
with
66 additions
and
20 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...pps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk/Converters/InversOwnerConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
using System.Globalization; | ||
using Xamarin.Forms; | ||
|
||
namespace O2NextGen.SmallTalk.Core.Converters | ||
{ | ||
public class InversOwnerConverter : IValueConverter | ||
{ | ||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
if (value == null) | ||
return false; | ||
var val = int.Parse(value.ToString()); | ||
if (val == 1) | ||
{ | ||
return true; | ||
} | ||
return false; | ||
} | ||
|
||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...obileApps/Small-Talk/O2NextGen.SmallTalk/O2NextGen.SmallTalk/Converters/OwnerConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Globalization; | ||
using System.Text; | ||
using Xamarin.Forms; | ||
|
||
namespace O2NextGen.SmallTalk.Core.Converters | ||
{ | ||
public class OwnerConverter : IValueConverter | ||
{ | ||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
if(value == null) | ||
return true; | ||
var val = int.Parse(value.ToString()); | ||
if (val == 1) | ||
{ | ||
return false; | ||
} | ||
return true; | ||
} | ||
|
||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters