Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Mobile/Downloader/Downloader.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31005.135
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Downloader", "Downloader/Downloader.csproj", "{d42f4c90-c837-4704-8563-194d9392b9c7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{d42f4c90-c837-4704-8563-194d9392b9c7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{d42f4c90-c837-4704-8563-194d9392b9c7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{d42f4c90-c837-4704-8563-194d9392b9c7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{d42f4c90-c837-4704-8563-194d9392b9c7}.Release|Any CPU.Build.0 = Release|Any CPU

EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
21 changes: 21 additions & 0 deletions Mobile/Downloader/Downloader/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!--
***********************************************************************************************
<Build.Directory.targets>
WARNING: DO NOT MODIFY this file. Incorrect changes to this file will make it
impossible to load or build your projects from the IDE.

***********************************************************************************************
-->

<Project>
<Target Name="BuildDotnet" AfterTargets="TizenPackage" >
<Message Text="Tizen Build starts here ------------" Importance="high"/>
<Message Text="$(MSBuildProjectDirectory)" Importance="high"/>
<PropertyGroup>
<WorkspaceFolder>$([System.IO.Path]::GetDirectoryName($(MSBuildProjectDirectory)))</WorkspaceFolder>
</PropertyGroup>
<Message Text="Workspace: '$(WorkspaceFolder)'" Importance="high" />

<Exec Command="C:\tizen-studio\tools\tizen-core\tz.exe pack-chain -w $(ProjectDir) -S $(ProjectDir)"> </Exec>
</Target>
</Project>
80 changes: 80 additions & 0 deletions Mobile/Downloader/Downloader/DownloadInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/*
* Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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 System.ComponentModel;

namespace Downloader
{
/// <summary>
/// An internal class to show download information list
/// </summary>
internal class DownloadInfo : INotifyPropertyChanged
{
private string name;
private string value;

/// <summary>
/// Constructor
/// </summary>
/// <param name="name">field name</param>
/// <param name="value">field value</param>
public DownloadInfo(string name, string value)
{
this.Name = name;
this.Value = value;
}

/// <summary>
/// The field name of download information list
/// </summary>
public string Name
{
get => name;
set
{
if (name != value)
{
name = value;
OnPropertyChanged(nameof(Name));
}
}
}

/// <summary>
/// The field value of download information list
/// </summary>
public string Value
{
get => this.value;
set
{
if (this.value != value)
{
this.value = value;
OnPropertyChanged(nameof(Value));
}
}
}

// INotifyPropertyChanged implementation
public event PropertyChangedEventHandler PropertyChanged;

protected virtual void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}
Loading