Automatic Cronjob Checkin: 20160122-181506
This commit is contained in:
parent
58911791e9
commit
39b5e9c9d6
20
TimeKeeper/Properties/Resources.Designer.cs
generated
20
TimeKeeper/Properties/Resources.Designer.cs
generated
@ -79,5 +79,25 @@ namespace TimeKeeper.Properties {
|
|||||||
return ((System.Drawing.Bitmap)(obj));
|
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));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -124,4 +124,10 @@
|
|||||||
<data name="MenuImagesQuit" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<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>
|
<value>..\Resources\Icons\door_open.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</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>
|
</root>
|
BIN
TimeKeeper/Resources/Icons/connect.png
Normal file
BIN
TimeKeeper/Resources/Icons/connect.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 806 B |
BIN
TimeKeeper/Resources/Icons/disconnect.png
Normal file
BIN
TimeKeeper/Resources/Icons/disconnect.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 843 B |
BIN
TimeKeeper/Resources/Icons/main_con.ico
Normal file
BIN
TimeKeeper/Resources/Icons/main_con.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.4 KiB |
BIN
TimeKeeper/Resources/Icons/main_dis.ico
Normal file
BIN
TimeKeeper/Resources/Icons/main_dis.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.4 KiB |
@ -89,6 +89,8 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="Resources\Icons\door_open.png" />
|
<Content Include="Resources\Icons\door_open.png" />
|
||||||
|
<Content Include="Resources\Icons\main_con.ico" />
|
||||||
|
<Content Include="Resources\Icons\main_dis.ico" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
@ -12,7 +12,7 @@ namespace TimeKeeper.View {
|
|||||||
class Tray : OwnView {
|
class Tray : OwnView {
|
||||||
public Models.Tray Model { get; private set; }
|
public Models.Tray Model { get; private set; }
|
||||||
private NotifyIcon trayi;
|
private NotifyIcon trayi;
|
||||||
|
private Icon[] trayIcons = { new Icon(Resources.TrayIconConnected, 40, 40), new Icon(Resources.TrayIconDisconnected, 40, 40) };
|
||||||
|
|
||||||
public Tray() {
|
public Tray() {
|
||||||
this.init();
|
this.init();
|
||||||
@ -22,12 +22,13 @@ namespace TimeKeeper.View {
|
|||||||
|
|
||||||
public override void update() {
|
public override void update() {
|
||||||
this.trayi.ContextMenuStrip = this.genMenu();
|
this.trayi.ContextMenuStrip = this.genMenu();
|
||||||
|
this.trayi.Icon = (this.Model.isConnected) ? this.trayIcons[0] : this.trayIcons[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
override protected void init() {
|
override protected void init() {
|
||||||
this.trayi = new NotifyIcon();
|
this.trayi = new NotifyIcon();
|
||||||
this.trayi.Visible = true;
|
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.Text = "TimeKeeper";
|
||||||
this.trayi.DoubleClick += Controller.Tray.Click_Tray;
|
this.trayi.DoubleClick += Controller.Tray.Click_Tray;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user