Deleted unnecessarz files

This commit is contained in:
Norbi Peti 2015-07-06 16:29:34 +02:00
parent 53f77c3755
commit ae6976aa4b
139 changed files with 67 additions and 2460 deletions

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;

View file

@ -1,41 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
class ErrorHandling
{
public static void FormError(Form fname, Exception e)
{
MessageBox.Show(e.GetType().ToString());
if (fname == Program.MainF)
{
switch (e.GetType().ToString())
{
/*case "System.NullReferenceException":
MessageBox.Show("lol");
break;*/
default:
MessageBox.Show("Ismeretlen hiba történt (" + e.GetType().ToString() + ")!\n\nForrás: " + e.Source + "\nA hibaüzenet: \n" + e.Message + "\nEnnél a műveletnél: " + e.TargetSite);
break;
}
}
else if(fname==MainForm.LoginDialog)
{
switch (e.GetType().ToString())
{
/*case "System.NullReferenceException":
MessageBox.Show("lol");
break;*/
default:
MessageBox.Show("Ismeretlen hiba történt (" + e.GetType().ToString() + ")!\n\nForrás: " + e.Source + "\nA hibaüzenet: \n" + e.Message + "\nEnnél a műveletnél: " + e.TargetSite);
break;
}
}
}
}
}

View file

@ -1,35 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
class ErrorHandling
{ //TO!DO
/*public static void FormError(Form fname, Exception e)
{
MessageBox.Show(e.GetType().ToString());
if (fname == Program.MainF)
{
switch (e.GetType().ToString())
{
default:
MessageBox.Show("Ismeretlen hiba történt (" + e.GetType().ToString() + ")!\n\nForrás: " + e.Source + "\nA hibaüzenet: \n" + e.Message + "\nEnnél a műveletnél: " + e.TargetSite);
break;
}
}
else if(fname==MainForm.LoginDialog)
{
switch (e.GetType().ToString())
{
default:
MessageBox.Show("Ismeretlen hiba történt (" + e.GetType().ToString() + ")!\n\nForrás: " + e.Source + "\nA hibaüzenet: \n" + e.Message + "\nEnnél a műveletnél: " + e.TargetSite);
break;
}
}
}*/
}
}

View file

@ -169,10 +169,12 @@
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "AboutBox1";
this.Controls.SetChildIndex(this.tableLayoutPanel, 0);
this.tableLayoutPanel.ResumeLayout(false);
this.tableLayoutPanel.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
@ -19,7 +19,8 @@ namespace MSGer.tk
this.labelVersion.Text = String.Format(Language.Translate(Language.StringID.About_Version), AssemblyVersion);
this.labelCopyright.Text = AssemblyCopyright;
labelLicenseLink.Text = "https://www.gnu.org/copyleft/gpl.html"; //2014.04.18. - Frissitve: 2014.04.25.
//labelLicenseLink.Text = "https://www.gnu.org/copyleft/gpl.html"; //2014.04.18. - Frissitve: 2014.04.25.
labelLicenseLink.Text = "LICENSE"; //2015.07.06.
List<string> desc = new List<string>(); //2014.04.18.
desc.Add(Language.Translate(Language.StringID.About_Programmer)); //2014.04.18.
desc.Add("SzNP");

View file

@ -1,5 +1,5 @@
using GlacialComponents.Controls;
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,5 +1,5 @@
using Khendys.Controls;
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.IO;
using System.Linq;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.ComponentModel;

View file

@ -1,5 +1,5 @@
using GlacialComponents.Controls;
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Linq;
using System.Text;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,54 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace MSGer.tk
{
public static class ICMPPacket
{
public const byte Type = ICMP_ECHO;
public const byte SubCode = 0;
public const byte RespType = ICMP_TIME_EXCEEDED;
public const byte RespCode = 1;
public const UInt16 CheckSum = 0;
public const UInt16 Identifier = 52;
public const UInt16 SequenceNumber = 84;
public static readonly byte[] Data = Encoding.Unicode.GetBytes("MSGer.tk connection");
public const byte ICMP_ECHO = 8;
public const byte ICMP_REPLY = 0;
public const byte ICMP_TIME_EXCEEDED = 11;
public static byte[] CreateRequest() //2015.02.05.
{
var data = new List<byte>();
data.Add(Type);
data.Add(SubCode);
data.AddRange(BitConverter.GetBytes(CheckSum));
data.AddRange(BitConverter.GetBytes(Identifier));
data.AddRange(BitConverter.GetBytes(SequenceNumber));
data.AddRange(Data);
return data.ToArray();
}
public static byte[] CreateReply()
{
//ICMPPacket packet = new ICMPPacket();
var data = new List<byte>();
data.Add(RespType);
data.Add(RespCode);
data.AddRange(BitConverter.GetBytes(CheckSum));
data.AddRange(BitConverter.GetBytes((int)0)); //4 bytes unused
data.AddRange(CreateRequest()); //Original packet
return data.ToArray();
}
public static bool IsPacketGood(byte[] bytes)
{
return (bytes[0] == ICMP_TIME_EXCEEDED);
}
}
}

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.IO;
using System.Linq;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;

View file

@ -336,7 +336,6 @@
<Compile Include="Forms\LoginForm.LoginUser.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Networking\Networking.SendUpdate.cs" />
<Compile Include="Networking\Networking.Threads.cs" />
<Compile Include="Networking\Networking.PacketFormat.cs" />
<None Include="packages.config" />

Binary file not shown.

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.IO;
using System.Linq;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Linq;
using System.Net;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.IO;
using System.Linq;

