v6.0 - GitHub

This commit is contained in:
Norbi Peti 2015-07-06 13:04:54 +02:00
parent 88a421ff72
commit 53f77c3755
1325 changed files with 67772 additions and 465 deletions

0
.justforgithub Normal file
View file

View file

View file

@ -81,12 +81,17 @@ namespace Handwriting_program
private Bitmap bmp;
private bool drawing = false;
private Thread MainT;
private object lockobj = new object(); //2015.06.06. 0:07
private void Handwriting_MouseDown(object sender, MouseEventArgs e)
{
/*timer.Interval = 100;
timer.Tick += timer_Tick;
timer.Start();*/
drawing = true;
lock (lockobj)
{
drawing = true;
Monitor.Pulse(lockobj); //2015.06.06.
}
}
//void timer_Tick(object sender, EventArgs e)
@ -94,55 +99,60 @@ namespace Handwriting_program
{
while (MainT.IsAlive)
{
if (!drawing)
lock (lockobj)
{
prevp = new Point();
continue;
}
//GC.Collect();
/*var bm = new Bitmap(pictureBox1.Image);
Point p = pictureBox1.PointToClient(Cursor.Position);*/
Point p = new Point();
//this.Invoke(new Action(() => p = this.PointToClient(Cursor.Position)));
this.Invoke(new Action(() => p = panel1.PointToClient(Cursor.Position))); //2014.11.08.
//Graphics gr = this.CreateGraphics();
//this.Invoke(new Action(() => gr = this.CreateGraphics()));
this.Invoke(new Action(() => gr = panel1.CreateGraphics())); //2014.11.08.
/*if (bmp != null)
{
bmp.Dispose();
bmp = null;
}
bmp = new Bitmap(this.Width, this.Height);*/
this.Invoke(new Action(() => bmpgr = Graphics.FromImage(bmp)));
var tmppen = (Pen)pen.Clone();
if (Erase)
tmppen.Color = Color.White; //2014.11.08.
gr.DrawLine(tmppen, p, ((prevp.X != 0 && prevp.Y != 0) ? prevp : p));
//if (Erase)
//if (!drawing) //TODO: Optimalizálás, és a thread leállítása, ha már nincs rá szükség
while (!drawing) //while: 2015.06.06.
{
Monitor.Wait(lockobj); //2015.06.06.
prevp = new Point();
//continue;
}
//GC.Collect();
/*var bm = new Bitmap(pictureBox1.Image);
Point p = pictureBox1.PointToClient(Cursor.Position);*/
Point p = new Point();
//this.Invoke(new Action(() => p = this.PointToClient(Cursor.Position)));
this.Invoke(new Action(() => p = panel1.PointToClient(Cursor.Position))); //2014.11.08.
//Graphics gr = this.CreateGraphics();
//this.Invoke(new Action(() => gr = this.CreateGraphics()));
this.Invoke(new Action(() => gr = panel1.CreateGraphics())); //2014.11.08.
/*if (bmp != null)
{
bmp.Dispose();
bmp = null;
}
bmp = new Bitmap(this.Width, this.Height);*/
this.Invoke(new Action(() => bmpgr = Graphics.FromImage(bmp)));
var tmppen = (Pen)pen.Clone();
if (Erase)
tmppen.Color = Color.White; //2014.11.08.
gr.DrawLine(tmppen, p, ((prevp.X != 0 && prevp.Y != 0) ? prevp : p));
//if (Erase)
//tmppen.Color = Color.Transparent; //2014.11.08.
//tmppen.Color = Color.Empty; //2014.12.05.
bmpgr.DrawLine(tmppen, p, ((prevp.X != 0 && prevp.Y != 0) ? prevp : p));
if (Erase)
bmp.MakeTransparent(Color.White); //2014.12.05.
prevp = p;
//Bitmap tmpbmp = new Bitmap(this.Width, this.Height);
//Bitmap tmpbmp = new Bitmap(panel1.Width, panel1.Height, PixelFormat.Format64bppArgb); //2014.11.08. - 2014.12.05. - PixelFormat
Bitmap tmpbmp = new Bitmap(panel1.Width, panel1.Height);
using (Graphics g = Graphics.FromImage(tmpbmp))
//g.DrawImage(bmp, 0, 0, this.Width, this.Height);
g.DrawImage(bmp, 0, 0, panel1.Width, panel1.Height); //2014.11.08.
bmp.Dispose();
bmp = tmpbmp;
/*if (bmp != null)
{
bmpgr.DrawLine(tmppen, p, ((prevp.X != 0 && prevp.Y != 0) ? prevp : p));
if (Erase)
bmp.MakeTransparent(Color.White); //2014.12.05.
prevp = p;
//Bitmap tmpbmp = new Bitmap(this.Width, this.Height);
//Bitmap tmpbmp = new Bitmap(panel1.Width, panel1.Height, PixelFormat.Format64bppArgb); //2014.11.08. - 2014.12.05. - PixelFormat
Bitmap tmpbmp = new Bitmap(panel1.Width, panel1.Height);
using (Graphics g = Graphics.FromImage(tmpbmp))
//g.DrawImage(bmp, 0, 0, this.Width, this.Height);
g.DrawImage(bmp, 0, 0, panel1.Width, panel1.Height); //2014.11.08.
bmp.Dispose();
bmp = null;
bmp = tmpbmp;
/*if (bmp != null)
{
bmp.Dispose();
bmp = null;
}
bmp = new Bitmap(this.Width, this.Height);
this.Invoke(new Action(() => this.DrawToBitmap(bmp, new Rectangle(new Point(), this.Size))));*/
GC.Collect();
}
bmp = new Bitmap(this.Width, this.Height);
this.Invoke(new Action(() => this.DrawToBitmap(bmp, new Rectangle(new Point(), this.Size))));*/
GC.Collect();
}
/*if (p.X < 0 || p.X >= bm.Width || p.Y < 0 || p.Y >= bm.Height)
return;
@ -234,7 +244,7 @@ namespace Handwriting_program
catch (ArgumentException)
{
}*/
//Refresh();
//Refresh();
//}
/*void resizeT_Tick(object sender, EventArgs e)
@ -262,7 +272,8 @@ namespace Handwriting_program
{
/*var bmp = new Bitmap(this.Width, this.Height);
this.DrawToBitmap(bmp, new Rectangle(new Point(), this.Size));*/
return bmp;
//return bmp;
return (Bitmap)bmp.Clone(); //2015.07.05. 0:30
}
private void Handwriting_Paint(object sender, PaintEventArgs e)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>

View file

@ -0,0 +1,9 @@
D:\Z - Norbi cucca\0 Projektek\MSGer.tk\0 Repository\Handwriting program\Handwriting program\bin\Release\Handwriting program.dll.config
D:\Z - Norbi cucca\0 Projektek\MSGer.tk\0 Repository\Handwriting program\Handwriting program\bin\Release\Handwriting program.dll
D:\Z - Norbi cucca\0 Projektek\MSGer.tk\0 Repository\Handwriting program\Handwriting program\bin\Release\Handwriting program.pdb
D:\Z - Norbi cucca\0 Projektek\MSGer.tk\0 Repository\Handwriting program\Handwriting program\obj\Release\Handwriting_program.Form1.resources
D:\Z - Norbi cucca\0 Projektek\MSGer.tk\0 Repository\Handwriting program\Handwriting program\obj\Release\Handwriting_program.Handwriting.resources
D:\Z - Norbi cucca\0 Projektek\MSGer.tk\0 Repository\Handwriting program\Handwriting program\obj\Release\Handwriting_program.Properties.Resources.resources
D:\Z - Norbi cucca\0 Projektek\MSGer.tk\0 Repository\Handwriting program\Handwriting program\obj\Release\Handwriting program.csproj.GenerateResource.Cache
D:\Z - Norbi cucca\0 Projektek\MSGer.tk\0 Repository\Handwriting program\Handwriting program\obj\Release\Handwriting program.dll
D:\Z - Norbi cucca\0 Projektek\MSGer.tk\0 Repository\Handwriting program\Handwriting program\obj\Release\Handwriting program.pdb

674
LICENSE Normal file
View file

@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

0
MSGer.tk/.justforgithub Normal file
View file

View file

@ -1,5 +1,7 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Net;
@ -15,7 +17,7 @@ namespace MSGer.tk
get
{
if (!Storage.LoggedInSettings.ContainsKey("currentuser_userid"))
Storage.LoggedInSettings.Add("currentuser_userid", "0");
return 0; //2015.06.25. - Nincs bejelentkezve
return Int32.Parse(Storage.LoggedInSettings["currentuser_userid"]);
}
set
@ -48,11 +50,11 @@ namespace MSGer.tk
{
get
{
return Language.FromString(Storage.Settings["lang"]);
return Language.CurrentLanguage; //2015.05.16.
}
set
{
Storage.Settings["lang"] = value.ToString();
Language.CurrentLanguage = value; //2015.05.16.
}
}
public static string Message
@ -131,7 +133,6 @@ namespace MSGer.tk
SendUpdate();
}
}
//public static IPAddress IP;
public static List<IPAddress> IPs;
public static string[] Keys
{ //2014.09.08-09.
@ -171,7 +172,7 @@ namespace MSGer.tk
Storage.LoggedInSettings["currentuser_keys"] = value.ToString();
}
}
public static int PicUpdateTime
public static double PicUpdateTime //2015.06.06. - int-->double
{
get
{
@ -186,42 +187,65 @@ namespace MSGer.tk
Storage.LoggedInSettings["currentuser_picupdatetime"] = value.ToString();
}
}
public static int Port; //2015.05.24.
public static bool SendChanges = false;
public static void SendUpdate()
{ //2014.08.30.
/*
* CurrentUser.SendUpdate()
* Bármi változás történik, elküldi mindenkinek
*/
if (!SendChanges)
return;
string retstr = "";
retstr += UserID + "_name=" + Name + "\n";
retstr += UserID + "_message=" + Message + "\n";
retstr += UserID + "_state=" + State + "\n";
retstr += UserID + "_username=" + UserName + "\n";
retstr += UserID + "_email=" + Email + "\n";
retstr += UserID + "_ispartner=" + false + "\n"; //Ellenőrizze le, amikor megkapja
retstr += UserID + "_lastupdate=" + Program.DateTimeToUnixTime(DateTime.Now);
retstr += UserID + "_picupdatetime=" + PicUpdateTime;
//while (true)
//{
//byte[][] resp = Networking.SendUpdate(Networking.UpdateType.ListUpdate, Encoding.Unicode.GetBytes(retstr), false);
//bool fine = false; //Elvileg így az event működésekor is tudja használni, és utána ha minden rendben, akkor törli az objectet
Networking.SendUpdateInThread(Networking.UpdateType.ListUpdate, Encoding.Unicode.GetBytes(retstr), null);
/*(e, resp) =>
{
if (resp == null || resp.Length == 0)
fine = true;
foreach (var item in resp) //Ha sehonnan nem kapott választ (egy perc után), újrapróbálkozik
{
if (Networking.ParsePacket(item).Data[0] == 0x01) //2014.09.19.
fine = true;
}*/
/*if (fine)
break;*/
//}
List<string> retstr = new List<string>();
retstr.Add(UserID + "_name=" + Name);
retstr.Add(UserID + "_message=" + Message);
retstr.Add(UserID + "_state=" + State);
retstr.Add(UserID + "_username=" + UserName);
retstr.Add(UserID + "_email=" + Email);
retstr.Add(UserID + "_ispartner=" + false); //Ellenőrizze le, amikor megkapja
retstr.Add(UserID + "_lastupdate=" + Program.DateTimeToUnixTime(DateTime.Now));
retstr.Add(UserID + "_picupdatetime=" + PicUpdateTime);
var task = new Networking.PacketSender(new Networking.PDListUpdate(retstr.ToArray())).SendAsync();
}
private static Image image;
public static Image Image
{ //2015.06.06.
get
{
if (image == null)
{
if (!Directory.Exists("pictures"))
Directory.CreateDirectory("pictures");
string[] files = Directory.GetFiles("pictures", UserID + ".*");
if (files.Length > 0)
image = Program.LoadImageFromFile(files[0]);
else
image = UserInfo.NoImage.Clone() as Image; //Ugyanaz, mint a Properties.Resources.noimage
}
return image;
}
set
{
if (image != null)
image.Dispose();
image = value;
string[] files = Directory.GetFiles("pictures", UserID + ".*");
foreach (string file in files)
{
if (Path.GetExtension(file) != ".png")
File.Delete(file);
}
image.Save("pictures\\" + UserID + ".png", ImageFormat.Png);
PicUpdateTime = Program.DateTimeToUnixTime(DateTime.Now);
var tmp = UserInfo.Select(CurrentUser.UserID);
if (tmp != null)
{
tmp.Image = value;
tmp.PicUpdateTime = PicUpdateTime;
}
SendUpdate();
}
}
}
}

View file

@ -0,0 +1,35 @@
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

190
MSGer.tk/Forms/AboutBox1.Designer.cs generated Normal file
View file

@ -0,0 +1,190 @@
namespace MSGer.tk
{
partial class AboutBox1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutBox1));
this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
this.logoPictureBox = new System.Windows.Forms.PictureBox();
this.labelProductName = new System.Windows.Forms.Label();
this.labelVersion = new System.Windows.Forms.Label();
this.labelCopyright = new System.Windows.Forms.Label();
this.labelLicenseLink = new System.Windows.Forms.LinkLabel();
this.textBoxDescription = new System.Windows.Forms.TextBox();
this.okButton = new System.Windows.Forms.Button();
this.tableLayoutPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).BeginInit();
this.SuspendLayout();
//
// tableLayoutPanel
//
this.tableLayoutPanel.ColumnCount = 2;
this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33F));
this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 67F));
this.tableLayoutPanel.Controls.Add(this.logoPictureBox, 0, 0);
this.tableLayoutPanel.Controls.Add(this.labelProductName, 1, 0);
this.tableLayoutPanel.Controls.Add(this.labelVersion, 1, 1);
this.tableLayoutPanel.Controls.Add(this.labelCopyright, 1, 2);
this.tableLayoutPanel.Controls.Add(this.labelLicenseLink, 1, 3);
this.tableLayoutPanel.Controls.Add(this.textBoxDescription, 1, 4);
this.tableLayoutPanel.Controls.Add(this.okButton, 1, 5);
this.tableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel.Location = new System.Drawing.Point(9, 9);
this.tableLayoutPanel.Name = "tableLayoutPanel";
this.tableLayoutPanel.RowCount = 6;
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F));
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F));
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F));
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F));
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F));
this.tableLayoutPanel.Size = new System.Drawing.Size(417, 265);
this.tableLayoutPanel.TabIndex = 0;
//
// logoPictureBox
//
this.logoPictureBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.logoPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("logoPictureBox.Image")));
this.logoPictureBox.Location = new System.Drawing.Point(3, 3);
this.logoPictureBox.Name = "logoPictureBox";
this.tableLayoutPanel.SetRowSpan(this.logoPictureBox, 6);
this.logoPictureBox.Size = new System.Drawing.Size(131, 259);
this.logoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.logoPictureBox.TabIndex = 12;
this.logoPictureBox.TabStop = false;
//
// labelProductName
//
this.labelProductName.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelProductName.Location = new System.Drawing.Point(143, 0);
this.labelProductName.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0);
this.labelProductName.MaximumSize = new System.Drawing.Size(0, 17);
this.labelProductName.Name = "labelProductName";
this.labelProductName.Size = new System.Drawing.Size(271, 17);
this.labelProductName.TabIndex = 19;
this.labelProductName.Text = "Product Name";
this.labelProductName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// labelVersion
//
this.labelVersion.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelVersion.Location = new System.Drawing.Point(143, 26);
this.labelVersion.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0);
this.labelVersion.MaximumSize = new System.Drawing.Size(0, 17);
this.labelVersion.Name = "labelVersion";
this.labelVersion.Size = new System.Drawing.Size(271, 17);
this.labelVersion.TabIndex = 0;
this.labelVersion.Text = "Version";
this.labelVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// labelCopyright
//
this.labelCopyright.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelCopyright.Location = new System.Drawing.Point(143, 52);
this.labelCopyright.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0);
this.labelCopyright.MaximumSize = new System.Drawing.Size(0, 17);
this.labelCopyright.Name = "labelCopyright";
this.labelCopyright.Size = new System.Drawing.Size(271, 17);
this.labelCopyright.TabIndex = 21;
this.labelCopyright.Text = "Copyright";
this.labelCopyright.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// labelLicenseLink
//
this.labelLicenseLink.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelLicenseLink.LinkColor = System.Drawing.Color.Blue;
this.labelLicenseLink.Location = new System.Drawing.Point(143, 78);
this.labelLicenseLink.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0);
this.labelLicenseLink.MaximumSize = new System.Drawing.Size(0, 17);
this.labelLicenseLink.Name = "labelLicenseLink";
this.labelLicenseLink.Size = new System.Drawing.Size(271, 17);
this.labelLicenseLink.TabIndex = 22;
this.labelLicenseLink.TabStop = true;
this.labelLicenseLink.Text = "License Link";
this.labelLicenseLink.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.labelLicenseLink.VisitedLinkColor = System.Drawing.Color.Blue;
this.labelLicenseLink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.labelLicenseLink_LinkClicked);
//
// textBoxDescription
//
this.textBoxDescription.Dock = System.Windows.Forms.DockStyle.Fill;
this.textBoxDescription.Location = new System.Drawing.Point(143, 107);
this.textBoxDescription.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3);
this.textBoxDescription.Multiline = true;
this.textBoxDescription.Name = "textBoxDescription";
this.textBoxDescription.ReadOnly = true;
this.textBoxDescription.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.textBoxDescription.Size = new System.Drawing.Size(271, 126);
this.textBoxDescription.TabIndex = 23;
this.textBoxDescription.TabStop = false;
this.textBoxDescription.Text = "Description";
//
// okButton
//
this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.okButton.Location = new System.Drawing.Point(339, 239);
this.okButton.Name = "okButton";
this.okButton.Size = new System.Drawing.Size(75, 23);
this.okButton.TabIndex = 24;
this.okButton.Text = "&OK";
//
// AboutBox1
//
this.AcceptButton = this.okButton;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(435, 283);
this.Controls.Add(this.tableLayoutPanel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "AboutBox1";
this.Padding = new System.Windows.Forms.Padding(9);
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "AboutBox1";
this.tableLayoutPanel.ResumeLayout(false);
this.tableLayoutPanel.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel;
private System.Windows.Forms.PictureBox logoPictureBox;
private System.Windows.Forms.Label labelProductName;
private System.Windows.Forms.Label labelVersion;
private System.Windows.Forms.Label labelCopyright;
private System.Windows.Forms.TextBox textBoxDescription;
private System.Windows.Forms.Button okButton;
private System.Windows.Forms.LinkLabel labelLicenseLink;
}
}

130
MSGer.tk/Forms/AboutBox1.cs Normal file
View file

@ -0,0 +1,130 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
partial class AboutBox1 : ThemedForms
{
public AboutBox1()
{
InitializeComponent();
this.Text = String.Format(Language.Translate(Language.StringID.About), AssemblyTitle);
this.labelProductName.Text = AssemblyProduct;
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.
List<string> desc = new List<string>(); //2014.04.18.
desc.Add(Language.Translate(Language.StringID.About_Programmer)); //2014.04.18.
desc.Add("SzNP");
desc.Add("http://sznp.tk");
desc.Add("");
desc.Add(Language.Translate(Language.StringID.About_SpecialThanks));
desc.Add("Jonathan Kay");
desc.Add("http://messengergeek.com");
desc.Add(Language.Translate(Language.StringID.About_SpecThanks1));
desc.Add("");
desc.Add(Language.Translate(Language.StringID.About_SpecThanks2));
desc.Add("");
desc.Add("Allen Anderson");
desc.Add("http://www.codeproject.com/Articles/4012/C-List-View-v");
desc.Add(Language.Translate(Language.StringID.About_SpecThanks3));
desc.Add("");
desc.Add("Khendys Gordon");
desc.Add("http://www.codeproject.com/Articles/4544/Insert-Plain-Text-and-Images-into-RichTextBox-at-R");
desc.Add(Language.Translate(Language.StringID.About_SpecThanks4));
textBoxDescription.Lines = desc.ToArray();
}
#region Assembly Attribute Accessors
public string AssemblyTitle
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
if (attributes.Length > 0)
{
AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
if (titleAttribute.Title != "")
{
return titleAttribute.Title;
}
}
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
}
}
public string AssemblyVersion
{
get
{
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
}
public string AssemblyDescription
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
if (attributes.Length == 0)
{
return "";
}
return ((AssemblyDescriptionAttribute)attributes[0]).Description;
}
}
public string AssemblyProduct
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
if (attributes.Length == 0)
{
return "";
}
return ((AssemblyProductAttribute)attributes[0]).Product;
}
}
public string AssemblyCopyright
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
if (attributes.Length == 0)
{
return "";
}
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
}
}
public string AssemblyCompany
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
if (attributes.Length == 0)
{
return "";
}
return ((AssemblyCompanyAttribute)attributes[0]).Company;
}
}
#endregion
private void labelLicenseLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(labelLicenseLink.Text);
}
}
}

View file

@ -0,0 +1,604 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="logoPictureBox.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net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bS8FnLlqCCly+bHRmBQS5kZWRo1Iq5q6j/kvMSYWvXQL+L49Yt2bB+
afyGiE3xkYkbVyaTLLEqLSV6CyS8JTY7AxLesG1rQv62jQV5m4sKoeKUUmLHWyrLyOtqqyuyIOS66q11
NbnQckM968skYxQ2Nxa1kFK486upaAgWbks1+zzXQb558yYixO3bt99nrx9JLZgGCe4SfHBhKmEVI/5P
UzF/aayOQmyYv2b1gpjohbFrwtatXbR+rVK8ccs2xkdu3hiZuGlF8uaoVOg3GfqNydhCskQOceG4bTnx
ebnIxZsK8xKLqYpLiIoryKtr4cgZNZVZNZXZddU5SBc7aomWd9RtY7Wc34Txj7rzf4KiYbUXf8x1kCFe
RAi+fmHBXJBQceH/ZAmrLI2NG5ZtSojYnLA8cWNk0iZMcTBfVrww39Q16akxmelrszJiczLXbc1az7rw
hvzchIJtG4vyNxcXIBcnbS9OKStBpZHX1ZamV5anV8GRKzNrq5AuiJZRVMsNdag8pTv/hykaVvujroPM
91++fqmEod/fJdzv0khPjc5Ii87YsiZzy5qs9LXZGcgPsax44b/Egql+C/I2FRdAwokl5BWJSaXF5EW1
ZcSOU1k73gI7plftUGi5WqHl+pqtqN8VTd79DYu6LTRLJzcqW9gup1yEBxXxcv77u36fZ2nkEtnG5W3d
gMrPjS/YllDAXleILaLikkIU4gR9gXhK2fYU1osVV+0gWuZdgYZkjCrk5d8VraZovmCpZlVki6WiXCzF
3fT7eu6lUZi3EUUlzIqXFO914YprHKCe55pKvyt6QEWzMUEhWCyFYtmluC9+Xz/H0uAkrHJ1A2X1fwWa
3xX9oxWtAP77+oXXz3CVsN8V/buiX6D1u6J/V/SrtX5X9O+KfrXW74r+XdGv0vq///v/AT08VKulG+4s
AAAAAElFTkSuQmCC
</value>
</data>
</root>

175
MSGer.tk/Forms/AddPartner.Designer.cs generated Normal file
View file

@ -0,0 +1,175 @@
namespace MSGer.tk
{
partial class AddPartner
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
GlacialComponents.Controls.GLColumn glColumn2 = new GlacialComponents.Controls.GLColumn();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.nameText = new System.Windows.Forms.TextBox();
this.searchbtn = new System.Windows.Forms.Button();
this.glacialList1 = new GlacialComponents.Controls.GlacialList();
this.gobtn = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label1.ForeColor = System.Drawing.Color.Blue;
this.label1.Location = new System.Drawing.Point(13, 13);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(174, 25);
this.label1.TabIndex = 0;
this.label1.Text = "Ismerős felvétele";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label2.ForeColor = System.Drawing.Color.Black;
this.label2.Location = new System.Drawing.Point(18, 86);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(174, 16);
this.label2.TabIndex = 1;
this.label2.Text = "Név/E-mail/Felhasználónév";
//
// nameText
//
this.nameText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.nameText.Location = new System.Drawing.Point(18, 106);
this.nameText.Name = "nameText";
this.nameText.Size = new System.Drawing.Size(270, 20);
this.nameText.TabIndex = 2;
//
// searchbtn
//
this.searchbtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.searchbtn.Location = new System.Drawing.Point(297, 104);
this.searchbtn.Name = "searchbtn";
this.searchbtn.Size = new System.Drawing.Size(75, 23);
this.searchbtn.TabIndex = 3;
this.searchbtn.Text = "Keresés";
this.searchbtn.UseVisualStyleBackColor = true;
this.searchbtn.Click += new System.EventHandler(this.searchbtn_Click);
//
// glacialList1
//
this.glacialList1.AllowColumnResize = true;
this.glacialList1.AllowMultiselect = false;
this.glacialList1.AlternateBackground = System.Drawing.Color.DarkGreen;
this.glacialList1.AlternatingColors = false;
this.glacialList1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.glacialList1.AutoHeight = true;
this.glacialList1.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.glacialList1.BackgroundStretchToFit = true;
glColumn2.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None;
glColumn2.CheckBoxes = false;
glColumn2.ImageIndex = -1;
glColumn2.Name = "UserName";
glColumn2.NumericSort = false;
glColumn2.Text = "Felhasználónév";
glColumn2.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
glColumn2.Width = 200;
this.glacialList1.Columns.AddRange(new GlacialComponents.Controls.GLColumn[] {
glColumn2});
this.glacialList1.ControlStyle = GlacialComponents.Controls.GLControlStyles.Normal;
this.glacialList1.FullRowSelect = true;
this.glacialList1.GridColor = System.Drawing.Color.LightGray;
this.glacialList1.GridLines = GlacialComponents.Controls.GLGridLines.gridBoth;
this.glacialList1.GridLineStyle = GlacialComponents.Controls.GLGridLineStyles.gridSolid;
this.glacialList1.GridTypes = GlacialComponents.Controls.GLGridTypes.gridOnExists;
this.glacialList1.HeaderHeight = 22;
this.glacialList1.HeaderVisible = true;
this.glacialList1.HeaderWordWrap = false;
this.glacialList1.HotColumnTracking = false;
this.glacialList1.HotItemTracking = true;
this.glacialList1.HotTrackingColor = System.Drawing.Color.LightGray;
this.glacialList1.HoverEvents = false;
this.glacialList1.HoverTime = 1;
this.glacialList1.ImageList = null;
this.glacialList1.ItemHeight = 17;
this.glacialList1.ItemWordWrap = false;
this.glacialList1.Location = new System.Drawing.Point(18, 152);
this.glacialList1.Name = "glacialList1";
this.glacialList1.Selectable = true;
this.glacialList1.SelectedTextColor = System.Drawing.Color.White;
this.glacialList1.SelectionColor = System.Drawing.Color.DarkBlue;
this.glacialList1.ShowBorder = true;
this.glacialList1.ShowFocusRect = false;
this.glacialList1.Size = new System.Drawing.Size(354, 272);
this.glacialList1.SortType = GlacialComponents.Controls.SortTypes.InsertionSort;
this.glacialList1.SuperFlatHeaderColor = System.Drawing.Color.White;
this.glacialList1.TabIndex = 4;
this.glacialList1.Text = "glacialList1";
this.glacialList1.Click += new System.EventHandler(this.glacialList1_Click);
//
// gobtn
//
this.gobtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.gobtn.Location = new System.Drawing.Point(297, 427);
this.gobtn.Name = "gobtn";
this.gobtn.Size = new System.Drawing.Size(75, 23);
this.gobtn.TabIndex = 5;
this.gobtn.Text = "Felvétel";
this.gobtn.UseVisualStyleBackColor = true;
this.gobtn.Click += new System.EventHandler(this.gobtn_Click);
//
// AddPartner
//
this.AcceptButton = this.searchbtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.LightSkyBlue;
this.ClientSize = new System.Drawing.Size(384, 462);
this.Controls.Add(this.gobtn);
this.Controls.Add(this.glacialList1);
this.Controls.Add(this.searchbtn);
this.Controls.Add(this.nameText);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Name = "AddPartner";
this.Text = "Ismerős felvétele";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox nameText;
private System.Windows.Forms.Button searchbtn;
private GlacialComponents.Controls.GlacialList glacialList1;
private System.Windows.Forms.Button gobtn;
}
}

