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">
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>
<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>
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
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"
using System.Text;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class AlarmListDateToTextConverter : IValueConverter
{
using Clock.Model;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class AlarmRecurrenceToFormattedTextConverter : IValueConverter
{
--- /dev/null
+/*
+* 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();
+ }
+ }
+}
using Clock.Model;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class AlarmTypeToBoolConverter : IValueConverter
{
using Clock.Model;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class AlarmTypeToSoundIconOpacityConverter : IValueConverter
{
using System.Threading.Tasks;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class ClockLocationToDayMonthConverter : IValueConverter
{
using System.Threading.Tasks;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class ClockLocationToOffsetConverter : IValueConverter
{
using System.Threading.Tasks;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class ClockLocationToPMDesignationConverter : IValueConverter
{
using System.Threading.Tasks;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class ClockLocationToPlaceConverter : IValueConverter
{
using System.Threading.Tasks;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class ClockLocationToTimeConverter : IValueConverter
{
using System.Threading.Tasks;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class CollectionToBooleanConverter : IValueConverter
{
using System.Threading.Tasks;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class CollectionToFalseConverter : IValueConverter
{
using System.Globalization;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class DateTimeToAmPmConverter : IValueConverter
{
using System.Globalization;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class DateTimeToDateConverter : IValueConverter
{
using System.Globalization;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class EmptyCollectionToBoolConverter : IValueConverter
{
using System.Threading.Tasks;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
class InvertBoolConverter : IValueConverter
{
using System.Threading.Tasks;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class PlacesSummaryConverter : IValueConverter
{
using System.Globalization;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class StopWatchStateToVisibilityConverter : IValueConverter
{
using Xamarin.Forms;
using Clock.ViewModels;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class TimerMenuStateConverter : IValueConverter
{
using System.Globalization;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class VolumeLevelConverter : IValueConverter
{
using System.Globalization;
using Xamarin.Forms;
-namespace Clock.Tools.Converters
+namespace Clock.Tizen.Mobile.Tools.Converters
{
public class VolumeLevelToBoolConverter : IValueConverter
{
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"
<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>
<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"
<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"
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}}"
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}}"
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>
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>
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}}"
+++ /dev/null
-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();
- }
- }
-}