View file

@ -1,163 +0,0 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
partial class Networking
{
/*public static UdpClient SenderConnection = new UdpClient(AddressFamily.InterNetworkV6); //2014.09.04. - Ezt ne társítsa egy porthoz, hogy működjön az udp hole punching - IPv6: 2015.04.03.
public static UdpClient ReceiverConnection; //2014.09.04. - Társítsa egy porthoz - IPv6: 2015.04.03. - 2015.04.03. - A MainForm-nál úgyis létrehozza
public static byte[] DataBuffer;
public static IPEndPoint RemoteEP;
public static bool WaitingOnResponse = false; //2014.08.16.
public static UpdateType WaitingOnPacket = 0x00; //2014.08.16. - 0x00: Nincs; UpdateType: 2015.05.10.
//public static byte[][] SendUpdate(UpdateType ut, byte[] data, bool response, IPEndPoint onlythisep = null)
private static object Lock = new object(); //2015.05.10.
public static PacketFormat[] SendUpdate(PacketFormat packet, IPEndPoint onlythisep = null)
{
if (Program.MainF != null && Program.MainF.IsHandleCreated) //IsHandleCreated: 2014.12.31.
{ //2014.11.21.
if (Program.MainF.InvokeRequired) //2014.11.21.
{ //2014.11.21.
Program.MainF.Invoke(new Action<MainForm.StatType, int>(Program.MainF.UpdateStats), //2014.11.21.
MainForm.StatType.Servers, UserInfo.IPs.Count); //2014.11.21.
Program.MainF.Invoke(new Action<MainForm.StatType, int>(Program.MainF.UpdateStats), //2014.11.21.
MainForm.StatType.OnlineServers, UserInfo.IPs.Count - UserInfo.BannedIPs.Count); //2014.11.21.
}
else //2014.11.21.
{ //2014.11.21.
//2014.12.31.
MessageBox.Show("Internal error: Network call was made in the same thread as the UI. This could lead to freezes.\nNetwork update canceled.");
return null;
}
}
lock (Lock)
{
var ut = packet.PacketType;
if (UserInfo.IPs.Count == 0
&& !UserInfo.IPs.Any(entry => entry.Address.Equals(RemoteEP.Address))
&& ut != Networking.UpdateType.LoginUser)
return null;
//byte[] senddata = CreatePacket(response, (byte)ut, data);
byte[] senddata = packet.ToBytes(false);
if (UserInfo.BanTime < Environment.TickCount - 1000 * 10) //2014.08.30. - 2014.10.09. - 10 percről 1-re csökkentve - 2014.11.22. - 1 percről 10 mp-re csökkentve
UserInfo.BannedIPs = new List<IPEndPoint>(); //2014.11.23.
//if (!response)
if (!packet.Response)
{ //2014.08.30. - Azelőtt állítsa be, hogy elküldené a lekéréseket, hogy biztosan reagáljon a válaszra
WaitingOnResponse = true; //2014.08.16.
//WaitingOnPacket = (byte)ut; //2014.08.16.
WaitingOnPacket = ut; //2015.05.10.
}
if (onlythisep == null) //2014.11.22. - != helyett ==: 2014.12.18.
{
foreach (var item in UserInfo.IPs)
{ //Elküldi az összes ismert címre
try
{
if (!UserInfo.BannedIPs.Contains(item))
SenderConnection.Send(senddata, senddata.Length, item);
}
catch (ObjectDisposedException)
{
return null;
}
catch (Exception e)
{
MessageBox.Show("Network error:\n" + e.Message + "\n\n" + e.StackTrace);
}
}
}
else
{ //2014.11.22.
try
{
SenderConnection.Send(senddata, senddata.Length, onlythisep);
}
catch (ObjectDisposedException)
{
return null;
}
}
//if (!response)
if (!packet.Response)
{
int lasttick = Environment.TickCount;
List<byte[]> Ret = new List<byte[]>();
List<IPEndPoint> ResponsedIPs = new List<IPEndPoint>();
int count = 1;
while (Environment.TickCount - 1000 * 10 < lasttick && (
(onlythisep == null) ? //2014.11.22.
ResponsedIPs.Count < UserInfo.IPs.Count - UserInfo.BannedIPs.Count :
ResponsedIPs.Count == 0 //2014.11.22.
)) //2014.09.09. - 2014.10.09. - 60 mp --> 10 mp
{ //2014.08.19. - Ret.Count == tmp.Length
if (MainForm.LThread != null) //2014.09.06.
{
while (DataBuffer == null && Environment.TickCount - 1000 * count * 2 < lasttick) ; //Várakozik, amíg a másik thread át nem adja a választ - 2014.10.09. - 10 mp --> 2 mp
}
if (DataBuffer == null) //2014.08.30. - Az idő telt le
{
Console.WriteLine("Didn't get a response in time. Retrying...");
foreach (var item in UserInfo.IPs.Except(UserInfo.BannedIPs).Except(ResponsedIPs)) //2014.09.22.
{ //Elküldi az összes ismert címre
try
{
SenderConnection.Send(senddata, senddata.Length, item);
}
catch (ObjectDisposedException)
{
return null;
}
}
count++;
continue;
}
if (!(!UserInfo.IPs.Any(entry => entry.Address.Equals(RemoteEP.Address))
&& ut != Networking.UpdateType.LoginUser))
{
foreach (var item in UserInfo.IPs.Where(entry => entry == RemoteEP))
ResponsedIPs.Add(item);
Debug.WriteLine("Received response. (" + packet.PacketType + ")");
//var pparts = ParsePacket(DataBuffer);
var rpacket = PacketFormat.FromBytes(DataBuffer);
//if (pparts.KeyVersion != CurrentUser.KeyIndex && pparts.UpdateType != UpdateType.SetKey)
if (rpacket.KeyIndex != CurrentUser.KeyIndex && rpacket.PacketType != UpdateType.SetKey)
{
DataBuffer = null; //2014.09.22. - Mindig adja meg a lehetőséget, hogy újra beállítsa
continue;
}
int i;
for (i = 0; i < Ret.Count; i++)
{
if (DataBuffer.SequenceEqual(Ret[i]))
break;
}
if (i == Ret.Count)
Ret.Add(DataBuffer);
} //(2014.08.17. -->) Várja meg, amíg az összes online(!) ismerőse válaszol - Vagy letelik az egy perc
DataBuffer = null; //2014.09.22. - Mindig adja meg a lehetőséget, hogy újra beállítsa
}
DataBuffer = null;
RemoteEP = null;
WaitingOnResponse = false;
WaitingOnPacket = 0x00;
return Ret.Select(entry => PacketFormat.FromBytes(entry)).ToArray();
}
return null;
}
}*/
}
}

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Linq;
using System.Net;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Drawing.Imaging;
using System.IO;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.IO;
using System.Linq;