View file

@ -0,0 +1,66 @@
using GlacialComponents.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
public partial class AddPartner : ThemedForms
{
public AddPartner()
{
InitializeComponent();
this.Text = Language.Translate(Language.StringID.AddContact);
label1.Text = Language.Translate(Language.StringID.AddContact);
label2.Text = Language.Translate(Language.StringID.AddContact_NameEmail);
searchbtn.Text = Language.Translate(Language.StringID.AddContact_Search);
glacialList1.Columns[0].Text = Language.Translate(Language.StringID.UserName);
gobtn.Text = Language.Translate(Language.StringID.Add);
}
List<UserInfo> FoundUsers = new List<UserInfo>();
private void searchbtn_Click(object sender, EventArgs e)
{
glacialList1.Items.Clear();
foreach (var tmp in UserInfo.KnownUsers)
{
if ((tmp.UserName.Contains(nameText.Text) || tmp.Name.Contains(nameText.Text) || tmp.UserID.ToString() == nameText.Text) && !FoundUsers.Contains(tmp))
{
glacialList1.Items.Add(tmp.UserName);
FoundUsers.Add(tmp);
}
}
}
private void glacialList1_Click(object sender, EventArgs e)
{
int item = glacialList1.HotItemIndex;
if (item >= glacialList1.Items.Count)
return;
//2014.04.18. - Partnerinformáció mutatása
//2014.08.16. - Megvalósítás
if (FoundUsers.Count < item)
(new PartnerInformation(FoundUsers[item])).ShowDialog();
}
private void gobtn_Click(object sender, EventArgs e)
{
if (glacialList1.SelectedItems.Count == 0 || FoundUsers.Count == 0)
return;
string username = ((GLItem)glacialList1.SelectedItems[0]).Text;
string response = Networking.SendRequest(Networking.RequestType.AddUser, username, 0, true);
if (response == "Success")
MessageBox.Show("Felhasználó felvéve az ismerőseid közé.");
else
MessageBox.Show("Nem sikerült felvenni a felhasználót az ismerőseid közé.\nLehet, hogy már felvetted, vagy valami hiba történt.\n(" + response + ")");
}
}
}

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

68
MSGer.tk/Forms/BeforeLogin.Designer.cs generated Normal file
View file

@ -0,0 +1,68 @@
namespace MSGer.tk
{
partial class BeforeLogin
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(0, 24);
this.label1.TabIndex = 0;
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// BeforeLogin
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(362, 53);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.Name = "BeforeLogin";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "BeforeLogin";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.BeforeLogin_FormClosed);
this.TextChanged += new System.EventHandler(this.BeforeLogin_TextChanged);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
}
}

View file

@ -0,0 +1,64 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
public partial class BeforeLogin : ThemedForms
{
private static BeforeLogin mInstance;
private static bool done = false;
private static string ttext { get; set; }
public static void Create()
{
var t = new System.Threading.Thread(() =>
{
Thread.Sleep(1000);
if (done)
return;
mInstance = new BeforeLogin();
mInstance.FormClosed += (s, e) => mInstance = null;
Application.Run(mInstance);
});
t.SetApartmentState(System.Threading.ApartmentState.STA);
t.IsBackground = true;
t.Start();
}
public static void Destroy()
{
done = true;
if (mInstance != null) mInstance.Invoke(new Action(() => mInstance.Close()));
}
public static void SetText(string text)
{
if (mInstance != null) mInstance.Invoke((MethodInvoker)delegate { mInstance.Text = text; });
ttext = text;
}
private BeforeLogin()
{ //2014.09.06.
InitializeComponent();
Text = ttext;
}
private void BeforeLogin_TextChanged(object sender, EventArgs e)
{
label1.Text = this.Text;
}
private void BeforeLogin_FormClosed(object sender, FormClosedEventArgs e)
{
if (!done)
Program.Exit();
}
}
}

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

49
MSGer.tk/Forms/ChatForm.Designer.cs generated Normal file
View file

@ -0,0 +1,49 @@
namespace MSGer.tk
{
partial class ChatForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.SuspendLayout();
//
// ChatForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(200)))));
this.ClientSize = new System.Drawing.Size(564, 422);
this.Name = "ChatForm";
this.Text = "Beszélgetés";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ChatForm_FormClosing);
this.ResumeLayout(false);
}
#endregion
}
}

View file

@ -0,0 +1,36 @@
using Khendys.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using HdSystemLibrary.IO;
namespace MSGer.tk
{
public partial class ChatForm : ThemedForms
{
public ChatForm()
{
InitializeComponent();
//Amint létrehozom, ez a kód lefut - Nem számit, hogy megjelenik-e
this.Text = Language.Translate(Language.StringID.Chat_Title, this);
}
private void ChatForm_FormClosing(object sender, FormClosingEventArgs e)
{
}
}
}

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

349
MSGer.tk/Forms/ChatPanel.Designer.cs generated Normal file
View file

@ -0,0 +1,349 @@
namespace MSGer.tk
{
partial class ChatPanel
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ChatPanel));
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.partnerName = new Khendys.Controls.ExRichTextBox();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.button1 = new System.Windows.Forms.Button();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
this.recentMsgTextBox = new FastColoredTextBoxNS.FastColoredTextBox();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.messageTextBox = new FastColoredTextBoxNS.FastColoredTextBox();
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.masterPanel = new System.Windows.Forms.Panel();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout();
this.splitContainer2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit();
this.splitContainer3.Panel1.SuspendLayout();
this.splitContainer3.Panel2.SuspendLayout();
this.splitContainer3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.recentMsgTextBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.messageTextBox)).BeginInit();
this.menuStrip1.SuspendLayout();
this.masterPanel.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(169, 363);
this.panel1.TabIndex = 0;
//
// panel2
//
this.panel2.Controls.Add(this.partnerName);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(391, 39);
this.panel2.TabIndex = 0;
//
// partnerName
//
this.partnerName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.partnerName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(200)))));
this.partnerName.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.partnerName.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.partnerName.ForeColor = System.Drawing.Color.Black;
this.partnerName.HiglightColor = Khendys.Controls.RtfColor.White;
this.partnerName.Location = new System.Drawing.Point(9, 7);
this.partnerName.Multiline = false;
this.partnerName.Name = "partnerName";
this.partnerName.ReadOnly = true;
this.partnerName.Size = new System.Drawing.Size(337, 25);
this.partnerName.TabIndex = 3;
this.partnerName.Text = "partnerName";
this.partnerName.TextColor = Khendys.Controls.RtfColor.Black;
//
// openFileDialog1
//
this.openFileDialog1.FileName = "openFileDialog1";
//
// button1
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.button1.Location = new System.Drawing.Point(313, 122);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 2;
this.button1.Text = "handwriting";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// splitContainer1
//
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
this.splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.panel1);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
this.splitContainer1.Size = new System.Drawing.Size(564, 363);
this.splitContainer1.SplitterDistance = 169;
this.splitContainer1.TabIndex = 7;
this.splitContainer1.TabStop = false;
//
// splitContainer2
//
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer2.Location = new System.Drawing.Point(0, 0);
this.splitContainer2.Name = "splitContainer2";
this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer2.Panel1
//
this.splitContainer2.Panel1.Controls.Add(this.splitContainer3);
//
// splitContainer2.Panel2
//
this.splitContainer2.Panel2.Controls.Add(this.progressBar1);
this.splitContainer2.Panel2.Controls.Add(this.button1);
this.splitContainer2.Panel2.Controls.Add(this.messageTextBox);
this.splitContainer2.Size = new System.Drawing.Size(391, 363);
this.splitContainer2.SplitterDistance = 203;
this.splitContainer2.TabIndex = 2;
this.splitContainer2.TabStop = false;
//
// splitContainer3
//
this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer3.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
this.splitContainer3.Location = new System.Drawing.Point(0, 0);
this.splitContainer3.Name = "splitContainer3";
this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer3.Panel1
//
this.splitContainer3.Panel1.Controls.Add(this.panel2);
//
// splitContainer3.Panel2
//
this.splitContainer3.Panel2.Controls.Add(this.recentMsgTextBox);
this.splitContainer3.Size = new System.Drawing.Size(391, 203);
this.splitContainer3.SplitterDistance = 39;
this.splitContainer3.TabIndex = 2;
this.splitContainer3.TabStop = false;
//
// recentMsgTextBox
//
this.recentMsgTextBox.AcceptsTab = false;
this.recentMsgTextBox.AllowMacroRecording = false;
this.recentMsgTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.recentMsgTextBox.AutoCompleteBracketsList = new char[] {
'(',
')',
'{',
'}',
'[',
']',
'\"',
'\"',
'\'',
'\''};
this.recentMsgTextBox.AutoIndent = false;
this.recentMsgTextBox.AutoIndentChars = false;
this.recentMsgTextBox.AutoIndentExistingLines = false;
this.recentMsgTextBox.AutoScrollMinSize = new System.Drawing.Size(0, 12);
this.recentMsgTextBox.BackBrush = null;
this.recentMsgTextBox.CharHeight = 12;
this.recentMsgTextBox.CharWidth = 7;
this.recentMsgTextBox.Cursor = System.Windows.Forms.Cursors.IBeam;
this.recentMsgTextBox.DisabledColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))));
this.recentMsgTextBox.Font = new System.Drawing.Font("Courier New", 8.25F);
this.recentMsgTextBox.IsReplaceMode = false;
this.recentMsgTextBox.Location = new System.Drawing.Point(3, 3);
this.recentMsgTextBox.Name = "recentMsgTextBox";
this.recentMsgTextBox.Paddings = new System.Windows.Forms.Padding(0);
this.recentMsgTextBox.ReadOnly = true;
this.recentMsgTextBox.SelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
this.recentMsgTextBox.ServiceColors = ((FastColoredTextBoxNS.ServiceColors)(resources.GetObject("recentMsgTextBox.ServiceColors")));
this.recentMsgTextBox.ShowLineNumbers = false;
this.recentMsgTextBox.Size = new System.Drawing.Size(388, 157);
this.recentMsgTextBox.TabIndex = 4;
this.recentMsgTextBox.WordWrap = true;
this.recentMsgTextBox.Zoom = 100;
this.recentMsgTextBox.TextChanged += new System.EventHandler<FastColoredTextBoxNS.TextChangedEventArgs>(this.recentMsgTextBox_TextChanged);
//
// progressBar1
//
this.progressBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.progressBar1.ForeColor = System.Drawing.Color.White;
this.progressBar1.Location = new System.Drawing.Point(162, 123);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(145, 20);
this.progressBar1.Step = 1;
this.progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
this.progressBar1.TabIndex = 4;
this.progressBar1.Value = 100;
this.progressBar1.Visible = false;
//
// messageTextBox
//
this.messageTextBox.AcceptsTab = false;
this.messageTextBox.AllowMacroRecording = false;
this.messageTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.messageTextBox.AutoCompleteBracketsList = new char[] {
'(',
')',
'{',
'}',
'[',
']',
'\"',
'\"',
'\'',
'\''};
this.messageTextBox.AutoIndent = false;
this.messageTextBox.AutoIndentChars = false;
this.messageTextBox.AutoIndentExistingLines = false;
this.messageTextBox.AutoScrollMinSize = new System.Drawing.Size(0, 12);
this.messageTextBox.BackBrush = null;
this.messageTextBox.CharHeight = 12;
this.messageTextBox.CharWidth = 7;
this.messageTextBox.Cursor = System.Windows.Forms.Cursors.IBeam;
this.messageTextBox.DisabledColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))));
this.messageTextBox.Font = new System.Drawing.Font("Courier New", 8.25F);
this.messageTextBox.IsReplaceMode = false;
this.messageTextBox.Location = new System.Drawing.Point(0, 2);
this.messageTextBox.Name = "messageTextBox";
this.messageTextBox.Paddings = new System.Windows.Forms.Padding(0);
this.messageTextBox.SelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
this.messageTextBox.ServiceColors = ((FastColoredTextBoxNS.ServiceColors)(resources.GetObject("messageTextBox.ServiceColors")));
this.messageTextBox.ShowLineNumbers = false;
this.messageTextBox.Size = new System.Drawing.Size(391, 114);
this.messageTextBox.TabIndex = 3;
this.messageTextBox.WordWrap = true;
this.messageTextBox.Zoom = 100;
this.messageTextBox.TextChanged += new System.EventHandler<FastColoredTextBoxNS.TextChangedEventArgs>(this.MessageTextChanged);
this.messageTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SendMessage);
//
// menuStrip1
//
this.menuStrip1.BackgroundImage = global::MSGer.tk.Properties.Resources.Menü_2;
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
this.menuStrip1.Size = new System.Drawing.Size(564, 24);
this.menuStrip1.TabIndex = 0;
this.menuStrip1.Text = "menuStrip1";
//
// fileToolStripMenuItem
//
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
this.fileToolStripMenuItem.Text = "File";
//
// masterPanel
//
this.masterPanel.Controls.Add(this.splitContainer1);
this.masterPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.masterPanel.Location = new System.Drawing.Point(0, 24);
this.masterPanel.Name = "masterPanel";
this.masterPanel.Size = new System.Drawing.Size(564, 363);
this.masterPanel.TabIndex = 0;
//
// ChatPanel
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(200)))));
this.Controls.Add(this.masterPanel);
this.Controls.Add(this.menuStrip1);
this.Name = "ChatPanel";
this.Size = new System.Drawing.Size(564, 387);
this.Load += new System.EventHandler(this.ChatForm_Load);
this.panel2.ResumeLayout(false);
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.splitContainer2.Panel1.ResumeLayout(false);
this.splitContainer2.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
this.splitContainer2.ResumeLayout(false);
this.splitContainer3.Panel1.ResumeLayout(false);
this.splitContainer3.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit();
this.splitContainer3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.recentMsgTextBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.messageTextBox)).EndInit();
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.masterPanel.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
public Khendys.Controls.ExRichTextBox partnerName;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.SplitContainer splitContainer2;
private System.Windows.Forms.SplitContainer splitContainer3;
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.Panel masterPanel;
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
private FastColoredTextBoxNS.FastColoredTextBox messageTextBox;
private FastColoredTextBoxNS.FastColoredTextBox recentMsgTextBox;
private System.Windows.Forms.ProgressBar progressBar1;
}
}

423
MSGer.tk/Forms/ChatPanel.cs Normal file
View file

@ -0,0 +1,423 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Net;
using System.Net.Sockets;
using HdSystemLibrary.IO;
using System.Diagnostics;
using Handwriting_program;
using FastColoredTextBoxNS;
using System.Text.RegularExpressions;
namespace MSGer.tk
{
public partial class ChatPanel : UserControl
{
public static List<ChatPanel> ChatWindows = new List<ChatPanel>();
public List<UserInfo> ChatPartners = new List<UserInfo>();
private string chatname = "";
public string ChatName //2014.12.13. - A beszélgetés neve
{
get
{
return chatname;
}
set
{
chatname = value;
this.Text = chatname;
}
}
private TextBoxHelpers.GifImageStyle style;
private TextBoxHelpers.GifImageStyle styleRecent; //2015.06.16.
const string RegexSpecSymbolsPattern = @"[\^\$\[\]\(\)\.\\\*\+\|\?\{\}]"; //static-->const: 2015.07.05.
public ChatPanel()
{
InitializeComponent();
//Amint létrehozom, ez a kód lefut - Nem számit, hogy megjelenik-e
this.Text = Language.Translate(Language.StringID.Chat_Title, this);
button1.Text = Language.Translate(Language.StringID.Handwriting, button1); //2015.06.29.
style = new TextBoxHelpers.GifImageStyle(messageTextBox);
styleRecent = new TextBoxHelpers.GifImageStyle(recentMsgTextBox); //2015.06.16.
foreach (var item in TextFormat.TextFormats)
{ //2015.06.26.
foreach (var item2 in item.Emoticons)
{
style.ImagesByText.Add(item2.Value, item2.Image);
styleRecent.ImagesByText.Add(item2.Value, item2.Image);
}
}
style.StartAnimation(); //2015.06.16.
styleRecent.StartAnimation(); //2015.06.16.
messageTextBox.OnTextChanged(); //2015.06.16.
recentMsgTextBox.OnTextChanged(); //2015.06.16.
recentMsgTextBox.GoEnd(); //2015.06.16.
} //TODO: A recentMsgTextBox-nál megoldani az OpenLink event-et
private void ChatForm_Load(object sender, EventArgs e)
{
if (ChatPartners.Count == 0)
{
new ErrorHandler(ErrorType.Chat_NoPartners, new Exception()); //2015.06.04.
Close(); //2015.05.21.
return; //2015.05.21. - Ezesetben ne folytassa
}
if (ChatName.Length == 0)
{
this.Text = "";
foreach (var item in ChatPartners)
this.Text += item.Name + ", ";
this.Text = this.Text.Remove(this.Text.Length - 2);
partnerName.Text = this.Text;
this.Text += " - " + Language.Translate(Language.StringID.Chat_Title);
}
else
{
this.Text = ChatName;
}
if (Storage.Settings[SettingType.ChatWindow] == "1") //<-- 2015.06.14.
Parent.Parent.Text = this.Text; //2014.12.22.
messageTextBox.Select();
}
public bool InternalMessageChange = false;
public int SelectionStart = 0;
public int SelectionLength = 0;
public int TextLength = 0;
private async void SendMessage(object sender, KeyEventArgs e)
{
//SendMessage
if (e.KeyCode != Keys.Enter || e.Shift || !messageTextBox.Visible)
return;
e.SuppressKeyPress = true; //2015.05.21.
if (messageTextBox.Text.Length == 0)
{ //2015.05.21.
return;
}
messageTextBox.ReadOnly = true;
double time = Program.DateTimeToUnixTime(DateTime.Now);
if (ChatPartners.Any(entry => entry.UserID != CurrentUser.UserID) && !await Networking.SendChatMessage(this, messageTextBox.Text, time)) //UserID==CurrentUser.UserID: 2015.05.23.
MessageBox.Show(Language.Translate(Language.StringID.Networking_Alone));
else //else: 2014.10.31.
{
recentMsgTextBox.GoEnd(); //2015.06.16.
ShowReceivedMessageT(UserInfo.Select(CurrentUser.UserID), messageTextBox.Text, time);
messageTextBox.Text = "";
}
messageTextBox.Select(); //2014.12.13.
messageTextBox.ReadOnly = false;
}
private void MessageTextChanged(object sender, TextChangedEventArgs e)
{
if (style == null)
return;
e.ChangedRange.ClearStyle(StyleIndex.All);
foreach (var key in style.ImagesByText.Keys)
{
string pattern = Regex.Replace(key, RegexSpecSymbolsPattern, "\\$0");
e.ChangedRange.SetStyle(style, pattern);
}
}
private void OpenLink(object sender, LinkClickedEventArgs e)
{
Process.Start(e.LinkText);
}
public static ChatPanel GetChatPanelByUsers(IEnumerable<UserInfo> users) //2014.08.08. - IEnumerable: 2014.08.16. - GetChatFormByUsers --> GetChatPanelByUsers: 2015.05.15.
{
if (users.Any(entry => entry == null))
return null; //2015.05.15.
int i;
for (i = 0; i < ChatWindows.Count; i++)
{
UserInfo[] tmp = new UserInfo[ChatWindows[i].ChatPartners.Count + 1]; //2015.05.15.
ChatWindows[i].ChatPartners.CopyTo(tmp); //2015.05.15.
tmp[tmp.Length - 1] = UserInfo.Select(CurrentUser.UserID); //2015.05.15.
if (tmp.HasSameElementsAs(users))
break; //2015.05.15.
}
return (i != ChatWindows.Count) ? ChatWindows[i] : null;
}
private UserInfo _LastMessageUser;
private string _LastMessage;
private double _LastMessageStartTime;
/// <summary>
/// Thread-safe
/// </summary>
/// <param name="user"></param>
/// <param name="message"></param>
public void ShowReceivedMessageT(UserInfo user, string message, double time)
{ //2015.05.15.
this.Invoke(new Action(() =>
{
if (user == _LastMessageUser && message == _LastMessage && time < _LastMessageStartTime + 1) //1000-->1: 2015.07.05. 0:35
return;
_LastMessageUser = user;
_LastMessage = message;
_LastMessageStartTime = Program.DateTimeToUnixTime(DateTime.Now);
int index = message.IndexOf("//!img"); //2015.07.05.
int index2 = message.IndexOfAny(new char[] { ' ', '\n' }); //2015.07.05.
if (index2 == -1) //2015.07.05.
index2 = message.Length; //2015.07.05.
if (index != -1) //2015.07.05.
{
string newlines = ""; //2015.07.05.
message = message.Substring(index, index2); //2015.07.05.
if (!styleRecent.SentImagesByText.ContainsKey(message)) //2015.07.05.
message = "[Invalid image data]"; //2015.07.05.
else
for (int i = 0; i <= styleRecent.SentImagesByText[message].Height; i += (int)recentMsgTextBox.Font.GetHeight())
newlines += "\n"; //2015.07.05.
message += newlines; //2015.07.05.
}
string txt = "\n" + ((user.UserID == CurrentUser.UserID) ? CurrentUser.Name : user.Name) + " " + Language.Translate(Language.StringID.Said) + " (" + Program.UnixTimeToDateTime(time).ToString("yyyy.MM.dd. HH:mm:ss") + "):\n" + message + "\n";
recentMsgTextBox.AppendText(txt);
recentMsgTextBox.GoEnd(); //2015.06.16.
}));
}
private double _LastImageTime;
private UserInfo _LastImageUser;
public void ShowReceivedImageT(UserInfo user, Image image, double time)
{ //2015.06.25.
this.Invoke(new Action(() =>
{
if (user == _LastImageUser && time < _LastImageTime + 1) //<-- 2015.07.04.
return;
_LastImageTime = time;
_LastImageUser = user;
string txt = "\n" + ((user.UserID == CurrentUser.UserID) ? CurrentUser.Name : user.Name) + " " + Language.Translate(Language.StringID.Said) + " (" + Program.UnixTimeToDateTime(time).ToString("yyyy.MM.dd. HH:mm:ss") + "):\n";
txt += styleRecent.AddImage(image) + "\n"; //2015.06.26. - style-->styleRecent: 2015.07.04.
for (int i = 0; i <= image.Height; i += (int)recentMsgTextBox.Font.GetHeight())
txt += "\n"; //2015.07.04.
recentMsgTextBox.AppendText(txt);
recentMsgTextBox.GoEnd(); //2015.06.16.
}));
}
public long ShowReceivedFileT(UserInfo user, FileInfo file, double time, long progress)
{ //2015.06.30.
long prog = 0;
this.Invoke(new Action(() =>
{
progressBar1.Value = (int)((progress / file.Length) * 100);
progressBar1.Visible = true;
if (progress + Networking.PDSendFile.BufferLength >= file.Length + 1)
{
progressBar1.Visible = false;
string txt = "\n" + ((user.UserID == CurrentUser.UserID) ? CurrentUser.Name : user.Name) + " " + Language.Translate(Language.StringID.FileReceived) + " (" + Program.UnixTimeToDateTime(time).ToString("yyyy.MM.dd. HH:mm:ss") + "): " + file.Name + "\n";
recentMsgTextBox.AppendText(txt);
prog = Progress;
Progress = 0;
}
}));
return prog;
}
public static ChatPanel Create(IEnumerable<UserInfo> users)
{ //2015.05.15.
ChatPanel cf = null;
Program.MainF.Invoke(new Action(() => //Invoke: 2015.05.16.
{
ChatPanel.ChatWindows.Add(cf = new ChatPanel());
cf.ChatPartners.AddRange(users);
if (cf.ChatPartners.Count > 1) //2015.05.23. - Így saját magunkkal is beszélhetünk...
cf.ChatPartners.RemoveAll(entry => entry.UserID == CurrentUser.UserID); //2015.05.16.
cf.Init();
}));
return cf;
}
private long Progress = 0; //2015.06.30.
private FileInfo fileinfo; //2015.06.30.
public void OpenSendFile() //<-- 2015.06.30.
{
if (openFileDialog1.ShowDialog() == DialogResult.Cancel)
return;
fileinfo = new FileInfo(openFileDialog1.FileName);
Progress = 0; //2015.06.30.
new Networking.PacketSender(new Networking.PDSendFile(ChatPartners.Select(entry => entry.UserID).ToArray(),
fileinfo, Program.DateTimeToUnixTime(DateTime.Now), 0)).SendAsync()
.ContinueWith(new Action<Task<Networking.PacketFormat[]>>(SendFileContinue));
progressBar1.Visible = true;
}
private IEnumerable<IPAddress> SendFileIPs; //2015.06.30.
private void SendFileContinue(Task<Networking.PacketFormat[]> task) //<-- 2015.06.30.
{
if (task.Result.Count() == 0)
return; //2015.06.30.
if (SendFileIPs == null)
SendFileIPs = task.Result.Where(entry => ChatPartners.Any(item => item.UserID == entry.EUserID)) //2015.06.30.
.Select(entry => ((Networking.PDSendFile)entry.EData).RespIPs) //2015.06.30.
.Aggregate((entry1, entry2) => entry1.Concat(entry2)); //2015.06.30.
var pf = task.Result.FirstOrDefault(entry => ((Networking.PDSendFile)entry.EData).RespIPs.SequenceEqual(SendFileIPs)); //2015.06.30.
if (pf == null)
return; //2015.06.30.
var pd = ((Networking.PDSendFile)pf.EData);
if (pd.RProgress < Progress) //Ha a fájl fogadója le van maradva
{ //2015.06.30.
Progress = pd.RProgress;
}
Progress += Networking.PDSendFile.BufferLength; //2015.06.30.
if (Progress < fileinfo.Length)
{
progressBar1.Value = (int)((Progress / fileinfo.Length) * 100); //2015.06.30.
new Networking.PacketSender(new Networking.PDSendFile(ChatPartners.Select(entry => entry.UserID).ToArray(),
fileinfo, Program.DateTimeToUnixTime(DateTime.Now), Progress)).SendAsync()
.ContinueWith(new Action<Task<Networking.PacketFormat[]>>(SendFileContinue));
}
else
{
SendFileIPs = null; //2015.06.30.
Progress = 0; //2015.06.30.
}
}
public void Close()
{
ChatWindows.Remove(this);
if (Storage.Settings[SettingType.ChatWindow] == "0" ^ SettingsForm.ApplyingSettings) //Ha az új beállítás szerint(!) külön ablakokban kell megjeleníteni, akkor hajtsa végre
{ //2014.10.31.
this.Dispose();
if (ChatIcon != null) //Most már nem feltétlenül változik a beállítás
ChatIcon.Dispose();
}
}
private void Init()
{ //2014.10.28.
if (Storage.Settings[SettingType.ChatWindow] == "")
Storage.Settings[SettingType.ChatWindow] = "0"; //2015.05.21.
if (Storage.Settings[SettingType.ChatWindow] == "1")
{
//ChatForm a ChatPanel-lel
var cf = new ChatForm();
cf.Controls.Add(this);
cf.FormClosing += cf_FormClosing;
this.Dock = DockStyle.Fill;
cf.Show();
cf.Select(); //2014.12.13.
cf.Focus(); //2015.05.16.
}
else
{
Program.MainF.Controls.Add(this);
if (ChatPartners.Count == 0)
return; //2015.05.21. - Azt várja meg, hogy a Load metódus hibát jelezzen
Program.MainF.PlaceChatIcon(this);
this.BringToFront();
this.Show();
}
}
void cf_FormClosing(object sender, FormClosingEventArgs e)
{
this.Close();
}
internal static void ReopenChatWindows(bool settingchanged)
{
for (int i = 0; i < ChatWindows.Count; i++)
{
var tmp = ChatWindows[i].ChatPartners;
if (settingchanged)
{
if (Storage.Settings[SettingType.ChatWindow] == "0") //Ha az új beállítás szerint(!) külön ablakokban kell megjeleníteni, akkor hajtsa végre
((Form)ChatWindows[i].Parent.Parent).Close(); //Ezzel meghívja a saját Close()-ját is
else
ChatWindows[i].Close();
}
else
{
if (Storage.Settings[SettingType.ChatWindow] == "1") //Ha a régi beállítás szerint(!) külön ablakokban kell megjeleníteni, akkor hajtsa végre
((Form)ChatWindows[i].Parent.Parent).Close(); //Ezzel meghívja a saját Close()-ját is
else
ChatWindows[i].Close();
}
var tmp2 = new ChatPanel();
tmp2.ChatPartners = tmp;
tmp2.Init();
ChatWindows.Add(tmp2);
}
}
public new void Show()
{
if (Storage.Settings[SettingType.ChatWindow] == "0")
{
foreach (var item in ChatWindows)
{
item.Hide();
}
//A ChatIcon-hoz a legközelebbi helyre rakja - Vagy fedje be kb. a partnerlistát, úgyis elég nagy
this.Location = new Point(150, Program.MainF.contactList.Location.Y);
}
base.Show();
}
public PictureBox ChatIcon { get; set; }
public Handwriting handw;
private void button1_Click(object sender, EventArgs e)
{
if (messageTextBox.Visible)
{
if (handw == null)
{
handw = new Handwriting();
handw.Parent = this.splitContainer2.Panel2;
handw.Bounds = messageTextBox.Bounds;
handw.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
handw.sendbtn.Text = Language.Translate(Language.StringID.Sendbtn_Send, handw.sendbtn);
handw.sendbtn.Click += Handw_sendbtn_Click;
}
else
handw.Show();
messageTextBox.Hide();
}
else
{
handw.Hide();
messageTextBox.Show();
}
}
async void Handw_sendbtn_Click(object sender, EventArgs e)
{
double time = Program.DateTimeToUnixTime(DateTime.Now); //2015.07.04.
await new Networking.PacketSender(new Networking.PDSendImage(ChatPartners.Select(entry => entry.UserID).ToArray(), handw.GetBitmap(), time)).SendAsync(); //2015.06.28.
ShowReceivedImageT(UserInfo.Select(CurrentUser.UserID), handw.GetBitmap(), time); //2015.07.04.
handw.Clear(); //2015.07.04.
}
private void recentMsgTextBox_TextChanged(object sender, TextChangedEventArgs e)
{
if (style == null)
return;
e.ChangedRange.ClearStyle(StyleIndex.All);
foreach (var key in style.ImagesByText.Keys)
{
string pattern = Regex.Replace(key, RegexSpecSymbolsPattern, "\\$0");
e.ChangedRange.SetStyle(styleRecent, pattern);
}
foreach (var key in styleRecent.SentImagesByText.Keys)
{
e.ChangedRange.SetStyle(styleRecent, key);
}
}
}
}

