Automatic Cronjob Checkin: 20160122-181506

This commit is contained in:
BlubbFish 2016-01-22 17:14:54 +00:00
parent 58911791e9
commit 39b5e9c9d6
8 changed files with 31 additions and 2 deletions

View File

@ -79,5 +79,25 @@ namespace TimeKeeper.Properties {
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Icon ähnlich wie (Symbol).
/// </summary>
internal static System.Drawing.Icon TrayIconConnected {
get {
object obj = ResourceManager.GetObject("TrayIconConnected", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
/// <summary>
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Icon ähnlich wie (Symbol).
/// </summary>
internal static System.Drawing.Icon TrayIconDisconnected {
get {
object obj = ResourceManager.GetObject("TrayIconDisconnected", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
}
}

View File

@ -124,4 +124,10 @@
<data name="MenuImagesQuit" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Icons\door_open.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="TrayIconConnected" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Icons\main_con.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="TrayIconDisconnected" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Icons\main_dis.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 806 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 843 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

View File

@ -89,6 +89,8 @@
</ItemGroup>
<ItemGroup>
<Content Include="Resources\Icons\door_open.png" />
<Content Include="Resources\Icons\main_con.ico" />
<Content Include="Resources\Icons\main_dis.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

View File

@ -12,7 +12,7 @@ namespace TimeKeeper.View {
class Tray : OwnView {
public Models.Tray Model { get; private set; }
private NotifyIcon trayi;
private Icon[] trayIcons = { new Icon(Resources.TrayIconConnected, 40, 40), new Icon(Resources.TrayIconDisconnected, 40, 40) };
public Tray() {
this.init();
@ -22,12 +22,13 @@ namespace TimeKeeper.View {
public override void update() {
this.trayi.ContextMenuStrip = this.genMenu();
this.trayi.Icon = (this.Model.isConnected) ? this.trayIcons[0] : this.trayIcons[1];
}
override protected void init() {
this.trayi = new NotifyIcon();
this.trayi.Visible = true;
this.trayi.Icon = new Icon(Resources.IconMain, 40, 40);
this.trayi.Icon = this.trayIcons[1];
this.trayi.Text = "TimeKeeper";
this.trayi.DoubleClick += Controller.Tray.Click_Tray;
}