Binary file not shown.

View file

@ -1,188 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{18FEDA0C-D147-4286-B39A-01204808106A}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>BrightIdeasSoftware</RootNamespace>
<AssemblyName>ObjectListView</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>olv-keyfile.snk</AssemblyOriginatorKeyFile>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<DocumentationFile>bin\Debug\ObjectListView.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="Accessibility" />
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Data" />
<Reference Include="System.Design" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="DataTreeListView.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="DragDrop\OLVDataObject.cs" />
<Compile Include="Filtering\DateTimeClusteringStrategy.cs" />
<Compile Include="Filtering\FlagClusteringStrategy.cs" />
<Compile Include="Filtering\TextMatchFilter.cs" />
<Compile Include="Implementation\Delegates.cs" />
<Compile Include="Implementation\Enums.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Implementation\GroupingParameters.cs" />
<Compile Include="Implementation\NullableDictionary.cs" />
<Compile Include="Implementation\OLVListItem.cs" />
<Compile Include="Implementation\OLVListSubItem.cs" />
<Compile Include="Implementation\OlvListViewHitTestInfo.cs" />
<Compile Include="Implementation\TreeDataSourceAdapter.cs" />
<Compile Include="OLVColumn.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Rendering\Adornments.cs" />
<Compile Include="Implementation\Attributes.cs" />
<Compile Include="CellEditing\CellEditors.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="CellEditing\EditorRegistry.cs" />
<Compile Include="DataListView.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Implementation\DataSourceAdapter.cs" />
<Compile Include="Rendering\Decorations.cs" />
<Compile Include="DragDrop\DragSource.cs" />
<Compile Include="DragDrop\DropSink.cs" />
<Compile Include="Implementation\Events.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="FastDataListView.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Filtering\ClusteringStrategy.cs" />
<Compile Include="Filtering\Cluster.cs" />
<Compile Include="Filtering\ClustersFromGroupsStrategy.cs" />
<Compile Include="FastObjectListView.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Filtering\FilterMenuBuilder.cs" />
<Compile Include="Filtering\Filters.cs" />
<Compile Include="Filtering\ICluster.cs" />
<Compile Include="Filtering\IClusteringStrategy.cs" />
<Compile Include="Rendering\TreeRenderer.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="SubControls\ToolStripCheckedListBox.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Utilities\ColumnSelectionForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Utilities\ColumnSelectionForm.Designer.cs">
<DependentUpon>ColumnSelectionForm.cs</DependentUpon>
</Compile>
<Compile Include="Utilities\Generator.cs" />
<Compile Include="SubControls\GlassPanelForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Implementation\Groups.cs" />
<Compile Include="SubControls\HeaderControl.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="CellEditing\CellEditKeyEngine.cs" />
<Compile Include="Implementation\Munger.cs" />
<Compile Include="Implementation\NativeMethods.cs" />
<Compile Include="Implementation\Comparers.cs">
</Compile>
<Compile Include="ObjectListView.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="ObjectListView.DesignTime.cs" />
<Compile Include="Rendering\Overlays.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Rendering\Renderers.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Rendering\Styles.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="SubControls\ToolTipControl.cs" />
<Compile Include="TreeListView.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Utilities\OLVExporter.cs" />
<Compile Include="Utilities\TypedObjectListView.cs" />
<Compile Include="Implementation\VirtualGroups.cs" />
<Compile Include="Implementation\VirtualListDataSource.cs" />
<Compile Include="VirtualObjectListView.cs">
<SubType>Component</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<Content Include="CustomDictionary.xml" />
<None Include="FullClassDiagram.cd" />
<None Include="Resources\sort-descending.png" />
<None Include="Resources\sort-ascending.png" />
<None Include="Resources\filter.png" />
<None Include="Resources\clear-filter.png" />
<None Include="Resources\filter-icons3.png" />
</ItemGroup>
<ItemGroup>
<None Include="olv-keyfile.snk" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Utilities\ColumnSelectionForm.resx">
<DependentUpon>ColumnSelectionForm.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Linq;
using System.Text;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.IO;
using System.Linq;
@ -20,9 +20,8 @@ namespace MSGer.tk
if (!typeof(IPackable).IsAssignableFrom(type) || type.IsInterface)
continue;
if (!Directory.Exists(GetName(type)))
//continue;
Directory.CreateDirectory(GetName(type)); //2015.05.16.
string[] files = Directory.GetFiles(GetName(type));
string[] files = Directory.GetFiles(GetName(type)).Where(entry => Path.GetFileNameWithoutExtension(entry).Length > 0).ToArray(); //Where: 2015.07.06.
if (files.Length == 0)
DownloadDefaults(type); //2015.06.14.
foreach (string file in files)