View file

@ -0,0 +1,162 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="recentMsgTextBox.ServiceColors" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFdGYXN0Q29sb3JlZFRleHRCb3gsIFZlcnNpb249Mi4xNi4xMS4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWZiOGFhMTJiOTk0ZWY2MWIMAwAAAFFTeXN0
ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2Vu
PWIwM2Y1ZjdmMTFkNTBhM2EFAQAAACJGYXN0Q29sb3JlZFRleHRCb3hOUy5TZXJ2aWNlQ29sb3JzBgAA
ACg8Q29sbGFwc2VNYXJrZXJGb3JlQ29sb3I+a19fQmFja2luZ0ZpZWxkKDxDb2xsYXBzZU1hcmtlckJh
Y2tDb2xvcj5rX19CYWNraW5nRmllbGQqPENvbGxhcHNlTWFya2VyQm9yZGVyQ29sb3I+a19fQmFja2lu
Z0ZpZWxkJjxFeHBhbmRNYXJrZXJGb3JlQ29sb3I+a19fQmFja2luZ0ZpZWxkJjxFeHBhbmRNYXJrZXJC
YWNrQ29sb3I+a19fQmFja2luZ0ZpZWxkKDxFeHBhbmRNYXJrZXJCb3JkZXJDb2xvcj5rX19CYWNraW5n
RmllbGQEBAQEBAQUU3lzdGVtLkRyYXdpbmcuQ29sb3IDAAAAFFN5c3RlbS5EcmF3aW5nLkNvbG9yAwAA
ABRTeXN0ZW0uRHJhd2luZy5Db2xvcgMAAAAUU3lzdGVtLkRyYXdpbmcuQ29sb3IDAAAAFFN5c3RlbS5E
cmF3aW5nLkNvbG9yAwAAABRTeXN0ZW0uRHJhd2luZy5Db2xvcgMAAAACAAAABfz///8UU3lzdGVtLkRy
YXdpbmcuQ29sb3IEAAAABG5hbWUFdmFsdWUKa25vd25Db2xvcgVzdGF0ZQEAAAAJBwcDAAAACgAAAAAA
AAAAlgABAAH7/////P///woAAAAAAAAAAKQAAQAB+v////z///8KAAAAAAAAAACWAAEAAfn////8////
CgAAAAAAAAAAjQABAAH4/////P///woAAAAAAAAAAKQAAQAB9/////z///8KAAAAAAAAAACWAAEACw==
</value>
</data>
<data name="messageTextBox.ServiceColors" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFdGYXN0Q29sb3JlZFRleHRCb3gsIFZlcnNpb249Mi4xNi4xMS4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWZiOGFhMTJiOTk0ZWY2MWIMAwAAAFFTeXN0
ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2Vu
PWIwM2Y1ZjdmMTFkNTBhM2EFAQAAACJGYXN0Q29sb3JlZFRleHRCb3hOUy5TZXJ2aWNlQ29sb3JzBgAA
ACg8Q29sbGFwc2VNYXJrZXJGb3JlQ29sb3I+a19fQmFja2luZ0ZpZWxkKDxDb2xsYXBzZU1hcmtlckJh
Y2tDb2xvcj5rX19CYWNraW5nRmllbGQqPENvbGxhcHNlTWFya2VyQm9yZGVyQ29sb3I+a19fQmFja2lu
Z0ZpZWxkJjxFeHBhbmRNYXJrZXJGb3JlQ29sb3I+a19fQmFja2luZ0ZpZWxkJjxFeHBhbmRNYXJrZXJC
YWNrQ29sb3I+a19fQmFja2luZ0ZpZWxkKDxFeHBhbmRNYXJrZXJCb3JkZXJDb2xvcj5rX19CYWNraW5n
RmllbGQEBAQEBAQUU3lzdGVtLkRyYXdpbmcuQ29sb3IDAAAAFFN5c3RlbS5EcmF3aW5nLkNvbG9yAwAA
ABRTeXN0ZW0uRHJhd2luZy5Db2xvcgMAAAAUU3lzdGVtLkRyYXdpbmcuQ29sb3IDAAAAFFN5c3RlbS5E
cmF3aW5nLkNvbG9yAwAAABRTeXN0ZW0uRHJhd2luZy5Db2xvcgMAAAACAAAABfz///8UU3lzdGVtLkRy
YXdpbmcuQ29sb3IEAAAABG5hbWUFdmFsdWUKa25vd25Db2xvcgVzdGF0ZQEAAAAJBwcDAAAACgAAAAAA
AAAAlgABAAH7/////P///woAAAAAAAAAAKQAAQAB+v////z///8KAAAAAAAAAACWAAEAAfn////8////
CgAAAAAAAAAAjQABAAH4/////P///woAAAAAAAAAAKQAAQAB9/////z///8KAAAAAAAAAACWAAEACw==
</value>
</data>
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>157, 17</value>
</metadata>
</root>

213
MSGer.tk/Forms/Emoticons.Designer.cs generated Normal file
View file

@ -0,0 +1,213 @@
namespace MSGer.tk
{
partial class Emoticons
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.removebtn = new System.Windows.Forms.Button();
this.domainUpDown1 = new System.Windows.Forms.DomainUpDown();
this.addbtn = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.closebtn = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label3 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// flowLayoutPanel1
//
this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.flowLayoutPanel1.BackColor = System.Drawing.Color.White;
this.flowLayoutPanel1.Location = new System.Drawing.Point(13, 66);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
this.flowLayoutPanel1.Size = new System.Drawing.Size(228, 297);
this.flowLayoutPanel1.TabIndex = 0;
this.flowLayoutPanel1.Click += new System.EventHandler(this.flowLayoutPanel1_Click);
//
// removebtn
//
this.removebtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.removebtn.Location = new System.Drawing.Point(247, 95);
this.removebtn.Name = "removebtn";
this.removebtn.Size = new System.Drawing.Size(124, 23);
this.removebtn.TabIndex = 2;
this.removebtn.Text = "Törlés";
this.removebtn.UseVisualStyleBackColor = true;
this.removebtn.Click += new System.EventHandler(this.removebtn_Click);
//
// domainUpDown1
//
this.domainUpDown1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.domainUpDown1.Location = new System.Drawing.Point(12, 40);
this.domainUpDown1.Name = "domainUpDown1";
this.domainUpDown1.Size = new System.Drawing.Size(229, 20);
this.domainUpDown1.TabIndex = 3;
this.domainUpDown1.Text = "New pack";
this.domainUpDown1.SelectedItemChanged += new System.EventHandler(this.domainUpDown1_SelectedItemChanged);
this.domainUpDown1.TextChanged += new System.EventHandler(this.domainUpDown1_TextChanged);
//
// addbtn
//
this.addbtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.addbtn.Location = new System.Drawing.Point(247, 66);
this.addbtn.Name = "addbtn";
this.addbtn.Size = new System.Drawing.Size(124, 23);
this.addbtn.TabIndex = 1;
this.addbtn.Text = "Hozzáadás";
this.addbtn.UseVisualStyleBackColor = true;
this.addbtn.Click += new System.EventHandler(this.addbtn_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(60, 24);
this.label1.TabIndex = 4;
this.label1.Text = "label1";
//
// closebtn
//
this.closebtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.closebtn.Location = new System.Drawing.Point(296, 367);
this.closebtn.Name = "closebtn";
this.closebtn.Size = new System.Drawing.Size(75, 23);
this.closebtn.TabIndex = 5;
this.closebtn.Text = "Bezárás";
this.closebtn.UseVisualStyleBackColor = true;
this.closebtn.Click += new System.EventHandler(this.closebtn_Click);
//
// button1
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.button1.Location = new System.Drawing.Point(247, 147);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 7;
this.button1.Text = "Módosítás";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label2
//
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(247, 131);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(87, 13);
this.label2.TabIndex = 8;
this.label2.Text = "Kép kiválasztása";
//
// pictureBox1
//
this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.pictureBox1.Location = new System.Drawing.Point(247, 177);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(124, 124);
this.pictureBox1.TabIndex = 9;
this.pictureBox1.TabStop = false;
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
//
// label3
//
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(244, 314);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(43, 13);
this.label3.TabIndex = 10;
this.label3.Text = "Szöveg";
//
// textBox1
//
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox1.Location = new System.Drawing.Point(247, 331);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(124, 20);
this.textBox1.TabIndex = 11;
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
this.textBox1.Leave += new System.EventHandler(this.textBox1_Leave);
//
// openFileDialog1
//
this.openFileDialog1.FileName = "openFileDialog1";
this.openFileDialog1.Filter = "BMP|*.bmp|GIF|*.gif|JPG|*.jpg;*.jpeg|PNG|*.png|TIFF|*.tif;*.tiff|All Image Types|" +
"*.bmp;*.jpg;*.jpeg;*.png;*.tif;*.tiff";
this.openFileDialog1.RestoreDirectory = true;
//
// Emoticons
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(383, 402);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label3);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.label2);
this.Controls.Add(this.button1);
this.Controls.Add(this.closebtn);
this.Controls.Add(this.label1);
this.Controls.Add(this.domainUpDown1);
this.Controls.Add(this.removebtn);
this.Controls.Add(this.addbtn);
this.Controls.Add(this.flowLayoutPanel1);
this.Name = "Emoticons";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Emoticons";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Emoticons_FormClosing);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
private System.Windows.Forms.Button removebtn;
private System.Windows.Forms.DomainUpDown domainUpDown1;
private System.Windows.Forms.Button addbtn;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button closebtn;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
}
}

212
MSGer.tk/Forms/Emoticons.cs Normal file
View file

@ -0,0 +1,212 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
public partial class Emoticons : ThemedForms //ThemedForms: 2015.07.05.
{ //2015.06.06.
public Emoticons()
{
InitializeComponent();
label1.Text = Language.Translate(Language.StringID.Emoticons); //TODO: A ...-t a menüknél mindig adja hozzá
this.Text = label1.Text;
addbtn.Text = Language.Translate(Language.StringID.Add); //TODO: A teljesen megegyező string-eket jelezze
removebtn.Text = Language.Translate(Language.StringID.Remove);
closebtn.Text = Language.Translate(Language.StringID.Close);
label2.Text = Language.Translate(Language.StringID.SelectImage);
button1.Text = Language.Translate(Language.StringID.Modify);
label3.Text = Language.Translate(Language.StringID.Text);
domainUpDown1.Items.Clear();
domainUpDown1.Items.AddRange(TextFormat.TextFormats);
if (domainUpDown1.Items.Count == 0)
domainUpDown1.SelectedIndex = -1;
else
domainUpDown1.SelectedIndex = 0;
SelectedTextFormat = domainUpDown1.SelectedIndex;
}
private void domainUpDown1_SelectedItemChanged(object sender, EventArgs e)
{
SelectedTextFormat = domainUpDown1.SelectedIndex;
}
private int selectedtextformat;
private int SelectedTextFormat
{
get
{
return selectedtextformat;
}
set
{
selectedtextformat = value;
if (value == -1)
return;
flowLayoutPanel1.Controls.Clear();
SelectedEmoticon = 0;
if (TextFormat.TextFormats.Count > 0)
flowLayoutPanel1.Controls.AddRange(TextFormat.TextFormats[value].Emoticons.Select(entry => new PictureBox { Image = entry.Clone() as Image }).ToArray());
int i = 0;
foreach (PictureBox pictbox in flowLayoutPanel1.Controls)
{
pictbox.Click += Emoticons_Click;
pictbox.Tag = i;
pictbox.Size = pictbox.Image.Size;
i++;
}
}
}
void Emoticons_Click(object sender, EventArgs e)
{
SelectedEmoticon = (int)(sender as Control).Tag;
}
private int selectedemoticon;
private int SelectedEmoticon
{
get
{
return selectedemoticon;
}
set
{
SaveEmoticonIfChanged();
if (value == selectedemoticon)
return;
if (value >= flowLayoutPanel1.Controls.Count)
{
pictureBox1.Image = null;
initialtext = "";
textBox1.Text = "";
}
else
{
pictureBox1.Image = (flowLayoutPanel1.Controls[value] as PictureBox).Image;
initialtext = TextFormat.TextFormats[SelectedTextFormat].Emoticons[value].Value;
}
textBox1.Text = initialtext;
selectedemoticon = value;
}
}
private bool imagechanged = false;
private void SaveEmoticonIfChanged()
{
bool save = false;
if (pictureBox1.Image == null || textBox1.Text == "")
return;
if (SelectedEmoticon >= flowLayoutPanel1.Controls.Count)
{
flowLayoutPanel1.Controls.Add(new PictureBox { Tag = flowLayoutPanel1.Controls.Count, Image = pictureBox1.Image.Clone() as Image, Size = pictureBox1.Image.Size });
flowLayoutPanel1.Controls[flowLayoutPanel1.Controls.Count - 1].Click += Emoticons_Click;
if (SelectedTextFormat == -1)
{
TextFormat.TextFormats.Add(PackManager.Add<TextFormat>(domainUpDown1.Text + ".npack"));
selectedtextformat = TextFormat.TextFormats.Count - 1;
save = true;
}
var emoticon = new Emoticon(textBox1.Text);
emoticon.Image = new Bitmap(pictureBox1.Image); //2015.07.05.
TextFormat.TextFormats[SelectedTextFormat].Emoticons.Add(emoticon);
}
else if (textBox1.Text != initialtext || imagechanged)
{
TextFormat.TextFormats[SelectedTextFormat].Emoticons[SelectedEmoticon].Value = textBox1.Text;
TextFormat.TextFormats[SelectedTextFormat].Emoticons[SelectedEmoticon].Image.Dispose(); //2015.07.05.
TextFormat.TextFormats[SelectedTextFormat].Emoticons[SelectedEmoticon].Image = new Bitmap(pictureBox1.Image); //2015.07.05.
initialtext = textBox1.Text;
imagechanged = false;
(flowLayoutPanel1.Controls[SelectedEmoticon] as PictureBox).Image = pictureBox1.Image;
save = true;
}
if (save)
PackManager.Save<TextFormat>(TextFormat.TextFormats[SelectedTextFormat]);
}
private string initialtext;
private void domainUpDown1_TextChanged(object sender, EventArgs e)
{
if (domainUpDown1.SelectedIndex == -1)
{
flowLayoutPanel1.Controls.Clear();
TextFormat tf = domainUpDown1.Items.ToArray().Cast<TextFormat>().FirstOrDefault(entry => entry.ToString() == domainUpDown1.Text);
if (tf != default(TextFormat))
domainUpDown1.SelectedItem = tf;
}
SelectedEmoticon = 0;
imagechanged = false;
}
private void addbtn_Click(object sender, EventArgs e)
{
SelectedEmoticon = flowLayoutPanel1.Controls.Count;
}
private void removebtn_Click(object sender, EventArgs e)
{
if (SelectedTextFormat == -1 || SelectedEmoticon > TextFormat.TextFormats[SelectedTextFormat].Emoticons.Count)
return;
if (MessageBox.Show(Language.Translate(Language.StringID.AreYouSure), "", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
TextFormat.TextFormats[SelectedTextFormat].Emoticons.RemoveAt(SelectedEmoticon);
flowLayoutPanel1.Controls.RemoveAt(SelectedEmoticon);
if (TextFormat.TextFormats[SelectedTextFormat].Emoticons.Count == 0)
{
PackManager.Remove<TextFormat>(TextFormat.TextFormats[SelectedTextFormat]); //2015.06.14.
TextFormat.TextFormats.RemoveAt(SelectedTextFormat); //2015.06.14.
}
}
}
private void button1_Click(object sender, EventArgs e)
{
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
pictureBox1.Image = Program.LoadImageFromFile(openFileDialog1.FileName);
imagechanged = true;
SaveEmoticonIfChanged();
}
}
private void closebtn_Click(object sender, EventArgs e)
{
this.Close();
}
private void Emoticons_FormClosing(object sender, FormClosingEventArgs e)
{
SaveEmoticonIfChanged();
Program.MainF.contactList.Items.Clear();
Program.MainF.LoadPartnerList();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void textBox1_Leave(object sender, EventArgs e)
{
SaveEmoticonIfChanged();
}
private void flowLayoutPanel1_Click(object sender, EventArgs e)
{
SaveEmoticonIfChanged();
}
private void pictureBox1_Click(object sender, EventArgs e)
{
SaveEmoticonIfChanged();
}
}
}

View file

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

131
MSGer.tk/Forms/ErrorHandler.Designer.cs generated Normal file
View file

@ -0,0 +1,131 @@
namespace MSGer.tk
{
partial class ErrorHandler
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.titleLabel = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.sendbtn = new System.Windows.Forms.Button();
this.restartokbtn = new System.Windows.Forms.Button();
this.exitbtn = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// titleLabel
//
this.titleLabel.AutoSize = true;
this.titleLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.titleLabel.Location = new System.Drawing.Point(13, 13);
this.titleLabel.Name = "titleLabel";
this.titleLabel.Size = new System.Drawing.Size(155, 31);
this.titleLabel.TabIndex = 0;
this.titleLabel.Text = "Hiba történt";
//
// textBox1
//
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox1.BackColor = System.Drawing.Color.White;
this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.textBox1.Location = new System.Drawing.Point(19, 48);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.Size = new System.Drawing.Size(338, 174);
this.textBox1.TabIndex = 1;
this.textBox1.Text = "You shouldn\'t see this text. If you do, well, sorry.";
//
// sendbtn
//
this.sendbtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.sendbtn.Enabled = false;
this.sendbtn.Location = new System.Drawing.Point(19, 228);
this.sendbtn.Name = "sendbtn";
this.sendbtn.Size = new System.Drawing.Size(75, 23);
this.sendbtn.TabIndex = 2;
this.sendbtn.Text = "Küldés";
this.sendbtn.UseVisualStyleBackColor = true;
this.sendbtn.Click += new System.EventHandler(this.sendbtn_Click);
//
// restartokbtn
//
this.restartokbtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.restartokbtn.Location = new System.Drawing.Point(282, 228);
this.restartokbtn.Name = "restartokbtn";
this.restartokbtn.Size = new System.Drawing.Size(75, 23);
this.restartokbtn.TabIndex = 3;
this.restartokbtn.Text = "Újraindítás";
this.restartokbtn.UseVisualStyleBackColor = true;
this.restartokbtn.Click += new System.EventHandler(this.restartbtn_Click);
//
// exitbtn
//
this.exitbtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.exitbtn.Location = new System.Drawing.Point(201, 228);
this.exitbtn.Name = "exitbtn";
this.exitbtn.Size = new System.Drawing.Size(75, 23);
this.exitbtn.TabIndex = 4;
this.exitbtn.Text = "Kilépés";
this.exitbtn.UseVisualStyleBackColor = true;
this.exitbtn.Click += new System.EventHandler(this.exitbtn_Click);
//
// ErrorHandler
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.WhiteSmoke;
this.ClientSize = new System.Drawing.Size(369, 263);
this.Controls.Add(this.exitbtn);
this.Controls.Add(this.restartokbtn);
this.Controls.Add(this.sendbtn);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.titleLabel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "ErrorHandler";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "ErrorHandler";
this.TopMost = true;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ErrorHandler_FormClosing);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label titleLabel;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button sendbtn;
private System.Windows.Forms.Button restartokbtn;
private System.Windows.Forms.Button exitbtn;
}
}

View file

@ -0,0 +1,145 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
public partial class ErrorHandler : Form
{ //2015.06.04.
public ErrorHandler(ErrorType type, Exception e)
{
InitializeComponent();
try
{
sendbtn.Text = Language.Translate(Language.StringID.Sendbtn_Send);
exitbtn.Text = Language.Translate(Language.StringID.Menu_File_Exit);
restartokbtn.Text = Language.Translate(Language.StringID.RestartButton);
}
catch
{
sendbtn.Text = "Send";
exitbtn.Text = "Exit";
restartokbtn.Text = "Restart";
}
switch (type)
{
case ErrorType.Unknown:
fatalerror = true;
int maxvalue = Enum.GetNames(typeof(Language.StringID)).Where(entry => entry.StartsWith("Error_Unknown")).Count();
if (maxvalue < 1)
{
textBox1.Text = "We don't have any error messages.";
break;
}
int index = new Random().Next(1, maxvalue);
try
{
Language.StringID result;
if (Enum.TryParse<Language.StringID>("Error_Unknown" + index, out result))
{
textBox1.Text = Language.Translate(result);
}
else
{
textBox1.Lines = new string[]
{
"Unknown error.",
"Also...",
"Something interesting happened. I don't have all messages up to the latest message count (" + index + "). Which means I forgot to do something."
};
}
}
catch
{ //2015.06.14. ˇˇ
textBox1.Text = "Unknown error.";
}
break;
case ErrorType.ServerError:
fatalerror = false;
textBox1.Lines = new string[]
{
Language.Translate(Language.StringID.Error_ServerError)
};
break;
case ErrorType.ServerConnectError:
fatalerror = false;
textBox1.Text = Language.Translate(Language.StringID.ConnectError);
break;
case ErrorType.Chat_NoPartners:
fatalerror = false;
textBox1.Text = Language.Translate(Language.StringID.Chat_NoWindow);
break;
default:
fatalerror = true;
textBox1.Text = "I don't have this implemented (" + type + "). I'm really sorry.";
break;
}
if (!fatalerror)
{
exitbtn.Hide();
restartokbtn.Text = "OK";
}
try
{
if (fatalerror)
titleLabel.Text = Language.Translate(Language.StringID.FatalError);
else
titleLabel.Text = Language.Translate(Language.StringID.Error);
}
catch
{
if (fatalerror) //<-- 2015.06.14.
titleLabel.Text = "A fatal error occured."; //2015.06.14.
else
titleLabel.Text = "An error occured.";
}
this.Text = titleLabel.Text;
textBox1.AppendText(Environment.NewLine + e.Message);
textBox1.AppendText(Environment.NewLine + e.StackTrace);
this.ShowDialog();
}
private void exitbtn_Click(object sender, EventArgs e)
{
this.Close();
}
private void ErrorHandler_FormClosing(object sender, FormClosingEventArgs e)
{
#if !DEBUG
if (fatalerror)
Program.Exit();
#endif
}
private bool fatalerror;
private void restartbtn_Click(object sender, EventArgs e)
{
if (fatalerror)
Program.Restart();
else
this.Close();
}
private void sendbtn_Click(object sender, EventArgs e)
{
//TODO: Hibajelentés
}
}
public enum ErrorType
{
Unknown,
ServerError,
ServerConnectError,
Chat_NoPartners
}
}

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View file

@ -0,0 +1,74 @@
namespace MSGer.tk
{
partial class FloatingChatIcon
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// pictureBox1
//
this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.pictureBox1.Location = new System.Drawing.Point(12, 12);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(260, 238);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// FloatingChatIcon
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Black;
this.ClientSize = new System.Drawing.Size(284, 262);
this.Controls.Add(this.pictureBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FloatingChatIcon";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "FloatingChatIcon";
this.TopMost = true;
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.PictureBox pictureBox1;
}
}

View file

@ -0,0 +1,53 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
public partial class FloatingChatIcon : Form
{
[StructLayout(LayoutKind.Sequential)]
public struct MARGINS
{
public int Left;
public int Right;
public int Top;
public int Bottom;
}
[DllImport("dwmapi.dll", PreserveSig = false)]
public static extern void DwmExtendFrameIntoClientArea(IntPtr hwnd, ref MARGINS margins);
[DllImport("dwmapi.dll", PreserveSig = false)]
public static extern bool DwmIsCompositionEnabled();
public FloatingChatIcon(ChatPanel cp)
{
InitializeComponent();
}
// defines how far we are extending the Glass margins
private MARGINS margins;
// uses PInvoke to setup the Glass area.
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
if (DwmIsCompositionEnabled())
{
// Paint the glass effect.
margins = new MARGINS();
margins.Top = -1;
margins.Left = 20;
DwmExtendFrameIntoClientArea(this.Handle, ref margins);
}
}
}
}

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

176
MSGer.tk/Forms/InvitePartner.Designer.cs generated Normal file
View file

