Path = "...\DS\a\o\Crt\mm\C#\1392\LrSh 1390 02 28 0812a\2008\HT"
filename = "Form1.Designer.cs"
codes:
//namespace HT
//{
// partial class Form1
// {
// /// <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();
// //
// // Form1
// //
// this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
// this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
// this.ClientSize = new System.Drawing.Size(771, 442);
// this.Name = "Form1";
// this.Text = "Form1";
// this.ResumeLayout(false);
// }
// #endregion
// }
//}
//namespace LrSh__1390_02_28_0812a
namespace HT
{
partial class Form1
{
/// <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.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(12, 51);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(100, 20);
this.textBox1.TabIndex = 0;
this.textBox1.Text = "1";
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(12, 77);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(100, 20);
this.textBox2.TabIndex = 1;
this.textBox2.Text = "3";
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(12, 116);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(100, 20);
this.textBox3.TabIndex = 2;
this.textBox3.Text = "6";
//
// textBox4
//
this.textBox4.Location = new System.Drawing.Point(12, 142);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(100, 20);
this.textBox4.TabIndex = 3;
this.textBox4.Text = "9";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(877, 476);
this.Controls.Add(this.textBox4);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.textBox1);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.Shown += new System.EventHandler(this.Form1_Shown);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox textBox4;
}
}
Path = "...\DS\a\o\Crt\mm\C#\1392\LrSh 1390 02 28 0812a\2008\HT"
filename = "Form1.cs"
codes:
//using System;
//using System.Collections.Generic;
//using System.ComponentModel;
//using System.Data;
//using System.Drawing;
//using System.Linq;
//using System.Text;
//using System.Windows.Forms;
//namespace HT
//{
// public partial class Form1 : Form
// {
// public Form1()
// {
// InitializeComponent();
// }
// }
//}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
//namespace LrSh__1390_02_28_0812a
namespace HT
{
public partial class Form1 : Form
{
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
Timer LrSh_Timer = new Timer();
OpenFileDialog LrSh_OpenFileDialog_Instance1;
SaveFileDialog LrSh_SaveFileDialog_Instance1;
Bitmap LrSh_Bitmap;
//Boolean LrSh_Is_Form_Busy;
//Boolean LrSh_Typing_Mode;
//int LrSh_Is_Form_Busy_Counter;
Int32 iA;
double LrSh_One_Degree;
double LrSh_Theta;
//Int16 LrSh_Counter;
Pen LrSh_Pen = new Pen(Color.Brown);
//Color[,,] LrSh_Color;
//Rectangle LrSh_Rectangle;
Point[,] LrSh_Point;
//Size LrSh_Size;
Random LrSh_Random = new Random();
Boolean LrSh_Skip_Maker = false;
int LrSh_Skip_Maker_Counter = 0;
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
void LrSh_Method_Help()
{
DialogResult qqq = MessageBox.Show(this, "********** " + "F1 = Help = LrSh_Method_Help(); " + " **********", "Help MessageBox Number 1 : ", MessageBoxButtons.OKCancel, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
//if (qqq == System.Windows.Forms.DialogResult.Cancel ) goto ;
qqq = MessageBox.Show(this, "********** " + "Q = Quit = Exit = this.Close();" + " **********", "Help MessageBox Number 2 : ", MessageBoxButtons.OKCancel, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
qqq = MessageBox.Show(this, "********** " + "C = Choose this.BackColor = LrSh_Method_this_BackColor();" + " **********", "Help MessageBox Number 3 : ", MessageBoxButtons.OKCancel, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
qqq = MessageBox.Show(this, "********** " + "O = Open = LrSh_Method_Open(); = LrSh_OpenFileDialog_Instance1.ShowDialog(this);" + " **********", "Help MessageBox Number 3 : ", MessageBoxButtons.OKCancel, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
}
void LrSh_Method_this_BackColor()
{
ColorDialog LrSh_ColorDialog_Instance1;
LrSh_ColorDialog_Instance1 = new ColorDialog();
LrSh_ColorDialog_Instance1.ShowDialog(this);
this.BackColor = LrSh_ColorDialog_Instance1.Color;
}
void LrSh_Method_Open()
{
//LrSh_OpenFileDialog_Instance1
//= Application.ExecutablePath;
LrSh_OpenFileDialog_Instance1.InitialDirectory = Application.StartupPath;
LrSh_OpenFileDialog_Instance1.ShowDialog(this);
try
{
}
catch
{
MessageBox.Show("Sorry! Error on opening file.");
}
//LrSh_Method_Database_Fill();
}
void LrSh_Method_SaveAs()
{
LrSh_SaveFileDialog_Instance1.ShowDialog(this);
LrSh_Bitmap.Save(Application.StartupPath + "\\" + "Iran - LrSh " + System.DateTime.Now.Day.ToString() + " " + System.DateTime.Now.Hour.ToString() + " " + System.DateTime.Now.Minute.ToString() + " " + System.DateTime.Now.Second.ToString() + " " + System.DateTime.Now.Millisecond.ToString() + ".png", System.Drawing.Imaging.ImageFormat.Png);
MessageBox.Show("1 Picture was saved successfully in (( Application.StartupPath )) .", "1 Picture was saved successfully.");
}
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
this.Text = "Produced By : Alireza Shahaamat | Year (Hejri e Shamsi) : 1390 | F1 = Help ";
this.WindowState = FormWindowState.Maximized;
this.KeyPreview = true;
LrSh_Timer.Enabled = true;
LrSh_Timer.Interval = 1;
LrSh_Timer.Tick += new EventHandler(LrSh_Timer_Tick);
LrSh_OpenFileDialog_Instance1 = new OpenFileDialog();
LrSh_SaveFileDialog_Instance1 = new SaveFileDialog();
//LrSh_Bitmap = new Bitmap(this.Width, this.Height);
LrSh_Bitmap = new Bitmap(800, 800);
//LrSh_Color = Color.FromArgb(64, 8, 64, 64);
//LrSh_Color = Color.FromArgb(255, 160, 80, 0);
//LrSh_Color[] = Color.FromArgb(255, 160, 80, 0);
//LrSh_Pen = new Pen(LrSh_Color, 1);
LrSh_Point = new Point[2, 1000];
LrSh_One_Degree = Math.PI / 180;
LrSh_Theta = 0;
//LrSh_Point[1 - 1].X = this.Width / 2;
//LrSh_Point[1 - 1].Y = this.Height / 2;
//LrSh_Point[1 - 1].X = LrSh_Bitmap.Width / 2;
//LrSh_Point[1 - 1].Y = LrSh_Bitmap.Height / 2;
LrSh_Point[1 - 1, 1 - 1].X = 0;
LrSh_Point[1 - 1, 1 - 1].Y = 0;
LrSh_Point[2 - 1, 1 - 1].X = 0;
LrSh_Point[2 - 1, 1 - 1].Y = 0;
}
void LrSh_Timer_Tick(object sender, EventArgs e)
{
//try
{
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
for (iA = LrSh_Point.GetLength(2 - 1) - 1; iA >= 2 - 1; iA--)
{
LrSh_Point[1 - 1, iA].X = LrSh_Point[1 - 1, iA - 1].X;
LrSh_Point[1 - 1, iA].Y = LrSh_Point[1 - 1, iA - 1].Y;
LrSh_Point[2 - 1, iA].X = LrSh_Point[2 - 1, iA - 1].X;
LrSh_Point[2 - 1, iA].Y = LrSh_Point[2 - 1, iA - 1].Y;
}
//LrSh_Point[1 - 1].X = LrSh_Point[1 - 1].X + Convert.ToInt16(Math.Cos(LrSh_Theta + 0 * LrSh_One_Degree) * 2);
//LrSh_Point[1 - 1].Y = LrSh_Point[1 - 1].Y - Convert.ToInt16(Math.Sin(LrSh_Theta + 60 * LrSh_One_Degree) * 2);
LrSh_Point[1 - 1, 1 - 1].X = LrSh_Bitmap.Width / 2 + Convert.ToInt16(Math.Cos(Convert.ToDouble(textBox1.Text) * LrSh_Theta + 0 * LrSh_One_Degree) * 60);
LrSh_Point[1 - 1, 1 - 1].Y = LrSh_Bitmap.Height / 2 - Convert.ToInt16(Math.Sin(Convert.ToDouble(textBox2.Text) * LrSh_Theta + 0 * LrSh_One_Degree) * 60);
LrSh_Point[2 - 1, 1 - 1].X = LrSh_Point[1 - 1, 1 - 1].X + Convert.ToInt16(Math.Cos(Convert.ToDouble(textBox3.Text) * LrSh_Theta + 0 * LrSh_One_Degree) * 200);
LrSh_Point[2 - 1, 1 - 1].Y = LrSh_Point[1 - 1, 1 - 1].Y - Convert.ToInt16(Math.Sin(Convert.ToDouble(textBox4.Text) * LrSh_Theta + 0 * LrSh_One_Degree) * 200);
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//Graphics.FromImage(LrSh_Bitmap).Clear(Color.FromArgb(8, 64, 160, 192));
if (LrSh_Skip_Maker == false) Graphics.FromImage(LrSh_Bitmap).Clear(Color.FromArgb(255, 224, 255, 255));
//LrSh_Pen.Color = Color.FromArgb(128,0 , 128, LrSh_Random.Next(0,255));
LrSh_Pen.Color = Color.FromArgb(128, 0, 128, 160);
for (iA = 1 - 1; iA <= LrSh_Point.GetLength(2 - 1) - 1; iA++)
{
Graphics.FromImage(LrSh_Bitmap).DrawLine(LrSh_Pen, LrSh_Point[1 - 1, iA], LrSh_Point[2 - 1, iA]);
}
Graphics.FromHwnd(this.Handle).DrawImage(LrSh_Bitmap, 0, 0);
LrSh_Theta += LrSh_One_Degree * 0.1;
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
}
//catch
{
}
if (LrSh_Skip_Maker_Counter == 0)
LrSh_Skip_Maker = false;
else
LrSh_Skip_Maker = true;
LrSh_Skip_Maker_Counter = (LrSh_Skip_Maker_Counter + 1) % 1;
}
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
//if (LrSh_Typing_Mode == false)
{
switch (e.KeyCode)
{
case Keys.C:
LrSh_Method_this_BackColor();
break;
case Keys.Q:
this.Close();
break;
case Keys.O:
LrSh_Method_Open();
break;
case Keys.S:
LrSh_Method_SaveAs();
break;
case Keys.Enter:
LrSh_Timer.Enabled = !LrSh_Timer.Enabled;
break;
}
}
switch (e.KeyCode)
{
case Keys.F1:
LrSh_Method_Help();
break;
}
}
private void Form1_Shown(object sender, EventArgs e)
{
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
}
}
codes with more enter ( VBCRLF or "\n" or endl ) :
//using System;
//using System.Collections.Generic;
//using System.ComponentModel;
//using System.Data;
//using System.Drawing;
//using System.Linq;
//using System.Text;
//using System.Windows.Forms;
//namespace HT
//{
// public partial class Form1 : Form
// {
// public Form1()
// {
// InitializeComponent();
// }
// }
//}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
//namespace LrSh__1390_02_28_0812a
namespace HT
{
public partial class Form1 : Form
{
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
Timer LrSh_Timer = new Timer();
OpenFileDialog LrSh_OpenFileDialog_Instance1;
SaveFileDialog LrSh_SaveFileDialog_Instance1;
Bitmap LrSh_Bitmap;
//Boolean LrSh_Is_Form_Busy;
//Boolean LrSh_Typing_Mode;
//int LrSh_Is_Form_Busy_Counter;
Int32 iA;
double LrSh_One_Degree;
double LrSh_Theta;
//Int16 LrSh_Counter;
Pen LrSh_Pen = new Pen(Color.Brown);
//Color[,,] LrSh_Color;
//Rectangle LrSh_Rectangle;
Point[,] LrSh_Point;
//Size LrSh_Size;
Random LrSh_Random = new Random();
Boolean LrSh_Skip_Maker = false;
int LrSh_Skip_Maker_Counter = 0;
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
void LrSh_Method_Help()
{
DialogResult qqq = MessageBox.Show(
this, "********** " +
"F1 = Help = LrSh_Method_Help(); " +
" **********",
"Help MessageBox Number 1 : ",
MessageBoxButtons.OKCancel,
MessageBoxIcon.Information,
MessageBoxDefaultButton.Button1
);
//if (qqq == System.Windows.Forms.DialogResult.Cancel ) goto ;
qqq = MessageBox.Show(
this,
"********** " +
"Q = Quit = Exit = this.Close();" +
" **********",
"Help MessageBox Number 2 : ",
MessageBoxButtons.OKCancel,
MessageBoxIcon.Information,
MessageBoxDefaultButton.Button1
);
qqq = MessageBox.Show(
this,
"********** " +
"C = Choose this.BackColor = LrSh_Method_this_BackColor();" +
" **********",
"Help MessageBox Number 3 : ",
MessageBoxButtons.OKCancel,
MessageBoxIcon.Information,
MessageBoxDefaultButton.Button1
);
qqq = MessageBox.Show(
this,
"********** " +
"O = Open = LrSh_Method_Open(); = LrSh_OpenFileDialog_Instance1.ShowDialog(this);" +
" **********",
"Help MessageBox Number 3 : ",
MessageBoxButtons.OKCancel,
MessageBoxIcon.Information,
MessageBoxDefaultButton.Button1
);
}
void LrSh_Method_this_BackColor()
{
ColorDialog LrSh_ColorDialog_Instance1;
LrSh_ColorDialog_Instance1 = new ColorDialog();
LrSh_ColorDialog_Instance1.ShowDialog(this);
this.BackColor = LrSh_ColorDialog_Instance1.Color;
}
void LrSh_Method_Open()
{
//LrSh_OpenFileDialog_Instance1
//= Application.ExecutablePath;
LrSh_OpenFileDialog_Instance1.InitialDirectory = Application.StartupPath;
LrSh_OpenFileDialog_Instance1.ShowDialog(this);
try
{
}
catch
{
MessageBox.Show("Sorry! Error on opening file.");
}
//LrSh_Method_Database_Fill();
}
void LrSh_Method_SaveAs()
{
LrSh_SaveFileDialog_Instance1.ShowDialog(this);
LrSh_Bitmap.Save(
Application.StartupPath +
"\\" +
"Iran - LrSh " +
System.DateTime.Now.Day.ToString() +
" " +
System.DateTime.Now.Hour.ToString() +
" " +
System.DateTime.Now.Minute.ToString() +
" " +
System.DateTime.Now.Second.ToString() +
" " +
System.DateTime.Now.Millisecond.ToString() +
".png",
System.Drawing.Imaging.ImageFormat.Png
);
MessageBox.Show(
"1 Picture was saved successfully in (( Application.StartupPath )) .",
"1 Picture was saved successfully."
);
}
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
this.Text = "Produced By : Alireza Shahaamat | Year (Hejri e Shamsi) : 1390 | F1 = Help ";
this.WindowState = FormWindowState.Maximized;
this.KeyPreview = true;
LrSh_Timer.Enabled = true;
LrSh_Timer.Interval = 1;
LrSh_Timer.Tick += new EventHandler(LrSh_Timer_Tick);
LrSh_OpenFileDialog_Instance1 = new OpenFileDialog();
LrSh_SaveFileDialog_Instance1 = new SaveFileDialog();
//LrSh_Bitmap = new Bitmap(this.Width, this.Height);
LrSh_Bitmap = new Bitmap(800, 800);
//LrSh_Color = Color.FromArgb(64, 8, 64, 64);
//LrSh_Color = Color.FromArgb(255, 160, 80, 0);
//LrSh_Color[] = Color.FromArgb(255, 160, 80, 0);
//LrSh_Pen = new Pen(LrSh_Color, 1);
LrSh_Point = new Point[2, 1000];
LrSh_One_Degree = Math.PI / 180;
LrSh_Theta = 0;
//LrSh_Point[1 - 1].X = this.Width / 2;
//LrSh_Point[1 - 1].Y = this.Height / 2;
//LrSh_Point[1 - 1].X = LrSh_Bitmap.Width / 2;
//LrSh_Point[1 - 1].Y = LrSh_Bitmap.Height / 2;
LrSh_Point[1 - 1, 1 - 1].X = 0;
LrSh_Point[1 - 1, 1 - 1].Y = 0;
LrSh_Point[2 - 1, 1 - 1].X = 0;
LrSh_Point[2 - 1, 1 - 1].Y = 0;
}
void LrSh_Timer_Tick(object sender, EventArgs e)
{
//try
{
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
for (iA = LrSh_Point.GetLength(2 - 1) - 1; iA >= 2 - 1; iA--)
{
LrSh_Point[1 - 1, iA].X = LrSh_Point[1 - 1, iA - 1].X;
LrSh_Point[1 - 1, iA].Y = LrSh_Point[1 - 1, iA - 1].Y;
LrSh_Point[2 - 1, iA].X = LrSh_Point[2 - 1, iA - 1].X;
LrSh_Point[2 - 1, iA].Y = LrSh_Point[2 - 1, iA - 1].Y;
}
//LrSh_Point[1 - 1].X =
//LrSh_Point[1 - 1].X +
//Convert.ToInt16(Math.Cos(LrSh_Theta + 0 * LrSh_One_Degree) * 2);
//LrSh_Point[1 - 1].Y =
//LrSh_Point[1 - 1].Y -
//Convert.ToInt16(Math.Sin(LrSh_Theta + 60 * LrSh_One_Degree) * 2);
LrSh_Point[1 - 1, 1 - 1].X =
LrSh_Bitmap.Width / 2 +
Convert.ToInt16(
Math.Cos(
Convert.ToDouble(textBox1.Text) * LrSh_Theta +
0 * LrSh_One_Degree
) * 60
);
LrSh_Point[1 - 1, 1 - 1].Y =
LrSh_Bitmap.Height / 2 -
Convert.ToInt16(Math.Sin(
Convert.ToDouble(textBox2.Text) * LrSh_Theta +
0 * LrSh_One_Degree
) * 60
);
LrSh_Point[2 - 1, 1 - 1].X =
LrSh_Point[1 - 1, 1 - 1].X +
Convert.ToInt16(Math.Cos(
Convert.ToDouble(textBox3.Text) * LrSh_Theta +
0 * LrSh_One_Degree
) * 200
);
LrSh_Point[2 - 1, 1 - 1].Y =
LrSh_Point[1 - 1, 1 - 1].Y -
Convert.ToInt16(Math.Sin(
Convert.ToDouble(textBox4.Text) * LrSh_Theta +
0 * LrSh_One_Degree
) * 200
);
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//Graphics.FromImage(LrSh_Bitmap).Clear(Color.FromArgb(8, 64, 160, 192));
if (LrSh_Skip_Maker == false) Graphics.FromImage(LrSh_Bitmap).
Clear(Color.FromArgb(255, 224, 255, 255));
//LrSh_Pen.Color = Color.FromArgb(128,0 , 128, LrSh_Random.Next(0,255));
LrSh_Pen.Color = Color.FromArgb(128, 0, 128, 160);
for (
iA = 1 - 1;
iA <= LrSh_Point.GetLength(2 - 1) - 1;
iA++
)
{
Graphics.FromImage(LrSh_Bitmap).DrawLine(
LrSh_Pen,
LrSh_Point[1 - 1, iA],
LrSh_Point[2 - 1, iA]
);
}
Graphics.FromHwnd(this.Handle).DrawImage(LrSh_Bitmap, 0, 0);
LrSh_Theta += LrSh_One_Degree * 0.1;
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\//**\\
}
//catch
{
}
if (LrSh_Skip_Maker_Counter == 0)
LrSh_Skip_Maker = false;
else
LrSh_Skip_Maker = true;
LrSh_Skip_Maker_Counter = (LrSh_Skip_Maker_Counter + 1) % 1;
}
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
//if (LrSh_Typing_Mode == false)
{
switch (e.KeyCode)
{
case Keys.C:
LrSh_Method_this_BackColor();
break;
case Keys.Q:
this.Close();
break;
case Keys.O:
LrSh_Method_Open();
break;
case Keys.S:
LrSh_Method_SaveAs();
break;
case Keys.Enter:
LrSh_Timer.Enabled = !LrSh_Timer.Enabled;
break;
}
}
switch (e.KeyCode)
{
case Keys.F1:
LrSh_Method_Help();
break;
}
}
private void Form1_Shown(object sender, EventArgs e)
{
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
}
}