View file

@ -1,6 +1,6 @@
//#define LOCAL_SERVER
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;

View file

@ -1,357 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HdSystemLibrary.IO
{
public class ProgressEventArgs : EventArgs
{
public ProgressEventArgs(ProgressStatistic progressStatistic)
{
if (progressStatistic == null)
throw new ArgumentNullException("progressStatistic");
ProgressStatistic = progressStatistic;
}
public ProgressStatistic ProgressStatistic { get; private set; }
}
[Serializable]
public class OperationAlreadyStartedException : Exception
{
public OperationAlreadyStartedException() { }
public OperationAlreadyStartedException(string message) : base(message) { }
public OperationAlreadyStartedException(string message, Exception inner) : base(message, inner) { }
protected OperationAlreadyStartedException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context)
: base(info, context) { }
}
/// <summary>
/// A class which calculates progress statistics like average bytes per second or estimated finishing time.
/// To use it, call the ProgressChange method in regular intervals with the actual progress.
/// </summary>
public class ProgressStatistic
{
public ProgressStatistic()
{
StartingTime = DateTime.MinValue;
FinishingTime = DateTime.MinValue;
progressChangedArgs = new ProgressEventArgs(this); //Event args can be cached
}
private bool hasStarted = false;
/// <summary>
/// Gets whether the operation has started
/// </summary>
public bool HasStarted { get { return hasStarted; } }
/// <summary>
/// Gets whether the operation has finished
/// </summary>
public bool HasFinished { get { return FinishingTime != DateTime.MinValue; } }
/// <summary>
/// Gets whether the operation is still running
/// </summary>
public bool IsRunning { get { return HasStarted && !HasFinished; } }
#region Time
/// <summary>
/// Gets the date time when the operation has started
/// </summary>
public DateTime StartingTime { get; private set; }
/// <summary>
/// Gets the date time when the operation has finished
/// </summary>
public DateTime FinishingTime { get; private set; }
/// <summary>
/// Gets the duration of the operation.
/// If the operation is still running, the time since starting is returned.
/// If the operation has not started, TimeSpan.Zero is returned.
/// If the operation has finished, the time between starting and finishing is returned.
/// </summary>
public TimeSpan Duration
{
get
{
if (!HasStarted)
return TimeSpan.Zero;
else if (!HasFinished)
return DateTime.Now - StartingTime;
else
return FinishingTime - StartingTime;
}
}
/// <summary>
/// The method which will be used for estimating duration and finishing time
/// </summary>
public enum EstimatingMethod
{
/// <summary>
/// Current bytes per second will be used for estimating.
/// </summary>
CurrentBytesPerSecond,
/// <summary>
/// Average bytes per second will be used for estimating
/// </summary>
AverageBytesPerSecond
}
private EstimatingMethod estimatingMethod = EstimatingMethod.CurrentBytesPerSecond;
/// <summary>
/// Gets or sets which method will be used for estimating.
/// Can only be set before the operation has started, otherwise an OperationAlreadyStartedException will be thrown.
/// </summary>
public EstimatingMethod UsedEstimatingMethod
{
get { return estimatingMethod; }
set
{
if (HasStarted)
throw new OperationAlreadyStartedException();
estimatingMethod = value;
}
}
/// <summary>
/// Gets the estimated duration. Use UsedEstimatingMethod to specify which method will be used for estimating.
/// If the operation will take more than 200 days, TimeSpan.MaxValue is returned.
/// </summary>
public TimeSpan EstimatedDuration
{
get
{
if (HasFinished)
return Duration;
if (TotalBytesToRead == -1)
return TimeSpan.MaxValue;
double bytesPerSecond = 1;
if (UsedEstimatingMethod == EstimatingMethod.AverageBytesPerSecond)
bytesPerSecond = AverageBytesPerSecond;
else if (UsedEstimatingMethod == EstimatingMethod.CurrentBytesPerSecond)
bytesPerSecond = CurrentBytesPerSecond;
double seconds = (TotalBytesToRead - BytesRead) / bytesPerSecond;
if (seconds > 60 * 60 * 24 * 200) //over 200 Days -> infinite
return TimeSpan.MaxValue;
else
return Duration + TimeSpan.FromSeconds(seconds);
}
}
/// <summary>
/// Gets the estimated finishing time based on EstimatedDuration.
/// If the operation will take more than 200 days, DateTime.MaxValue is returned.
/// If the operation has finished, the actual finishing time is returned.
/// </summary>
public DateTime EstimatedFinishingTime
{
get
{
if (EstimatedDuration == TimeSpan.MaxValue)
return DateTime.MaxValue;
return StartingTime + EstimatedDuration;
}
}
#endregion
/// <summary>
/// Gets the amount of bytes already read.
/// </summary>
public long BytesRead { get; private set; }
/// <summary>
/// Gets the amount of total bytes to read. Can be -1 if unknown.
/// </summary>
public long TotalBytesToRead { get; private set; }
/// <summary>
/// Gets the progress in percent between 0 and 1.
/// If the amount of total bytes to read is unknown, -1 is returned.
/// </summary>
public double Progress
{
get
{
if (TotalBytesToRead == -1)
return -1;
else
return (double)BytesRead / (double)TotalBytesToRead;
}
}
/// <summary>
/// Gets the average bytes per second.
/// </summary>
public double AverageBytesPerSecond { get { return (double)BytesRead / Duration.TotalSeconds; } }
#region CurrentBytesPerSecond
/// <summary>
/// Gets the approximated current count of bytes processed per second
/// </summary>
public double CurrentBytesPerSecond { get; private set; }
private TimeSpan currentBytesCalculationInterval = TimeSpan.FromSeconds(0.5);
/// <summary>
/// Gets or sets the interval used for the calculation of the current bytes per second. Default is 500 ms.
/// </summary>
/// <exception cref="OperationAlreadyStartedException">
/// Thrown when trying to set although the operation has already started.</exception>
public TimeSpan CurrentBytesCalculationInterval
{
get { return currentBytesCalculationInterval; }
set
{
if (HasStarted)
throw new InvalidOperationException("Task has already started!");
currentBytesCalculationInterval = value;
}
}
KeyValuePair<DateTime, long>[] currentBytesSamples = new KeyValuePair<DateTime, long>[6];
/// <summary>
/// Gets or sets the number of samples in CurrentBytesPerSecondInterval used for current bytes per second approximation
/// </summary>
/// <exception cref="OperationAlreadyStartedException">
/// Thrown when trying to set although the operation has already started.</exception>
public int CurrentBytesSampleCount
{
get { return currentBytesSamples.Length; }
set
{
if (HasStarted)
throw new InvalidOperationException("Task has already started!");
if (value != currentBytesSamples.Length)
{
currentBytesSamples = new KeyValuePair<DateTime, long>[value];
}
}
}
int currentSample = 0; //current sample index in currentBytesSamples
DateTime lastSample;
private void ProcessSample(long bytes)
{
if ((DateTime.Now - lastSample).Ticks > CurrentBytesCalculationInterval.Ticks / currentBytesSamples.Length)
{
lastSample = DateTime.Now;
KeyValuePair<DateTime, long> current = new KeyValuePair<DateTime, long>(DateTime.Now, bytes);
var old = currentBytesSamples[currentSample];
currentBytesSamples[currentSample] = current;
if (old.Key == DateTime.MinValue)
CurrentBytesPerSecond = AverageBytesPerSecond;
else
CurrentBytesPerSecond = (double)(current.Value - old.Value) / (current.Key - old.Key).TotalSeconds;
currentSample++;
if (currentSample >= currentBytesSamples.Length)
currentSample = 0;
}
}
#endregion
/// <summary>
/// This method can be called to report progress changes.
/// The signature of this method is compliant with the ProgressChange-delegate
/// </summary>
/// <param name="bytesRead">The amount of bytes already read</param>
/// <param name="totalBytesToRead">The amount of total bytes to read. Can be -1 if unknown.</param>
/// <exception cref="ArgumentException">Thrown if bytesRead has not changed or even shrunk.</exception>
/// <exception cref="InvalidOperationException">Thrown if the operation has finished already.</exception>
public virtual void ProgressChange(long bytesRead, long totalBytesToRead)
{
if (bytesRead <= BytesRead)
throw new ArgumentException("Operation cannot go backwards!", "bytesRead");
if (HasFinished)
throw new InvalidOperationException("Operation has finished already!");
if (!hasStarted)
{
StartingTime = DateTime.Now;
hasStarted = true;
OnStarted();
}
BytesRead = bytesRead;
TotalBytesToRead = totalBytesToRead;
ProcessSample(bytesRead);
OnProgressChanged();
if (bytesRead == TotalBytesToRead)
{
FinishingTime = DateTime.Now;
OnFinished();
}
}
/// <summary>
/// This method can be called to finish an aborted operation.
/// If the operation does not reach 100%, "Finished" will be never raised, so this method should be called.
/// </summary>
public virtual void Finish()
{
if (!HasFinished)
{
FinishingTime = DateTime.Now;
OnFinished();
}
}
#region Events
private readonly ProgressEventArgs progressChangedArgs;
protected virtual void OnStarted()
{
if (Started != null)
Started(this, progressChangedArgs);
}
protected virtual void OnProgressChanged()
{
if (ProgressChanged != null)
ProgressChanged(this, progressChangedArgs);
}
protected virtual void OnFinished()
{
if (Finished != null)
Finished(this, progressChangedArgs);
}
/// <summary>
/// Will be raised when the operation has started
/// </summary>
public event EventHandler<ProgressEventArgs> Started;
/// <summary>
/// Will be raised when the progress has changed
/// </summary>
public event EventHandler<ProgressEventArgs> ProgressChanged;
/// <summary>
/// Will be raised when the operation has finished
/// </summary>
public event EventHandler<ProgressEventArgs> Finished;
#endregion
}
}