@ -0,0 +1,176 @@
namespace MSGer.tk
{
partial class InvitePartner
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.listBox1 = new System.Windows.Forms.ListBox();
this.addbtn = new System.Windows.Forms.Button();
this.removebtn = new System.Windows.Forms.Button();
this.copybtn = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.hideAccepted = new System.Windows.Forms.CheckBox();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label1.ForeColor = System.Drawing.Color.Blue;
this.label1.Location = new System.Drawing.Point(13, 13);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(189, 24);
this.label1.TabIndex = 0;
this.label1.Text = "Ismerős meghívása";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label2.Location = new System.Drawing.Point(17, 53);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(98, 24);
this.label2.TabIndex = 1;
this.label2.Text = "Letöltőlink:";
//
// textBox1
//
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox1.BackColor = System.Drawing.Color.White;
this.textBox1.Location = new System.Drawing.Point(21, 90);
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.Size = new System.Drawing.Size(382, 20);
this.textBox1.TabIndex = 2;
this.textBox1.Text = "http://msger.url.ph/download.php?version=latest";
//
// listBox1
//
this.listBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.listBox1.BackColor = System.Drawing.Color.White;
this.listBox1.FormattingEnabled = true;
this.listBox1.Location = new System.Drawing.Point(21, 163);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(379, 173);
this.listBox1.TabIndex = 6;
//
// addbtn
//
this.addbtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.addbtn.Location = new System.Drawing.Point(21, 343);
this.addbtn.Name = "addbtn";
this.addbtn.Size = new System.Drawing.Size(75, 23);
this.addbtn.TabIndex = 7;
this.addbtn.Text = "Hozzáadás";
this.addbtn.UseVisualStyleBackColor = true;
this.addbtn.Click += new System.EventHandler(this.addbtn_Click);
//
// removebtn
//
this.removebtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.removebtn.Location = new System.Drawing.Point(102, 343);
this.removebtn.Name = "removebtn";
this.removebtn.Size = new System.Drawing.Size(75, 23);
this.removebtn.TabIndex = 8;
this.removebtn.Text = "Eltávolítás";
this.removebtn.UseVisualStyleBackColor = true;
this.removebtn.Click += new System.EventHandler(this.removebtn_Click);
//
// copybtn
//
this.copybtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.copybtn.Location = new System.Drawing.Point(292, 343);
this.copybtn.Name = "copybtn";
this.copybtn.Size = new System.Drawing.Size(108, 23);
this.copybtn.TabIndex = 9;
this.copybtn.Text = "Kód másolása";
this.copybtn.UseVisualStyleBackColor = true;
this.copybtn.Click += new System.EventHandler(this.copybtn_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label3.Location = new System.Drawing.Point(17, 125);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(64, 24);
this.label3.TabIndex = 10;
this.label3.Text = "Kódok";
//
// hideAccepted
//
this.hideAccepted.AutoSize = true;
this.hideAccepted.Location = new System.Drawing.Point(251, 132);
this.hideAccepted.Name = "hideAccepted";
this.hideAccepted.Size = new System.Drawing.Size(149, 17);
this.hideAccepted.TabIndex = 11;
this.hideAccepted.Text = "Elfogadott kódok elrejtése";
this.hideAccepted.UseVisualStyleBackColor = true;
this.hideAccepted.CheckedChanged += new System.EventHandler(this.hideAccepted_CheckedChanged);
//
// InvitePartner
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(200)))));
this.ClientSize = new System.Drawing.Size(415, 449);
this.Controls.Add(this.hideAccepted);
this.Controls.Add(this.label3);
this.Controls.Add(this.copybtn);
this.Controls.Add(this.removebtn);
this.Controls.Add(this.addbtn);
this.Controls.Add(this.listBox1);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Name = "InvitePartner";
this.Text = "Ismerős meghivása";
this.Load += new System.EventHandler(this.InvitePartner_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.Button addbtn;
private System.Windows.Forms.Button removebtn;
private System.Windows.Forms.Button copybtn;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.CheckBox hideAccepted;
}
}

View file

@ -0,0 +1,75 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
public partial class InvitePartner : ThemedForms
{
public InvitePartner()
{
InitializeComponent();
}
private void InvitePartner_Load(object sender, EventArgs e)
{
RefreshList();
}
private void addbtn_Click(object sender, EventArgs e)
{
string res = Networking.SendRequest(Networking.RequestType.AddCode, "", 0, true);
if (res.Length < "Fail".Length || res.Substring(0, "Fail".Length) == "Fail")
MessageBox.Show("A kódgenerálás sikertelen.\n\n" + res, "Hiba");
else
RefreshList();
}
public void RefreshList()
{
listBox1.Items.Clear();
string[] response = Networking.SendRequest(Networking.RequestType.GetCodes, "", 0, true).Split('ͦ');
int x = 0;
for (int i = 0; i + 1 < response.Length; i += 2)
{
if (Int32.Parse(response[i + 1]) == 1)
{
if (!hideAccepted.Checked)
listBox1.Items.Add("Elfogadott - " + response[i]);
}
else if (Int32.Parse(response[i + 1]) == 0)
listBox1.Items.Add("Visszaigazolásra vár - " + response[i]);
else MessageBox.Show("Hiba:\n" + response[i] + "\n" + response[i + 1]);
x++;
}
}
private void removebtn_Click(object sender, EventArgs e)
{
if (listBox1.SelectedIndex == -1)
return;
string res = Networking.SendRequest(Networking.RequestType.RemCode, listBox1.SelectedItem.ToString().Remove(0, listBox1.SelectedItem.ToString().IndexOf(" - ") + " - ".Length), 0, true);
if (res.Substring(0, "Fail".Length) == "Fail")
MessageBox.Show("A kód törlése sikertelen.\n\n" + res, "Hiba");
else RefreshList();
}
private void copybtn_Click(object sender, EventArgs e)
{
if (listBox1.SelectedIndex == -1)
return;
Clipboard.SetText(listBox1.SelectedItem.ToString().Remove(0, listBox1.SelectedItem.ToString().IndexOf(" - ") + " - ".Length));
}
private void hideAccepted_CheckedChanged(object sender, EventArgs e)
{
RefreshList();
}
}
}

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

202
MSGer.tk/Forms/LoginForm.Designer.cs generated Normal file
View file

@ -0,0 +1,202 @@
namespace MSGer.tk
{
partial class LoginForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LoginForm));
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.textBox3 = new System.Windows.Forms.TextBox();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.linkLabel2 = new System.Windows.Forms.LinkLabel();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label1.ForeColor = System.Drawing.Color.Blue;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(197, 33);
this.label1.TabIndex = 0;
this.label1.Text = "Bejelentkezés";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label2.Location = new System.Drawing.Point(19, 77);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(63, 24);
this.label2.TabIndex = 1;
this.label2.Text = "E-mail";
//
// textBox1
//
this.textBox1.AcceptsReturn = true;
this.textBox1.AcceptsTab = true;
this.textBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.textBox1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
this.textBox1.Location = new System.Drawing.Point(88, 80);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(294, 20);
this.textBox1.TabIndex = 2;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label3.Location = new System.Drawing.Point(19, 106);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(63, 24);
this.label3.TabIndex = 3;
this.label3.Text = "Jelszó";
//
// textBox2
//
this.textBox2.AcceptsReturn = true;
this.textBox2.AcceptsTab = true;
this.textBox2.Location = new System.Drawing.Point(179, 110);
this.textBox2.Name = "textBox2";
this.textBox2.PasswordChar = '→';
this.textBox2.Size = new System.Drawing.Size(203, 20);
this.textBox2.TabIndex = 4;
//
// button1
//
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.button1.Location = new System.Drawing.Point(235, 153);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(147, 23);
this.button1.TabIndex = 5;
this.button1.Text = "Bejelentkezés";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// textBox3
//
this.textBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox3.BackColor = System.Drawing.Color.SteelBlue;
this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.textBox3.ForeColor = System.Drawing.Color.White;
this.textBox3.Location = new System.Drawing.Point(13, 198);
this.textBox3.Multiline = true;
this.textBox3.Name = "textBox3";
this.textBox3.ReadOnly = true;
this.textBox3.Size = new System.Drawing.Size(369, 261);
this.textBox3.TabIndex = 6;
this.textBox3.Text = resources.GetString("textBox3.Text");
this.textBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// linkLabel1
//
this.linkLabel1.AutoSize = true;
this.linkLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.linkLabel1.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
this.linkLabel1.LinkColor = System.Drawing.Color.Blue;
this.linkLabel1.Location = new System.Drawing.Point(23, 162);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(77, 13);
this.linkLabel1.TabIndex = 7;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "Regisztráció";
this.linkLabel1.VisitedLinkColor = System.Drawing.Color.Blue;
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.RegistrateLink);
//
// linkLabel2
//
this.linkLabel2.AutoSize = true;
this.linkLabel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.linkLabel2.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
this.linkLabel2.Location = new System.Drawing.Point(23, 175);
this.linkLabel2.Name = "linkLabel2";
this.linkLabel2.Size = new System.Drawing.Size(66, 13);
this.linkLabel2.TabIndex = 8;
this.linkLabel2.TabStop = true;
this.linkLabel2.Text = "forgotpass";
this.linkLabel2.VisitedLinkColor = System.Drawing.Color.Blue;
this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
//
// LoginForm
//
this.AcceptButton = this.button1;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(200)))));
this.ClientSize = new System.Drawing.Size(394, 471);
this.Controls.Add(this.linkLabel2);
this.Controls.Add(this.linkLabel1);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.label3);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.Name = "LoginForm";
this.Opacity = 0.9D;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Bejelentkezés";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.LoginForm_FormClosing);
this.Load += new System.EventHandler(this.LoginForm_Load);
this.Controls.SetChildIndex(this.label1, 0);
this.Controls.SetChildIndex(this.label2, 0);
this.Controls.SetChildIndex(this.textBox1, 0);
this.Controls.SetChildIndex(this.label3, 0);
this.Controls.SetChildIndex(this.textBox2, 0);
this.Controls.SetChildIndex(this.button1, 0);
this.Controls.SetChildIndex(this.textBox3, 0);
this.Controls.SetChildIndex(this.linkLabel1, 0);
this.Controls.SetChildIndex(this.linkLabel2, 0);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.LinkLabel linkLabel1;
private System.Windows.Forms.LinkLabel linkLabel2;
}
}

View file

@ -0,0 +1,171 @@
using System;
using System.Collections.Generic;
using System.IO;
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 LoginForm
{
public static HttpWebRequest Request; //2014.03.27. - A megállitáshoz
public void LoginUser()
{
string UserText = "";
string PassText = "";
this.Invoke(new Action(delegate
{ //2015.04.03.
UserText = textBox1.Text;
PassText = textBox2.Text;
linkLabel1.Enabled = false;
button1.Text = Language.Translate(Language.StringID.Button_Cancel);
}));
HttpWebRequest httpWReq =
(HttpWebRequest)WebRequest.Create("http://msger.url.ph/client.php");
Request = httpWReq; //2014.03.27.
ASCIIEncoding encoding = new ASCIIEncoding();
string postData = "username=" + UserText;
postData += "&password=" + CalculateMD5Hash(PassText).ToLower(); //ToLower: 2014.10.24. 1:22 - Most már a PHP-nak is titkosítania kell többek közt MD5-tel
postData += "&key=cas1fe4a6feFEFEFE1616CE8099VFE1444cdasf48c1ase5dg";
//postData += "&port=" + Storage.Settings[SettingType.Port]; //2014.08.29.
postData += "&port=" + CurrentUser.Port; //2015.05.24.
List<IPAddress> myips = new List<IPAddress>();
do
{ //Az ips már deklarálva lesz később; megváltoztattam myips-re ezt
foreach (var ipaddr in Dns.GetHostAddresses(Dns.GetHostName()))
if (ipaddr.AddressFamily == AddressFamily.InterNetworkV6)
myips.Add(ipaddr);
string ipstr = "";
foreach (var ip in myips)
{
ipstr += ip + ";";
}
postData += "&ip=" + Uri.EscapeUriString(ipstr);
} while (false);
byte[] data = encoding.GetBytes(postData);
httpWReq.Method = "POST";
httpWReq.ContentType = "application/x-www-form-urlencoded";
httpWReq.ContentLength = data.Length;
try
{
using (Stream stream = httpWReq.GetRequestStream())
{
stream.Write(data, 0, data.Length);
}
}
catch (WebException e)
{
if (e.Status != WebExceptionStatus.RequestCanceled)
{
new ErrorHandler(ErrorType.ServerConnectError, e); //2015.06.04.
ResetAfterLogin(false); //2015.04.03.
return;
}
else
{
return;
}
}
HttpWebResponse response;
try
{
response = (HttpWebResponse)httpWReq.GetResponse();
}
catch (WebException e)
{
if (e.Status != WebExceptionStatus.RequestCanceled)
{
new ErrorHandler(ErrorType.ServerConnectError, e); //2015.06.04.
ResetAfterLogin(false); //2015.04.03.
return;
}
else
{
return;
}
}
string responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
try
{
if (responseString[0] == '<')
{
ResetAfterLogin(false); //2015.04.03.
new ErrorHandler(ErrorType.ServerConnectError, new Exception(responseString));
return;
}
else
responseString = responseString.Remove(responseString.IndexOf('<'));
}
catch
{
}
if (String.Compare(responseString, "Fail") == 0)
{
ResetAfterLogin(false); //2015.04.03.
MessageBox.Show(Language.Translate(Language.StringID.Error) + ": " + Language.Translate(Language.StringID.Login_BadNamePass), Language.Translate(Language.StringID.Error));
}
else if (responseString.Contains("Fail"))
{ //2015.04.03.
ResetAfterLogin(false);
new ErrorHandler(ErrorType.ServerConnectError, new Exception(responseString)); //2015.06.04.
}
else
{
//Elmenti az E-mail-t
if (!Storage.Settings[SettingType.Email].Contains(UserText))
{
if (Storage.Settings[SettingType.Email].Length != 0) //2014.07.08.
Storage.Settings[SettingType.Email] += ",";
Storage.Settings[SettingType.Email] += UserText;
}
Storage.Settings[SettingType.LastUsedEmail] = Storage.Settings[SettingType.Email].Split(',').ToList<string>().IndexOf(UserText).ToString();
string[] respstr = responseString.Split('ͦ');
if (respstr.Any(entry => entry.Contains("Fail"))) //2014.12.05.
{
//this.Invoke(new MyDelegate(ResetAfterLogin));
ResetAfterLogin(false); //2015.04.03.
/*try
{
MessageBox.Show(respstr.Single(entry => entry.Contains("Fail"))); //2014.12.05.
}
catch { }*/
MessageBox.Show(respstr.FirstOrDefault(entry => entry.Contains("Fail"))); //2014.12.05. - Single-->FirstOrDefault: 2015.06.06.
return;
}
string[] entries = respstr[(int)LoginInfo.IPs].Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
IEnumerable<IPEndPoint> ips = entries.Select(entry => ((entry != ",") ? new IPEndPoint(IPAddress.Parse(entry.Split(',')[0]), Int32.Parse(entry.Split(',')[1])) : new IPEndPoint(IPAddress.Loopback, 0)));
UserInfo.IPs = new HashSet<IPEndPoint>(ips); //2014.08.30.
CurrentUser.IPs = myips;
CurrentUser.UserID = Int32.Parse(respstr[(int)LoginInfo.UserID]); //2014.09.01. - Áthelyeztem, hogy addig ne higgye bejelentkezettnek, amíg el nem küldi a többieknek
Storage.SaltKey = CalculateMD5Hash(PassText); //2014.08.07.
Storage.FileName = respstr[(int)LoginInfo.UserID] + ".db"; //2014.09.01. - Felesleges számmá alakítani, majd vissza
CurrentUser.UserName = UserText; //2014.09.01. - Ha semmit nem tud saját magáról, és más sem, de nem ismerőse saját magának, akkor az itt beállított felhasználónév érvényesül
CurrentUser.Name = UserText; //2014.09.01.
string ReceivedPass = respstr[(int)LoginInfo.Password]; //2014.10.24. 1:39
LoginForm.UserCode = CalculateMD5Hash(ReceivedPass + " Some text because why not " + CurrentUser.UserID).ToLower();
this.Invoke(new Action(delegate
{
this.Dispose();
}));
}
}
}
}

View file

@ -0,0 +1,176 @@
namespace MSGer.tk
{
partial class LoginForm_RegistrationForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.codeText = new System.Windows.Forms.TextBox();
this.userText = new System.Windows.Forms.TextBox();
this.passText = new System.Windows.Forms.TextBox();
this.emailText = new System.Windows.Forms.TextBox();
this.registerButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label1.ForeColor = System.Drawing.Color.Blue;
this.label1.Location = new System.Drawing.Point(13, 13);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(124, 24);
this.label1.TabIndex = 0;
this.label1.Text = "Regisztráció";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F);
this.label2.Location = new System.Drawing.Point(17, 58);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(44, 24);
this.label2.TabIndex = 1;
this.label2.Text = "Kód";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F);
this.label3.Location = new System.Drawing.Point(17, 92);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(143, 24);
this.label3.TabIndex = 2;
this.label3.Text = "Felhasználónév";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F);
this.label4.Location = new System.Drawing.Point(17, 125);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(63, 24);
this.label4.TabIndex = 3;
this.label4.Text = "Jelszó";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F);
this.label5.Location = new System.Drawing.Point(17, 160);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(63, 24);
this.label5.TabIndex = 4;
this.label5.Text = "E-mail";
//
// codeText
//
this.codeText.Location = new System.Drawing.Point(86, 63);
this.codeText.Name = "codeText";
this.codeText.Size = new System.Drawing.Size(358, 20);
this.codeText.TabIndex = 6;
//
// userText
//
this.userText.Location = new System.Drawing.Point(166, 97);
this.userText.Name = "userText";
this.userText.Size = new System.Drawing.Size(278, 20);
this.userText.TabIndex = 7;
//
// passText
//
this.passText.Location = new System.Drawing.Point(166, 130);
this.passText.Name = "passText";
this.passText.PasswordChar = '→';
this.passText.Size = new System.Drawing.Size(278, 20);
this.passText.TabIndex = 8;
//
// emailText
//
this.emailText.Location = new System.Drawing.Point(86, 165);
this.emailText.Name = "emailText";
this.emailText.Size = new System.Drawing.Size(358, 20);
this.emailText.TabIndex = 9;
//
// registerButton
//
this.registerButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.registerButton.Location = new System.Drawing.Point(17, 220);
this.registerButton.Name = "registerButton";
this.registerButton.Size = new System.Drawing.Size(427, 23);
this.registerButton.TabIndex = 10;
this.registerButton.Text = "Regisztráció";
this.registerButton.UseVisualStyleBackColor = true;
this.registerButton.Click += new System.EventHandler(this.registerButton_Click);
//
// LoginForm_RegistrationForm
//
this.AcceptButton = this.registerButton;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(200)))));
this.ClientSize = new System.Drawing.Size(469, 356);
this.Controls.Add(this.registerButton);
this.Controls.Add(this.emailText);
this.Controls.Add(this.passText);
this.Controls.Add(this.userText);
this.Controls.Add(this.codeText);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "LoginForm_RegistrationForm";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Regisztráció";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox codeText;
private System.Windows.Forms.TextBox userText;
private System.Windows.Forms.TextBox passText;
private System.Windows.Forms.TextBox emailText;
private System.Windows.Forms.Button registerButton;
}
}

View file

@ -0,0 +1,72 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
public partial class LoginForm_RegistrationForm : ThemedForms
{
public LoginForm_RegistrationForm()
{
InitializeComponent();
label1.Text = Language.Translate(Language.StringID.Registration);
label2.Text = Language.Translate(Language.StringID.Reg_Code);
label3.Text = Language.Translate(Language.StringID.UserName);
label4.Text = Language.Translate(Language.StringID.Password);
registerButton.Text = Language.Translate(Language.StringID.Registration);
}
private void registerButton_Click(object sender, EventArgs e)
{
registerButton.Enabled = false;
if (codeText.TextLength == 0 || userText.TextLength == 0 || passText.TextLength == 0 || emailText.TextLength == 0)
{
MessageBox.Show(Language.Translate(Language.StringID.Reg_EmptyField), Language.Translate(Language.StringID.Error));
registerButton.Enabled = true;
return;
}
string response = Networking.SendRequest(Networking.RequestType.Register, codeText.Text + "ͦ" + userText.Text + "ͦ" + LoginForm.CalculateMD5Hash(passText.Text) + "ͦ" + emailText.Text, 2, false);
if (response == "code")
{
MessageBox.Show(Language.Translate(Language.StringID.Reg_CodeErr), Language.Translate(Language.StringID.Error));
registerButton.Enabled = true;
}
else if (response == "uname")
{
MessageBox.Show(Language.Translate(Language.StringID.Reg_NameErr), Language.Translate(Language.StringID.Error));
registerButton.Enabled = true;
}
else if (response == "ulen")
{
MessageBox.Show(Language.Translate(Language.StringID.Reg_NameLen), Language.Translate(Language.StringID.Error));
registerButton.Enabled = true;
}
else if (response == "plen")
{
MessageBox.Show(Language.Translate(Language.StringID.Reg_PassLen), Language.Translate(Language.StringID.Error));
registerButton.Enabled = true;
}
else if (response == "email")
{
MessageBox.Show(Language.Translate(Language.StringID.Reg_Email), Language.Translate(Language.StringID.Error));
registerButton.Enabled = true;
}
else if (response == "Success!")
{
MessageBox.Show(Language.Translate(Language.StringID.Reg_Success));
Close();
}
else
{
new ErrorHandler(ErrorType.ServerError, new Exception(response)); //2015.06.04.
registerButton.Enabled = true;
}
}
}
}

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

176
MSGer.tk/Forms/LoginForm.cs Normal file
View file

@ -0,0 +1,176 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Net;
using System.IO;
using System.Security.Cryptography;
using System.Configuration;
using System.Threading;
using System.Net.Sockets;
namespace MSGer.tk
{
public partial class LoginForm : ThemedForms
{
public static string UserCode = "";
public static Thread LThread;
private void LoginForm_Load(object sender, EventArgs e)
{
List<string> tmp; //E-mail - 2014.04.02.
if (Storage.Settings[SettingType.Email].Length != 0)
tmp = Storage.Settings[SettingType.Email].Split(',').ToList<string>();
else tmp = new List<string>();
tmp.Add("");
textBox1.Text = tmp[Int32.Parse(Storage.Settings[SettingType.LastUsedEmail])]; //2014.07.08.
textBox1.AutoCompleteCustomSource.AddRange(tmp.ToArray());
this.Activate();
this.Activate();
}
public LoginForm()
{
InitializeComponent();
this.Text = Language.Translate(Language.StringID.Login);
label1.Text = Language.Translate(Language.StringID.Login);
label3.Text = Language.Translate(Language.StringID.Password);
button1.Text = Language.Translate(Language.StringID.Login);
linkLabel1.Text = Language.Translate(Language.StringID.Registration);
linkLabel2.Text = Language.Translate(Language.StringID.ForgotPassword);
textBox3.Text = "";
List<string> lines = new List<string>();
lines.Add(Language.Translate(Language.StringID.Login_Desc1));
lines.Add("");
lines.Add(Language.Translate(Language.StringID.Login_Desc2));
textBox3.Lines = lines.ToArray();
}
private void button1_Click(object sender, EventArgs e)
{
if (button1.Text == Language.Translate(Language.StringID.Button_Cancel))
{
ResetAfterLogin(true);
}
else
{
try
{
if (LThread.IsAlive)
{
//2014.03.27. - Ne csináljon semmit - Elvégre ilyen nem fordulhat elő sokáig most már
return;
}
}
catch
{
}
//Ellenőrizzen le néhány dolgot helyileg - 2014.04.28.
if (textBox2.Text.Length == 0)
return;
textBox1.ReadOnly = true; //2015.04.08.
textBox2.ReadOnly = true; //2015.04.08.
// Create the thread object, passing in the Alpha.Beta method
// via a ThreadStart delegate. This does not start the thread.
LThread = new Thread(new ThreadStart(LoginUser));
LThread.Name = "Login Thread";
// Start the thread
LThread.Start();
}
}
/// <summary>
/// A login threadból (stoplogint=false) hívja Invoke-kal
/// </summary>
/// <param name="stoplogint"></param>
public void ResetAfterLogin(bool stoplogint)
{
var a = new Action(delegate //2015.04.03.
{
button1.Enabled = false;
Request.Abort();
if (stoplogint) //2014.09.01.
LThread.Abort(); //2014.09.01.
button1.Text = Language.Translate(Language.StringID.Login);
button1.Enabled = true;
linkLabel1.Enabled = true;
textBox1.Enabled = true; //2014.09.01.
textBox2.Enabled = true; //2014.09.01.
textBox1.ReadOnly = false; //2015.04.08.
textBox2.ReadOnly = false; //2015.04.08.
});
if (stoplogint) //2015.04.03.
a();
else
this.Invoke(a);
}
public enum LoginInfo
{
UserID,
UserName,
IPs,
Password
}
public static string CalculateMD5Hash(string input)
{
// step 1, calculate MD5 hash from input
MD5 md5 = System.Security.Cryptography.MD5.Create();
byte[] inputBytes = System.Text.Encoding.ASCII.GetBytes(input);
byte[] hash = md5.ComputeHash(inputBytes);
// step 2, convert byte array to hex string
StringBuilder sb = new StringBuilder();
for (int i = 0; i < hash.Length; i++)
{
sb.Append(hash[i].ToString("X2"));
}
return sb.ToString();
}
private void RegistrateLink(object sender, LinkLabelLinkClickedEventArgs e)
{
(new LoginForm_RegistrationForm()).ShowDialog();
}
private void LoginForm_FormClosing(object sender, FormClosingEventArgs e)
{
if (LThread != null && LThread.IsAlive)
{
LThread.Abort(); //2014.03.27. - Na vajon kell-e más
Request.Abort(); //2014.03.27. - Kell... Ez
}
if (CurrentUser.UserID == 0)
Program.Exit();
}
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (textBox1.Text.Length == 0)
{ //TODO: Fordítás
MessageBox.Show("Nincs megadva felhasználónév."); //Translate!
return;
}
if (MessageBox.Show("Új jelszót kérsz a megadott névhez?", "", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
string ret = Networking.SendRequest(Networking.RequestType.ResetPass, textBox1.Text, 0, false);
if (ret == "nouser")
MessageBox.Show("A megadott felhasználó nem létezik.");
else if (ret == "already")
MessageBox.Show("A link MÁR el lett küldve az E-mail címedre.");
else if (ret == "sent")
MessageBox.Show("A link elküldve az E-mail címedre.");
else if (ret.Contains("notsent"))
MessageBox.Show("A link NEM lett elküldve az E-mail címedre.\nHiba: " + ret.Remove(ret.IndexOf("notsent"), "notsent".Length + 1));
else
MessageBox.Show("Ismeretlen hiba:\n" + ret);
}
}
}
}

View file

@ -0,0 +1,125 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="textBox3.Text" xml:space="preserve">
<value>Az e-mail helyett használható a felhasználóneved is.
Ha nem tudsz bejelentkezni, próbáld meg újrainditani a programot. Ha az sem segít, és nem a felhasználóneveddel/jelszavaddal van a probléma, akkor jelentsd a problémát.</value>
</data>
</root>

945
MSGer.tk/Forms/MainForm.Designer.cs generated Normal file
View file

