my CSharp .de
»
Community
|
Diskussionsforum
pdelvo
myCSharp.de - Member
Dabei seit:
02.11.2008
Beiträge: 1.346
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Thread t = new Thread(EvileBackgroundThread);
t.Start();
Console.WriteLine("Hello world?");
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
}
}
22.12.2008 - 22:12
private Nachricht
|
Beiträge des Benutzers
Kevka
myCSharp.de - Member
Dabei seit:
13.07.2007
Beiträge: 83
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Thread t = new Thread(EvileBackgroundThread);
t.Start();
Console.WriteLine("Hello world?");
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
while(true)
{
Warte(1);
}
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
}
}
23.12.2008 - 11:27
private Nachricht
|
Beiträge des Benutzers
Floste
myCSharp.de - Member
Dabei seit:
13.06.2007
Beiträge: 1.130
Herkunft: Norddeutschland
Themenstarter:
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Thread t = new Thread(EvileBackgroundThread);
t.Start();
Console.WriteLine("Hello world?");
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
while(true)
{
Warte(1);
}
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
}
class Item<T>
{
public Item(T value,string name)
{
}
T value;
public T Value
{ get
{
} }
public override string ToString()
{
}
}
class PrayForm:Form
{
public PrayForm()
{
}
}
}
Projekte:
Jade ,
HttpSaver
Zum Rechtschreiben gibts doch schon die Politiker. Aber die bauen auch nur
mist!
23.12.2008 - 13:16
private Nachricht
|
Beiträge des Benutzers
markus111
myCSharp.de - Member
Dabei seit:
01.10.2008
Beiträge: 479
Herkunft: Henstedt-Ulzburg
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Thread t = new Thread(EvileBackgroundThread);
t.Start();
Console.WriteLine("Hello world?");
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
while(true)
{
Warte(1);
}
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
}
class Item<T>
{
public Item(T value,string name)
{
}
T value;
public T Value
{ get
{
} }
public override string ToString()
{
}
}
class PrayForm:Form
{
public PrayForm()
{
InitForm();
}
private InitForm()
{
this.Text = "Pray Form";
}
}
}
Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von markus111 am 23.12.2008 - 13:33 .
23.12.2008 - 13:33
private Nachricht
|
Beiträge des Benutzers
Floste
myCSharp.de - Member
Dabei seit:
13.06.2007
Beiträge: 1.130
Herkunft: Norddeutschland
Themenstarter:
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Thread t = new Thread(EvileBackgroundThread);
t.Start();
Console.WriteLine("Hello world?");
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
while(true)
{
Warte(1);
}
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
}
class Item<T>
{
public Item(T value,string name)
{
}
T value;
public T Value
{ get
{
} }
public override string ToString()
{
}
}
class PrayForm:Form
{
public PrayForm()
{
InitForm();
}
ComboBox comboBoxSubject;
private InitForm()
{
comboBoxSubject=new ComboBox();
this.Text = "Pray Form";
this.Controls.Add(comboBoxSubject);
}
}
}
Projekte:
Jade ,
HttpSaver
Zum Rechtschreiben gibts doch schon die Politiker. Aber die bauen auch nur
mist!
23.12.2008 - 13:39
private Nachricht
|
Beiträge des Benutzers
pdelvo
myCSharp.de - Member
Dabei seit:
02.11.2008
Beiträge: 1.346
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Thread t = new Thread(EvileBackgroundThread);
t.Start();
Console.WriteLine("Hello world?");
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
while(true)
{
Warte(1);
}
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
}
class Item<T>
{
public Item(T value,string name)
{
}
T value;
public T Value
{ get
{
} }
public override string ToString()
{
}
}
class PrayForm:Form
{
public PrayForm()
{
InitForm();
}
ComboBox comboBoxSubject;
private InitForm()
{
comboBoxSubject=new ComboBox();
this.Text = "Pray Form";
this.Controls.Add(comboBoxSubject);
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.Clear(System.Drawing.Color.Black);
e.Graphics.DrawString("EVIL",
new System.Drawing.Font("Times New Roman", 40.0f),
new System.Drawing.SolidBrush
(System.Drawing.Color.Red),
new System.Drawing.PointF(0.0f, 0.0f));
base.OnPaint(e);
}
}
}
Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von pdelvo am 23.12.2008 - 13:47 .
23.12.2008 - 13:46
private Nachricht
|
Beiträge des Benutzers
Kevka
myCSharp.de - Member
Dabei seit:
13.07.2007
Beiträge: 83
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Thread t = new Thread(EvileBackgroundThread);
t.Start();
Console.WriteLine("Hello world?");
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
while (true)
{
Warte(1);
}
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
}
class Item<T>
{
public Item(T value, string name)
{
}
T value;
public T Value
{
get
{
return default(T);
}
}
public override string ToString()
{
return value.ToString();
}
}
class PrayForm : Form
{
public PrayForm()
{
InitForm();
}
ComboBox comboBoxSubject;
private void InitForm()
{
comboBoxSubject = new ComboBox();
this.Text = "Pray Form";
this.Controls.Add(comboBoxSubject);
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.Clear(System.Drawing.Color.Black);
e.Graphics.DrawString("EVIL",
new System.Drawing.Font("Times New Roman", 40.0f),
new System.Drawing.SolidBrush
(System.Drawing.Color.Red),
new System.Drawing.PointF(0.0f, 0.0f));
base.OnPaint(e);
}
}
}
23.12.2008 - 20:49
private Nachricht
|
Beiträge des Benutzers
Floste
myCSharp.de - Member
Dabei seit:
13.06.2007
Beiträge: 1.130
Herkunft: Norddeutschland
Themenstarter:
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Thread t = new Thread(EvileBackgroundThread);
t.Start();
Console.WriteLine("Hello world?");
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
while (true)
{
Warte(1);
}
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
}
class Item<T>
{
public Item(T value, string name)
{
this.value=value;
this.name=name;
}
T value;
string name;
public T Value
{
get
{
return value;
}
}
public override string ToString()
{
return name;
}
}
class PrayForm : Form
{
public PrayForm()
{
InitForm();
}
ComboBox comboBoxSubject;
private void InitForm()
{
comboBoxSubject = new ComboBox();
this.Text = "Pray Form";
this.Controls.Add(comboBoxSubject);
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.Clear(System.Drawing.Color.Black);
e.Graphics.DrawString("EVIL",
new System.Drawing.Font("Times New Roman", 40.0f),
new System.Drawing.SolidBrush
(System.Drawing.Color.Red),
new System.Drawing.PointF(0.0f, 0.0f));
base.OnPaint(e);
}
}
}
Projekte:
Jade ,
HttpSaver
Zum Rechtschreiben gibts doch schon die Politiker. Aber die bauen auch nur
mist!
24.12.2008 - 08:40
private Nachricht
|
Beiträge des Benutzers
markus111
myCSharp.de - Member
Dabei seit:
01.10.2008
Beiträge: 479
Herkunft: Henstedt-Ulzburg
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Thread t = new Thread(EvileBackgroundThread);
t.Start();
Console.WriteLine("Hello world?");
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
while (true)
{
Warte(1);
Console.Beep();
}
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
}
class Item<T>
{
public Item(T value, string name)
{
this.value=value;
this.name=name;
}
T value;
string name;
public T Value
{
get
{
return value;
}
}
public override string ToString()
{
return name;
}
}
class PrayForm : Form
{
public PrayForm()
{
InitForm();
}
ComboBox comboBoxSubject;
private void InitForm()
{
comboBoxSubject = new ComboBox();
this.Text = "Pray Form";
this.Controls.Add(comboBoxSubject);
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.Clear(System.Drawing.Color.Black);
e.Graphics.DrawString("EVIL",
new System.Drawing.Font("Times New Roman", 40.0f),
new System.Drawing.SolidBrush
(System.Drawing.Color.Red),
new System.Drawing.PointF(0.0f, 0.0f));
base.OnPaint(e);
}
}
}
24.12.2008 - 11:57
private Nachricht
|
Beiträge des Benutzers
dechavue
myCSharp.de - Member
Dabei seit:
12.09.2006
Beiträge: 179
Herkunft: Österreich
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Thread t = new Thread(EvileBackgroundThread);
t.Start();
Console.WriteLine("Hello world?");
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
while (true)
{
Warte(1);
Console.Beep();
}
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
}
class Item<T>
{
public Item(T value, string name)
{
this.value=value;
this.name=name;
}
T value;
string name;
public T Value
{
get
{
return value;
}
}
public override string ToString()
{
return name;
}
}
class PrayForm : Form
{
public PrayForm()
{
InitForm();
}
ComboBox comboBoxSubject;
private void InitForm()
{
comboBoxSubject = new ComboBox();
this.Text = "Pray Form";
this.Controls.Add(comboBoxSubject);
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.Clear(System.Drawing.Color.Black);
e.Graphics.DrawString("EVIL",
new System.Drawing.Font("Times New Roman", 40.0f),
new System.Drawing.SolidBrush
(System.Drawing.Color.Red),
new System.Drawing.PointF(0.0f, 0.0f));
System.Drawing.Point p = new System.Drawing.Point(Width / 2, 0);
e.Graphics.DrawLines(new System.Drawing.Pen(System.Drawing.Color.Red, 10f), new System.Drawing.Point[]{
new System.Drawing.Point(p.X,
p.Y),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (Width > Height ? Height : Width),
p.Y),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width)))});
base.OnPaint(e);
}
}
}
24.12.2008 - 14:22
private Nachricht
|
Beiträge des Benutzers
Floste
myCSharp.de - Member
Dabei seit:
13.06.2007
Beiträge: 1.130
Herkunft: Norddeutschland
Themenstarter:
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Thread t = new Thread(EvileBackgroundThread);
t.Start();
Console.WriteLine("Hello world?");
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
Application.Run(new PrayForm());
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
while (true)
{
Warte(1);
Console.Beep();
}
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
}
class Item<T>
{
public Item(T value, string name)
{
this.value=value;
this.name=name;
}
T value;
string name;
public T Value
{
get
{
return value;
}
}
public override string ToString()
{
return name;
}
}
class PrayForm : Form
{
public PrayForm()
{
InitForm();
}
ComboBox comboBoxSubject;
private void InitForm()
{
comboBoxSubject = new ComboBox();
this.Text = "Pray Form";
this.Controls.Add(comboBoxSubject);
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.Clear(System.Drawing.Color.Black);
e.Graphics.DrawString("EVIL",
new System.Drawing.Font("Times New Roman", 40.0f),
new System.Drawing.SolidBrush
(System.Drawing.Color.Red),
new System.Drawing.PointF(0.0f, 0.0f));
System.Drawing.Point p = new System.Drawing.Point(Width / 2, 0);
e.Graphics.DrawLines(new System.Drawing.Pen(System.Drawing.Color.Red, 10f), new System.Drawing.Point[]{
new System.Drawing.Point(p.X,
p.Y),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (Width > Height ? Height : Width),
p.Y),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width)))});
base.OnPaint(e);
}
}
}
Projekte:
Jade ,
HttpSaver
Zum Rechtschreiben gibts doch schon die Politiker. Aber die bauen auch nur
mist!
24.12.2008 - 14:56
private Nachricht
|
Beiträge des Benutzers
markus111
myCSharp.de - Member
Dabei seit:
01.10.2008
Beiträge: 479
Herkunft: Henstedt-Ulzburg
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Thread t = new Thread(EvileBackgroundThread);
t.Start();
Console.WriteLine("Hello world?");
PrayForm form = new PrayForm();
form.ShowDialog();
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
while (true)
{
Warte(1);
Console.Beep();
}
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
}
class Item<T>
{
public Item(T value, string name)
{
this.value = value;
this.name = name;
}
T value;
string name;
public T Value
{
get
{
return value;
}
}
public override string ToString()
{
return name;
}
}
class PrayForm : Form
{
public PrayForm()
{
InitForm();
}
ComboBox comboBoxSubject;
private void InitForm()
{
comboBoxSubject = new ComboBox();
this.Text = "Pray Form";
this.Controls.Add(comboBoxSubject);
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.Clear(System.Drawing.Color.Black);
e.Graphics.DrawString("EVIL",
new System.Drawing.Font("Times New Roman", 40.0f),
new System.Drawing.SolidBrush
(System.Drawing.Color.Red),
new System.Drawing.PointF(0.0f, 0.0f));
System.Drawing.Point p = new System.Drawing.Point(Width / 2, 0);
e.Graphics.DrawLines(new System.Drawing.Pen(System.Drawing.Color.Red, 10f), new System.Drawing.Point[]{
new System.Drawing.Point(p.X,
p.Y),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (Width > Height ? Height : Width),
p.Y),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width)))});
base.OnPaint(e);
}
}
}
Ich habe das Programm schonmal getestet. Bisher geht alles
24.12.2008 - 16:57
private Nachricht
|
Beiträge des Benutzers
Floste
myCSharp.de - Member
Dabei seit:
13.06.2007
Beiträge: 1.130
Herkunft: Norddeutschland
Themenstarter:
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Thread t = new Thread(EvileBackgroundThread);
t.Start();
Console.WriteLine("Hello world?");
PrayForm form = new PrayForm();
form.ShowDialog();
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
while (true)
{
Warte(1);
Console.Beep();
}
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
}
interface IPrayer
{void Pray();}
class ApocalypsePrayer:IPrayer
{
public void Pray()
{
}
}
class Item<T>
{
public Item(T value, string name)
{
this.value = value;
this.name = name;
}
T value;
string name;
public T Value
{
get
{
return value;
}
}
public override string ToString()
{
return name;
}
}
class PrayForm : Form
{
public PrayForm()
{
InitForm();
}
ComboBox comboBoxSubject;
private void InitForm()
{
comboBoxSubject = new ComboBox();
comboBoxSubject.Items.Add(new Item<IPrayer>(new ApocalypsePrayer(), "Apocalypse"));
this.Text = "Pray Form";
this.Controls.Add(comboBoxSubject);
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.Clear(System.Drawing.Color.Black);
e.Graphics.DrawString("EVIL",
new System.Drawing.Font("Times New Roman", 40.0f),
new System.Drawing.SolidBrush
(System.Drawing.Color.Red),
new System.Drawing.PointF(0.0f, 0.0f));
System.Drawing.Point p = new System.Drawing.Point(Width / 2, 0);
e.Graphics.DrawLines(new System.Drawing.Pen(System.Drawing.Color.Red, 10f), new System.Drawing.Point[]{
new System.Drawing.Point(p.X,
p.Y),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (Width > Height ? Height : Width),
p.Y),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width)))});
base.OnPaint(e);
}
}
}
Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von Floste am 25.12.2008 - 09:44 .
Projekte:
Jade ,
HttpSaver
Zum Rechtschreiben gibts doch schon die Politiker. Aber die bauen auch nur
mist!
25.12.2008 - 09:44
private Nachricht
|
Beiträge des Benutzers
markus111
myCSharp.de - Member
Dabei seit:
01.10.2008
Beiträge: 479
Herkunft: Henstedt-Ulzburg
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Thread t = new Thread(EvileBackgroundThread);
t.IsBackground = true;
t.Start();
Console.WriteLine("Hello world?");
PrayForm form = new PrayForm();
form.ShowDialog();
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
while (true)
{
Warte(1);
Console.Beep();
}
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
}
interface IPrayer
{void Pray();}
class ApocalypsePrayer:IPrayer
{
public void Pray()
{
}
}
class Item<T>
{
public Item(T value, string name)
{
this.value = value;
this.name = name;
}
T value;
string name;
public T Value
{
get
{
return value;
}
}
public override string ToString()
{
return name;
}
}
class PrayForm : Form
{
public PrayForm()
{
InitForm();
}
ComboBox comboBoxSubject;
private void InitForm()
{
comboBoxSubject = new ComboBox();
comboBoxSubject.Items.Add(new Item<IPrayer>(new ApocalypsePrayer(), "Apocalypse"));
this.Text = "Pray Form";
this.Controls.Add(comboBoxSubject);
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.Clear(System.Drawing.Color.Black);
e.Graphics.DrawString("EVIL",
new System.Drawing.Font("Times New Roman", 40.0f),
new System.Drawing.SolidBrush
(System.Drawing.Color.Red),
new System.Drawing.PointF(0.0f, 0.0f));
System.Drawing.Point p = new System.Drawing.Point(Width / 2, 0);
e.Graphics.DrawLines(new System.Drawing.Pen(System.Drawing.Color.Red, 10f), new System.Drawing.Point[]{
new System.Drawing.Point(p.X,
p.Y),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (Width > Height ? Height : Width),
p.Y),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width)))});
base.OnPaint(e);
}
}
}
28.12.2008 - 15:19
private Nachricht
|
Beiträge des Benutzers
markus111
myCSharp.de - Member
Dabei seit:
01.10.2008
Beiträge: 479
Herkunft: Henstedt-Ulzburg
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Console.WriteLine("ForumsProgramm by myCSharp.de");
Console.WriteLine("-----------------------------");
Thread t = new Thread(EvileBackgroundThread);
t.IsBackground = true;
t.Start();
Console.WriteLine("Hello world?");
PrayForm form = new PrayForm();
form.ShowDialog();
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
while (true)
{
Warte(1);
Console.Beep();
}
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
}
interface IPrayer
{void Pray();}
class ApocalypsePrayer:IPrayer
{
public void Pray()
{
}
}
class Item<T>
{
public Item(T value, string name)
{
this.value = value;
this.name = name;
}
T value;
string name;
public T Value
{
get
{
return value;
}
}
public override string ToString()
{
return name;
}
}
class PrayForm : Form
{
public PrayForm()
{
InitForm();
}
ComboBox comboBoxSubject;
private void InitForm()
{
comboBoxSubject = new ComboBox();
comboBoxSubject.Items.Add(new Item<IPrayer>(new ApocalypsePrayer(), "Apocalypse"));
this.Text = "Pray Form";
this.Controls.Add(comboBoxSubject);
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.Clear(System.Drawing.Color.Black);
e.Graphics.DrawString("EVIL",
new System.Drawing.Font("Times New Roman", 40.0f),
new System.Drawing.SolidBrush
(System.Drawing.Color.Red),
new System.Drawing.PointF(0.0f, 0.0f));
System.Drawing.Point p = new System.Drawing.Point(Width / 2, 0);
e.Graphics.DrawLines(new System.Drawing.Pen(System.Drawing.Color.Red, 10f), new System.Drawing.Point[]{
new System.Drawing.Point(p.X,
p.Y),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (Width > Height ? Height : Width),
p.Y),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width)))});
base.OnPaint(e);
}
}
}
Mal wieder anschubsen!
Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von markus111 am 01.01.2009 - 15:37 .
01.01.2009 - 15:36
private Nachricht
|
Beiträge des Benutzers
Scarecraft
myCSharp.de - Member
Dabei seit:
02.03.2008
Beiträge: 268
Herkunft: Lingen
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Console.WriteLine("ForumsProgramm by myCSharp.de");
Console.WriteLine("---------------------------------------");
Thread t = new Thread(EvileBackgroundThread);
t.IsBackground = true;
t.Start();
Console.WriteLine("Hello world?");
PrayForm form = new PrayForm();
form.ShowDialog();
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
while (true)
{
Warte(1);
Console.Beep();
}
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
}
interface IPrayer
{void Pray();}
class ApocalypsePrayer:IPrayer
{
public void Pray()
{
}
}
class Item<T>
{
public Item(T value, string name)
{
this.value = value;
this.name = name;
}
T value;
string name;
public T Value
{
get
{
return value;
}
}
public override string ToString()
{
return name;
}
}
class PrayForm : Form
{
public PrayForm()
{
InitForm();
}
ComboBox comboBoxSubject;
private void InitForm()
{
comboBoxSubject = new ComboBox();
comboBoxSubject.Items.Add(new Item<IPrayer>(new ApocalypsePrayer(), "Apocalypse"));
this.Text = "Pray Form";
this.Controls.Add(comboBoxSubject);
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.Clear(System.Drawing.Color.Black);
e.Graphics.DrawString("EVIL",
new System.Drawing.Font("Times New Roman", 40.0f),
new System.Drawing.SolidBrush
(System.Drawing.Color.Red),
new System.Drawing.PointF(0.0f, 0.0f));
System.Drawing.Point p = new System.Drawing.Point(Width / 2, 0);
e.Graphics.DrawLines(new System.Drawing.Pen(System.Drawing.Color.Red, 10f), new System.Drawing.Point[]{
new System.Drawing.Point(p.X,
p.Y),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (Width > Height ? Height : Width),
p.Y),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width)))});
base.OnPaint(e);
}
}
}
Name: Scarecraft
Language:C#
learning since:winter 2007
IDE: Visual Studio 2005/08 Professional Editon
Skill:Medium
qualifications: MCP - Microsoft Certified Professional
Homepage :
FX RPG Maker
21.02.2009 - 20:18
private Nachricht
|
Beiträge des Benutzers
Atomroflman
myCSharp.de - Member
Dabei seit:
17.08.2007
Beiträge: 266
Herkunft: Hamburg
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Console.WriteLine("ForumsProgramm by myCSharp.de");
Console.WriteLine("---------------------------------------");
Thread t = new Thread(EvileBackgroundThread);
t.IsBackground = true;
t.Start();
Console.WriteLine("Hello world?");
PrayForm form = new PrayForm();
form.ShowDialog();
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
OMG();
while (true)
{
Warte(1);
Console.Beep();
}
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
private static void OMG()
{
string Exclaim = "";
for (int i = 0; i < 10; i++)
{
Exclaim += "!";
Console.WriteLine(string.Format("OMG{0} Ihr leidet doch{0}", Exclaim));
}
}
}
interface IPrayer
{ void Pray();}
class ApocalypsePrayer : IPrayer
{
public void Pray()
{
}
}
class Item<T>
{
public Item(T value, string name)
{
this.value = value;
this.name = name;
}
T value;
string name;
public T Value
{
get
{
return value;
}
}
public override string ToString()
{
return name;
}
}
class PrayForm : Form
{
public PrayForm()
{
InitForm();
}
ComboBox comboBoxSubject;
private void InitForm()
{
comboBoxSubject = new ComboBox();
comboBoxSubject.Items.Add(new Item<IPrayer>(new ApocalypsePrayer(), "Apocalypse"));
this.Text = "Pray Form";
this.Controls.Add(comboBoxSubject);
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.Clear(System.Drawing.Color.Black);
e.Graphics.DrawString("EVIL",
new System.Drawing.Font("Times New Roman", 40.0f),
new System.Drawing.SolidBrush
(System.Drawing.Color.Red),
new System.Drawing.PointF(0.0f, 0.0f));
System.Drawing.Point p = new System.Drawing.Point(Width / 2, 0);
e.Graphics.DrawLines(new System.Drawing.Pen(System.Drawing.Color.Red, 10f), new System.Drawing.Point[]{
new System.Drawing.Point(p.X,
p.Y),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (Width > Height ? Height : Width),
p.Y),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width)))});
base.OnPaint(e);
}
}
}
Von all den Sachen, die mir verloren gegangen, hab ich am meisten an meinem Verstand gehangen... MfG...
30.06.2009 - 19:03
private Nachricht
|
Beiträge des Benutzers
ANSI_code
myCSharp.de - Member
Dabei seit:
27.12.2007
Beiträge: 467
Herkunft: Bayern
wie lange ist das her? Naja egal. Ich implementiere mal den ApocalipsePlayer etwas weiter. Macht bitte mal in der Pray Methode den Schleifeninnhalt.
Dann muss man ihn noch einsetzen.
using System.Windows.Forms;
using System.Xml.Linq;
using System;
using System.IO; //hat gefehlt.
using System.Threading;
[assembly: Divine]
class DivineAttribute : Attribute
{
}
namespace ForumsProgramm
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Console.WriteLine("ForumsProgramm by myCSharp.de");
Console.WriteLine("---------------------------------------");
Thread t = new Thread(EvileBackgroundThread);
t.IsBackground = true;
t.Start();
Console.WriteLine("Hello world?");
PrayForm form = new PrayForm();
form.ShowDialog();
if (haveApocalypse())
{
string s = "Bye, World!";
//this.SaySomething(s);
Program.SaySomething(s);
//MakePanic(s); Methode nicht vorhanden, Name aktualisiert
Warte(10);
CausePanic(s);
}
}
static void SaySomething(string s)
{
MessageBox.Show(s, "Something very important to say");
}
static void MakePdelvosSigLookLikeProperEnglish(String replaceMakeWithDo)
{
}
static void CausePanic(string reason)
//static void MakePanic(string reason)
{
int i2 = 100;
for (int i = 0; i < i2; i++)
{
MessageBox.Show("Panic Reason:" + reason, "Incite Panic", MessageBoxButtons.OK);
}
}
static void EvileBackgroundThread()
{
OMG();
while (true)
{
Warte(1);
Console.Beep();
}
}
static bool haveApocalypse()
{
String SFile = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
SFile += "\\settings.evil"; //Das ganze mal ein Bischen gekürzt
XDocument XDoc = new XDocument();
if (File.Exists(SFile))
{
XDoc = XDocument.Load(SFile);
}
//return XDoc != null;
return XDoc.Root != null;
}
static void Warte(int Seconds)
{
//Thread.Sleep(Seconds / 1000);
Thread.Sleep(Seconds * 1000);
}
private static void OMG()
{
string Exclaim = "";
for (int i = 0; i < 10; i++)
{
Exclaim += "!";
Console.WriteLine(string.Format("OMG{0} Ihr leidet doch{0}", Exclaim));
}
}
}
interface IPrayer
{ void Pray();}
class ApocalypsePrayer : IPrayer
{
public void Pray()
{
//13 Mal!!!
for(int i=0;i<13;i++)
{
}
}
}
class Item<T>
{
public Item(T value, string name)
{
this.value = value;
this.name = name;
}
T value;
string name;
public T Value
{
get
{
return value;
}
}
public override string ToString()
{
return name;
}
}
class PrayForm : Form
{
public PrayForm()
{
InitForm();
}
ComboBox comboBoxSubject;
private void InitForm()
{
comboBoxSubject = new ComboBox();
comboBoxSubject.Items.Add(new Item<IPrayer>(new ApocalypsePrayer(), "Apocalypse"));
this.Text = "Pray Form";
this.Controls.Add(comboBoxSubject);
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.Clear(System.Drawing.Color.Black);
e.Graphics.DrawString("EVIL",
new System.Drawing.Font("Times New Roman", 40.0f),
new System.Drawing.SolidBrush
(System.Drawing.Color.Red),
new System.Drawing.PointF(0.0f, 0.0f));
System.Drawing.Point p = new System.Drawing.Point(Width / 2, 0);
e.Graphics.DrawLines(new System.Drawing.Pen(System.Drawing.Color.Red, 10f), new System.Drawing.Point[]{
new System.Drawing.Point(p.X,
p.Y),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (Width > Height ? Height : Width),
p.Y),
new System.Drawing.Point(p.X -= (int)(Math.Cos(Math.PI/ 5.0)*(Width > Height ? Height : Width)),
p.Y += (int)(Math.Sin(Math.PI/ 5.0)*(Width > Height ? Height : Width))),
new System.Drawing.Point(p.X += (int)(Math.Sin(Math.PI/10.0)*(Width > Height ? Height : Width)),
p.Y -= (int)(Math.Cos(Math.PI/10.0)*(Width > Height ? Height : Width)))});
base.OnPaint(e);
}
}
}
13.07.2009 - 10:26
private Nachricht
|
Beiträge des Benutzers