Moved converters from portable project to native project 65/179965/2
authorMichal Kolodziejski <m.kolodziejs@samsung.com>
Wed, 23 May 2018 13:01:00 +0000 (15:01 +0200)
committerMichal Kolodziejski <m.kolodziejs@samsung.com>
Wed, 23 May 2018 14:37:23 +0000 (16:37 +0200)
Change-Id: Ic10ef9ff06f8eb4840e7acce4b70ce42118caa9c
Signed-off-by: Michal Kolodziejski <m.kolodziejs@samsung.com>
35 files changed:
Clock/Clock.Tizen.Mobile/Clock.xaml
Clock/Clock.Tizen.Mobile/Controls/ClockMap.xaml
Clock/Clock.Tizen.Mobile/Controls/DateSelector.xaml
Clock/Clock.Tizen.Mobile/Controls/DateSelector.xaml.cs
Clock/Clock.Tizen.Mobile/Controls/DateTimeSelector.xaml
Clock/Clock.Tizen.Mobile/Tools/Converters/AlarmListDateToTextConverter.cs [moved from Clock/Clock/Tools/Converters/AlarmListDateToTextConverter.cs with 97% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/AlarmRecurrenceToFormattedTextConverter.cs [moved from Clock/Clock/Tools/Converters/AlarmRecurrenceToFormattedTextConverter.cs with 98% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/AlarmStateToIsToggledConverter.cs [new file with mode: 0644]
Clock/Clock.Tizen.Mobile/Tools/Converters/AlarmTypeToBoolConverter.cs [moved from Clock/Clock/Tools/Converters/AlarmTypeToBoolConverter.cs with 97% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/AlarmTypeToSoundIconOpacityConverter.cs [moved from Clock/Clock/Tools/Converters/AlarmTypeToSoundIconOpacityConverter.cs with 97% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/ClockLocationToDayMonthConverter.cs [moved from clock/Clock/Tools/Converters/ClockLocationToDayMonthConverter.cs with 95% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/ClockLocationToOffsetConverter.cs [moved from clock/Clock/Tools/Converters/ClockLocationToOffsetConverter.cs with 97% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/ClockLocationToPMDesignationConverter.cs [moved from clock/Clock/Tools/Converters/ClockLocationToPMDesignationConverter.cs with 94% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/ClockLocationToPlaceConverter.cs [moved from clock/Clock/Tools/Converters/ClockLocationToPlaceConverter.cs with 95% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/ClockLocationToTimeConverter.cs [moved from clock/Clock/Tools/Converters/ClockLocationToTimeConverter.cs with 94% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/CollectionToBooleanConverter.cs [moved from clock/Clock/Tools/Converters/CollectionToBooleanConverter.cs with 94% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/CollectionToFalseConverter.cs [moved from clock/Clock/Tools/Converters/CollectionToFalseConverter.cs with 93% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/DateTimeToAmPmConverter.cs [moved from Clock/Clock/Tools/Converters/DateTimeToAmPmConverter.cs with 96% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/DateTimeToDateConverter.cs [moved from Clock/Clock/Tools/Converters/DateTimeToDateConverter.cs with 96% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/EmptyCollectionToBoolConverter.cs [moved from Clock/Clock/Tools/Converters/EmptyCollectionToBoolConverter.cs with 96% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/InvertBoolConverter.cs [moved from Clock/Clock/Tools/Converters/InvertBoolConverter.cs with 94% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/PlacesSummaryConverter.cs [moved from clock/Clock/Tools/Converters/PlacesSummaryConverter.cs with 96% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/StopWatchStateToVisibilityConverter.cs [moved from Clock/Clock/Tools/Converters/StopWatchStateToVisibilityConverter.cs with 96% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/TimerMenuStateConverter.cs [moved from Clock/Clock/Tools/Converters/TimerMenuStateConverter.cs with 97% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/VolumeLevelConverter.cs [moved from Clock/Clock/Tools/Converters/VolumeLevelConverter.cs with 96% similarity]
Clock/Clock.Tizen.Mobile/Tools/Converters/VolumeLevelToBoolConverter.cs [moved from Clock/Clock/Tools/Converters/VolumeLevelToBoolConverter.cs with 96% similarity]
Clock/Clock.Tizen.Mobile/Views/AddEditAlarmPage.xaml
Clock/Clock.Tizen.Mobile/Views/AlarmListPage.xaml
Clock/Clock.Tizen.Mobile/Views/AlarmRingPage.xaml
Clock/Clock.Tizen.Mobile/Views/DeleteAlarmsPage.xaml
Clock/Clock.Tizen.Mobile/Views/ReorderLocationsPage.xaml
Clock/Clock.Tizen.Mobile/Views/StopWatchPage.xaml
Clock/Clock.Tizen.Mobile/Views/TimerView.xaml
Clock/Clock.Tizen.Mobile/Views/WorldClockPage.xaml
Clock/Clock/Tools/Converters/AlarmStateToIsToggledConverter.cs [deleted file]

index 418c28c..579d14c 100644 (file)
@@ -4,7 +4,7 @@
              xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
              xmlns:services="clr-namespace:Clock.Tizen.Mobile.Services;assembly=Clock.Tizen.Mobile"
              xmlns:controls="clr-namespace:Clock.Tizen.Mobile.Controls;assembly=Clock.Tizen.Mobile"
-             xmlns:converters="clr-namespace:Clock.Tools.Converters;assembly=Clock">
+             xmlns:converters="clr-namespace:Clock.Tizen.Mobile.Tools.Converters;assembly=Clock.Tizen.Mobile">
     <Application.Resources>
         <ResourceDictionary>
             <Style x:Key="AlarmTimeLabelStyle" TargetType="Label">
index 56eaa5b..573b61a 100644 (file)
@@ -4,7 +4,7 @@
                 xmlns="http://xamarin.com/schemas/2014/forms"
                 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                 xmlns:controls="clr-namespace:Clock.Tizen.Mobile.Controls;assembly=Clock.Tizen.Mobile"
-                xmlns:converters="clr-namespace:Clock.Tools.Converters;assembly=Clock"
+                xmlns:converters="clr-namespace:Clock.Tizen.Mobile.Tools.Converters;assembly=Clock.Tizen.Mobile"
                 x:Name="root">
     <AbsoluteLayout.Resources>
         <ResourceDictionary>
index 3727ac8..df283bf 100644 (file)
@@ -3,7 +3,7 @@
 <AbsoluteLayout xmlns="http://xamarin.com/schemas/2014/forms"
                 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                 xmlns:controls="clr-namespace:Clock.Tizen.Mobile.Controls;assembly=Clock.Tizen.Mobile"
-                xmlns:converters="clr-namespace:Clock.Tools.Converters;assembly=Clock"
+                xmlns:converters="clr-namespace:Clock.Tizen.Mobile.Tools.Converters;assembly=Clock.Tizen.Mobile"
                 x:Class="Clock.Tizen.Mobile.Controls.DateSelector">
     <AbsoluteLayout.Resources>
         <ResourceDictionary>
index 4a5430b..7312160 100644 (file)
 
 using Clock.Model;
 using Clock.Tizen.Mobile.Tools.Converters;
-using Clock.Tools.Converters;
 using System;
 using System.ComponentModel;
-using Tizen;
 using Xamarin.Forms;
 
 namespace Clock.Tizen.Mobile.Controls
index 726d7b5..98c920f 100644 (file)
@@ -3,8 +3,7 @@
              xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
              xmlns:controls="clr-namespace:Clock.Tizen.Mobile.Controls;assembly=Clock.Tizen.Mobile"
              x:Class="Clock.Tizen.Mobile.Controls.DateTimeSelector"
-             x:Name="Root"
-             >
+             x:Name="Root">
     <controls:DateSelector x:Name="DateSelector"
                            PropertyChanged="DateSelectorPropertyChanged"
                            AbsoluteLayout.LayoutBounds="0, 0, 1, 0.122"
@@ -19,7 +19,7 @@ using System.Globalization;
 using System.Text;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class AlarmListDateToTextConverter : IValueConverter
     {
@@ -19,7 +19,7 @@ using System.Globalization;
 using Clock.Model;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class AlarmRecurrenceToFormattedTextConverter : IValueConverter
     {
diff --git a/Clock/Clock.Tizen.Mobile/Tools/Converters/AlarmStateToIsToggledConverter.cs b/Clock/Clock.Tizen.Mobile/Tools/Converters/AlarmStateToIsToggledConverter.cs
new file mode 100644 (file)
index 0000000..6822343
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+* Copyright 2018  Samsung Electronics Co., Ltd
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://floralicense.org/license/
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+using Clock.Model;
+using System;
+using System.Globalization;
+using Xamarin.Forms;
+
+namespace Clock.Tizen.Mobile.Tools.Converters
+{
+    public class AlarmStateToIsToggledConverter : IValueConverter
+    {
+        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+        {
+            if (value is Alarm.AlarmState _alarmState)
+            {
+                return _alarmState != Alarm.AlarmState.Deactivated;
+            }
+
+            return false;
+        }
+
+        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+        {
+            throw new NotImplementedException();
+        }
+    }
+}
@@ -19,7 +19,7 @@ using System.Globalization;
 using Clock.Model;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class AlarmTypeToBoolConverter : IValueConverter
     {
@@ -19,7 +19,7 @@ using System.Globalization;
 using Clock.Model;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class AlarmTypeToSoundIconOpacityConverter : IValueConverter
     {
@@ -7,7 +7,7 @@ using System.Text;
 using System.Threading.Tasks;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class ClockLocationToDayMonthConverter : IValueConverter
     {
@@ -7,7 +7,7 @@ using System.Text;
 using System.Threading.Tasks;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class ClockLocationToOffsetConverter : IValueConverter
     {
@@ -7,7 +7,7 @@ using System.Text;
 using System.Threading.Tasks;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class ClockLocationToPMDesignationConverter : IValueConverter
     {
@@ -7,7 +7,7 @@ using System.Text;
 using System.Threading.Tasks;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class ClockLocationToPlaceConverter : IValueConverter
     {
@@ -7,7 +7,7 @@ using System.Text;
 using System.Threading.Tasks;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class ClockLocationToTimeConverter : IValueConverter
     {
@@ -6,7 +6,7 @@ using System.Text;
 using System.Threading.Tasks;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class CollectionToBooleanConverter : IValueConverter
     {
@@ -6,7 +6,7 @@ using System.Text;
 using System.Threading.Tasks;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class CollectionToFalseConverter : IValueConverter
     {
@@ -18,7 +18,7 @@ using System;
 using System.Globalization;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class DateTimeToAmPmConverter : IValueConverter
     {
@@ -18,7 +18,7 @@ using System;
 using System.Globalization;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class DateTimeToDateConverter : IValueConverter
     {
@@ -18,7 +18,7 @@ using System;
 using System.Globalization;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class EmptyCollectionToBoolConverter : IValueConverter
     {
@@ -6,7 +6,7 @@ using System.Text;
 using System.Threading.Tasks;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     class InvertBoolConverter : IValueConverter
     {
@@ -7,7 +7,7 @@ using System.Text;
 using System.Threading.Tasks;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class PlacesSummaryConverter : IValueConverter
     {
@@ -18,7 +18,7 @@ using System;
 using System.Globalization;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class StopWatchStateToVisibilityConverter : IValueConverter
     {
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
 using Xamarin.Forms;
 using Clock.ViewModels;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class TimerMenuStateConverter : IValueConverter
     {
@@ -18,7 +18,7 @@ using System;
 using System.Globalization;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class VolumeLevelConverter : IValueConverter
     {
@@ -18,7 +18,7 @@ using System;
 using System.Globalization;
 using Xamarin.Forms;
 
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
 {
     public class VolumeLevelToBoolConverter : IValueConverter
     {
index d3b9faf..2b85b61 100644 (file)
@@ -4,8 +4,7 @@
                 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                 xmlns:controls="clr-namespace:Clock.Tizen.Mobile.Controls;assembly=Clock.Tizen.Mobile"
                 xmlns:behaviors="clr-namespace:Clock.Tizen.Mobile.Behaviors;assembly=Clock.Tizen.Mobile"
-                xmlns:converters="clr-namespace:Clock.Tools.Converters;assembly=Clock"
-                xmlns:nativeConverters="clr-namespace:Clock.Tizen.Mobile.Tools.Converters;assembly=Clock.Tizen.Mobile"
+                xmlns:converters="clr-namespace:Clock.Tizen.Mobile.Tools.Converters;assembly=Clock.Tizen.Mobile"
                 xmlns:generic="clr-namespace:System.Collections.Generic;assembly=System.Collections"
                 xmlns:views="clr-namespace:Clock.Tizen.Mobile.Views;assembly=Clock.Tizen.Mobile"
                 xmlns:popups="clr-namespace:Clock.Tizen.Mobile.Controls.Popups;assembly=Clock.Tizen.Mobile"
@@ -28,7 +27,7 @@
             <converters:AlarmTypeToBoolConverter x:Key="AlarmTypeToBoolConverter" />
             <converters:AlarmTypeToSoundIconOpacityConverter x:Key="AlarmTypeToSoundIconOpacityConverter" />
             <converters:VolumeLevelConverter x:Key="VolumeLevelConverter" />
-            <nativeConverters:DaysOfWeekToStringConverter x:Key="DaysOfWeekToStringConverter" />
+            <converters:DaysOfWeekToStringConverter x:Key="DaysOfWeekToStringConverter" />
             <DataTemplate x:Key="timeEditTemplate">
                 <ViewCell Height="474">
                     <AbsoluteLayout>
index 616ee8b..6e54baf 100644 (file)
@@ -2,7 +2,7 @@
 <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
              xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
              xmlns:controls="clr-namespace:Clock.Tizen.Mobile.Controls;assembly=Clock.Tizen.Mobile"
-             xmlns:converters="clr-namespace:Clock.Tools.Converters;assembly=Clock"
+             xmlns:converters="clr-namespace:Clock.Tizen.Mobile.Tools.Converters;assembly=Clock.Tizen.Mobile"
              xmlns:behaviors="clr-namespace:Clock.Tizen.Mobile.Behaviors;assembly=Clock.Tizen.Mobile"
              xmlns:popup="clr-namespace:Clock.Tizen.Mobile.Controls.Popup;assembly=Clock.Tizen.Mobile"
              x:Class="Clock.Tizen.Mobile.Views.AlarmListPage"
index e82a6e4..29bc8a6 100644 (file)
@@ -3,7 +3,7 @@
 <controls:PageWithClickEvents xmlns="http://xamarin.com/schemas/2014/forms"
                               xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                               xmlns:controls="clr-namespace:Clock.Tizen.Mobile.Controls;assembly=Clock.Tizen.Mobile"
-                              xmlns:converters="clr-namespace:Clock.Tools.Converters;assembly=Clock"
+                              xmlns:converters="clr-namespace:Clock.Tizen.Mobile.Tools.Converters;assembly=Clock.Tizen.Mobile"
                               xmlns:behaviors="clr-namespace:Clock.Tizen.Mobile.Behaviors;assembly=Clock.Tizen.Mobile"
                               x:Class="Clock.Tizen.Mobile.Views.AlarmRingPage"
                               NavigationPage.HasNavigationBar="False"
index eafb4b0..113af18 100644 (file)
@@ -4,7 +4,7 @@
              x:Class="Clock.Tizen.Mobile.Views.DeleteAlarmsPage"
              xmlns:views="clr-namespace:Clock.Tizen.Mobile.Views;assembly=Clock.Tizen.Mobile"
              xmlns:controls="clr-namespace:Clock.Tizen.Mobile.Controls;assembly=Clock.Tizen.Mobile"
-             xmlns:converters="clr-namespace:Clock.Tools.Converters;assembly=Clock"
+             xmlns:converters="clr-namespace:Clock.Tizen.Mobile.Tools.Converters;assembly=Clock.Tizen.Mobile"
              xmlns:behaviors="clr-namespace:Clock.Tizen.Mobile.Behaviors;assembly=Clock.Tizen.Mobile"
              xmlns:list="clr-namespace:Clock.Tizen.Mobile.Controls.Lists;assembly=Clock.Tizen.Mobile"
              BindingContext="{Binding Path=DeleteAlarmsViewModel, Source={StaticResource ViewModelLocator}}"
index 16f85ad..c782adb 100644 (file)
@@ -4,7 +4,7 @@
              xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
              xmlns:controls="clr-namespace:Clock.Tizen.Mobile.Controls;assembly=Clock.Tizen.Mobile"
              xmlns:list="clr-namespace:Clock.Tizen.Mobile.Controls.Lists;assembly=Clock.Tizen.Mobile"
-             xmlns:converters="clr-namespace:Clock.Tools.Converters;assembly=Clock"
+             xmlns:converters="clr-namespace:Clock.Tizen.Mobile.Tools.Converters;assembly=Clock.Tizen.Mobile"
              xmlns:views="clr-namespace:Clock.Tizen.Mobile.Views;assembly=Clock.Tizen.Mobile"
              Title="Reorder"
              BindingContext="{Binding Path=ReorderLocationsViewModel, Source={StaticResource ViewModelLocator}}"
index 4605b4a..3f2b51c 100644 (file)
@@ -3,7 +3,7 @@
              xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
              xmlns:enums="clr-namespace:Clock.Common.Enums;assembly=Clock"
              xmlns:controls="clr-namespace:Clock.Tizen.Mobile.Controls"
-             xmlns:converters="clr-namespace:Clock.Tools.Converters;assembly=Clock"
+             xmlns:converters="clr-namespace:Clock.Tizen.Mobile.Tools.Converters;assembly=Clock.Tizen.Mobile"
              x:Class="Clock.Tizen.Mobile.Views.StopWatchPage"
              BindingContext="{Binding Path=StopWatchViewModel, Source={StaticResource ViewModelLocator}}">
     <ContentPage.Resources>
index c100637..9e62185 100644 (file)
@@ -4,7 +4,7 @@
              xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
              xmlns:controls="clr-namespace:Clock.Tizen.Mobile.Controls;assembly=Clock.Tizen.Mobile"
              xmlns:viewmodels="clr-namespace:Clock.ViewModels;assembly=Clock"
-             xmlns:converters="clr-namespace:Clock.Tools.Converters;assembly=Clock"
+             xmlns:converters="clr-namespace:Clock.Tizen.Mobile.Tools.Converters;assembly=Clock.Tizen.Mobile"
              x:Class="Clock.Tizen.Mobile.Views.TimerView">
 
     <ContentPage.BindingContext>
index 402ce16..fe7dcf7 100644 (file)
@@ -3,7 +3,7 @@
              xmlns="http://xamarin.com/schemas/2014/forms"
              xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
              xmlns:controls="clr-namespace:Clock.Tizen.Mobile.Controls;assembly=Clock.Tizen.Mobile"
-             xmlns:converters="clr-namespace:Clock.Tools.Converters;assembly=Clock"
+             xmlns:converters="clr-namespace:Clock.Tizen.Mobile.Tools.Converters;assembly=Clock.Tizen.Mobile"
              xmlns:popup="clr-namespace:Clock.Tizen.Mobile.Controls.Popup"
              xmlns:mvvm="clr-namespace:Clock.Mvvm;assembly=Clock"
              BindingContext="{Binding Path=WorldClockViewModel, Source={StaticResource ViewModelLocator}}"
diff --git a/Clock/Clock/Tools/Converters/AlarmStateToIsToggledConverter.cs b/Clock/Clock/Tools/Converters/AlarmStateToIsToggledConverter.cs
deleted file mode 100644 (file)
index 5076839..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-using Clock.Model;
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Text;
-using Xamarin.Forms;
-
-namespace Clock.Tools.Converters
-{
-    public class AlarmStateToIsToggledConverter : IValueConverter
-    {
-        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
-        {
-            if (value is Alarm.AlarmState _alarmState)
-            {
-                return _alarmState != Alarm.AlarmState.Deactivated;
-            }
-
-            return false;
-        }
-
-        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
-        {
-            throw new NotImplementedException();
-        }
-    }
-}