@ -0,0 +1,945 @@
namespace MSGer.tk
{
partial class MainForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
SzNPProjects.RichListViewColumn richListViewColumn1 = new SzNPProjects.RichListViewColumn();
SzNPProjects.RichListViewColumn richListViewColumn2 = new SzNPProjects.RichListViewColumn();
SzNPProjects.RichListViewColumn richListViewColumn3 = new SzNPProjects.RichListViewColumn();
SzNPProjects.RichListViewColumn richListViewColumn4 = new SzNPProjects.RichListViewColumn();
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
this.iconMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator18 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripMenuItem8 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem9 = new System.Windows.Forms.ToolStripMenuItem();
this.panel2 = new System.Windows.Forms.Panel();
this.textBox1 = new System.Windows.Forms.TextBox();
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.fájlToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.kijelentkezésToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.állapotToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.elérhetőToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.elfoglaltToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.nincsAGépnélToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.rejtveKapcsolódikToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.fájlKüldéseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.beérkezettFájlokMappájánakMegnyitásaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.üzenetekElőzményeinekMegtekintéseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
this.bezárásToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.kilépésToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ismerősökToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ismerősFelvételeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ismerősSzerkesztéseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ismerősTörléseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
this.csoportLétrehozásaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
this.kategóriaLétrehozásaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.kategóriaSzerkesztéseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.kategóriaTörléseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.műveletekToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.azonnaliÜzenetKüldéseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.egyébKüldéseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.emailKüldéseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.fájlKüldéseToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
this.ismerősSzámitógépénekFelhivásaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.videóhivásInditásaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.onlineFájlokMegtekintéseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.közösJátékToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.távsegitségKéréseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.eszközökToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.mindigLegfelülToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator();
this.hangulatjelekToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.megjelenitendőKépVáltásaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.háttérMódositásaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator();
this.hangokÉsVideóBeállitásaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator10 = new System.Windows.Forms.ToolStripSeparator();
this.beállitásokToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator14 = new System.Windows.Forms.ToolStripSeparator();
this.szkriptíróToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.súgóToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.témakörökToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator11 = new System.Windows.Forms.ToolStripSeparator();
this.aSzolgáltatásÁllapotsaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.adatvédelmiNyilatkozatToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.használatiFeltételekToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.visszaélésBejelentéseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator12 = new System.Windows.Forms.ToolStripSeparator();
this.segitsenAProgramTökéletesitésébenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator13 = new System.Windows.Forms.ToolStripSeparator();
this.névjegyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.partnerImages = new System.Windows.Forms.ImageList(this.components);
this.contactList = new SzNPProjects.RichListView();
this.MainPanel = new System.Windows.Forms.Panel();
this.searchListView = new SzNPProjects.RichListView();
this.statusStrip2 = new System.Windows.Forms.StatusStrip();
this.servers = new System.Windows.Forms.ToolStripStatusLabel();
this.onlineservers = new System.Windows.Forms.ToolStripStatusLabel();
this.mainserver = new System.Windows.Forms.ToolStripStatusLabel();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
this.chatIconMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
this.listPartnerMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
this.iconMenu.SuspendLayout();
this.panel2.SuspendLayout();
this.menuStrip1.SuspendLayout();
this.MainPanel.SuspendLayout();
this.statusStrip2.SuspendLayout();
this.SuspendLayout();
//
// notifyIcon1
//
this.notifyIcon1.ContextMenuStrip = this.iconMenu;
this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
this.notifyIcon1.Text = "MSGer.tk";
this.notifyIcon1.DoubleClick += new System.EventHandler(this.toolStripMenuItem4_Click);
//
// iconMenu
//
this.iconMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripMenuItem4,
this.toolStripSeparator18,
this.toolStripMenuItem8,
this.toolStripMenuItem9});
this.iconMenu.Name = "partnerMenu";
this.iconMenu.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
this.iconMenu.Size = new System.Drawing.Size(147, 76);
//
// toolStripMenuItem4
//
this.toolStripMenuItem4.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.toolStripMenuItem4.Name = "toolStripMenuItem4";
this.toolStripMenuItem4.Size = new System.Drawing.Size(146, 22);
this.toolStripMenuItem4.Text = "Megjelenítés";
this.toolStripMenuItem4.Click += new System.EventHandler(this.toolStripMenuItem4_Click);
//
// toolStripSeparator18
//
this.toolStripSeparator18.Name = "toolStripSeparator18";
this.toolStripSeparator18.Size = new System.Drawing.Size(143, 6);
//
// toolStripMenuItem8
//
this.toolStripMenuItem8.Name = "toolStripMenuItem8";
this.toolStripMenuItem8.Size = new System.Drawing.Size(146, 22);
this.toolStripMenuItem8.Text = "Kijelentkezés";
this.toolStripMenuItem8.Click += new System.EventHandler(this.LogoutUser);
//
// toolStripMenuItem9
//
this.toolStripMenuItem9.Name = "toolStripMenuItem9";
this.toolStripMenuItem9.Size = new System.Drawing.Size(146, 22);
this.toolStripMenuItem9.Text = "Kilépés";
this.toolStripMenuItem9.Click += new System.EventHandler(this.ExitProgram);
//
// panel2
//
this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel2.BackgroundImage = global::MSGer.tk.Properties.Resources.Keresősáv;
this.panel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.panel2.Controls.Add(this.textBox1);
this.panel2.Cursor = System.Windows.Forms.Cursors.IBeam;
this.panel2.Location = new System.Drawing.Point(3, 3);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(494, 31);
this.panel2.TabIndex = 5;
this.panel2.Click += new System.EventHandler(this.panel2_Click);
//
// textBox1
//
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(249)))), ((int)(((byte)(252)))));
this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.textBox1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(137)))), ((int)(((byte)(161)))), ((int)(((byte)(194)))));
this.textBox1.Location = new System.Drawing.Point(6, 8);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(485, 13);
this.textBox1.TabIndex = 3;
this.textBox1.Text = "Ismerősök keresése...";
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
this.textBox1.Enter += new System.EventHandler(this.ClearSearchBar);
this.textBox1.Leave += new System.EventHandler(this.PutTextInSearchBar);
//
// menuStrip1
//
this.menuStrip1.BackColor = System.Drawing.Color.Black;
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fájlToolStripMenuItem,
this.ismerősökToolStripMenuItem,
this.műveletekToolStripMenuItem,
this.eszközökToolStripMenuItem,
this.súgóToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
this.menuStrip1.Size = new System.Drawing.Size(799, 24);
this.menuStrip1.TabIndex = 0;
this.menuStrip1.Text = "menuStrip1";
//
// fájlToolStripMenuItem
//
this.fájlToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.kijelentkezésToolStripMenuItem,
this.toolStripMenuItem1,
this.toolStripSeparator1,
this.állapotToolStripMenuItem,
this.toolStripSeparator2,
this.fájlKüldéseToolStripMenuItem,
this.beérkezettFájlokMappájánakMegnyitásaToolStripMenuItem,
this.üzenetekElőzményeinekMegtekintéseToolStripMenuItem,
this.toolStripSeparator3,
this.bezárásToolStripMenuItem,
this.toolStripSeparator4,
this.kilépésToolStripMenuItem});
this.fájlToolStripMenuItem.Name = "fájlToolStripMenuItem";
this.fájlToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
this.fájlToolStripMenuItem.Text = "Fájl";
//
// kijelentkezésToolStripMenuItem
//
this.kijelentkezésToolStripMenuItem.Name = "kijelentkezésToolStripMenuItem";
this.kijelentkezésToolStripMenuItem.Size = new System.Drawing.Size(292, 22);
this.kijelentkezésToolStripMenuItem.Text = "Kijelentkezés";
this.kijelentkezésToolStripMenuItem.Click += new System.EventHandler(this.LogoutUser);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(292, 22);
this.toolStripMenuItem1.Text = "Újabb felhasználó bejelentkeztetése...";
this.toolStripMenuItem1.Click += new System.EventHandler(this.LoginNewUser);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(289, 6);
//
// állapotToolStripMenuItem
//
this.állapotToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.elérhetőToolStripMenuItem,
this.elfoglaltToolStripMenuItem,
this.nincsAGépnélToolStripMenuItem,
this.rejtveKapcsolódikToolStripMenuItem});
this.állapotToolStripMenuItem.Name = "állapotToolStripMenuItem";
this.állapotToolStripMenuItem.Size = new System.Drawing.Size(292, 22);
this.állapotToolStripMenuItem.Text = "Állapot";
//
// elérhetőToolStripMenuItem
//
this.elérhetőToolStripMenuItem.Name = "elérhetőToolStripMenuItem";
this.elérhetőToolStripMenuItem.Size = new System.Drawing.Size(172, 22);
this.elérhetőToolStripMenuItem.Text = "Elérhető";
this.elérhetőToolStripMenuItem.Click += new System.EventHandler(this.SetOnlineState);
//
// elfoglaltToolStripMenuItem
//
this.elfoglaltToolStripMenuItem.Name = "elfoglaltToolStripMenuItem";
this.elfoglaltToolStripMenuItem.Size = new System.Drawing.Size(172, 22);
this.elfoglaltToolStripMenuItem.Text = "Elfoglalt";
this.elfoglaltToolStripMenuItem.Click += new System.EventHandler(this.SetOnlineState);
//
// nincsAGépnélToolStripMenuItem
//
this.nincsAGépnélToolStripMenuItem.Name = "nincsAGépnélToolStripMenuItem";
this.nincsAGépnélToolStripMenuItem.Size = new System.Drawing.Size(172, 22);
this.nincsAGépnélToolStripMenuItem.Text = "Nincs a gépnél";
this.nincsAGépnélToolStripMenuItem.Click += new System.EventHandler(this.SetOnlineState);
//
// rejtveKapcsolódikToolStripMenuItem
//
this.rejtveKapcsolódikToolStripMenuItem.Name = "rejtveKapcsolódikToolStripMenuItem";
this.rejtveKapcsolódikToolStripMenuItem.Size = new System.Drawing.Size(172, 22);
this.rejtveKapcsolódikToolStripMenuItem.Text = "Rejtve kapcsolódik";
this.rejtveKapcsolódikToolStripMenuItem.Click += new System.EventHandler(this.SetOnlineState);
//
// toolStripSeparator2
//
this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(289, 6);
//
// fájlKüldéseToolStripMenuItem
//
this.fájlKüldéseToolStripMenuItem.Name = "fájlKüldéseToolStripMenuItem";
this.fájlKüldéseToolStripMenuItem.Size = new System.Drawing.Size(292, 22);
this.fájlKüldéseToolStripMenuItem.Text = "Fájl küldése...";
this.fájlKüldéseToolStripMenuItem.Click += new System.EventHandler(this.SelectPartner);
//
// beérkezettFájlokMappájánakMegnyitásaToolStripMenuItem
//
this.beérkezettFájlokMappájánakMegnyitásaToolStripMenuItem.Name = "beérkezettFájlokMappájánakMegnyitásaToolStripMenuItem";
this.beérkezettFájlokMappájánakMegnyitásaToolStripMenuItem.Size = new System.Drawing.Size(292, 22);
this.beérkezettFájlokMappájánakMegnyitásaToolStripMenuItem.Text = "Beérkezett fájlok mappájának megnyitása";
this.beérkezettFájlokMappájánakMegnyitásaToolStripMenuItem.Click += new System.EventHandler(this.beérkezettFájlokMappájánakMegnyitásaToolStripMenuItem_Click);
//
// üzenetekElőzményeinekMegtekintéseToolStripMenuItem
//
this.üzenetekElőzményeinekMegtekintéseToolStripMenuItem.Enabled = false;
this.üzenetekElőzményeinekMegtekintéseToolStripMenuItem.Name = "üzenetekElőzményeinekMegtekintéseToolStripMenuItem";
this.üzenetekElőzményeinekMegtekintéseToolStripMenuItem.Size = new System.Drawing.Size(292, 22);
this.üzenetekElőzményeinekMegtekintéseToolStripMenuItem.Text = "Üzenetek előzményeinek megtekintése...";
//
// toolStripSeparator3
//
this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(289, 6);
//
// bezárásToolStripMenuItem
//
this.bezárásToolStripMenuItem.Name = "bezárásToolStripMenuItem";
this.bezárásToolStripMenuItem.Size = new System.Drawing.Size(292, 22);
this.bezárásToolStripMenuItem.Text = "Bezárás";
this.bezárásToolStripMenuItem.Click += new System.EventHandler(this.bezárásToolStripMenuItem_Click);
//
// toolStripSeparator4
//
this.toolStripSeparator4.Name = "toolStripSeparator4";
this.toolStripSeparator4.Size = new System.Drawing.Size(289, 6);
//
// kilépésToolStripMenuItem
//
this.kilépésToolStripMenuItem.Name = "kilépésToolStripMenuItem";
this.kilépésToolStripMenuItem.Size = new System.Drawing.Size(292, 22);
this.kilépésToolStripMenuItem.Text = "Kilépés";
this.kilépésToolStripMenuItem.Click += new System.EventHandler(this.ExitProgram);
//
// ismerősökToolStripMenuItem
//
this.ismerősökToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ismerősFelvételeToolStripMenuItem,
this.ismerősSzerkesztéseToolStripMenuItem,
this.ismerősTörléseToolStripMenuItem,
this.toolStripMenuItem3,
this.toolStripSeparator5,
this.csoportLétrehozásaToolStripMenuItem,
this.toolStripSeparator6,
this.kategóriaLétrehozásaToolStripMenuItem,
this.kategóriaSzerkesztéseToolStripMenuItem,
this.kategóriaTörléseToolStripMenuItem});
this.ismerősökToolStripMenuItem.Name = "ismerősökToolStripMenuItem";
this.ismerősökToolStripMenuItem.Size = new System.Drawing.Size(73, 20);
this.ismerősökToolStripMenuItem.Text = "Ismerősök";
//
// ismerősFelvételeToolStripMenuItem
//
this.ismerősFelvételeToolStripMenuItem.Name = "ismerősFelvételeToolStripMenuItem";
this.ismerősFelvételeToolStripMenuItem.Size = new System.Drawing.Size(199, 22);
this.ismerősFelvételeToolStripMenuItem.Text = "Ismerős felvétele...";
this.ismerősFelvételeToolStripMenuItem.Click += new System.EventHandler(this.ismerősFelvételeToolStripMenuItem_Click);
//
// ismerősSzerkesztéseToolStripMenuItem
//
this.ismerősSzerkesztéseToolStripMenuItem.Enabled = false;
this.ismerősSzerkesztéseToolStripMenuItem.Name = "ismerősSzerkesztéseToolStripMenuItem";
this.ismerősSzerkesztéseToolStripMenuItem.Size = new System.Drawing.Size(199, 22);
this.ismerősSzerkesztéseToolStripMenuItem.Text = "Ismerős szerkesztése...";
//
// ismerősTörléseToolStripMenuItem
//
this.ismerősTörléseToolStripMenuItem.Enabled = false;
this.ismerősTörléseToolStripMenuItem.Name = "ismerősTörléseToolStripMenuItem";
this.ismerősTörléseToolStripMenuItem.Size = new System.Drawing.Size(199, 22);
this.ismerősTörléseToolStripMenuItem.Text = "Ismerős törlése...";
//
// toolStripMenuItem3
//
this.toolStripMenuItem3.Name = "toolStripMenuItem3";
this.toolStripMenuItem3.Size = new System.Drawing.Size(199, 22);
this.toolStripMenuItem3.Text = "Ismerős meghivása...";
this.toolStripMenuItem3.Click += new System.EventHandler(this.InvitePartner);
//
// toolStripSeparator5
//
this.toolStripSeparator5.Name = "toolStripSeparator5";
this.toolStripSeparator5.Size = new System.Drawing.Size(196, 6);
//
// csoportLétrehozásaToolStripMenuItem
//
this.csoportLétrehozásaToolStripMenuItem.Enabled = false;
this.csoportLétrehozásaToolStripMenuItem.Name = "csoportLétrehozásaToolStripMenuItem";
this.csoportLétrehozásaToolStripMenuItem.Size = new System.Drawing.Size(199, 22);
this.csoportLétrehozásaToolStripMenuItem.Text = "Csoport létrehozása...";
//
// toolStripSeparator6
//
this.toolStripSeparator6.Name = "toolStripSeparator6";
this.toolStripSeparator6.Size = new System.Drawing.Size(196, 6);
//
// kategóriaLétrehozásaToolStripMenuItem
//
this.kategóriaLétrehozásaToolStripMenuItem.Enabled = false;
this.kategóriaLétrehozásaToolStripMenuItem.Name = "kategóriaLétrehozásaToolStripMenuItem";
this.kategóriaLétrehozásaToolStripMenuItem.Size = new System.Drawing.Size(199, 22);
this.kategóriaLétrehozásaToolStripMenuItem.Text = "Kategória létrehozása...";
//
// kategóriaSzerkesztéseToolStripMenuItem
//
this.kategóriaSzerkesztéseToolStripMenuItem.Enabled = false;
this.kategóriaSzerkesztéseToolStripMenuItem.Name = "kategóriaSzerkesztéseToolStripMenuItem";
this.kategóriaSzerkesztéseToolStripMenuItem.Size = new System.Drawing.Size(199, 22);
this.kategóriaSzerkesztéseToolStripMenuItem.Text = "Kategória szerkesztése...";
//
// kategóriaTörléseToolStripMenuItem
//
this.kategóriaTörléseToolStripMenuItem.Enabled = false;
this.kategóriaTörléseToolStripMenuItem.Name = "kategóriaTörléseToolStripMenuItem";
this.kategóriaTörléseToolStripMenuItem.Size = new System.Drawing.Size(199, 22);
this.kategóriaTörléseToolStripMenuItem.Text = "Kategória törlése...";
//
// műveletekToolStripMenuItem
//
this.műveletekToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.azonnaliÜzenetKüldéseToolStripMenuItem,
this.egyébKüldéseToolStripMenuItem,
this.toolStripSeparator7,
this.ismerősSzámitógépénekFelhivásaToolStripMenuItem,
this.videóhivásInditásaToolStripMenuItem,
this.onlineFájlokMegtekintéseToolStripMenuItem,
this.közösJátékToolStripMenuItem,
this.távsegitségKéréseToolStripMenuItem});
this.műveletekToolStripMenuItem.Name = "műveletekToolStripMenuItem";
this.műveletekToolStripMenuItem.Size = new System.Drawing.Size(74, 20);
this.műveletekToolStripMenuItem.Text = "Műveletek";
//
// azonnaliÜzenetKüldéseToolStripMenuItem
//
this.azonnaliÜzenetKüldéseToolStripMenuItem.Name = "azonnaliÜzenetKüldéseToolStripMenuItem";
this.azonnaliÜzenetKüldéseToolStripMenuItem.Size = new System.Drawing.Size(253, 22);
this.azonnaliÜzenetKüldéseToolStripMenuItem.Text = "Azonnali üzenet küldése...";
this.azonnaliÜzenetKüldéseToolStripMenuItem.Click += new System.EventHandler(this.SelectPartner);
//
// egyébKüldéseToolStripMenuItem
//
this.egyébKüldéseToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.emailKüldéseToolStripMenuItem,
this.fájlKüldéseToolStripMenuItem1});
this.egyébKüldéseToolStripMenuItem.Name = "egyébKüldéseToolStripMenuItem";
this.egyébKüldéseToolStripMenuItem.Size = new System.Drawing.Size(253, 22);
this.egyébKüldéseToolStripMenuItem.Text = "Egyéb küldése";
//
// emailKüldéseToolStripMenuItem
//
this.emailKüldéseToolStripMenuItem.Enabled = false;
this.emailKüldéseToolStripMenuItem.Name = "emailKüldéseToolStripMenuItem";
this.emailKüldéseToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
this.emailKüldéseToolStripMenuItem.Text = "E-mail küldése...";
//
// fájlKüldéseToolStripMenuItem1
//
this.fájlKüldéseToolStripMenuItem1.Name = "fájlKüldéseToolStripMenuItem1";
this.fájlKüldéseToolStripMenuItem1.Size = new System.Drawing.Size(160, 22);
this.fájlKüldéseToolStripMenuItem1.Text = "Fájl küldése...";
this.fájlKüldéseToolStripMenuItem1.Click += new System.EventHandler(this.SelectPartner);
//
// toolStripSeparator7
//
this.toolStripSeparator7.Name = "toolStripSeparator7";
this.toolStripSeparator7.Size = new System.Drawing.Size(250, 6);
//
// ismerősSzámitógépénekFelhivásaToolStripMenuItem
//
this.ismerősSzámitógépénekFelhivásaToolStripMenuItem.Enabled = false;
this.ismerősSzámitógépénekFelhivásaToolStripMenuItem.Name = "ismerősSzámitógépénekFelhivásaToolStripMenuItem";
this.ismerősSzámitógépénekFelhivásaToolStripMenuItem.Size = new System.Drawing.Size(253, 22);
this.ismerősSzámitógépénekFelhivásaToolStripMenuItem.Text = "Ismerős számitógépének felhivása";
//
// videóhivásInditásaToolStripMenuItem
//
this.videóhivásInditásaToolStripMenuItem.Enabled = false;
this.videóhivásInditásaToolStripMenuItem.Name = "videóhivásInditásaToolStripMenuItem";
this.videóhivásInditásaToolStripMenuItem.Size = new System.Drawing.Size(253, 22);
this.videóhivásInditásaToolStripMenuItem.Text = "Videóhivás inditása...";
//
// onlineFájlokMegtekintéseToolStripMenuItem
//
this.onlineFájlokMegtekintéseToolStripMenuItem.Enabled = false;
this.onlineFájlokMegtekintéseToolStripMenuItem.Name = "onlineFájlokMegtekintéseToolStripMenuItem";
this.onlineFájlokMegtekintéseToolStripMenuItem.Size = new System.Drawing.Size(253, 22);
this.onlineFájlokMegtekintéseToolStripMenuItem.Text = "Online fájlok megtekintése";
//
// közösJátékToolStripMenuItem
//
this.közösJátékToolStripMenuItem.Enabled = false;
this.közösJátékToolStripMenuItem.Name = "közösJátékToolStripMenuItem";
this.közösJátékToolStripMenuItem.Size = new System.Drawing.Size(253, 22);
this.közösJátékToolStripMenuItem.Text = "Közös játék...";
//
// távsegitségKéréseToolStripMenuItem
//
this.távsegitségKéréseToolStripMenuItem.Enabled = false;
this.távsegitségKéréseToolStripMenuItem.Name = "távsegitségKéréseToolStripMenuItem";
this.távsegitségKéréseToolStripMenuItem.Size = new System.Drawing.Size(253, 22);
this.távsegitségKéréseToolStripMenuItem.Text = "Távsegitség kérése...";
//
// eszközökToolStripMenuItem
//
this.eszközökToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.mindigLegfelülToolStripMenuItem,
this.toolStripSeparator8,
this.hangulatjelekToolStripMenuItem,
this.megjelenitendőKépVáltásaToolStripMenuItem,
this.háttérMódositásaToolStripMenuItem,
this.toolStripSeparator9,
this.hangokÉsVideóBeállitásaToolStripMenuItem,
this.toolStripSeparator10,
this.beállitásokToolStripMenuItem,
this.toolStripSeparator14,
this.szkriptíróToolStripMenuItem});
this.eszközökToolStripMenuItem.Name = "eszközökToolStripMenuItem";
this.eszközökToolStripMenuItem.Size = new System.Drawing.Size(66, 20);
this.eszközökToolStripMenuItem.Text = "Eszközök";
//
// mindigLegfelülToolStripMenuItem
//
this.mindigLegfelülToolStripMenuItem.CheckOnClick = true;
this.mindigLegfelülToolStripMenuItem.Name = "mindigLegfelülToolStripMenuItem";
this.mindigLegfelülToolStripMenuItem.Size = new System.Drawing.Size(227, 22);
this.mindigLegfelülToolStripMenuItem.Text = "Mindig legfelül";
this.mindigLegfelülToolStripMenuItem.Click += new System.EventHandler(this.mindigLegfelülToolStripMenuItem_Click);
//
// toolStripSeparator8
//
this.toolStripSeparator8.Name = "toolStripSeparator8";
this.toolStripSeparator8.Size = new System.Drawing.Size(224, 6);
//
// hangulatjelekToolStripMenuItem
//
this.hangulatjelekToolStripMenuItem.Name = "hangulatjelekToolStripMenuItem";
this.hangulatjelekToolStripMenuItem.Size = new System.Drawing.Size(227, 22);
this.hangulatjelekToolStripMenuItem.Text = "Hangulatjelek...";
this.hangulatjelekToolStripMenuItem.Click += new System.EventHandler(this.hangulatjelekToolStripMenuItem_Click);
//
// megjelenitendőKépVáltásaToolStripMenuItem
//
this.megjelenitendőKépVáltásaToolStripMenuItem.Name = "megjelenitendőKépVáltásaToolStripMenuItem";
this.megjelenitendőKépVáltásaToolStripMenuItem.Size = new System.Drawing.Size(227, 22);
this.megjelenitendőKépVáltásaToolStripMenuItem.Text = "Megjelenitendő kép váltása...";
this.megjelenitendőKépVáltásaToolStripMenuItem.Click += new System.EventHandler(this.megjelenitendőKépVáltásaToolStripMenuItem_Click);
//
// háttérMódositásaToolStripMenuItem
//
this.háttérMódositásaToolStripMenuItem.Enabled = false;
this.háttérMódositásaToolStripMenuItem.Name = "háttérMódositásaToolStripMenuItem";
this.háttérMódositásaToolStripMenuItem.Size = new System.Drawing.Size(227, 22);
this.háttérMódositásaToolStripMenuItem.Text = "Háttér módositása...";
//
// toolStripSeparator9
//
this.toolStripSeparator9.Name = "toolStripSeparator9";
this.toolStripSeparator9.Size = new System.Drawing.Size(224, 6);
//
// hangokÉsVideóBeállitásaToolStripMenuItem
//
this.hangokÉsVideóBeállitásaToolStripMenuItem.Enabled = false;
this.hangokÉsVideóBeállitásaToolStripMenuItem.Name = "hangokÉsVideóBeállitásaToolStripMenuItem";
this.hangokÉsVideóBeállitásaToolStripMenuItem.Size = new System.Drawing.Size(227, 22);
this.hangokÉsVideóBeállitásaToolStripMenuItem.Text = "Hangok és videó beállitása...";
//
// toolStripSeparator10
//
this.toolStripSeparator10.Name = "toolStripSeparator10";
this.toolStripSeparator10.Size = new System.Drawing.Size(224, 6);
//
// beállitásokToolStripMenuItem
//
this.beállitásokToolStripMenuItem.Name = "beállitásokToolStripMenuItem";
this.beállitásokToolStripMenuItem.Size = new System.Drawing.Size(227, 22);
this.beállitásokToolStripMenuItem.Text = "Beállitások...";
this.beállitásokToolStripMenuItem.Click += new System.EventHandler(this.beállitásokToolStripMenuItem_Click);
//
// toolStripSeparator14
//
this.toolStripSeparator14.Name = "toolStripSeparator14";
this.toolStripSeparator14.Size = new System.Drawing.Size(224, 6);
//
// szkriptíróToolStripMenuItem
//
this.szkriptíróToolStripMenuItem.Name = "szkriptíróToolStripMenuItem";
this.szkriptíróToolStripMenuItem.Size = new System.Drawing.Size(227, 22);
this.szkriptíróToolStripMenuItem.Text = "Szkriptíró";
this.szkriptíróToolStripMenuItem.Click += new System.EventHandler(this.szkriptíróToolStripMenuItem_Click);
//
// súgóToolStripMenuItem
//
this.súgóToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.témakörökToolStripMenuItem,
this.toolStripSeparator11,
this.aSzolgáltatásÁllapotsaToolStripMenuItem,
this.adatvédelmiNyilatkozatToolStripMenuItem,
this.használatiFeltételekToolStripMenuItem,
this.visszaélésBejelentéseToolStripMenuItem,
this.toolStripSeparator12,
this.segitsenAProgramTökéletesitésébenToolStripMenuItem,
this.toolStripSeparator13,
this.névjegyToolStripMenuItem});
this.súgóToolStripMenuItem.Name = "súgóToolStripMenuItem";
this.súgóToolStripMenuItem.Size = new System.Drawing.Size(46, 20);
this.súgóToolStripMenuItem.Text = "Súgó";
//
// témakörökToolStripMenuItem
//
this.témakörökToolStripMenuItem.Enabled = false;
this.témakörökToolStripMenuItem.Name = "témakörökToolStripMenuItem";
this.témakörökToolStripMenuItem.Size = new System.Drawing.Size(270, 22);
this.témakörökToolStripMenuItem.Text = "Témakörök";
//
// toolStripSeparator11
//
this.toolStripSeparator11.Name = "toolStripSeparator11";
this.toolStripSeparator11.Size = new System.Drawing.Size(267, 6);
//
// aSzolgáltatásÁllapotsaToolStripMenuItem
//
this.aSzolgáltatásÁllapotsaToolStripMenuItem.Enabled = false;
this.aSzolgáltatásÁllapotsaToolStripMenuItem.Name = "aSzolgáltatásÁllapotsaToolStripMenuItem";
this.aSzolgáltatásÁllapotsaToolStripMenuItem.Size = new System.Drawing.Size(270, 22);
this.aSzolgáltatásÁllapotsaToolStripMenuItem.Text = "A szolgáltatás állapota";
//
// adatvédelmiNyilatkozatToolStripMenuItem
//
this.adatvédelmiNyilatkozatToolStripMenuItem.Enabled = false;
this.adatvédelmiNyilatkozatToolStripMenuItem.Name = "adatvédelmiNyilatkozatToolStripMenuItem";
this.adatvédelmiNyilatkozatToolStripMenuItem.Size = new System.Drawing.Size(270, 22);
this.adatvédelmiNyilatkozatToolStripMenuItem.Text = "Adatvédelmi nyilatkozat";
//
// használatiFeltételekToolStripMenuItem
//
this.használatiFeltételekToolStripMenuItem.Enabled = false;
this.használatiFeltételekToolStripMenuItem.Name = "használatiFeltételekToolStripMenuItem";
this.használatiFeltételekToolStripMenuItem.Size = new System.Drawing.Size(270, 22);
this.használatiFeltételekToolStripMenuItem.Text = "Használati feltételek";
//
// visszaélésBejelentéseToolStripMenuItem
//
this.visszaélésBejelentéseToolStripMenuItem.Enabled = false;
this.visszaélésBejelentéseToolStripMenuItem.Name = "visszaélésBejelentéseToolStripMenuItem";
this.visszaélésBejelentéseToolStripMenuItem.Size = new System.Drawing.Size(270, 22);
this.visszaélésBejelentéseToolStripMenuItem.Text = "Visszaélés bejelentése";
//
// toolStripSeparator12
//
this.toolStripSeparator12.Name = "toolStripSeparator12";
this.toolStripSeparator12.Size = new System.Drawing.Size(267, 6);
//
// segitsenAProgramTökéletesitésébenToolStripMenuItem
//
this.segitsenAProgramTökéletesitésébenToolStripMenuItem.Enabled = false;
this.segitsenAProgramTökéletesitésébenToolStripMenuItem.Name = "segitsenAProgramTökéletesitésébenToolStripMenuItem";
this.segitsenAProgramTökéletesitésébenToolStripMenuItem.Size = new System.Drawing.Size(270, 22);
this.segitsenAProgramTökéletesitésébenToolStripMenuItem.Text = "Segitsen a program tökéletesitésében";
//
// toolStripSeparator13
//
this.toolStripSeparator13.Name = "toolStripSeparator13";
this.toolStripSeparator13.Size = new System.Drawing.Size(267, 6);
//
// névjegyToolStripMenuItem
//
this.névjegyToolStripMenuItem.Name = "névjegyToolStripMenuItem";
this.névjegyToolStripMenuItem.Size = new System.Drawing.Size(270, 22);
this.névjegyToolStripMenuItem.Text = "Névjegy";
this.névjegyToolStripMenuItem.Click += new System.EventHandler(this.névjegyToolStripMenuItem_Click);
//
// partnerImages
//
this.partnerImages.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
this.partnerImages.ImageSize = new System.Drawing.Size(16, 16);
this.partnerImages.TransparentColor = System.Drawing.Color.Transparent;
//
// contactList
//
this.contactList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.contactList.AutoScroll = true;
this.contactList.AutoUpdate = true;
this.contactList.AutoValidate = System.Windows.Forms.AutoValidate.EnablePreventFocusChange;
this.contactList.ColumnAutoFill = true;
richListViewColumn1.Text = null;
richListViewColumn1.Width = 50;
richListViewColumn2.Text = null;
richListViewColumn2.Width = 100;
this.contactList.Columns = new SzNPProjects.RichListViewColumn[] {
richListViewColumn1,
richListViewColumn2};
this.contactList.HeaderHeight = 0;
this.contactList.ItemHeight = 50;
this.contactList.Location = new System.Drawing.Point(3, 40);
this.contactList.Name = "contactList";
this.contactList.SelectedIndex = -1;
this.contactList.SelectionColor = System.Drawing.Color.Aqua;
this.contactList.Size = new System.Drawing.Size(494, 471);
this.contactList.TabIndex = 0;
this.contactList.ItemDoubleClicked += new System.EventHandler<int>(this.contactList_ItemDoubleClicked);
this.contactList.ItemRightClicked += new System.EventHandler<int>(this.contactList_ItemRightClicked);
//
// MainPanel
//
this.MainPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.MainPanel.Controls.Add(this.panel2);
this.MainPanel.Controls.Add(this.searchListView);
this.MainPanel.Controls.Add(this.contactList);
this.MainPanel.Controls.Add(this.statusStrip2);
this.MainPanel.Location = new System.Drawing.Point(150, 24);
this.MainPanel.Name = "MainPanel";
this.MainPanel.Size = new System.Drawing.Size(500, 536);
this.MainPanel.TabIndex = 9;
//
// searchListView
//
this.searchListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.searchListView.AutoScroll = true;
this.searchListView.AutoUpdate = true;
this.searchListView.AutoValidate = System.Windows.Forms.AutoValidate.EnablePreventFocusChange;
this.searchListView.ColumnAutoFill = true;
richListViewColumn3.Text = null;
richListViewColumn3.Width = 50;
richListViewColumn4.Text = null;
richListViewColumn4.Width = 100;
this.searchListView.Columns = new SzNPProjects.RichListViewColumn[] {
richListViewColumn3,
richListViewColumn4};
this.searchListView.HeaderHeight = 0;
this.searchListView.ItemHeight = 50;
this.searchListView.Location = new System.Drawing.Point(3, 32);
this.searchListView.Name = "searchListView";
this.searchListView.SelectedIndex = -1;
this.searchListView.SelectionColor = System.Drawing.Color.Aqua;
this.searchListView.Size = new System.Drawing.Size(494, 366);
this.searchListView.TabIndex = 7;
this.searchListView.Visible = false;
//
// statusStrip2
//
this.statusStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.servers,
this.onlineservers,
this.mainserver});
this.statusStrip2.Location = new System.Drawing.Point(0, 514);
this.statusStrip2.Name = "statusStrip2";
this.statusStrip2.Size = new System.Drawing.Size(500, 22);
this.statusStrip2.SizingGrip = false;
this.statusStrip2.TabIndex = 6;
//
// servers
//
this.servers.Name = "servers";
this.servers.Size = new System.Drawing.Size(43, 17);
this.servers.Text = "servers";
//
// onlineservers
//
this.onlineservers.Name = "onlineservers";
this.onlineservers.Size = new System.Drawing.Size(76, 17);
this.onlineservers.Text = "onlineservers";
//
// mainserver
//
this.mainserver.Name = "mainserver";
this.mainserver.Size = new System.Drawing.Size(366, 17);
this.mainserver.Spring = true;
this.mainserver.Text = "mainserver";
this.mainserver.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// flowLayoutPanel1
//
this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.flowLayoutPanel1.AutoScroll = true;
this.flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 24);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
this.flowLayoutPanel1.Size = new System.Drawing.Size(150, 536);
this.flowLayoutPanel1.TabIndex = 10;
this.flowLayoutPanel1.WrapContents = false;
this.flowLayoutPanel1.Click += new System.EventHandler(this.flowLayoutPanel1_Click);
//
// flowLayoutPanel2
//
this.flowLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.flowLayoutPanel2.AutoScroll = true;
this.flowLayoutPanel2.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
this.flowLayoutPanel2.Location = new System.Drawing.Point(649, 24);
this.flowLayoutPanel2.Name = "flowLayoutPanel2";
this.flowLayoutPanel2.Size = new System.Drawing.Size(150, 538);
this.flowLayoutPanel2.TabIndex = 11;
this.flowLayoutPanel2.WrapContents = false;
this.flowLayoutPanel2.Click += new System.EventHandler(this.flowLayoutPanel1_Click);
//
// chatIconMenu
//
this.chatIconMenu.Name = "contextMenuStrip1";
this.chatIconMenu.Size = new System.Drawing.Size(61, 4);
//
// listPartnerMenu
//
this.listPartnerMenu.Name = "listPartnerMenu";
this.listPartnerMenu.Size = new System.Drawing.Size(61, 4);
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.LightSkyBlue;
this.ClientSize = new System.Drawing.Size(799, 562);
this.Controls.Add(this.menuStrip1);
this.Controls.Add(this.flowLayoutPanel1);
this.Controls.Add(this.MainPanel);
this.Controls.Add(this.flowLayoutPanel2);
this.MainMenuStrip = this.menuStrip1;
this.MinimumSize = new System.Drawing.Size(500, 300);
this.Name = "MainForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Live Messenger - MSGer.tk";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.BeforeExit);
this.Load += new System.EventHandler(this.OnMainFormLoad);
this.Controls.SetChildIndex(this.flowLayoutPanel2, 0);
this.Controls.SetChildIndex(this.MainPanel, 0);
this.Controls.SetChildIndex(this.flowLayoutPanel1, 0);
this.Controls.SetChildIndex(this.menuStrip1, 0);
this.iconMenu.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.MainPanel.ResumeLayout(false);
this.MainPanel.PerformLayout();
this.statusStrip2.ResumeLayout(false);
this.statusStrip2.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem fájlToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem kijelentkezésToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripMenuItem állapotToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem elérhetőToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem elfoglaltToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem nincsAGépnélToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem rejtveKapcsolódikToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
private System.Windows.Forms.ToolStripMenuItem fájlKüldéseToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem beérkezettFájlokMappájánakMegnyitásaToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem üzenetekElőzményeinekMegtekintéseToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
private System.Windows.Forms.ToolStripMenuItem bezárásToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
private System.Windows.Forms.ToolStripMenuItem kilépésToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ismerősökToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ismerősFelvételeToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ismerősSzerkesztéseToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ismerősTörléseToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator5;
private System.Windows.Forms.ToolStripMenuItem csoportLétrehozásaToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator6;
private System.Windows.Forms.ToolStripMenuItem kategóriaLétrehozásaToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem kategóriaSzerkesztéseToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem kategóriaTörléseToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem műveletekToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem azonnaliÜzenetKüldéseToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem egyébKüldéseToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem emailKüldéseToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem fájlKüldéseToolStripMenuItem1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator7;
private System.Windows.Forms.ToolStripMenuItem ismerősSzámitógépénekFelhivásaToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem videóhivásInditásaToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem onlineFájlokMegtekintéseToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem közösJátékToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem távsegitségKéréseToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem eszközökToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem mindigLegfelülToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator8;
private System.Windows.Forms.ToolStripMenuItem hangulatjelekToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem megjelenitendőKépVáltásaToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem háttérMódositásaToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator9;
private System.Windows.Forms.ToolStripMenuItem hangokÉsVideóBeállitásaToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator10;
private System.Windows.Forms.ToolStripMenuItem beállitásokToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem súgóToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem témakörökToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator11;
private System.Windows.Forms.ToolStripMenuItem aSzolgáltatásÁllapotsaToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem adatvédelmiNyilatkozatToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem használatiFeltételekToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem visszaélésBejelentéseToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator12;
private System.Windows.Forms.ToolStripMenuItem segitsenAProgramTökéletesitésébenToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator13;
private System.Windows.Forms.ToolStripMenuItem névjegyToolStripMenuItem;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1;
private System.Windows.Forms.ImageList partnerImages;
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem3;
private System.Windows.Forms.ContextMenuStrip iconMenu;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator18;
public System.Windows.Forms.ToolStripMenuItem toolStripMenuItem4;
public System.Windows.Forms.ToolStripMenuItem toolStripMenuItem8;
public System.Windows.Forms.ToolStripMenuItem toolStripMenuItem9;
internal System.Windows.Forms.NotifyIcon notifyIcon1;
internal SzNPProjects.RichListView contactList;
private System.Windows.Forms.Panel MainPanel;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2;
private System.Windows.Forms.StatusStrip statusStrip2;
private System.Windows.Forms.ToolStripStatusLabel servers;
private System.Windows.Forms.ToolStripStatusLabel onlineservers;
private System.Windows.Forms.ToolStripStatusLabel mainserver;
private System.Windows.Forms.ContextMenuStrip chatIconMenu;
private System.Windows.Forms.ContextMenuStrip listPartnerMenu;
internal SzNPProjects.RichListView searchListView;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator14;
private System.Windows.Forms.ToolStripMenuItem szkriptíróToolStripMenuItem;
}
}

