Skip to content

Commit

Permalink
Release 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marihachi committed Jun 12, 2018
1 parent 6e99af2 commit 22d7312
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 25 deletions.
8 changes: 4 additions & 4 deletions LegatoNowPlaying/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("LegatoNowPlaying")]
[assembly: AssemblyTitle("Legato NowPlaying")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LegatoNowPlaying")]
[assembly: AssemblyProduct("Legato NowPlaying")]
[assembly: AssemblyCopyright("Copyright © 2017 Legato-Dev")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand All @@ -32,5 +32,5 @@
// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
// 既定値にすることができます:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("0.1.0.0")]
[assembly: AssemblyFileVersion("0.1.0.0")]
57 changes: 42 additions & 15 deletions LegatoNowPlaying/SettingWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 22 additions & 6 deletions LegatoNowPlaying/SettingWindow.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Legato.Interop.AimpRemote.Entities;
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Windows.Forms;

namespace LegatoNowPlaying
Expand Down Expand Up @@ -46,6 +48,10 @@ private void SettingWindow_Load(object sender, EventArgs e)
textBoxPostSoundPath.Text = SettingSource.PostingSound;
textBoxExitSoundPath.Text = SettingSource.ExitingSound;

var assembly = Assembly.GetExecutingAssembly();
var v = assembly.GetName().Version;
versionLabel.Text = $"Version: {v.Major}.{v.Minor}.{v.Revision}";

this.renderPreview();
}

Expand Down Expand Up @@ -88,8 +94,6 @@ private void buttonOpenExitSound_Click(object sender, EventArgs e)
}
}

#endregion Event Handlers

private void button1_Click(object sender, EventArgs e)
{
Services.Twitter.Service.Install(this.Accounts);
Expand All @@ -105,6 +109,20 @@ private void textBoxPostingFormat_TextChanged(object sender, EventArgs e)
this.renderPreview();
}

private void button3_Click(object sender, EventArgs e)
{
Services.Misskey.Service.Setting();
}

private void licenseLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://github.com/Legato-Dev/Legato-NowPlaying/blob/master/LICENSE.md");
}

#endregion Event Handlers

#region Methods

private void renderPreview()
{
var track = new TrackInfo();
Expand All @@ -118,9 +136,7 @@ private void renderPreview()
this.previewLabel.Text = Common.ComposeText(textBoxPostingFormat.Text, track);
}

private void button3_Click(object sender, EventArgs e)
{
Services.Misskey.Service.Setting();
}
#endregion Methods

}
}

0 comments on commit 22d7312

Please sign in to comment.