View file

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MSGer.tk")]
[assembly: AssemblyCopyright("GNU GPLv3")]
[assembly: AssemblyCopyright("Copyright (c) NorbiPeti 2015 - See LICENSE file")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View file

@ -9,7 +9,7 @@
//------------------------------------------------------------------------------
namespace MSGer.tk.Properties {
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
/// <summary>

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Drawing;
using System.Linq;

View file

@ -1,5 +1,5 @@
using Microsoft.CSharp;
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.IO;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.IO;
@ -16,6 +16,9 @@ namespace MSGer.tk
{
Path = path;
}
private ScriptLoader() //2015.07.06.
{
}
private AppDomain PluginAppDomain;
private ScriptInAppDomain script
{
@ -37,9 +40,11 @@ namespace MSGer.tk
PluginAppDomain = AppDomain.CreateDomain(System.IO.Path.GetFileName(Path), null, pluginAppDomainSetup);
script = new ScriptInAppDomain(Path, PluginAppDomain);
PluginAppDomain.DoCallBack(script.LoadInAppDomain);
bool success = script.Success; //2015.07.06.
if (!script.Success)
AppDomain.Unload(PluginAppDomain); //2015.04.06.
return script.Success;
//return script.Success;
return success; //2015.07.06.
}
public void Unload()
{
@ -64,6 +69,7 @@ namespace MSGer.tk
public bool LoadFromPack(string filename)
{
this.Path = filename; //2015.07.06.
if (!this.Load())
{
MessageBox.Show(Language.Translate(Language.StringID.ScriptError));

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Globalization;
using System.IO;

View file

@ -1,213 +0,0 @@
using System.Collections.Generic;
using System;
using System.IO;
using System.Threading;
using System.ComponentModel;
namespace HdSystemLibrary.IO
{
/// <summary>
/// A delegate for reporting binary progress
/// </summary>
/// <param name="bytesRead">The amount of bytes already read</param>
/// <param name="totalBytesToRead">The amount of total bytes to read. Can be -1 if unknown.</param>
public delegate void ProgressChange(long bytesRead, long totalBytesToRead);
/// <summary>
/// The arguments for StreamHelper.CopyFrom(Stream, Stream, CopyFromArguments)
/// </summary>
public sealed class CopyFromArguments
{
/// <summary>
/// Creates the default arguments
/// </summary>
public CopyFromArguments()
{
}
/// <summary>
/// Creates arguments with a progress change callback.
/// </summary>
/// <param name="progressChangeCallback">The progress change callback (see <see cref="ProgressChangeCallback"/>)</param>
public CopyFromArguments(ProgressChange progressChangeCallback)
{
ProgressChangeCallback = progressChangeCallback;
}
/// <summary>
/// Creates arguments with a progress change callback and an interval between to progress changes.
/// </summary>
/// <param name="progressChangeCallback">The progress change callback (see <see cref="ProgressChangeCallback"/>)</param>
/// <param name="progressChangeCallbackInterval">The interval between to progress change callbacks (see <see cref="ProgressChangeCallbackInterval"/>)</param>
public CopyFromArguments(ProgressChange progressChangeCallback,
TimeSpan progressChangeCallbackInterval)
{
ProgressChangeCallback = progressChangeCallback;
ProgressChangeCallbackInterval = progressChangeCallbackInterval;
}
/// <summary>
/// Creates arguments with a progress change callback, an interval between to progress changes and a total length
/// </summary>
/// <param name="progressChangeCallback">The progress change callback (see <see cref="ProgressChangeCallback"/>)</param>
/// <param name="progressChangeCallbackInterval">The interval between to progress change callbacks (see <see cref="ProgressChangeCallbackInterval"/>)</param>
/// <param name="totalLength">The total bytes to read (see <see cref="TotalLength"/>)</param>
public CopyFromArguments(ProgressChange progressChangeCallback,
TimeSpan progressChangeCallbackInterval, long totalLength)
{
ProgressChangeCallback = progressChangeCallback;
ProgressChangeCallbackInterval = progressChangeCallbackInterval;
TotalLength = totalLength;
}
private long totalLength = -1;
/// <summary>
/// Gets or sets the total length of stream. Set to -1 if the value has to be determined by stream.Length.
/// If the stream is not seekable, the total length in the progress report will be stay -1.
/// </summary>
public long TotalLength { get { return totalLength; } set { totalLength = value; } }
private int bufferSize = 4096;
/// <summary>
/// Gets or sets the size of the buffer used for copying bytes. Default is 4096.
/// </summary>
public int BufferSize { get { return bufferSize; } set { bufferSize = value; } }
/// <summary>
/// Gets or sets the callback for progress-report. Default is null.
/// </summary>
public ProgressChange ProgressChangeCallback { get; set; }
/// <summary>
/// Gets or sets the event for aborting the operation. Default is null.
/// </summary>
public WaitHandle StopEvent { get; set; }
private TimeSpan progressCallbackInterval = TimeSpan.FromSeconds(0.2);
/// <summary>
/// Gets or sets the time interval between to progress change callbacks. Default is 200 ms.
/// </summary>
public TimeSpan ProgressChangeCallbackInterval
{
get { return progressCallbackInterval; }
set { progressCallbackInterval = value; }
}
}
/// <summary>
/// A static class for basic stream operations.
/// </summary>
public static class StreamHelper
{
/// <summary>
/// Copies the source stream into the current while reporting the progress.
/// The copying process is done in a separate thread, therefore the stream has to
/// support reading from a different thread as the one used for construction.
/// Nethertheless, the separate thread is synchronized with the calling thread.
/// The callback in arguments is called from the calling thread.
/// </summary>
/// <param name="target">The current stream</param>
/// <param name="source">The source stream</param>
/// <param name="arguments">The arguments for copying</param>
/// <returns>The number of bytes actually copied.</returns>
/// <exception cref="ArgumentNullException">Thrown if either target, source of arguments is null</exception>
/// <exception cref="ArgumentOutOfRangeException">Thrown if arguments.BufferSize is less than 128 or arguments.ProgressChangeCallbackInterval is less than 0</exception>
public static long CopyFrom(this Stream target, Stream source, CopyFromArguments arguments)
{
if (target == null)
throw new ArgumentNullException("target");
if (source == null)
throw new ArgumentNullException("source");
if (arguments == null)
throw new ArgumentNullException("arguments");
if (arguments.BufferSize < 128)
throw new ArgumentOutOfRangeException("arguments.BufferSize",
arguments.BufferSize, "BufferSize has to be greater or equal than 128.");
if (arguments.ProgressChangeCallbackInterval.TotalSeconds < 0)
throw new ArgumentOutOfRangeException("arguments.ProgressChangeCallbackInterval",
arguments.ProgressChangeCallbackInterval,
"ProgressChangeCallbackInterval has to be greater or equal than 0.");
long length = 0;
bool runningFlag = true;
Action<Stream, Stream, int> copyMemory = (Stream _target, Stream _source, int bufferSize) =>
//Raw copy-operation, "length" and "runningFlag" are enclosed as closure
{
int count;
byte[] buffer = new byte[bufferSize];
while ((count = _source.Read(buffer, 0, bufferSize)) != 0 && runningFlag)
{
_target.Write(buffer, 0, count);
long newLength = length + count;
//"length" can be read as this is the only thread which writes to "length"
Interlocked.Exchange(ref length, newLength);
}
};
IAsyncResult asyncResult = copyMemory.BeginInvoke(target, source, arguments.BufferSize, null, null);
long totalLength = arguments.TotalLength;
if (totalLength == -1 && source.CanSeek)
totalLength = (long)source.Length;
DateTime lastCallback = DateTime.Now;
long lastLength = 0;
while (!asyncResult.IsCompleted)
{
if (arguments.StopEvent != null && arguments.StopEvent.WaitOne(0))
runningFlag = false; //to indicate that the copy-operation has to abort
Thread.Sleep((int)(arguments.ProgressChangeCallbackInterval.TotalMilliseconds / 10));
if (arguments.ProgressChangeCallback != null
&& DateTime.Now - lastCallback > arguments.ProgressChangeCallbackInterval)
{
long currentLength = Interlocked.Read(ref length); //Since length is 64 bit, reading is not an atomic operation.
if (currentLength != lastLength)
{
lastLength = currentLength;
lastCallback = DateTime.Now;
arguments.ProgressChangeCallback(currentLength, totalLength);
}
}
}
if (arguments.ProgressChangeCallback != null && lastLength != length)
//to ensure that the callback is called once with maximum progress
arguments.ProgressChangeCallback(length, totalLength);
copyMemory.EndInvoke(asyncResult);
return length;
}
/// <summary>
/// Copies the source stream into the current
/// </summary>
/// <param name="stream">The current stream</param>
/// <param name="source">The source stream</param>
/// <param name="bufferSize">The size of buffer used for copying bytes</param>
/// <returns>The number of bytes actually copied.</returns>
public static long CopyFrom(this Stream stream, Stream source, int bufferSize = 4096)
{
int count = 0;
byte[] buffer = new byte[bufferSize];
long length = 0;
while ((count = source.Read(buffer, 0, bufferSize)) != 0)
{
length += count;
stream.Write(buffer, 0, count);
}
return length;
}
}
}

View file

@ -1,5 +1,5 @@
using FastColoredTextBoxNS;
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Drawing;
using System.Linq;

View file

@ -1,5 +1,5 @@
using Khendys.Controls;
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Drawing;
using System.Linq;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Drawing;
using System.Linq;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

View file

@ -1,4 +1,4 @@
using System;
using System; //Copyright (c) NorbiPeti 2015 - See LICENSE file
using System.Collections.Generic;
using System.Linq;
using System.Text;

View file

@ -1,27 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MSGer.tk
{/*
class _MyNotifier
{ //Értesítő általam készítve
public _MyNotifier()
{ //Csak épp ez nem WinForms
"Teszt".TestFunc();
}
}*/
}
/*
namespace System
{
partial class Object
{
public void TestFunc()
{
Windows.Forms.MessageBox.Show("TestFunc");
}
}
}*/

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1,270 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
SUBVERSION SUBCOMPONENTS:
Subversion includes a number of subcomponents with separate copyright
notices and license terms. Your use of the source code for the these
subcomponents is subject to the terms and conditions of the following
licenses.
For portions of the Python bindings test suite at
subversion/bindings/swig/python/tests/trac/:
I. Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
II. Copyright (C) 2003, 2004, 2005 Edgewall Software
Copyright (C) 2003, 2004, 2005 Jonas Borgström <jonas@edgewall.com>
Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
the documentation and/or other materials provided with the
distribution.
3. The name of the author may not be used to endorse or promote
products derived from this software without specific prior written
permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
For the file subversion/libsvn_subr/utf_width.c
* Markus Kuhn -- 2007-05-26 (Unicode 5.0)
*
* Permission to use, copy, modify, and distribute this software
* for any purpose and without fee is hereby granted. The author
* disclaims all warranties with regard to this software.

View file

@ -1,101 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>SVN Cheat Sheet</title>
<meta name="generator" content="Virtual Mechanics SiteSpinner V2 291g">
<meta http-equiv="imagetoolbar" content="false">
<style type="text/css">
<!--
a:link {color: #0000ff;}
a:visited {color: #800080;}
a:active {color: #ff0000;}
body {
margin: 0;
height: 100%;
width: 100%;
background-color: #ffffff;
}
img {
border-width: 0;
vertical-align: top;
}
.dfltt {
font-family: 'Times New Roman';
font-size: 12px;
font-weight: normal;
font-style: normal;
text-decoration: none;
text-align: left;
color: #000000;
}
.lalign {
position: relative;
text-align: left;
}
.ralign {
position: relative;
text-align: right;
}
.calign {
position: relative;
text-align: center;
}
.jalign {
position: relative;
text-align: justify;
}
#Oobj23 {
position: absolute;
font-size: 10px;
z-index: 1;
text-align: left;
left: 1.00em;
top: 4.00em;
width: 6.00em;
height: 2.40em;
}
.txt0 {
font-family: Arial, sans-serif;
font-size: 16px;
}
#Oobj31 {
position: absolute;
font-size: 10px;
z-index: 2;
text-align: left;
left: 0.00em;
top: 0.00em;
width: 34.20em;
height: 3.10em;
}
.txt1 {
font-family: Arial, sans-serif;
font-size: 21px;
}
-->
</style>
</head>
<body>
<div id="Oobj23">
<div id="Grtf21" class="dfltt">
<span class ="txt0">Todo..<br>
</span></div>
</div>
<div id="Oobj31">
<div id="Grtf29" class="dfltt">
<span class ="txt1">Cheat Sheet<br>
</span></div>
</div>
</body>
</html>

View file

@ -1,105 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>SVN Readme</title>
<meta name="generator" content="Virtual Mechanics SiteSpinner V2 291g">
<meta http-equiv="imagetoolbar" content="false">
<style type="text/css">
<!--
a:link {color: #0000ff;}
a:visited {color: #800080;}
a:active {color: #ff0000;}
body {
margin: 0;
height: 100%;
width: 100%;
background-color: #ffffff;
}
img {
border-width: 0;
vertical-align: top;
}
.dfltt {
font-family: 'Times New Roman';
font-size: 12px;
font-weight: normal;
font-style: normal;
text-decoration: none;
text-align: left;
color: #000000;
}
.lalign {
position: relative;
text-align: left;
}
.ralign {
position: relative;
text-align: right;
}
.calign {
position: relative;
text-align: center;
}
.jalign {
position: relative;
text-align: justify;
}
#Oobj20 {
position: absolute;
font-size: 10px;
z-index: 1;
text-align: left;
left: 1.00em;
top: 5.00em;
width: 59.00em;
height: 10.00em;
}
.txt0 {
font-family: Arial, sans-serif;
font-size: 16px;
}
#Oobj30 {
position: absolute;
font-size: 10px;
z-index: 2;
text-align: left;
left: 0.00em;
top: 0.00em;
width: 34.20em;
height: 3.10em;
}
.txt1 {
font-family: Arial, sans-serif;
font-size: 21px;
}
-->
</style>
</head>
<body>
<div id="Oobj20">
<div id="Grtf19" class="dfltt">
<span class ="txt0">Windows binaries from <a href="http://alagazam.net/">http://alagazam.net/</a><br>
Subversion build 1.6.15 : Zip file (see website for latest versions)<br>
<br>
Also available on authors sourceforge site.<br>
<a href="http://sourceforge.net/projects/win32svn/files/">http://sourceforge.net/projects/win32svn/files/</a><br>
</span></div>
</div>
<div id="Oobj30">
<div id="Grtf28" class="dfltt">
<span class ="txt1">Subversion Portable Readme<br>
</span></div>
</div>
</body>
</html>

View file

@ -1,106 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>SVN reference</title>
<meta name="generator" content="Virtual Mechanics SiteSpinner V2 291g">
<meta http-equiv="imagetoolbar" content="false">
<style type="text/css">
<!--
a:link {color: #0000ff;}
a:visited {color: #800080;}
a:active {color: #ff0000;}
body {
margin: 0;
height: 100%;
width: 100%;
background-color: #ffffff;
}
img {
border-width: 0;
vertical-align: top;
}
.dfltt {
font-family: 'Times New Roman';
font-size: 12px;
font-weight: normal;
font-style: normal;
text-decoration: none;
text-align: left;
color: #000000;
}
.lalign {
position: relative;
text-align: left;
}
.ralign {
position: relative;
text-align: right;
}
.calign {
position: relative;
text-align: center;
}
.jalign {
position: relative;
text-align: justify;
}
#Oobj27 {
position: absolute;
font-size: 10px;
z-index: 1;
text-align: left;
left: 1.00em;
top: 4.00em;
width: 50.00em;
height: 11.90em;
}
.txt0 {
font-family: Arial, sans-serif;
font-size: 16px;
}
#Oobj29 {
position: absolute;
font-size: 10px;
z-index: 2;
text-align: left;
left: 0.00em;
top: 0.00em;
width: 34.20em;
height: 3.00em;
}
.txt1 {
font-family: Arial, sans-serif;
font-size: 21px;
}
-->
</style>
</head>
<body>
<div id="Oobj27">
<div id="Grtf25" class="dfltt">
<span class ="txt0">Version Control with Subversion<br>
<a href="http://svnbook.red-bean.com/en/1.5/index.html">http://svnbook.red-bean.com/en/1.5/index.html</a><br>
<br>
Article - Dump a SVN repository from a URL<br>
<a href="http://pogopixels.com/blog/dumping-a-svn-repository-from-a-remote-url/">http://pogopixels.com/blog/dumping-a-svn-repository-from-a-remote-url/</a><br>
<br>
</span></div>
</div>
<div id="Oobj29">
<div id="Grtf27" class="dfltt">
<span class ="txt1">Subversion References<br>
</span></div>
</div>
</body>
</html>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show more