View file

@ -0,0 +1,306 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
partial class MainForm
{
private void PopupCloseClick(object sender, EventArgs e)
{
MessageBox.Show("Close");
}
private void PopupClick(object sender, EventArgs e)
{
MessageBox.Show("Click");
}
private void LoginNewUser(object sender, EventArgs e)
{
Storage.Save(true); //2014.09.19.
Process.Start(((Program.ProcessName.Contains("vshost")) ? Program.ProcessName.Replace(".vshost", "") : Program.ProcessName) + ".exe", "multi");
}
public void SetOnlineState(object sender, EventArgs e)
{
int state = 0;
if (sender == elérhetőToolStripMenuItem)
state = 1;
if (sender == elfoglaltToolStripMenuItem)
state = 2;
if (sender == nincsAGépnélToolStripMenuItem)
state = 3;
if (sender == null) //2014.08.30. - Erre nagyon sokáig nem volt felkészítve, és ezt kihasználtam a kijelentkezéshez
{
string resp = Networking.SendRequest(Networking.RequestType.SetState, 0 + "", 0, true);
if (resp.Contains("Fail")) //2015.06.04.
new ErrorHandler(ErrorType.ServerError, new Exception(resp)); //2015.06.04.
new Networking.PacketSender(new Networking.PDLogoutUser()).SendAsync().ContinueWith((t) =>
{
CurrentUser.SendChanges = false; //2014.12.31.
CurrentUser.State = state; //2014.08.28.
});
}
else //else: 2015.04.03.
CurrentUser.State = state; //2014.08.28.
}
private void SelectPartner(object sender, EventArgs e)
{
var form = new SelectPartnerForm((ToolStripMenuItem)sender);
DialogResult dr = form.ShowDialog();
if (dr == DialogResult.OK)
{
//2014.04.25.
string[] partners = form.Partners;
List<UserInfo> tmplist = new List<UserInfo>(); //2015.05.15.
for (int i = 0; i < partners.Length; i++)
{
if (partners[i] != "") //2014.04.17.
{
for (int j = 0; j < UserInfo.KnownUsers.Count; j++)
{
if (!UserInfo.KnownUsers[j].IsPartner)
continue;
int tmp; //2014.04.17.
if (!Int32.TryParse(partners[i], out tmp))
tmp = -1;
if (UserInfo.KnownUsers[j].UserName == partners[i] || UserInfo.KnownUsers[j].Email == partners[i] || UserInfo.KnownUsers[j].UserID == tmp)
{ //Egyezik a név, E-mail vagy ID - UserName: 2014.04.17.
tmplist.Add(UserInfo.KnownUsers[j]); //2015.05.15.
}
}
}
}
if (tmplist.Count != 0)
{
if (sender == fájlKüldéseToolStripMenuItem)
{
ChatPanel tmpchat = ChatPanel.Create(tmplist);
tmpchat.OpenSendFile(); //2015.06.30.
}
if (sender == azonnaliÜzenetKüldéseToolStripMenuItem)
{
ChatPanel.Create(tmplist);
}
}
}
}
private void ClearSearchBar(object sender, EventArgs e)
{
if (textBox1.Text == Language.Translate(Language.StringID.SearchBar))
textBox1.Clear();
}
private void PutTextInSearchBar(object sender, EventArgs e)
{
if (textBox1.Text == "")
textBox1.Text = Language.Translate(Language.StringID.SearchBar);
}
public static void OpenSendMessage(int uid)
{
var uinfo = UserInfo.Select(uid);
//Üzenetküldő form
int ChatNum = -1;
for (int i = 0; i < ChatPanel.ChatWindows.Count; i++)
{
if (ChatPanel.ChatWindows[i].ChatPartners.Count == 1 && ChatPanel.ChatWindows[i].ChatPartners.Contains(uinfo))
{ //Vele, és csak vele beszél
ChatNum = i;
break;
}
}
if (ChatNum == -1)
{ //Nincs még chatablaka
ChatPanel.Create(new UserInfo[1] { uinfo });
}
else
{
ChatPanel.ChatWindows[ChatNum].Show();
ChatPanel.ChatWindows[ChatNum].Focus();
}
}
private void OnMainFormLoad(object sender, EventArgs e)
{
if (CurrentUser.UserID == 0)
Program.Exit();
SendLoginToUsers(); //2015.06.16. - Áthelyezve
LoadPartnerList(); //Be kell töltenie a MainForm-nak, hogy hivatkozhasson rá
CurrentUser.SendChanges = true; //2014.08.30.
}
private void InvitePartner(object sender, EventArgs e)
{
(new InvitePartner()).ShowDialog();
}
private void BeforeExit(object sender, FormClosingEventArgs e)
{
e.Cancel = true;
this.Hide();
}
private void toolStripMenuItem4_Click(object sender, EventArgs e)
{
if (CurrentUser.UserID != 0) //2014.04.18.
{
this.Show();
this.Focus();
}
}
private void ExitProgram(object sender, EventArgs e)
{
Program.Exit();
}
private void ismerősFelvételeToolStripMenuItem_Click(object sender, EventArgs e)
{
(new AddPartner()).ShowDialog();
}
private void névjegyToolStripMenuItem_Click(object sender, EventArgs e)
{
(new AboutBox1()).ShowDialog();
}
private void mindigLegfelülToolStripMenuItem_Click(object sender, EventArgs e)
{
this.TopMost = mindigLegfelülToolStripMenuItem.Checked;
}
private void beállitásokToolStripMenuItem_Click(object sender, EventArgs e)
{
if (Program.SettingsF == null)
{
Program.SettingsF = new SettingsForm();
Program.SettingsF.Show();
}
}
private void contactList_ItemDoubleClicked(object sender, int e)
{
int uid = UserInfo.GetUserIDFromListID(e);
OpenSendMessage(uid);
}
private void bezárásToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
}
private void információToolStripMenuItem_Click(object sender, EventArgs e)
{
for (int i = 0; i < UserInfo.KnownUsers.Count; i++)
{
if (UserInfo.KnownUsers[i].TMPListID != (int)((ToolStripMenuItem)sender).GetCurrentParent().Tag)
continue;
(new PartnerInformation(UserInfo.KnownUsers[i])).ShowDialog();
break;
}
}
private void contactList_ItemRightClicked(object sender, int e)
{
contactList.Items[e].Selected = true;
listPartnerMenu.Tag = e;
listPartnerMenu.Show(Cursor.Position);
}
private void PartnerMenu_SendMessage(object sender, EventArgs e)
{
int uid = UserInfo.GetUserIDFromListID((int)((ToolStripMenuItem)sender).GetCurrentParent().Tag); //Erre kattintott jobb gombbal
OpenSendMessage(uid);
}
private void panel2_Click(object sender, EventArgs e)
{ //2014.10.31.
textBox1.Focus();
}
private System.Windows.Forms.Timer searchbartimer = new System.Windows.Forms.Timer();
private void textBox1_TextChanged(object sender, EventArgs e)
{ //2014.11.30. 1:33
var searchlist = searchListView; //2014.12.14. 1:46
if (searchbartimer.Enabled)
return;
searchbartimer.Interval = 1000;
searchbartimer.Tick += delegate
{
searchbartimer.Stop();
if (textBox1.Text.Length == 0 || textBox1.Text == Language.Translate(Language.StringID.SearchBar)) //text==translate...: 2014.12.05.
{
searchlist.Visible = false;
contactList.Visible = true;
return;
}
contactList.Visible = false;
searchlist.Parent = contactList.Parent; //2014.12.05.
searchlist.Bounds = contactList.Bounds;
searchlist.Items.Clear(); //2014.12.05.
searchlist.AutoUpdate = false;
foreach (var item in UserInfo.KnownUsers)
{
if (!item.IsPartner)
continue;
if (item.Name.ToLower().Contains(textBox1.Text.ToLower()) || item.Email.ToLower().Contains(textBox1.Text.ToLower()) || item.UserName.ToLower().Contains(textBox1.Text.ToLower())) //ToLower: 2014.12.14. 1:53
{
item.CreateListItem(searchlist, searchlist.Items.Count);
}
}
searchlist.AutoUpdate = true;
searchlist.Visible = true;
};
searchbartimer.Start();
}
private void flowLayoutPanel1_Click(object sender, EventArgs e)
{
foreach (var item in ChatPanel.ChatWindows)
{
item.Hide();
}
}
private void szkriptíróToolStripMenuItem_Click(object sender, EventArgs e)
{
new ScripterWindow().Show();
}
private void beérkezettFájlokMappájánakMegnyitásaToolStripMenuItem_Click(object sender, EventArgs e)
{
string path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + Path.DirectorySeparatorChar + Language.Translate(Language.StringID.ReceivedFiles);
if (Directory.Exists(path))
Process.Start(path);
}
private void megjelenitendőKépVáltásaToolStripMenuItem_Click(object sender, EventArgs e)
{
new SelectShownImage().ShowDialog(); //2015.06.06.
}
private void hangulatjelekToolStripMenuItem_Click(object sender, EventArgs e)
{
new Emoticons().ShowDialog();
}
}
}

462
MSGer.tk/Forms/MainForm.cs Normal file
View file

