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
using System.Windows; | |
namespace MediaPlayerNoiseApp | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Windows.Documents; | |
using System.Windows.Media; |
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
<Window x:Class="MediaPlayerNoiseApp.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:local="clr-namespace:MediaPlayerNoiseApp" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
Title="MainWindow" | |
Width="525" | |
Height="350" | |
Loaded="MainWindow_OnLoaded" |
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
package com.mc.sample.timbersample.Logs; | |
import android.util.Log; | |
import timber.log.Timber; | |
/** | |
* ログの出力先を制御するための機能クラスです。 | |
* @remarks 基本的にリリースモードはこのように独自のログ出力機構が必要になる。 | |
*/ |
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
package com.mc.sample.timbersample.Logs; | |
import timber.log.Timber; | |
/** | |
* アプリケーション固有のログ出力機能クラスです。 | |
*.このように、基本的にログの出力機構をラップして作成する。 | |
*/ | |
public class Logger { |
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
package com.mc.sample.timbersample; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import com.mc.sample.timbersample.Logs.Logger; | |
public class MainActivity extends AppCompatActivity { | |
@Override |
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
<UserControl x:Class="MaterialDesign.Dialog.Example.Dialogs.MessageDialog" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:local="clr-namespace:MaterialDesign.Dialog.Example.Dialogs" | |
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:system="clr-namespace:System;assembly=mscorlib" | |
xmlns:viewModels="clr-namespace:MaterialDesign.Dialog.Example.Dialogs.ViewModels" | |
d:DataContext="{d:DesignInstance {x:Type viewModels:MessageDialogViewModel}, |
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
using Prism.Mvvm; | |
namespace MaterialDesign.Dialog.Example.Dialogs.ViewModels | |
{ | |
public class MessageDialogViewModel : BindableBase | |
{ | |
private string _message; | |
public string Message | |
{ |
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
<Window x:Class="MaterialDesign.Dialog.Example.Views.Shell" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:local="clr-namespace:MaterialDesign.Dialog.Example.Views" | |
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:system="clr-namespace:System;assembly=mscorlib" | |
xmlns:viewModels="clr-namespace:MaterialDesign.Dialog.Example.ViewModels" | |
x:Name="window" |
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
using System.Threading.Tasks; | |
namespace MaterialDesign.Dialog.Example.Services | |
{ | |
public interface IDialogService | |
{ | |
Task<bool> Question(string message); | |
} | |
} |
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
using System; | |
using System.Threading.Tasks; | |
using MaterialDesign.Dialog.Example.Dialogs; | |
using MaterialDesign.Dialog.Example.Dialogs.ViewModels; | |
using MaterialDesignThemes.Wpf; | |
namespace MaterialDesign.Dialog.Example.Services | |
{ | |
public class DialogService : IDialogService | |
{ |
OlderNewer