Skip to content

Commit

Permalink
Update icon. Create Handle (close error fix). AboutBox
Browse files Browse the repository at this point in the history
  • Loading branch information
XWolfOverride committed Apr 9, 2015
1 parent 7135d49 commit 3ee98b1
Show file tree
Hide file tree
Showing 22 changed files with 481 additions and 54 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
/DuckDNS/bin/Debug/DuckDNS.vshost.exe.config
/DuckDNS/bin/Debug/DuckDNS.vshost.exe.manifest
/DuckDNS/bin/Debug/DuckDNS.cfg
/DuckDNS/bin/Debug/DuckDNS.zip
Binary file modified DuckDNS.v12.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion DuckDNS/DDns.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class DDns
public string Domain;
public string Token;
public string Interval;
private WebClient cli = new WebClient();

public bool Update(){
string url="https://www.duckdns.org/update?domains="+Domain+"&token="+Token+"&ip=";
WebClient cli = new WebClient();
string data = cli.DownloadString(url);
return data == "OK";
}
Expand Down
13 changes: 13 additions & 0 deletions DuckDNS/DuckDNS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
</ItemGroup>
<ItemGroup>
<Compile Include="DDns.cs" />
<Compile Include="FAbout.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FAbout.Designer.cs">
<DependentUpon>FAbout.cs</DependentUpon>
</Compile>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
Expand All @@ -57,6 +63,9 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ShellLink.cs" />
<Compile Include="Windows.cs" />
<EmbeddedResource Include="FAbout.resx">
<DependentUpon>FAbout.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
Expand Down Expand Up @@ -84,6 +93,10 @@
<ItemGroup>
<Content Include="DuckDNS.ico" />
<Content Include="DuckDNS2.ico" />
<None Include="Resources\tray_checking.ico" />
<None Include="Resources\tray.ico" />
<None Include="Resources\DuckDNS_tray - good.ico" />
<None Include="Resources\DuckDNS_tray - checking.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.
Expand Down
158 changes: 158 additions & 0 deletions DuckDNS/FAbout.Designer.cs

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

36 changes: 36 additions & 0 deletions DuckDNS/FAbout.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DuckDNS
{
public partial class FAbout : Form
{
private FAbout()
{
InitializeComponent();
}

public static void Execute()
{
using (FAbout f = new FAbout())
f.ShowDialog();
}

private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://github.com/XWolfOverride/DuckDNS");
}

private void button1_Click(object sender, EventArgs e)
{
Close();
}
}
}
Loading

0 comments on commit 3ee98b1

Please sign in to comment.