@ -0,0 +1,462 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Net;
using System.IO;
using GlacialComponents.Controls;
using Khendys.Controls;
using System.Threading;
using System.Reflection;
using SzNPProjects;
using System.Net.Sockets;
using System.Diagnostics;
using System.Net.NetworkInformation;
namespace MSGer.tk
{
public partial class MainForm : ThemedForms
{
public static Thread PartnerListUpdateThread; //2015.05.15.
public static Notifier taskbarNotifier;
public MainForm()
{
InitializeComponent();
toolStripMenuItem4.Enabled = false; //2014.04.12.
toolStripMenuItem8.Enabled = false; //2014.04.12.
contactList.Enabled = false; //2014.03.05.
BeforeLogin.SetText(Language.Translate(Language.StringID.BeforeLogin_TranslateMainF));
#region Helyi beállitás
fájlToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File);
Language.ReloadEvent += delegate { fájlToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File); };
kijelentkezésToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_Logout);
Language.ReloadEvent += delegate { kijelentkezésToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_Logout); };
toolStripMenuItem1.Text = Language.Translate(Language.StringID.Menu_File_LoginNewUser);
Language.ReloadEvent += delegate { toolStripMenuItem1.Text = Language.Translate(Language.StringID.Menu_File_LoginNewUser); };
állapotToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_Status);
Language.ReloadEvent += delegate { állapotToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_Status); };
elérhetőToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_Status_Online);
Language.ReloadEvent += delegate { elérhetőToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_Status_Online); };
elfoglaltToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_Status_Busy);
Language.ReloadEvent += delegate { elfoglaltToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_Status_Busy); };
nincsAGépnélToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_Status_Away);
Language.ReloadEvent += delegate { nincsAGépnélToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_Status_Away); };
rejtveKapcsolódikToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_Status_Hidden);
Language.ReloadEvent += delegate { rejtveKapcsolódikToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_Status_Hidden); };
fájlKüldéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_SendFile);
Language.ReloadEvent += delegate { fájlKüldéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_SendFile); };
beérkezettFájlokMappájánakMegnyitásaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_OpenReceivedFiles);
Language.ReloadEvent += delegate { beérkezettFájlokMappájánakMegnyitásaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_OpenReceivedFiles); };
üzenetekElőzményeinekMegtekintéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_OpenRecentmsgs);
Language.ReloadEvent += delegate { üzenetekElőzményeinekMegtekintéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_OpenRecentmsgs); };
bezárásToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_Close);
Language.ReloadEvent += delegate { bezárásToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_Close); };
kilépésToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_Exit);
Language.ReloadEvent += delegate { kilépésToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_File_Exit); };
ismerősökToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Contacts);
Language.ReloadEvent += delegate { ismerősökToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Contacts); };
ismerősFelvételeToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Contacts_Add);
Language.ReloadEvent += delegate { ismerősFelvételeToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Contacts_Add); };
ismerősSzerkesztéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Contacts_Edit);
Language.ReloadEvent += delegate { ismerősSzerkesztéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Contacts_Edit); };
ismerősTörléseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Contacts_Remove);
Language.ReloadEvent += delegate { ismerősTörléseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Contacts_Remove); };
toolStripMenuItem3.Text = Language.Translate(Language.StringID.Menu_Contacts_Invite);
Language.ReloadEvent += delegate { toolStripMenuItem3.Text = Language.Translate(Language.StringID.Menu_Contacts_Invite); };
csoportLétrehozásaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Contacts_MakeGroup);
Language.ReloadEvent += delegate { csoportLétrehozásaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Contacts_MakeGroup); };
kategóriaLétrehozásaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Contacts_MakeCategory);
Language.ReloadEvent += delegate { kategóriaLétrehozásaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Contacts_MakeCategory); };
kategóriaSzerkesztéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Contacts_EditCategory);
Language.ReloadEvent += delegate { kategóriaSzerkesztéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Contacts_EditCategory); };
kategóriaTörléseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Contacts_RemoveCategory);
Language.ReloadEvent += delegate { kategóriaTörléseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Contacts_RemoveCategory); };
műveletekToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Operations);
Language.ReloadEvent += delegate { műveletekToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Operations); };
azonnaliÜzenetKüldéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Sendmsg) + "...";
Language.ReloadEvent += delegate { azonnaliÜzenetKüldéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Sendmsg) + "..."; };
egyébKüldéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Operations_SendOther);
Language.ReloadEvent += delegate { egyébKüldéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Operations_SendOther); };
emailKüldéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Operations_SendMail);
Language.ReloadEvent += delegate { emailKüldéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Operations_SendMail); };
fájlKüldéseToolStripMenuItem1.Text = Language.Translate(Language.StringID.Menu_File_SendFile); //Ugyanaz a szöveg
Language.ReloadEvent += delegate { fájlKüldéseToolStripMenuItem1.Text = Language.Translate(Language.StringID.Menu_File_SendFile); };
ismerősSzámitógépénekFelhivásaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Operations_CallContact);
Language.ReloadEvent += delegate { ismerősSzámitógépénekFelhivásaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Operations_CallContact); };
videóhivásInditásaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Operations_VideoCall);
Language.ReloadEvent += delegate { videóhivásInditásaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Operations_VideoCall); };
onlineFájlokMegtekintéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Operations_ShowOnlineFiles);
Language.ReloadEvent += delegate { onlineFájlokMegtekintéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Operations_ShowOnlineFiles); };
közösJátékToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Operations_PlayGame);
Language.ReloadEvent += delegate { közösJátékToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Operations_PlayGame); };
távsegitségKéréseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Operations_AskForHelp);
Language.ReloadEvent += delegate { távsegitségKéréseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Operations_AskForHelp); };
eszközökToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Tools);
Language.ReloadEvent += delegate { eszközökToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Tools); };
mindigLegfelülToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Tools_AlwaysOnTop);
Language.ReloadEvent += delegate { mindigLegfelülToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Tools_AlwaysOnTop); };
hangulatjelekToolStripMenuItem.Text = Language.Translate(Language.StringID.Emoticons) + "...";
Language.ReloadEvent += delegate { hangulatjelekToolStripMenuItem.Text = Language.Translate(Language.StringID.Emoticons) + "..."; };
megjelenitendőKépVáltásaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Tools_ChangeImage);
Language.ReloadEvent += delegate { megjelenitendőKépVáltásaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Tools_ChangeImage); };
háttérMódositásaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Tools_ChangeBackground);
Language.ReloadEvent += delegate { háttérMódositásaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Tools_ChangeBackground); };
hangokÉsVideóBeállitásaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Tools_VoiceVideoSettings);
Language.ReloadEvent += delegate { hangokÉsVideóBeállitásaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Tools_VoiceVideoSettings); };
beállitásokToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Tools_Settings);
Language.ReloadEvent += delegate { beállitásokToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Tools_Settings); };
szkriptíróToolStripMenuItem.Text = Language.Translate(Language.StringID.Scripter);
Language.ReloadEvent += delegate { szkriptíróToolStripMenuItem.Text = Language.Translate(Language.StringID.Scripter); };
súgóToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Help);
Language.ReloadEvent += delegate { súgóToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Help); };
témakörökToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Help_Contents);
Language.ReloadEvent += delegate { témakörökToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Help_Contents); };
aSzolgáltatásÁllapotsaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Help_Status);
Language.ReloadEvent += delegate { aSzolgáltatásÁllapotsaToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Help_Status); };
adatvédelmiNyilatkozatToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Help_PrivacyPolicy);
Language.ReloadEvent += delegate { adatvédelmiNyilatkozatToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Help_PrivacyPolicy); };
használatiFeltételekToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Help_TermsOfUse);
Language.ReloadEvent += delegate { használatiFeltételekToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Help_TermsOfUse); };
visszaélésBejelentéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Help_Report);
Language.ReloadEvent += delegate { visszaélésBejelentéseToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Help_Report); };
segitsenAProgramTökéletesitésébenToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Help_ImproveProgram);
Language.ReloadEvent += delegate { segitsenAProgramTökéletesitésébenToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Help_ImproveProgram); };
névjegyToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Help_About);
Language.ReloadEvent += delegate { névjegyToolStripMenuItem.Text = Language.Translate(Language.StringID.Menu_Help_About); };
textBox1.Text = Language.Translate(Language.StringID.SearchBar, textBox1);
toolStripMenuItem4.Text = Language.Translate(Language.StringID.IconMenu_Show);
Language.ReloadEvent += delegate { toolStripMenuItem4.Text = Language.Translate(Language.StringID.IconMenu_Show); };
toolStripMenuItem8.Text = Language.Translate(Language.StringID.Menu_File_Logout);
Language.ReloadEvent += delegate { toolStripMenuItem8.Text = Language.Translate(Language.StringID.Menu_File_Logout); };
toolStripMenuItem9.Text = Language.Translate(Language.StringID.Menu_File_Exit);
Language.ReloadEvent += delegate { toolStripMenuItem9.Text = Language.Translate(Language.StringID.Menu_File_Exit); };
LoadMenu(MenuType.ChatIconMenu); //2014.12.12.
LoadMenu(MenuType.PartnerMenu); //2014.12.13.
#endregion
//this.WindowState = FormWindowState.Minimized; //2014.04.19.
//A betöltő kód áthelyezve a Load()-ba: 2015.05.23.
// Create the thread object, passing in the Alpha.Beta method
// via a ThreadStart delegate. This does not start the thread.
PartnerListUpdateThread = new Thread(new ThreadStart(new Networking.UpdateListAndChat().Run));
PartnerListUpdateThread.Name = "Update Partnerlist and Chat";
if (Storage.Settings[SettingType.WindowState] == "1") //2014.04.18. - 2014.08.08.
this.WindowState = FormWindowState.Maximized;
else if (Storage.Settings[SettingType.WindowState] == "2")
this.WindowState = FormWindowState.Minimized;
else if (Storage.Settings[SettingType.WindowState] == "3")
this.WindowState = FormWindowState.Normal;
//taskbarNotifier = new Notifier("popup-bg.bmp", Color.FromArgb(255, 0, 255), "close.bmp", 5000);
//TODO: Notifier
//taskbarNotifier.Click += PopupClick;
//taskbarNotifier.CloseClick += PopupCloseClick;
toolStripMenuItem4.Enabled = true; //2014.04.12.
toolStripMenuItem8.Enabled = true; //2014.04.12.
ChangeChatWindowLayout(false);
notifyIcon1.Visible = true; //2014.09.22.
//taskbarNotifier.Show("Teszt cím", "Teszt tartalom\nMásodik sor");
Language.ReloadEvent += delegate { textBox1.Text = Language.Translate(Language.StringID.SearchBar); }; //2014.12.22. - Nyelvváltáskor törölni fogja a beírt szöveget
}
public void ChangeChatWindowLayout(bool changed)
{ //2015.06.14.
if (Storage.Settings[SettingType.ChatWindow] == "1")
{ //2015.06.14.
flowLayoutPanel1.Hide();
flowLayoutPanel2.Hide();
MainPanel.Anchor = AnchorStyles.None;
MainPanel.Location = new Point(0, MainPanel.Location.Y);
MainPanel.Width = this.Width;
MainPanel.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom | AnchorStyles.Top;
this.Width -= flowLayoutPanel1.Width + flowLayoutPanel2.Width;
this.SetDesktopLocation(this.DesktopLocation.X + flowLayoutPanel1.Width, this.DesktopLocation.Y);
}
else
{
if (changed)
{
this.SetDesktopLocation(this.DesktopLocation.X - flowLayoutPanel1.Width, this.DesktopLocation.Y);
this.Width += flowLayoutPanel1.Width + flowLayoutPanel2.Width;
MainPanel.Anchor = AnchorStyles.None;
MainPanel.Location = new Point(flowLayoutPanel1.Width + 1, MainPanel.Location.Y);
MainPanel.Width = this.Width - flowLayoutPanel1.Width - flowLayoutPanel2.Width;
MainPanel.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom | AnchorStyles.Top;
flowLayoutPanel1.Show();
flowLayoutPanel2.Show();
}
}
}
private void SendLoginToUsers()
{ //2014.12.18.
new Networking.PacketSender(new Networking.PDLoginUser(UserInfo.KnownUsers.Select(entry => new KeyValuePair<int, int>(entry.UserID, entry.LastUpdate))))
.SendAsync().ContinueWith(new Action<Task<Networking.PacketFormat[]>>(
(t) => Networking.ParseUpdateInfo(t.Result.Select(entry => ((Networking.PDLoginUser)entry.EData).RStrings))));
}
enum MenuType
{
ChatIconMenu,
PartnerMenu
}
private void LoadMenu(MenuType mt)
{
switch (mt) //2014.12.13.
{
case MenuType.ChatIconMenu:
chatIconMenu.Items.Add(Language.Translate(Language.StringID.Close), null,
new EventHandler((sender, e) => ((ChatPanel)chatIconMenu.Tag).Close())); //Tag: A chatikon
chatIconMenu.Items[chatIconMenu.Items.Count - 1].Name = "close"; //2014.12.22.
Language.ReloadEvent += delegate { chatIconMenu.Items["close"].Text = Language.Translate(Language.StringID.Close); }; //2014.12.22.
chatIconMenu.Items.Add(new ToolStripSeparator());
LoadMenuPrep(chatIconMenu);
break;
case MenuType.PartnerMenu:
listPartnerMenu.Items.Add(Language.Translate(Language.StringID.Sendmsg) + "...", null, PartnerMenu_SendMessage);
listPartnerMenu.Items[listPartnerMenu.Items.Count - 1].Name = "menu_operations_sendmsg"; //2014.12.22.
Language.ReloadEvent += delegate { listPartnerMenu.Items["menu_operations_sendmsg"].Text = Language.Translate(Language.StringID.Sendmsg) + ".."; }; //2014.12.22.
listPartnerMenu.Items.Add(new ToolStripSeparator());
LoadMenuPrep(listPartnerMenu);
break;
default:
throw new NotImplementedException("Menu type not implemented.");
}
}
private void LoadMenuPrep(ContextMenuStrip menu) //Csak a menüelemeket készíti elő
{ //2014.12.13.
menu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { //A dizájnerből, átalakítva, hogy rögtön le is fordítsa
new ToolStripMenuItem(Language.Translate(Language.StringID.Contact_SendEmail)), //Ide jönnek majd az event handlerek is
new ToolStripMenuItem(Language.Translate(Language.StringID.Contact_CopyEmail)),
new ToolStripMenuItem(Language.Translate(Language.StringID.Contact_Info)),
new ToolStripSeparator(),
new ToolStripMenuItem(Language.Translate(Language.StringID.Contact_Block)),
new ToolStripMenuItem(Language.Translate(Language.StringID.Contact_Remove)),
new ToolStripSeparator(),
new ToolStripMenuItem(Language.Translate(Language.StringID.Contact_EditName)),
new ToolStripSeparator(),
new ToolStripMenuItem(Language.Translate(Language.StringID.Contact_EventNotifications)),
new ToolStripSeparator(),
new ToolStripMenuItem(Language.Translate(Language.StringID.Contact_OpenChatLog))});
Language.ReloadEvent += delegate
{
int i = menu.Items.Count - 1;
menu.Items[i].Text = Language.Translate(Language.StringID.Contact_OpenChatLog);
i--;
menu.Items[i].Text = Language.Translate(Language.StringID.Contact_EventNotifications);
i--;
menu.Items[i].Text = Language.Translate(Language.StringID.Contact_EditName);
i--;
menu.Items[i].Text = Language.Translate(Language.StringID.Contact_Remove);
i--;
menu.Items[i].Text = Language.Translate(Language.StringID.Contact_Block);
i--;
menu.Items[i].Text = Language.Translate(Language.StringID.Contact_Info);
i--;
menu.Items[i].Text = Language.Translate(Language.StringID.Contact_CopyEmail);
i--;
menu.Items[i].Text = Language.Translate(Language.StringID.Contact_SendEmail);
};
}
public void LoadPartnerList() //2014.08.28.
{
contactList.AutoUpdate = false;
UserInfo.AutoUpdate = false; //2014.09.26.
string[] list = Networking.SendRequest(Networking.RequestType.GetList, "", 0, true).Split(new char[] { 'ͦ' }, StringSplitOptions.RemoveEmptyEntries); //2014.09.26.
if (list[0].Contains("Fail"))
MessageBox.Show(list[0]);
if (!UserInfo.KnownUsers.Any(entry => entry.UserID == CurrentUser.UserID))
{
var tmpc = new UserInfo(); //2015.05.15.
tmpc.UserID = CurrentUser.UserID; //2015.05.15.
tmpc.UserName = CurrentUser.UserName; //2015.05.15.
tmpc.LastUpdate = 0; //2015.05.15.
tmpc.Name = CurrentUser.Name; //2015.05.15.
tmpc.IsPartner = false; //2015.05.15.
tmpc.Image = CurrentUser.Image; //2015.06.06.
UserInfo.KnownUsers.Add(tmpc); //2015.05.15.
}
UserInfo.KnownUsers = UserInfo.KnownUsers.Select(entry => { entry.IsPartner = false; return entry; }).ToList(); //2014.09.26.
for (int i = 0; i + 1 < list.Length; i += 2)
{
string username = list[i];
int uid = Int32.Parse(list[i + 1]);
if (!UserInfo.IDIsInList(UserInfo.KnownUsers, uid))
{ //Ha nem tud róla semmit, akkor töltse le a felhasználónevét, és jelenítse meg azt
var tmp = new UserInfo();
tmp.UserID = uid;
tmp.UserName = username;
tmp.LastUpdate = 0; //Lényegében nem tud róla túl sokat, ezért ha lehet, frissítse
tmp.Name = username;
tmp.IsPartner = true;
UserInfo.KnownUsers.Add(tmp);
}
else
{
UserInfo.Select(uid).IsPartner = true; //2014.09.26.
UserInfo.Select(uid).UserName = username; //2014.09.26. - Nem megváltoztatható, ha egy felhasználó megpróbálja, nem foglalkozik vele
UserInfo.Select(uid).State = 0; //2015.06.25.
}
}
CurrentUser.State = 1; //2014.08.31. 0:48
UserInfo.AutoUpdate = true;
foreach (var entry in UserInfo.KnownUsers)
{
entry.Update(); //Áthelyeztem, mert az értékek frissítésekor is szükség van rá
}
contactList.AutoUpdate = true;
contactList.Enabled = true;
contactList.Refresh();
}
private void LogoutUser(object sender, EventArgs e)
{
this.Hide();
toolStripMenuItem4.Enabled = false; //2014.04.12.
toolStripMenuItem8.Enabled = false; //2014.04.12.
Storage.Save(true); //2014.08.28.
SetOnlineState(null, null); //2014.04.11. - Erre nincs beállitva, ezért automatikusan 0-ra, azaz kijelentkeztetettre állítja az állapotát
contactList.Items.Clear(); //2014.09.19.
UserInfo.KnownUsers.Clear(); //2014.09.19.
Storage.Dispose();
PartnerListUpdateThread.Abort();//2015.06.16.
PartnerListUpdateThread = null;
CurrentUser.SendChanges = false; //2014.08.30.
while (ChatPanel.ChatWindows.Count > 0)
{ //2014.09.06. - A Close() hatására törli a gyűjteményből, ezért sorra végig fog haladni rajta
ChatPanel.ChatWindows[0].Close();
}
//LoginDialog = new LoginForm(); //2014.04.04.
var LoginDialog = new LoginForm(); //2015.05.23.
LoginDialog.ShowDialog();
//Nézzük, sikerült-e
if (CurrentUser.UserID == 0)
Close();
Storage.Load(true); //2014.08.07.
toolStripMenuItem4.Enabled = true; //2014.04.12.
toolStripMenuItem8.Enabled = true; //2014.04.12.
CurrentUser.SendChanges = true; //2014.08.30.
contactList.Items.Clear(); //2014.10.09. - Kijelentkezéskor hozzáad egy üres listelemet egy (Nem elérhető) felirattal, ezt tünteti el
// Create the thread object, passing in the Alpha.Beta method
// via a ThreadStart delegate. This does not start the thread.
PartnerListUpdateThread = new Thread(new ThreadStart(new Networking.UpdateListAndChat().Run));
//PartnerListUpdateThread.Name = "Update Partner List";
PartnerListUpdateThread.Name = "Update Partnerlist and Chat"; //2015.06.30.
// Start the thread
PartnerListUpdateThread.Start();
SendLoginToUsers(); //2014.12.18.
LoadPartnerList();
this.Show();
}
public void PlaceChatIcon(ChatPanel cp)
{
var newicon = new PictureBox();
if (cp.ChatPartners[0].Image == null)
newicon.Image = UserInfo.NoImage; //2015.05.30.
else
newicon.Image = cp.ChatPartners[0].Image; //2015.05.30.
newicon.Size = new Size(100, 100);
newicon.SizeMode = PictureBoxSizeMode.Zoom;
newicon.Click += new EventHandler((a, b) => cp.Show());
newicon.MouseClick += new MouseEventHandler((s, e) =>
{
if (e.Button == MouseButtons.Middle)
cp.Close();
else if (e.Button == MouseButtons.Right) //Chat menü
{ //2014.12.13.
chatIconMenu.Tag = cp;
chatIconMenu.Show(Cursor.Position);
}
});
cp.ChatIcon = newicon;
//---------------------------------------------------------------------
int size = 0;
bool putright = false;
foreach (Control item in flowLayoutPanel1.Controls)
{
size += item.Size.Height;
}
size += newicon.Size.Height;
if (size > flowLayoutPanel1.Size.Height)
putright = true; //Ha nem fér el bal oldalt, rakja jobbra
//---------------------------------------------------------------------
size = 0;
foreach (Control item in flowLayoutPanel2.Controls)
{
size += item.Size.Height;
}
size += newicon.Size.Height;
if (size > flowLayoutPanel2.Size.Height)
putright = false; //Ha jobbra sem fér el, csak rakja balra
//---------------------------------------------------------------------
if (!putright)
flowLayoutPanel1.Controls.Add(newicon);
else
flowLayoutPanel2.Controls.Add(newicon);
}
public enum StatType
{
MainServer,
Servers,
OnlineServers
}
public void UpdateStats(StatType type, int value)
{ //Elvileg ha van forgalom, gyorsan frissíti a nyelvet is
switch (type)
{
case StatType.MainServer:
if (value == 0)
{
mainserver.Text = Language.Translate(Language.StringID.Stats_MainServer) + ": " + Language.Translate(Language.StringID.Stats_NoNetwork);
mainserver.ForeColor = Color.Red;
}
else if (value == 1)
{
mainserver.Text = Language.Translate(Language.StringID.Stats_MainServer) + ": " + Language.Translate(Language.StringID.Stats_Retrying);
mainserver.ForeColor = Color.Orange;
}
else if (value == 2)
{
mainserver.Text = Language.Translate(Language.StringID.Stats_MainServer) + ": " + Language.Translate(Language.StringID.Stats_Connected);
mainserver.ForeColor = Color.Green;
}
break;
case StatType.Servers:
servers.Text = Language.Translate(Language.StringID.Stats_Servers) + ": " + value;
break;
case StatType.OnlineServers:
onlineservers.Text = Language.Translate(Language.StringID.Stats_OnlineServers) + ": " + value;
break;
}
}
}
}

View file

@ -0,0 +1,142 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>WLM 2009 Logo base64-encoded probably - Spent hours on the correct sed command</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>WLM 2009 Logo base64-encoded probably - Spent hours on the correct sed command</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>WLM 2009 Logo base64-encoded probably - Spent hours on the correct sed command</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>WLM 2009 Logo base64-encoded probably - Spent hours on the correct sed command</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="notifyIcon1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="iconMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>530, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="notifyIcon1.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>WLM 2009 Logo base64-encoded probably - Spent hours on the correct sed command</value>
</data>
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>130, 17</value>
</metadata>
<metadata name="partnerImages.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>245, 17</value>
</metadata>
<metadata name="statusStrip2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>791, 17</value>
</metadata>
<metadata name="chatIconMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>636, 17</value>
</metadata>
<metadata name="listPartnerMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>907, 17</value>
</metadata>
</root>

99
MSGer.tk/Forms/Notifier.Designer.cs generated Normal file
View file

@ -0,0 +1,99 @@
namespace MSGer.tk
{
partial class Notifier
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.CloseButton = new System.Windows.Forms.PictureBox();
this.Title = new System.Windows.Forms.Label();
this.Content = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.CloseButton)).BeginInit();
this.SuspendLayout();
//
// CloseButton
//
this.CloseButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.CloseButton.Location = new System.Drawing.Point(241, 12);
this.CloseButton.Name = "CloseButton";
this.CloseButton.Size = new System.Drawing.Size(31, 28);
this.CloseButton.TabIndex = 0;
this.CloseButton.TabStop = false;
this.CloseButton.Click += new System.EventHandler(this.CloseButton_Click);
//
// Title
//
this.Title.AutoSize = true;
this.Title.BackColor = System.Drawing.Color.Transparent;
this.Title.Location = new System.Drawing.Point(35, 26);
this.Title.Name = "Title";
this.Title.Size = new System.Drawing.Size(33, 13);
this.Title.TabIndex = 1;
this.Title.Text = "Teszt";
//
// Content
//
this.Content.AutoSize = true;
this.Content.BackColor = System.Drawing.Color.Transparent;
this.Content.Location = new System.Drawing.Point(12, 58);
this.Content.Name = "Content";
this.Content.Size = new System.Drawing.Size(33, 26);
this.Content.TabIndex = 2;
this.Content.Text = "Teszt\r\nAsd";
//
// Notifier
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(284, 262);
this.ControlBox = false;
this.Controls.Add(this.Content);
this.Controls.Add(this.Title);
this.Controls.Add(this.CloseButton);
this.Cursor = System.Windows.Forms.Cursors.Hand;
this.ForeColor = System.Drawing.Color.Black;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Notifier";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.TopMost = true;
((System.ComponentModel.ISupportInitialize)(this.CloseButton)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.PictureBox CloseButton;
private System.Windows.Forms.Label Title;
private System.Windows.Forms.Label Content;
}
}

View file

@ -0,0 +1,68 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
public partial class Notifier : Form
{ //2014.04.15.
private Rectangle WorkAreaRectangle;
private Timer NotifierTimer;
public event EventHandler CloseClick; //2014.08.29.
public Notifier(string background, Color TransparentColor, string closebutton, int waittime) //waittime: 2014.04.17.
{
if (!File.Exists(background))
throw new FileNotFoundException("A megadott háttér nem található.");
if (!File.Exists(closebutton))
throw new FileNotFoundException("A megadott bezáró ikon nem található.");
InitializeComponent();
this.BackgroundImage = Program.LoadImageFromFile(background); //2015.06.06.
this.TransparencyKey = TransparentColor;
CloseButton.Image = Program.LoadImageFromFile(background); //2015.06.06.
var size = CloseButton.Image.Size; //2015.06.06.
CloseButton.Left = CloseButton.Right - size.Width; //2014.08.29.
CloseButton.Width = size.Width; //2014.08.29.
CloseButton.Height = size.Height; //2014.08.29.
NotifierTimer = new Timer();
NotifierTimer.Interval = waittime;
NotifierTimer.Tick += NotifierTimer_Tick;
}
void NotifierTimer_Tick(object sender, EventArgs e)
{
NotifierTimer.Stop();
this.Hide();
}
public Notifier(Image background, Color TransparentColor, Image closebutton, int waittime) //waittime: 2014.08.28.
{
InitializeComponent();
this.BackgroundImage = background;
this.TransparencyKey = TransparentColor;
CloseButton.Image = closebutton;
}
public void Show(string title, string content) //(kép) - 2014.04.15.
{
WorkAreaRectangle = Screen.GetWorkingArea(WorkAreaRectangle); //2014.04.17.
Title.Text = title;
Content.Text = content;
this.WindowState = FormWindowState.Normal;
SetBounds(WorkAreaRectangle.Right - BackgroundImage.Width - 17, WorkAreaRectangle.Bottom - 100, BackgroundImage.Width, 100);
this.Show();
NotifierTimer.Start();
}
private void CloseButton_Click(object sender, EventArgs e)
{ //2014.08.29.
CloseClick(sender, e);
}
}
}

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View file

@ -0,0 +1,182 @@
namespace MSGer.tk
{
partial class PartnerInformation
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.nameTextBox = new Khendys.Controls.ExRichTextBox();
this.messageTextBox = new Khendys.Controls.ExRichTextBox();
this.statusLabel = new System.Windows.Forms.Label();
this.userName1 = new System.Windows.Forms.Label();
this.userName2 = new System.Windows.Forms.Label();
this.userID1 = new System.Windows.Forms.Label();
this.userID2 = new System.Windows.Forms.Label();
this.email2 = new System.Windows.Forms.Label();
this.email1 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// pictureBox1
//
this.pictureBox1.Location = new System.Drawing.Point(12, 12);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(100, 100);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// nameTextBox
//
this.nameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.nameTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.nameTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.nameTextBox.HiglightColor = Khendys.Controls.RtfColor.White;
this.nameTextBox.Location = new System.Drawing.Point(119, 12);
this.nameTextBox.Multiline = false;
this.nameTextBox.Name = "nameTextBox";
this.nameTextBox.ReadOnly = true;
this.nameTextBox.Size = new System.Drawing.Size(445, 30);
this.nameTextBox.TabIndex = 1;
this.nameTextBox.Text = "ShownName";
this.nameTextBox.TextColor = Khendys.Controls.RtfColor.Black;
//
// messageTextBox
//
this.messageTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.messageTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.messageTextBox.HiglightColor = Khendys.Controls.RtfColor.White;
this.messageTextBox.Location = new System.Drawing.Point(119, 57);
this.messageTextBox.Name = "messageTextBox";
this.messageTextBox.ReadOnly = true;
this.messageTextBox.Size = new System.Drawing.Size(445, 55);
this.messageTextBox.TabIndex = 2;
this.messageTextBox.Text = "User Message\nLine";
this.messageTextBox.TextColor = Khendys.Controls.RtfColor.Black;
//
// statusLabel
//
this.statusLabel.AutoSize = true;
this.statusLabel.Location = new System.Drawing.Point(119, 38);
this.statusLabel.Name = "statusLabel";
this.statusLabel.Size = new System.Drawing.Size(63, 13);
this.statusLabel.TabIndex = 3;
this.statusLabel.Text = "StatusLabel";
//
// userName1
//
this.userName1.AutoSize = true;
this.userName1.Location = new System.Drawing.Point(12, 120);
this.userName1.Name = "userName1";
this.userName1.Size = new System.Drawing.Size(63, 13);
this.userName1.TabIndex = 4;
this.userName1.Text = "UserName1";
//
// userName2
//
this.userName2.AutoSize = true;
this.userName2.Location = new System.Drawing.Point(119, 120);
this.userName2.Name = "userName2";
this.userName2.Size = new System.Drawing.Size(63, 13);
this.userName2.TabIndex = 5;
this.userName2.Text = "UserName2";
//
// userID1
//
this.userID1.AutoSize = true;
this.userID1.Location = new System.Drawing.Point(12, 135);
this.userID1.Name = "userID1";
this.userID1.Size = new System.Drawing.Size(46, 13);
this.userID1.TabIndex = 6;
this.userID1.Text = "UserID1";
//
// userID2
//
this.userID2.AutoSize = true;
this.userID2.Location = new System.Drawing.Point(119, 135);
this.userID2.Name = "userID2";
this.userID2.Size = new System.Drawing.Size(46, 13);
this.userID2.TabIndex = 7;
this.userID2.Text = "UserID2";
//
// email2
//
this.email2.AutoSize = true;
this.email2.Location = new System.Drawing.Point(119, 150);
this.email2.Name = "email2";
this.email2.Size = new System.Drawing.Size(38, 13);
this.email2.TabIndex = 9;
this.email2.Text = "Email2";
//
// email1
//
this.email1.AutoSize = true;
this.email1.Location = new System.Drawing.Point(12, 150);
this.email1.Name = "email1";
this.email1.Size = new System.Drawing.Size(38, 13);
this.email1.TabIndex = 8;
this.email1.Text = "Email1";
//
// PartnerInformation
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(576, 273);
this.Controls.Add(this.email2);
this.Controls.Add(this.email1);
this.Controls.Add(this.userID2);
this.Controls.Add(this.userID1);
this.Controls.Add(this.userName2);
this.Controls.Add(this.userName1);
this.Controls.Add(this.statusLabel);
this.Controls.Add(this.messageTextBox);
this.Controls.Add(this.nameTextBox);
this.Controls.Add(this.pictureBox1);
this.Name = "PartnerInformation";
this.Text = "PartnerInformation";
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.PictureBox pictureBox1;
private Khendys.Controls.ExRichTextBox nameTextBox;
private Khendys.Controls.ExRichTextBox messageTextBox;
private System.Windows.Forms.Label statusLabel;
private System.Windows.Forms.Label userName1;
private System.Windows.Forms.Label userName2;
private System.Windows.Forms.Label userID1;
private System.Windows.Forms.Label userID2;
private System.Windows.Forms.Label email2;
private System.Windows.Forms.Label email1;
}
}

View file

@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
public partial class PartnerInformation : ThemedForms
{
public PartnerInformation(UserInfo uinfo)
{
InitializeComponent();
nameTextBox.BackColor = this.BackColor;
messageTextBox.BackColor = this.BackColor;
pictureBox1.Image = uinfo.Image; //2015.05.30.
nameTextBox.Text = uinfo.Name;
if (uinfo.State == 1)
statusLabel.Text = Language.Translate(Language.StringID.Menu_File_Status_Online);
else if (uinfo.State == 2)
statusLabel.Text = Language.Translate(Language.StringID.Menu_File_Status_Busy);
else if (uinfo.State == 3)
statusLabel.Text = Language.Translate(Language.StringID.Menu_File_Status_Away);
else
statusLabel.Text = "";
messageTextBox.Text = uinfo.Message;
userName1.Text = Language.Translate(Language.StringID.UserName) + ":";
userName2.Text = uinfo.UserName;
userID1.Text = Language.Translate(Language.StringID.UserID);
userID2.Text = uinfo.UserID.ToString();
email1.Text = "E-mail:";
email2.Text = uinfo.Email;
}
}
}

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

169
MSGer.tk/Forms/ScripterWindow.Designer.cs generated Normal file
View file

@ -0,0 +1,169 @@
namespace MSGer.tk
{
partial class ScripterWindow
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.codeTextBox = new System.Windows.Forms.RichTextBox();
this.compilerResultTextBox = new System.Windows.Forms.RichTextBox();
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.menuStrip1.SuspendLayout();
this.SuspendLayout();
//
// codeTextBox
//
this.codeTextBox.AcceptsTab = true;
this.codeTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.codeTextBox.BackColor = System.Drawing.Color.White;
this.codeTextBox.Location = new System.Drawing.Point(12, 36);
this.codeTextBox.Name = "codeTextBox";
this.codeTextBox.Size = new System.Drawing.Size(502, 229);
this.codeTextBox.TabIndex = 0;
this.codeTextBox.Text = "";
this.codeTextBox.TextChanged += new System.EventHandler(this.codeTextBox_TextChanged);
//
// compilerResultTextBox
//
this.compilerResultTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.compilerResultTextBox.BackColor = System.Drawing.Color.White;
this.compilerResultTextBox.Location = new System.Drawing.Point(12, 296);
this.compilerResultTextBox.Name = "compilerResultTextBox";
this.compilerResultTextBox.ReadOnly = true;
this.compilerResultTextBox.Size = new System.Drawing.Size(502, 93);
this.compilerResultTextBox.TabIndex = 1;
this.compilerResultTextBox.Text = "";
//
// menuStrip1
//
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(526, 24);
this.menuStrip1.TabIndex = 2;
this.menuStrip1.Text = "menuStrip1";
//
// fileToolStripMenuItem
//
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.newToolStripMenuItem,
this.openToolStripMenuItem,
this.saveToolStripMenuItem,
this.toolStripSeparator1,
this.exitToolStripMenuItem});
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
this.fileToolStripMenuItem.Text = "File";
//
// newToolStripMenuItem
//
this.newToolStripMenuItem.Name = "newToolStripMenuItem";
this.newToolStripMenuItem.Size = new System.Drawing.Size(103, 22);
this.newToolStripMenuItem.Text = "New";
this.newToolStripMenuItem.Click += new System.EventHandler(this.newToolStripMenuItem_Click);
//
// openToolStripMenuItem
//
this.openToolStripMenuItem.Name = "openToolStripMenuItem";
this.openToolStripMenuItem.Size = new System.Drawing.Size(103, 22);
this.openToolStripMenuItem.Text = "Open";
this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
//
// saveToolStripMenuItem
//
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
this.saveToolStripMenuItem.Size = new System.Drawing.Size(103, 22);
this.saveToolStripMenuItem.Text = "Save";
this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(100, 6);
//
// exitToolStripMenuItem
//
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
this.exitToolStripMenuItem.Size = new System.Drawing.Size(103, 22);
this.exitToolStripMenuItem.Text = "Exit";
//
// saveFileDialog1
//
this.saveFileDialog1.RestoreDirectory = true;
//
// openFileDialog1
//
this.openFileDialog1.Filter = "C# files|*.cs|All files|*.*";
this.openFileDialog1.RestoreDirectory = true;
//
// ScripterWindow
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(526, 401);
this.Controls.Add(this.compilerResultTextBox);
this.Controls.Add(this.codeTextBox);
this.Controls.Add(this.menuStrip1);
this.MainMenuStrip = this.menuStrip1;
this.Name = "ScripterWindow";
this.Text = "ScripterWindow";
this.Controls.SetChildIndex(this.menuStrip1, 0);
this.Controls.SetChildIndex(this.codeTextBox, 0);
this.Controls.SetChildIndex(this.compilerResultTextBox, 0);
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.RichTextBox codeTextBox;
private System.Windows.Forms.RichTextBox compilerResultTextBox;
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
private System.Windows.Forms.SaveFileDialog saveFileDialog1;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
}
}

View file

@ -0,0 +1,108 @@
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
public partial class ScripterWindow : ThemedForms
{
public ScripterWindow()
{
InitializeComponent();
newToolStripMenuItem.Text = Language.Translate(Language.StringID.Scripter_New);
Language.ReloadEvent += delegate { newToolStripMenuItem.Text = Language.Translate(Language.StringID.Scripter_New); };
openToolStripMenuItem.Text = Language.Translate(Language.StringID.Scripter_Open);
Language.ReloadEvent += delegate { openToolStripMenuItem.Text = Language.Translate(Language.StringID.Scripter_Open); };
saveToolStripMenuItem.Text = Language.Translate(Language.StringID.Scripter_Save);
Language.ReloadEvent += delegate { saveToolStripMenuItem.Text = Language.Translate(Language.StringID.Scripter_Save); };
exitToolStripMenuItem.Text = Language.Translate(Language.StringID.Scripter_Exit);
Language.ReloadEvent += delegate { exitToolStripMenuItem.Text = Language.Translate(Language.StringID.Scripter_Exit); };
timer.Tick += timer_Tick; //2015.04.10.
}
public string Path;
public void LoadScript(string path)
{
if (!File.Exists(path))
{ //2015.04.06.
MessageBox.Show(Language.Translate(Language.StringID.ScriptNotFound), Language.Translate(Language.StringID.Error));
return;
}
Path = path;
}
public void UpdateMessages()
{ //2015.04.06.
if (Path == null)
return;
File.WriteAllText(Path, codeTextBox.Text); //2015.04.10.
ScriptLoader script = new ScriptLoader(Path);
var messages = script.JustCompile();
if (messages == null)
{
MessageBox.Show(Language.Translate(Language.StringID.ScriptUnloadRequired), Language.Translate(Language.StringID.Error));
return;
}
compilerResultTextBox.SuspendLayout(); //2015.04.10.
compilerResultTextBox.Clear(); //2015.04.10.
foreach (CompilerError message in messages)
{
Color color; //2015.04.10.
if (message.IsWarning)
color = Color.DarkOrange; //2015.04.10.
else
color = Color.Red;
compilerResultTextBox.AppendText("(Col:" + message.Column + ",Line:" + message.Line + ") " + message.ErrorNumber + ": " + message.ErrorText + "\n", color); //2015.04.10.
}
compilerResultTextBox.ResumeLayout(true); //2015.04.10.
}
private void newToolStripMenuItem_Click(object sender, EventArgs e)
{ //2015.04.06.
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
saveFileDialog1.OpenFile().Dispose();
Path = saveFileDialog1.FileName;
}
}
private void openToolStripMenuItem_Click(object sender, EventArgs e)
{ //2015.04.06.
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
if (!File.Exists(openFileDialog1.FileName))
return;
Path = openFileDialog1.FileName;
codeTextBox.Text = File.ReadAllText(Path);
}
}
private void saveToolStripMenuItem_Click(object sender, EventArgs e)
{ //2015.04.06.
File.WriteAllText(Path, codeTextBox.Text);
}
private Timer timer = new Timer { Enabled = false, Interval = 1000 }; //2015.04.10.
private void codeTextBox_TextChanged(object sender, EventArgs e)
{ //2015.04.06.
if (!timer.Enabled)
{
UpdateMessages();
timer.Start();
}
}
void timer_Tick(object sender, EventArgs e)
{
timer.Stop();
UpdateMessages();
}
}
}

View file

@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="saveFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>132, 17</value>
</metadata>
<metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>268, 17</value>
</metadata>
</root>

View file

@ -0,0 +1,180 @@
namespace MSGer.tk
{
partial class SelectPartnerForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
GlacialComponents.Controls.GLColumn glColumn1 = new GlacialComponents.Controls.GLColumn();
GlacialComponents.Controls.GLItem glItem1 = new GlacialComponents.Controls.GLItem();
GlacialComponents.Controls.GLSubItem glSubItem1 = new GlacialComponents.Controls.GLSubItem();
this.partnerList = new GlacialComponents.Controls.GlacialList();
this.selectedPartners = new System.Windows.Forms.TextBox();
this.okbtn = new System.Windows.Forms.Button();
this.cancelbtn = new System.Windows.Forms.Button();
this.titleText = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// partnerList
//
this.partnerList.AllowColumnResize = false;
this.partnerList.AllowMultiselect = true;
this.partnerList.AlternateBackground = System.Drawing.Color.DarkGreen;
this.partnerList.AlternatingColors = false;
this.partnerList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.partnerList.AutoHeight = true;
this.partnerList.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.partnerList.BackgroundStretchToFit = true;
glColumn1.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None;
glColumn1.CheckBoxes = true;
glColumn1.ImageIndex = -1;
glColumn1.Name = "PartnerName";
glColumn1.NumericSort = false;
glColumn1.Text = "";
glColumn1.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
glColumn1.Width = 100;
this.partnerList.Columns.AddRange(new GlacialComponents.Controls.GLColumn[] {
glColumn1});
this.partnerList.ControlStyle = GlacialComponents.Controls.GLControlStyles.Normal;
this.partnerList.ForeColor = System.Drawing.Color.Black;
this.partnerList.FullRowSelect = true;
this.partnerList.GridColor = System.Drawing.Color.LightGray;
this.partnerList.GridLines = GlacialComponents.Controls.GLGridLines.gridBoth;
this.partnerList.GridLineStyle = GlacialComponents.Controls.GLGridLineStyles.gridNone;
this.partnerList.GridTypes = GlacialComponents.Controls.GLGridTypes.gridOnExists;
this.partnerList.HeaderHeight = 0;
this.partnerList.HeaderVisible = false;
this.partnerList.HeaderWordWrap = false;
this.partnerList.HotColumnTracking = false;
this.partnerList.HotItemTracking = true;
this.partnerList.HotTrackingColor = System.Drawing.Color.LightGray;
this.partnerList.HoverEvents = false;
this.partnerList.HoverTime = 1;
this.partnerList.ImageList = null;
this.partnerList.ItemHeight = 17;
glItem1.BackColor = System.Drawing.Color.White;
glItem1.ForeColor = System.Drawing.Color.Black;
glItem1.RowBorderColor = System.Drawing.Color.Black;
glItem1.RowBorderSize = 0;
glSubItem1.BackColor = System.Drawing.Color.Empty;
glSubItem1.Checked = false;
glSubItem1.ForceText = false;
glSubItem1.ForeColor = System.Drawing.Color.Black;
glSubItem1.ImageAlignment = System.Windows.Forms.HorizontalAlignment.Left;
glSubItem1.ImageIndex = -1;
glSubItem1.Text = "Test";
glItem1.SubItems.AddRange(new GlacialComponents.Controls.GLSubItem[] {
glSubItem1});
glItem1.Text = "Test";
this.partnerList.Items.AddRange(new GlacialComponents.Controls.GLItem[] {
glItem1});
this.partnerList.ItemWordWrap = false;
this.partnerList.Location = new System.Drawing.Point(13, 26);
this.partnerList.Name = "partnerList";
this.partnerList.Selectable = true;
this.partnerList.SelectedTextColor = System.Drawing.Color.White;
this.partnerList.SelectionColor = System.Drawing.Color.DarkBlue;
this.partnerList.ShowBorder = true;
this.partnerList.ShowFocusRect = true;
this.partnerList.Size = new System.Drawing.Size(359, 286);
this.partnerList.SortType = GlacialComponents.Controls.SortTypes.InsertionSort;
this.partnerList.SuperFlatHeaderColor = System.Drawing.Color.White;
this.partnerList.TabIndex = 0;
this.partnerList.Click += new System.EventHandler(this.ItemClicked);
this.partnerList.DoubleClick += new System.EventHandler(this.ItemDoubleClick);
//
// selectedPartners
//
this.selectedPartners.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.selectedPartners.Location = new System.Drawing.Point(13, 319);
this.selectedPartners.Multiline = true;
this.selectedPartners.Name = "selectedPartners";
this.selectedPartners.Size = new System.Drawing.Size(359, 103);
this.selectedPartners.TabIndex = 1;
//
// okbtn
//
this.okbtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.okbtn.DialogResult = System.Windows.Forms.DialogResult.OK;
this.okbtn.Location = new System.Drawing.Point(215, 428);
this.okbtn.Name = "okbtn";
this.okbtn.Size = new System.Drawing.Size(75, 23);
this.okbtn.TabIndex = 2;
this.okbtn.Text = "OK";
this.okbtn.UseVisualStyleBackColor = true;
this.okbtn.Click += new System.EventHandler(this.okbtn_Click);
//
// cancelbtn
//
this.cancelbtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.cancelbtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelbtn.Location = new System.Drawing.Point(297, 429);
this.cancelbtn.Name = "cancelbtn";
this.cancelbtn.Size = new System.Drawing.Size(75, 23);
this.cancelbtn.TabIndex = 3;
this.cancelbtn.Text = "Mégse";
this.cancelbtn.UseVisualStyleBackColor = true;
//
// titleText
//
this.titleText.AutoSize = true;
this.titleText.Location = new System.Drawing.Point(13, 7);
this.titleText.Name = "titleText";
this.titleText.Size = new System.Drawing.Size(53, 13);
this.titleText.TabIndex = 4;
this.titleText.Text = "Unknown";
//
// SelectPartnerForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.LightSkyBlue;
this.ClientSize = new System.Drawing.Size(384, 462);
this.Controls.Add(this.titleText);
this.Controls.Add(this.cancelbtn);
this.Controls.Add(this.okbtn);
this.Controls.Add(this.selectedPartners);
this.Controls.Add(this.partnerList);
this.Name = "SelectPartnerForm";
this.Text = "Partnerválasztás";
this.ResizeEnd += new System.EventHandler(this.FormResizeFinish);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private GlacialComponents.Controls.GlacialList partnerList;
private System.Windows.Forms.TextBox selectedPartners;
private System.Windows.Forms.Button okbtn;
private System.Windows.Forms.Button cancelbtn;
private System.Windows.Forms.Label titleText;
}
}

View file

@ -0,0 +1,93 @@
using GlacialComponents.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
public partial class SelectPartnerForm : ThemedForms
{
public SelectPartnerForm(ToolStripMenuItem SelectPartnerSender) //paraméter: 2014.09.06.
{
InitializeComponent();
this.Text = SelectPartnerSender.Text; //2014.02.28.
titleText.Text = SelectPartnerSender.Text;
cancelbtn.Text = Language.Translate(Language.StringID.Button_Cancel);
partnerList.Items.Clear();
for (int x = 0; x < UserInfo.KnownUsers.Count; x++) //Partners
{
if (!UserInfo.KnownUsers[x].IsPartner)
continue;
try
{
partnerList.Items.Add(UserInfo.KnownUsers[x].UserName);
}
catch (NullReferenceException)
{
break;
}
catch (Exception e)
{
MessageBox.Show(e.Message);
break;
}
}
partnerList.Columns[0].Width = partnerList.ClientSize.Width - 5;
}
private void FormResizeFinish(object sender, EventArgs e)
{
partnerList.Columns[0].Width = partnerList.ClientSize.Width - 5;
}
private void ItemClicked(object sender, EventArgs e)
{
for (int i = 0; i < partnerList.Items.Count; i++)
{
if (partnerList.Items[i].SubItems[0].Checked)
{
int p = selectedPartners.Text.IndexOf(partnerList.Items[i].SubItems[0].Text + ";");
if (p == -1)
{
selectedPartners.Text += partnerList.Items[i].SubItems[0].Text + ";";
}
}
else
{
int p = selectedPartners.Text.IndexOf(partnerList.Items[i].SubItems[0].Text + ";");
if (p != -1) //Eltávolitja a nem kiválasztott partner előfordulását a listából - Megcsinálom visszafelé is
selectedPartners.Text = selectedPartners.Text.Remove(p, partnerList.Items[i].SubItems[0].Text.Length + 1); //Eltávolitja a ;-t is
}
}
}
private void ItemDoubleClick(object sender, EventArgs e)
{
int a = partnerList.HotItemIndex;
if (partnerList.Items[a].SubItems[0].Checked)
partnerList.Items[a].SubItems[0].Checked = false;
else
partnerList.Items[a].SubItems[0].Checked = true;
ItemClicked(sender, e);
}
public string[] Partners;
private void okbtn_Click(object sender, EventArgs e)
{
while (selectedPartners.Text.Contains(' '))
{ //Eltávolitja a szóközöket
int x = selectedPartners.Text.IndexOf(' ');
selectedPartners.Text.Remove(x, 1);
}
Partners = selectedPartners.Text.Split(';');
}
}
}

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View file

@ -0,0 +1,136 @@
namespace MSGer.tk
{
partial class SelectShownImage
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.button1 = new System.Windows.Forms.Button();
this.cancelbtn = new System.Windows.Forms.Button();
this.okbtn = new System.Windows.Forms.Button();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label1.Location = new System.Drawing.Point(13, 13);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(191, 29);
this.label1.TabIndex = 0;
this.label1.Text = "Kép kiválasztása";
//
// pictureBox1
//
this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.pictureBox1.Location = new System.Drawing.Point(18, 59);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(164, 164);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 1;
this.pictureBox1.TabStop = false;
//
// button1
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.button1.Location = new System.Drawing.Point(197, 59);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 2;
this.button1.Text = "Módosítás...";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// cancelbtn
//
this.cancelbtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.cancelbtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelbtn.Location = new System.Drawing.Point(197, 269);
this.cancelbtn.Name = "cancelbtn";
this.cancelbtn.Size = new System.Drawing.Size(75, 23);
this.cancelbtn.TabIndex = 3;
this.cancelbtn.Text = "Mégse";
this.cancelbtn.UseVisualStyleBackColor = true;
//
// okbtn
//
this.okbtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.okbtn.Location = new System.Drawing.Point(116, 269);
this.okbtn.Name = "okbtn";
this.okbtn.Size = new System.Drawing.Size(75, 23);
this.okbtn.TabIndex = 4;
this.okbtn.Text = "OK";
this.okbtn.UseVisualStyleBackColor = true;
this.okbtn.Click += new System.EventHandler(this.okbtn_Click);
//
// openFileDialog1
//
this.openFileDialog1.FileName = "openFileDialog1";
this.openFileDialog1.Filter = "BMP|*.bmp|GIF|*.gif|JPG|*.jpg;*.jpeg|PNG|*.png|TIFF|*.tif;*.tiff|All Image Types|" +
"*.bmp;*.jpg;*.jpeg;*.png;*.tif;*.tiff";
this.openFileDialog1.RestoreDirectory = true;
//
// SelectShownImage
//
this.AcceptButton = this.okbtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancelbtn;
this.ClientSize = new System.Drawing.Size(284, 304);
this.Controls.Add(this.okbtn);
this.Controls.Add(this.cancelbtn);
this.Controls.Add(this.button1);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.label1);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "SelectShownImage";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "SelectShownImage";
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button cancelbtn;
private System.Windows.Forms.Button okbtn;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
}
}

View file

@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
public partial class SelectShownImage : ThemedForms
{ //2015.05.24.
public SelectShownImage()
{
InitializeComponent();
label1.Text = Language.Translate(Language.StringID.SelectImage); //2015.06.06.
button1.Text = Language.Translate(Language.StringID.Modify); //2015.06.06.
this.Text = label1.Text; //2015.06.06.
cancelbtn.Text = Language.Translate(Language.StringID.Button_Cancel); //2015.06.06.
pictureBox1.Image = CurrentUser.Image.Clone() as Image; //2015.06.06.
openFileDialog1.Filter = "BMP|*.bmp|GIF|*.gif|JPG|*.jpg;*.jpeg|PNG|*.png|TIFF|*.tif;*.tiff|"
+ "All Graphics Types|*.bmp;*.jpg;*.jpeg;*.png;*.tif;*.tiff"; //2015.06.06.
}
private void button1_Click(object sender, EventArgs e)
{ //2015.06.06.
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
pictureBox1.Image = Program.LoadImageFromFile(openFileDialog1.FileName);
}
}
private void okbtn_Click(object sender, EventArgs e)
{ //2015.06.06.
CurrentUser.Image = pictureBox1.Image;
this.Close();
}
}
}

View file

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

155
MSGer.tk/Forms/SettingsForm.Designer.cs generated Normal file
View file

@ -0,0 +1,155 @@
namespace MSGer.tk
{
partial class SettingsForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
GlacialComponents.Controls.GLColumn glColumn1 = new GlacialComponents.Controls.GLColumn();
this.glacialList1 = new GlacialComponents.Controls.GlacialList();
this.panel1 = new System.Windows.Forms.Panel();
this.okbtn = new System.Windows.Forms.Button();
this.cancelbtn = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// glacialList1
//
this.glacialList1.AllowColumnResize = true;
this.glacialList1.AllowMultiselect = false;
this.glacialList1.AlternateBackground = System.Drawing.Color.DarkGreen;
this.glacialList1.AlternatingColors = false;
this.glacialList1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.glacialList1.AutoHeight = true;
this.glacialList1.BackColor = System.Drawing.Color.White;
this.glacialList1.BackgroundStretchToFit = true;
glColumn1.ActivatedEmbeddedType = GlacialComponents.Controls.GLActivatedEmbeddedTypes.None;
glColumn1.CheckBoxes = false;
glColumn1.ImageIndex = -1;
glColumn1.Name = "Column1";
glColumn1.NumericSort = false;
glColumn1.Text = "Column";
glColumn1.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
glColumn1.Width = 115;
this.glacialList1.Columns.AddRange(new GlacialComponents.Controls.GLColumn[] {
glColumn1});
this.glacialList1.ControlStyle = GlacialComponents.Controls.GLControlStyles.Normal;
this.glacialList1.ForeColor = System.Drawing.Color.Black;
this.glacialList1.FullRowSelect = true;
this.glacialList1.GridColor = System.Drawing.Color.LightGray;
this.glacialList1.GridLines = GlacialComponents.Controls.GLGridLines.gridBoth;
this.glacialList1.GridLineStyle = GlacialComponents.Controls.GLGridLineStyles.gridSolid;
this.glacialList1.GridTypes = GlacialComponents.Controls.GLGridTypes.gridOnExists;
this.glacialList1.HeaderHeight = 0;
this.glacialList1.HeaderVisible = false;
this.glacialList1.HeaderWordWrap = false;
this.glacialList1.HotColumnTracking = false;
this.glacialList1.HotItemTracking = true;
this.glacialList1.HotTrackingColor = System.Drawing.Color.LightGray;
this.glacialList1.HoverEvents = false;
this.glacialList1.HoverTime = 1;
this.glacialList1.ImageList = null;
this.glacialList1.ItemHeight = 17;
this.glacialList1.ItemWordWrap = false;
this.glacialList1.Location = new System.Drawing.Point(12, 12);
this.glacialList1.Name = "glacialList1";
this.glacialList1.Selectable = true;
this.glacialList1.SelectedTextColor = System.Drawing.Color.White;
this.glacialList1.SelectionColor = System.Drawing.Color.DarkBlue;
this.glacialList1.ShowBorder = true;
this.glacialList1.ShowFocusRect = false;
this.glacialList1.Size = new System.Drawing.Size(120, 418);
this.glacialList1.SortType = GlacialComponents.Controls.SortTypes.InsertionSort;
this.glacialList1.SuperFlatHeaderColor = System.Drawing.Color.White;
this.glacialList1.TabIndex = 0;
this.glacialList1.Text = "glacialList1";
this.glacialList1.Click += new System.EventHandler(this.glacialList1_Click);
//
// panel1
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel1.AutoScroll = true;
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Location = new System.Drawing.Point(139, 13);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(385, 391);
this.panel1.TabIndex = 1;
//
// okbtn
//
this.okbtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.okbtn.DialogResult = System.Windows.Forms.DialogResult.OK;
this.okbtn.Location = new System.Drawing.Point(368, 410);
this.okbtn.Name = "okbtn";
this.okbtn.Size = new System.Drawing.Size(75, 23);
this.okbtn.TabIndex = 2;
this.okbtn.Text = "OK";
this.okbtn.UseVisualStyleBackColor = true;
this.okbtn.Click += new System.EventHandler(this.okbtn_Click);
//
// cancelbtn
//
this.cancelbtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.cancelbtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelbtn.Location = new System.Drawing.Point(449, 410);
this.cancelbtn.Name = "cancelbtn";
this.cancelbtn.Size = new System.Drawing.Size(75, 23);
this.cancelbtn.TabIndex = 3;
this.cancelbtn.Text = "Mégse";
this.cancelbtn.UseVisualStyleBackColor = true;
this.cancelbtn.Click += new System.EventHandler(this.cancelbtn_Click);
//
// SettingsForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(536, 442);
this.Controls.Add(this.cancelbtn);
this.Controls.Add(this.okbtn);
this.Controls.Add(this.panel1);
this.Controls.Add(this.glacialList1);
this.Name = "SettingsForm";
this.Text = "SettingsForm";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.SettingsForm_FormClosed);
this.Controls.SetChildIndex(this.glacialList1, 0);
this.Controls.SetChildIndex(this.panel1, 0);
this.Controls.SetChildIndex(this.okbtn, 0);
this.Controls.SetChildIndex(this.cancelbtn, 0);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private GlacialComponents.Controls.GlacialList glacialList1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button okbtn;
private System.Windows.Forms.Button cancelbtn;
}
}

View file

@ -0,0 +1,112 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
public partial class SettingsForm : ThemedForms
{
public static bool ApplyingSettings = false;
public SettingsForm()
{
InitializeComponent();
this.Text = Language.Translate(Language.StringID.Settings);
ActivePanel = new SettingsPanelPersonal(); //2015.05.23.
ShownPanels.Add(ActivePanel); //2015.05.23.
glacialList1.Items.Add(Language.Translate(Language.StringID.Settings_Personal));
glacialList1.Items.Add(Language.Translate(Language.StringID.Settings_Layout));
glacialList1.Items.Add(Language.Translate(Language.StringID.Settings_Packs));
glacialList1.Items.Add(Language.Translate(Language.StringID.Settings_Network));
}
private List<SettingsPanel> ShownPanels = new List<SettingsPanel>();
private void glacialList1_Click(object sender, EventArgs e)
{
int tmp = glacialList1.HotItemIndex;
if (tmp > glacialList1.Items.Count)
return;
switch (tmp)
{
case 0:
//Személyes
SetActivePanel<SettingsPanelPersonal>(); //2015.05.23.
break;
case 1:
//Kinézet
SetActivePanel<SettingsPanelLayout>(); //2015.05.23.
break;
case 2:
//Csomagok
SetActivePanel<SettingsPanelPacks>(); //2015.05.23.
break;
case 3:
//Hálózat
SetActivePanel<SettingsPanelNetwork>(); //2015.05.24.
break;
}
}
private void SetActivePanel<T>() where T : SettingsPanel
{
T panel = null; //2015.05.23.
panel = ShownPanels.FirstOrDefault(entry => entry.GetType() == typeof(T)) as T; //Single-->FirstOrDefault: 2015.06.06.
if (panel == null)
{ //2015.05.23.
ActivePanel = Activator.CreateInstance<T>();
ShownPanels.Add(ActivePanel);
}
else
ActivePanel = panel;
}
private SettingsPanel activepanel;
private SettingsPanel ActivePanel
{ //2015.05.23.
get
{
return activepanel;
}
set
{
if (activepanel != null)
activepanel.Hide();
activepanel = value;
panel1.Controls.Add(activepanel);
activepanel.Dock = DockStyle.Fill;
activepanel.Show();
}
}
private void okbtn_Click(object sender, EventArgs e)
{
ApplyingSettings = true;
bool reopen = false;
foreach (SettingsPanel panel in ShownPanels) //2015.05.23.
if (panel.SaveSettings()) //2015.05.23.
reopen = true; //2015.05.23.
if (reopen)
{
ChatPanel.ReopenChatWindows(true);
Program.MainF.ChangeChatWindowLayout(true); //2015.06.14.
}
ApplyingSettings = false;
this.Close();
}
private void cancelbtn_Click(object sender, EventArgs e)
{
this.Close();
}
private void SettingsForm_FormClosed(object sender, FormClosedEventArgs e)
{
Program.SettingsF = null;
}
}
}

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View file

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
public class SettingsPanel : UserControl
{
/// <summary>
/// SaveSettings
/// </summary>
/// <returns>Reopen</returns>
public virtual bool SaveSettings()
{
throw new InvalidOperationException("SaveSettings is not overriden."); //2015.05.23.
}
}
}

View file

@ -0,0 +1,87 @@
namespace MSGer.tk
{
partial class SettingsPanelLayout
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.chatwindowTabs = new System.Windows.Forms.CheckBox();
this.chatwindow = new System.Windows.Forms.CheckBox();
this.layout = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// chatwindowTabs
//
this.chatwindowTabs.AutoSize = true;
this.chatwindowTabs.Enabled = false;
this.chatwindowTabs.Location = new System.Drawing.Point(51, 69);
this.chatwindowTabs.Name = "chatwindowTabs";
this.chatwindowTabs.Size = new System.Drawing.Size(194, 17);
this.chatwindowTabs.TabIndex = 12;
this.chatwindowTabs.Text = "A beszélgetések fülekbe rendezése";
this.chatwindowTabs.UseVisualStyleBackColor = true;
//
// chatwindow
//
this.chatwindow.AutoSize = true;
this.chatwindow.Location = new System.Drawing.Point(13, 45);
this.chatwindow.Name = "chatwindow";
this.chatwindow.Size = new System.Drawing.Size(272, 17);
this.chatwindow.TabIndex = 11;
this.chatwindow.Text = "A beszélgetések jelenjenek meg külön ablak(ok)ban";
this.chatwindow.UseVisualStyleBackColor = true;
//
// layout
//
this.layout.AutoSize = true;
this.layout.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.layout.Location = new System.Drawing.Point(7, 10);
this.layout.Name = "layout";
this.layout.Size = new System.Drawing.Size(105, 31);
this.layout.TabIndex = 10;
this.layout.Text = "Kinézet";
//
// SettingsPanelLayout
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.chatwindowTabs);
this.Controls.Add(this.chatwindow);
this.Controls.Add(this.layout);
this.Name = "SettingsPanelLayout";
this.Size = new System.Drawing.Size(346, 122);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.CheckBox chatwindowTabs;
private System.Windows.Forms.CheckBox chatwindow;
private System.Windows.Forms.Label layout;
}
}

View file

@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MSGer.tk
{
public partial class SettingsPanelLayout : SettingsPanel
{ //2015.05.23.
public SettingsPanelLayout()
{
InitializeComponent();
layout.Text = Language.Translate(Language.StringID.Settings_Layout);
chatwindow.Text = Language.Translate(Language.StringID.Settings_ChatWindow);
chatwindowTabs.Text = Language.Translate(Language.StringID.Settings_ChatWindowTabs);
chatwindow.Checked = (Storage.Settings[SettingType.ChatWindow] == "1");
}
/// <summary>
/// SaveSettings
/// </summary>
/// <returns>reopen</returns>
public override bool SaveSettings()
{
if (chatwindow.Checked && Storage.Settings[SettingType.ChatWindow] == "0")
{
Storage.Settings[SettingType.ChatWindow] = "1";
return true;
}
else if (!chatwindow.Checked && Storage.Settings[SettingType.ChatWindow] == "1")
{
Storage.Settings[SettingType.ChatWindow] = "0";
return true;
}
return false;
}
}
}

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

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