corrade-vassal

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 11  →  ?path2? @ 12
/AquaGauge/AquaGauge.Designer.cs
@@ -0,0 +1,45 @@
namespace AquaControls
{
partial class AquaGauge
{
/// <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.SuspendLayout();
//
// AquaGauge
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Name = "AquaGauge";
this.ResumeLayout(false);
 
}
 
#endregion
}
}
/AquaGauge/AquaGauge.cs
@@ -0,0 +1,815 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
 
namespace AquaControls
{
/// <summary>
/// Aqua Gauge Control - A Windows User Control.
/// Author : Ambalavanar Thirugnanam
/// Date : 24th August 2007
/// email : ambalavanar.thiru@gmail.com
/// This is control is for free. You can use for any commercial or non-commercial purposes.
/// [Please do no remove this header when using this control in your application.]
/// </summary>
public partial class AquaGauge : UserControl
{
#region Private Attributes
private float minValue;
private float maxValue;
private float threshold;
private float currentValue;
private float recommendedValue;
private int noOfDivisions;
private int noOfSubDivisions;
private string dialText;
private Color dialColor = Color.Lavender;
private float glossinessAlpha = 25;
private int oldWidth, oldHeight;
int x, y, width, height;
float fromAngle = 135F;
float toAngle = 405F;
private bool enableTransparentBackground;
private bool requiresRedraw;
private Image backgroundImg;
private Rectangle rectImg;
#endregion
 
public AquaGauge()
{
InitializeComponent();
x = 5;
y = 5;
width = this.Width - 10;
height = this.Height - 10;
this.noOfDivisions = 10;
this.noOfSubDivisions = 3;
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
this.SetStyle(ControlStyles.ResizeRedraw, true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.UserPaint, true);
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
this.BackColor = Color.Transparent;
this.Resize += new EventHandler(AquaGauge_Resize);
this.requiresRedraw = true;
}
 
#region Public Properties
/// <summary>
/// Mininum value on the scale
/// </summary>
[DefaultValue(0)]
[Description("Mininum value on the scale")]
public float MinValue
{
get { return minValue; }
set
{
if (value < maxValue)
{
minValue = value;
if (currentValue < minValue)
currentValue = minValue;
if (recommendedValue < minValue)
recommendedValue = minValue;
requiresRedraw = true;
this.Invalidate();
}
}
}
 
/// <summary>
/// Maximum value on the scale
/// </summary>
[DefaultValue(100)]
[Description("Maximum value on the scale")]
public float MaxValue
{
get { return maxValue; }
set
{
if (value > minValue)
{
maxValue = value;
if (currentValue > maxValue)
currentValue = maxValue;
if (recommendedValue > maxValue)
recommendedValue = maxValue;
requiresRedraw = true;
this.Invalidate();
}
}
}
 
/// <summary>
/// Gets or Sets the Threshold area from the Recommended Value. (1-99%)
/// </summary>
[DefaultValue(25)]
[Description("Gets or Sets the Threshold area from the Recommended Value. (1-99%)")]
public float ThresholdPercent
{
get { return threshold; }
set
{
if (value > 0 && value < 100)
{
threshold = value;
requiresRedraw = true;
this.Invalidate();
}
}
}
 
/// <summary>
/// Threshold value from which green area will be marked.
/// </summary>
[DefaultValue(25)]
[Description("Threshold value from which green area will be marked.")]
public float RecommendedValue
{
get { return recommendedValue; }
set
{
if (value > minValue && value < maxValue)
{
recommendedValue = value;
requiresRedraw = true;
this.Invalidate();
}
}
}
 
/// <summary>
/// Value where the pointer will point to.
/// </summary>
[DefaultValue(0)]
[Description("Value where the pointer will point to.")]
public float Value
{
get { return currentValue; }
set
{
if (value >= minValue && value <= maxValue)
{
currentValue = value;
this.Refresh();
}
}
}
 
/// <summary>
/// Background color of the dial
/// </summary>
[Description("Background color of the dial")]
public Color DialColor
{
get { return dialColor; }
set
{
dialColor = value;
requiresRedraw = true;
this.Invalidate();
}
}
 
/// <summary>
/// Glossiness strength. Range: 0-100
/// </summary>
[DefaultValue(72)]
[Description("Glossiness strength. Range: 0-100")]
public float Glossiness
{
get
{
return (glossinessAlpha * 100) / 220;
}
set
{
float val = value;
if(val > 100)
value = 100;
if(val < 0)
value = 0;
glossinessAlpha = (value * 220) / 100;
this.Refresh();
}
}
 
/// <summary>
/// Get or Sets the number of Divisions in the dial scale.
/// </summary>
[DefaultValue(10)]
[Description("Get or Sets the number of Divisions in the dial scale.")]
public int NoOfDivisions
{
get { return this.noOfDivisions; }
set
{
if (value > 1 && value < 25)
{
this.noOfDivisions = value;
requiresRedraw = true;
this.Invalidate();
}
}
}
 
/// <summary>
/// Gets or Sets the number of Sub Divisions in the scale per Division.
/// </summary>
[DefaultValue(3)]
[Description("Gets or Sets the number of Sub Divisions in the scale per Division.")]
public int NoOfSubDivisions
{
get { return this.noOfSubDivisions; }
set
{
if (value > 0 && value <= 10)
{
this.noOfSubDivisions = value;
requiresRedraw = true;
this.Invalidate();
}
}
}
 
/// <summary>
/// Gets or Sets the Text to be displayed in the dial
/// </summary>
[Description("Gets or Sets the Text to be displayed in the dial")]
public string DialText
{
get { return this.dialText; }
set
{
this.dialText = value;
requiresRedraw = true;
this.Invalidate();
}
}
 
/// <summary>
/// Enables or Disables Transparent Background color.
/// Note: Enabling this will reduce the performance and may make the control flicker.
/// </summary>
[DefaultValue(false)]
[Description("Enables or Disables Transparent Background color. Note: Enabling this will reduce the performance and may make the control flicker.")]
public bool EnableTransparentBackground
{
get { return this.enableTransparentBackground; }
set
{
this.enableTransparentBackground = value;
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, !enableTransparentBackground);
requiresRedraw = true;
this.Refresh();
}
}
#endregion
 
#region Overriden Control methods
/// <summary>
/// Draws the pointer.
/// </summary>
/// <param name="e"></param>
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
width = this.Width - x*2;
height = this.Height - y*2;
DrawPointer(e.Graphics, ((width) / 2) + x, ((height) / 2) + y);
}
/// <summary>
/// Draws the dial background.
/// </summary>
/// <param name="e"></param>
protected override void OnPaintBackground(PaintEventArgs e)
{
if (!enableTransparentBackground)
{
base.OnPaintBackground(e);
}
e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
e.Graphics.FillRectangle(new SolidBrush(Color.Transparent), new Rectangle(0,0,Width,Height));
if (backgroundImg == null || requiresRedraw)
{
backgroundImg = new Bitmap(this.Width, this.Height);
Graphics g = Graphics.FromImage(backgroundImg);
g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
width = this.Width - x * 2;
height = this.Height - y * 2;
rectImg = new Rectangle(x, y, width, height);
 
//Draw background color
Brush backGroundBrush = new SolidBrush(Color.FromArgb(120, dialColor));
if (enableTransparentBackground && this.Parent != null)
{
float gg = width / 60;
//g.FillEllipse(new SolidBrush(this.Parent.BackColor), -gg, -gg, this.Width+gg*2, this.Height+gg*2);
}
g.FillEllipse(backGroundBrush, x, y, width, height);
 
//Draw Rim
SolidBrush outlineBrush = new SolidBrush(Color.FromArgb(100, Color.SlateGray));
Pen outline = new Pen(outlineBrush, (float)(width * .03));
g.DrawEllipse(outline, rectImg);
Pen darkRim = new Pen(Color.SlateGray);
g.DrawEllipse(darkRim, x, y, width, height);
 
//Draw Callibration
DrawCalibration(g, rectImg, ((width) / 2) + x, ((height) / 2) + y);
 
//Draw Colored Rim
Pen colorPen = new Pen(Color.FromArgb(190, Color.Gainsboro), this.Width / 40);
Pen blackPen = new Pen(Color.FromArgb(250, Color.Black), this.Width / 200);
int gap = (int)(this.Width * 0.03F);
Rectangle rectg = new Rectangle(rectImg.X + gap, rectImg.Y + gap, rectImg.Width - gap * 2, rectImg.Height - gap * 2);
g.DrawArc(colorPen, rectg, 135, 270);
 
//Draw Threshold
colorPen = new Pen(Color.FromArgb(200, Color.LawnGreen), this.Width / 50);
rectg = new Rectangle(rectImg.X + gap, rectImg.Y + gap, rectImg.Width - gap * 2, rectImg.Height - gap * 2);
float val = MaxValue - MinValue;
val = (100 * (this.recommendedValue - MinValue)) / val;
val = ((toAngle - fromAngle) * val) / 100;
val += fromAngle;
float stAngle = val - ((270 * threshold) / 200);
if (stAngle <= 135) stAngle = 135;
float sweepAngle = ((270 * threshold) / 100);
if (stAngle + sweepAngle > 405) sweepAngle = 405 - stAngle;
g.DrawArc(colorPen, rectg, stAngle, sweepAngle);
 
//Draw Digital Value
/* RectangleF digiRect = new RectangleF((float)this.Width / 2F - (float)this.width / 5F, (float)this.height / 1.2F, (float)this.width / 2.5F, (float)this.Height / 9F);
RectangleF digiFRect = new RectangleF(this.Width / 2 - this.width / 7, (int)(this.height / 1.18), this.width / 4, this.Height / 12);
g.FillRectangle(new SolidBrush(Color.FromArgb(30, Color.Gray)), digiRect);
DisplayNumber(g, this.currentValue, digiFRect); */
 
SizeF textSize = g.MeasureString(this.dialText, this.Font);
RectangleF digiFRectText = new RectangleF(this.Width / 2 - textSize.Width / 2, (int)(this.height / 1.5), textSize.Width, textSize.Height);
g.DrawString(dialText, this.Font, new SolidBrush(this.ForeColor), digiFRectText);
requiresRedraw = false;
}
e.Graphics.DrawImage(backgroundImg, rectImg);
}
 
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x20;
return cp;
}
}
#endregion
 
#region Private methods
/// <summary>
/// Draws the Pointer.
/// </summary>
/// <param name="gr"></param>
/// <param name="cx"></param>
/// <param name="cy"></param>
private void DrawPointer(Graphics gr, int cx, int cy)
{
float radius = this.Width / 2 - (this.Width * .12F);
float val = MaxValue - MinValue;
 
Image img = new Bitmap(this.Width, this.Height);
Graphics g = Graphics.FromImage(img);
g.SmoothingMode = SmoothingMode.AntiAlias;
 
val = (100 * (this.currentValue - MinValue)) / val;
val = ((toAngle - fromAngle) * val) / 100;
val += fromAngle;
 
float angle = GetRadian(val);
float gradientAngle = angle;
 
PointF[] pts = new PointF[5];
 
pts[0].X = (float)(cx + radius * Math.Cos(angle));
pts[0].Y = (float)(cy + radius * Math.Sin(angle));
 
pts[4].X = (float)(cx + radius * Math.Cos(angle - 0.02));
pts[4].Y = (float)(cy + radius * Math.Sin(angle - 0.02));
 
angle = GetRadian((val + 20));
pts[1].X = (float)(cx + (this.Width * .09F) * Math.Cos(angle));
pts[1].Y = (float)(cy + (this.Width * .09F) * Math.Sin(angle));
 
pts[2].X = cx;
pts[2].Y = cy;
 
angle = GetRadian((val - 20));
pts[3].X = (float)(cx + (this.Width * .09F) * Math.Cos(angle));
pts[3].Y = (float)(cy + (this.Width * .09F) * Math.Sin(angle));
 
Brush pointer = new SolidBrush(Color.Black);
g.FillPolygon(pointer, pts);
 
PointF[] shinePts = new PointF[3];
angle = GetRadian(val);
shinePts[0].X = (float)(cx + radius * Math.Cos(angle));
shinePts[0].Y = (float)(cy + radius * Math.Sin(angle));
 
angle = GetRadian(val + 20);
shinePts[1].X = (float)(cx + (this.Width * .09F) * Math.Cos(angle));
shinePts[1].Y = (float)(cy + (this.Width * .09F) * Math.Sin(angle));
 
shinePts[2].X = cx;
shinePts[2].Y = cy;
 
LinearGradientBrush gpointer = new LinearGradientBrush(shinePts[0], shinePts[2], Color.SlateGray, Color.Black);
g.FillPolygon(gpointer, shinePts);
 
Rectangle rect = new Rectangle(x, y, width, height);
DrawCenterPoint(g, rect, ((width) / 2) + x, ((height) / 2) + y);
 
DrawGloss(g);
 
gr.DrawImage(img, 0, 0);
}
 
/// <summary>
/// Draws the glossiness.
/// </summary>
/// <param name="g"></param>
private void DrawGloss(Graphics g)
{
RectangleF glossRect = new RectangleF(
x + (float)(width * 0.10),
y + (float)(height * 0.07),
(float)(width * 0.80),
(float)(height * 0.7));
LinearGradientBrush gradientBrush =
new LinearGradientBrush(glossRect,
Color.FromArgb((int)glossinessAlpha, Color.White),
Color.Transparent,
LinearGradientMode.Vertical);
g.FillEllipse(gradientBrush, glossRect);
 
//TODO: Gradient from bottom
glossRect = new RectangleF(
x + (float)(width * 0.25),
y + (float)(height * 0.77),
(float)(width * 0.50),
(float)(height * 0.2));
int gloss = (int)(glossinessAlpha / 3);
gradientBrush =
new LinearGradientBrush(glossRect,
Color.Transparent, Color.FromArgb(gloss, this.BackColor),
LinearGradientMode.Vertical);
g.FillEllipse(gradientBrush, glossRect);
}
 
/// <summary>
/// Draws the center point.
/// </summary>
/// <param name="g"></param>
/// <param name="rect"></param>
/// <param name="cX"></param>
/// <param name="cY"></param>
private void DrawCenterPoint(Graphics g, Rectangle rect, int cX, int cY)
{
float shift = Width / 5;
RectangleF rectangle = new RectangleF(cX - (shift / 2), cY - (shift / 2), shift, shift);
LinearGradientBrush brush = new LinearGradientBrush(rect, Color.Black, Color.FromArgb(100,this.dialColor), LinearGradientMode.Vertical);
g.FillEllipse(brush, rectangle);
 
shift = Width / 7;
rectangle = new RectangleF(cX - (shift / 2), cY - (shift / 2), shift, shift);
brush = new LinearGradientBrush(rect, Color.SlateGray, Color.Black, LinearGradientMode.ForwardDiagonal);
g.FillEllipse(brush, rectangle);
}
 
/// <summary>
/// Draws the Ruler
/// </summary>
/// <param name="g"></param>
/// <param name="rect"></param>
/// <param name="cX"></param>
/// <param name="cY"></param>
private void DrawCalibration(Graphics g, Rectangle rect, int cX, int cY)
{
int noOfParts = this.noOfDivisions + 1;
int noOfIntermediates = this.noOfSubDivisions;
float currentAngle = GetRadian(fromAngle);
int gap = (int)(this.Width * 0.01F);
float shift = this.Width / 25;
Rectangle rectangle = new Rectangle(rect.Left + gap, rect.Top + gap, rect.Width - gap, rect.Height - gap);
float x,y,x1,y1,tx,ty,radius;
radius = rectangle.Width/2 - gap*5;
float totalAngle = toAngle - fromAngle;
float incr = GetRadian(((totalAngle) / ((noOfParts - 1) * (noOfIntermediates + 1))));
Pen thickPen = new Pen(Color.Black, Width/50);
Pen thinPen = new Pen(Color.Black, Width/100);
float rulerValue = MinValue;
for (int i = 0; i <= noOfParts; i++)
{
//Draw Thick Line
x = (float)(cX + radius * Math.Cos(currentAngle));
y = (float)(cY + radius * Math.Sin(currentAngle));
x1 = (float)(cX + (radius - Width/20) * Math.Cos(currentAngle));
y1 = (float)(cY + (radius - Width/20) * Math.Sin(currentAngle));
g.DrawLine(thickPen, x, y, x1, y1);
//Draw Strings
StringFormat format = new StringFormat();
tx = (float)(cX + (radius - Width / 10) * Math.Cos(currentAngle));
ty = (float)(cY-shift + (radius - Width / 10) * Math.Sin(currentAngle));
Brush stringPen = new SolidBrush(this.ForeColor);
StringFormat strFormat = new StringFormat(StringFormatFlags.NoClip);
strFormat.Alignment = StringAlignment.Center;
Font f = new Font(this.Font.FontFamily, (float)(this.Width / 23), this.Font.Style);
g.DrawString(rulerValue.ToString() + "", f, stringPen, new PointF(tx, ty), strFormat);
rulerValue += (float)((MaxValue - MinValue) / (noOfParts - 1));
rulerValue = (float)Math.Round(rulerValue, 2);
//currentAngle += incr;
if (i == noOfParts -1)
break;
for (int j = 0; j <= noOfIntermediates; j++)
{
//Draw thin lines
currentAngle += incr;
x = (float)(cX + radius * Math.Cos(currentAngle));
y = (float)(cY + radius * Math.Sin(currentAngle));
x1 = (float)(cX + (radius - Width/50) * Math.Cos(currentAngle));
y1 = (float)(cY + (radius - Width/50) * Math.Sin(currentAngle));
g.DrawLine(thinPen, x, y, x1, y1);
}
}
}
 
/// <summary>
/// Converts the given degree to radian.
/// </summary>
/// <param name="theta"></param>
/// <returns></returns>
public float GetRadian(float theta)
{
return theta * (float)Math.PI / 180F;
}
 
/// <summary>
/// Displays the given number in the 7-Segement format.
/// </summary>
/// <param name="g"></param>
/// <param name="number"></param>
/// <param name="drect"></param>
private void DisplayNumber(Graphics g, float number, RectangleF drect)
{
try
{
string num = number.ToString("000.00");
num.PadLeft(3, '0');
float shift = 0;
if (number < 0)
{
shift -= width/17;
}
bool drawDPS = false;
char[] chars = num.ToCharArray();
for (int i = 0; i < chars.Length; i++)
{
char c = chars[i];
if (i < chars.Length - 1 && chars[i + 1] == '.')
drawDPS = true;
else
drawDPS = false;
if (c != '.')
{
if (c == '-')
{
DrawDigit(g, -1, new PointF(drect.X + shift, drect.Y), drawDPS, drect.Height);
}
else
{
DrawDigit(g, int.Parse(c.ToString()), new PointF(drect.X + shift, drect.Y), drawDPS, drect.Height);
}
shift += 15 * this.width / 250f;
}
else
{
shift += 2 * this.width / 250f;
}
}
}
catch (Exception)
{
}
}
 
/// <summary>
/// Draws a digit in 7-Segement format.
/// </summary>
/// <param name="g"></param>
/// <param name="number"></param>
/// <param name="position"></param>
/// <param name="dp"></param>
/// <param name="height"></param>
private void DrawDigit(Graphics g, int number, PointF position, bool dp, float height)
{
float width;
width = 10F * height/13;
Pen outline = new Pen(Color.FromArgb(40, this.dialColor));
Pen fillPen = new Pen(Color.Black);
 
#region Form Polygon Points
//Segment A
PointF[] segmentA = new PointF[5];
segmentA[0] = segmentA[4] = new PointF(position.X + GetX(2.8F, width), position.Y + GetY(1F, height));
segmentA[1] = new PointF(position.X + GetX(10, width), position.Y + GetY(1F, height));
segmentA[2] = new PointF(position.X + GetX(8.8F, width), position.Y + GetY(2F, height));
segmentA[3] = new PointF(position.X + GetX(3.8F, width), position.Y + GetY(2F, height));
 
//Segment B
PointF[] segmentB = new PointF[5];
segmentB[0] = segmentB[4] = new PointF(position.X + GetX(10, width), position.Y + GetY(1.4F, height));
segmentB[1] = new PointF(position.X + GetX(9.3F, width), position.Y + GetY(6.8F, height));
segmentB[2] = new PointF(position.X + GetX(8.4F, width), position.Y + GetY(6.4F, height));
segmentB[3] = new PointF(position.X + GetX(9F, width), position.Y + GetY(2.2F, height));
 
//Segment C
PointF[] segmentC = new PointF[5];
segmentC[0] = segmentC[4] = new PointF(position.X + GetX(9.2F, width), position.Y + GetY(7.2F, height));
segmentC[1] = new PointF(position.X + GetX(8.7F, width), position.Y + GetY(12.7F, height));
segmentC[2] = new PointF(position.X + GetX(7.6F, width), position.Y + GetY(11.9F, height));
segmentC[3] = new PointF(position.X + GetX(8.2F, width), position.Y + GetY(7.7F, height));
 
//Segment D
PointF[] segmentD = new PointF[5];
segmentD[0] = segmentD[4] = new PointF(position.X + GetX(7.4F, width), position.Y + GetY(12.1F, height));
segmentD[1] = new PointF(position.X + GetX(8.4F, width), position.Y + GetY(13F, height));
segmentD[2] = new PointF(position.X + GetX(1.3F, width), position.Y + GetY(13F, height));
segmentD[3] = new PointF(position.X + GetX(2.2F, width), position.Y + GetY(12.1F, height));
 
//Segment E
PointF[] segmentE = new PointF[5];
segmentE[0] = segmentE[4] = new PointF(position.X + GetX(2.2F, width), position.Y + GetY(11.8F, height));
segmentE[1] = new PointF(position.X + GetX(1F, width), position.Y + GetY(12.7F, height));
segmentE[2] = new PointF(position.X + GetX(1.7F, width), position.Y + GetY(7.2F, height));
segmentE[3] = new PointF(position.X + GetX(2.8F, width), position.Y + GetY(7.7F, height));
 
//Segment F
PointF[] segmentF = new PointF[5];
segmentF[0] = segmentF[4] = new PointF(position.X + GetX(3F, width), position.Y + GetY(6.4F, height));
segmentF[1] = new PointF(position.X + GetX(1.8F, width), position.Y + GetY(6.8F, height));
segmentF[2] = new PointF(position.X + GetX(2.6F, width), position.Y + GetY(1.3F, height));
segmentF[3] = new PointF(position.X + GetX(3.6F, width), position.Y + GetY(2.2F, height));
 
//Segment G
PointF[] segmentG = new PointF[7];
segmentG[0] = segmentG[6] = new PointF(position.X + GetX(2F, width), position.Y + GetY(7F, height));
segmentG[1] = new PointF(position.X + GetX(3.1F, width), position.Y + GetY(6.5F, height));
segmentG[2] = new PointF(position.X + GetX(8.3F, width), position.Y + GetY(6.5F, height));
segmentG[3] = new PointF(position.X + GetX(9F, width), position.Y + GetY(7F, height));
segmentG[4] = new PointF(position.X + GetX(8.2F, width), position.Y + GetY(7.5F, height));
segmentG[5] = new PointF(position.X + GetX(2.9F, width), position.Y + GetY(7.5F, height));
 
//Segment DP
#endregion
 
#region Draw Segments Outline
g.FillPolygon(outline.Brush, segmentA);
g.FillPolygon(outline.Brush, segmentB);
g.FillPolygon(outline.Brush, segmentC);
g.FillPolygon(outline.Brush, segmentD);
g.FillPolygon(outline.Brush, segmentE);
g.FillPolygon(outline.Brush, segmentF);
g.FillPolygon(outline.Brush, segmentG);
#endregion
 
#region Fill Segments
//Fill SegmentA
if (IsNumberAvailable(number, 0, 2, 3, 5, 6, 7, 8, 9))
{
g.FillPolygon(fillPen.Brush, segmentA);
}
 
//Fill SegmentB
if (IsNumberAvailable(number, 0, 1, 2, 3, 4, 7, 8, 9))
{
g.FillPolygon(fillPen.Brush, segmentB);
}
 
//Fill SegmentC
if (IsNumberAvailable(number, 0, 1, 3, 4, 5, 6, 7, 8, 9))
{
g.FillPolygon(fillPen.Brush, segmentC);
}
 
//Fill SegmentD
if (IsNumberAvailable(number, 0, 2, 3, 5, 6, 8, 9))
{
g.FillPolygon(fillPen.Brush, segmentD);
}
 
//Fill SegmentE
if (IsNumberAvailable(number, 0, 2, 6, 8))
{
g.FillPolygon(fillPen.Brush, segmentE);
}
 
//Fill SegmentF
if (IsNumberAvailable(number, 0, 4, 5, 6, 7, 8, 9))
{
g.FillPolygon(fillPen.Brush, segmentF);
}
 
//Fill SegmentG
if (IsNumberAvailable(number, 2, 3, 4, 5, 6, 8, 9, -1))
{
g.FillPolygon(fillPen.Brush, segmentG);
}
#endregion
//Draw decimal point
if (dp)
{
g.FillEllipse(fillPen.Brush, new RectangleF(
position.X + GetX(10F, width),
position.Y + GetY(12F, height),
width/7,
width/7));
}
}
 
/// <summary>
/// Gets Relative X for the given width to draw digit
/// </summary>
/// <param name="x"></param>
/// <param name="width"></param>
/// <returns></returns>
private float GetX(float x, float width)
{
return x * width / 12;
}
 
/// <summary>
/// Gets relative Y for the given height to draw digit
/// </summary>
/// <param name="y"></param>
/// <param name="height"></param>
/// <returns></returns>
private float GetY(float y, float height)
{
return y * height / 15;
}
 
/// <summary>
/// Returns true if a given number is available in the given list.
/// </summary>
/// <param name="number"></param>
/// <param name="listOfNumbers"></param>
/// <returns></returns>
private bool IsNumberAvailable(int number, params int[] listOfNumbers)
{
if (listOfNumbers.Length > 0)
{
foreach (int i in listOfNumbers)
{
if (i == number)
return true;
}
}
return false;
}
/// <summary>
/// Restricts the size to make sure the height and width are always same.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void AquaGauge_Resize(object sender, EventArgs e)
{
if (this.Width < 136)
{
this.Width = 136;
}
if (oldWidth != this.Width)
{
this.Height = this.Width;
oldHeight = this.Width;
}
if (oldHeight != this.Height)
{
this.Width = this.Height;
oldWidth = this.Width;
}
}
#endregion
}
}
/AquaGauge/AquaGauge.csproj
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="14.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{0E5542E0-FC5D-4F67-950D-9F28C5D1225A}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>AquaControls</RootNamespace>
<AssemblyName>AquaGauge</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>2.0</OldToolsVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="AquaGauge.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="AquaGauge.Designer.cs">
<DependentUpon>AquaGauge.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Service Include="{94E38DFF-614B-4cbd-B67C-F211BB35CE8B}" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="AquaGauge.resx">
<DependentUpon>AquaGauge.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
/AquaGauge/AquaGauge.resx
@@ -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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
/AquaGauge/Properties/AssemblyInfo.cs
@@ -0,0 +1,35 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
 
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("AquaGauge")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("AquaControls")]
[assembly: AssemblyProduct("AquaGauge")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
 
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
 
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("27affae7-2393-4ce7-bb2b-c0b58249c56d")]
 
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
/Vassal/Vassal/AssemblyInfo.cs
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
 
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Vassal")]
[assembly: AssemblyDescription("Linden Virtual World Land Managing Tool")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Wizardry and Steamworks")]
[assembly: AssemblyProduct("Vassal")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
 
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
 
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("4419e938-ecd5-482f-ac8b-a3d20a5e6136")]
 
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.*")]
[assembly: NeutralResourcesLanguage("en-US")]
/Vassal/Vassal/Vassal.csproj
@@ -49,10 +49,16 @@
<PropertyGroup>
<ApplicationIcon>Vassal.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup />
<PropertyGroup>
<ApplicationManifest>Vassal.exe.manifest</ApplicationManifest>
<StartupObject>Vassal.Program</StartupObject>
</PropertyGroup>
<PropertyGroup />
<ItemGroup>
<Reference Include="AquaGauge, Version=1.0.5767.1836, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\AquaGauge\bin\Release\AquaGauge.dll</HintPath>
</Reference>
<Reference Include="OpenMetaverse">
<HintPath>..\..\libopenmetaverse\bin\OpenMetaverse.dll</HintPath>
</Reference>
@@ -93,7 +99,7 @@
<DependentUpon>VassalForm.cs</DependentUpon>
</Compile>
<Compile Include="Vassal.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="AssemblyInfo.cs" />
<EmbeddedResource Include="RegionEditForm.resx">
<DependentUpon>RegionEditForm.cs</DependentUpon>
</EmbeddedResource>
/Vassal/Vassal/VassalForm.Designer.cs
@@ -91,7 +91,7 @@
this.EstateListUUID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.RemoveEstateListMemberButton = new System.Windows.Forms.Button();
this.EstateListSelectBox = new System.Windows.Forms.ComboBox();
this.groupBox11 = new System.Windows.Forms.GroupBox();
this.RegionToolsTerrainToolsGroup = new System.Windows.Forms.GroupBox();
this.groupBox13 = new System.Windows.Forms.GroupBox();
this.RipTerrainButton = new System.Windows.Forms.Button();
this.EstateTerrainDownloadUploadGroup = new System.Windows.Forms.GroupBox();
@@ -208,6 +208,32 @@
this.RegionDebugCollisionsBox = new System.Windows.Forms.CheckBox();
this.RegionDebugScriptsBox = new System.Windows.Forms.CheckBox();
this.LoadCSVFile = new System.Windows.Forms.OpenFileDialog();
this.ResidentListTeleportHomeGroup = new System.Windows.Forms.GroupBox();
this.button1 = new System.Windows.Forms.Button();
this.pictureBox18 = new System.Windows.Forms.PictureBox();
this.EstateVariablesGroup = new System.Windows.Forms.GroupBox();
this.SetTerrainVariablesButton = new System.Windows.Forms.Button();
this.pictureBox19 = new System.Windows.Forms.PictureBox();
this.TerrainToolsWaterHeightBox = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.TerrainToolsTerrainRaiseLimitBox = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.TerrainToolsTerrainLowerLimitBox = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.TerrainToolsUseEstateSunBox = new System.Windows.Forms.CheckBox();
this.TerrainToolsFixedSunBox = new System.Windows.Forms.CheckBox();
this.TerrainToolsSunPositionBox = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.FrameTime = new System.Windows.Forms.Label();
this.groupBox11 = new System.Windows.Forms.GroupBox();
this.ScriptedObjects = new System.Windows.Forms.Label();
this.groupBox17 = new System.Windows.Forms.GroupBox();
this.PhysicsTime = new System.Windows.Forms.Label();
this.groupBox24 = new System.Windows.Forms.GroupBox();
this.NetTime = new System.Windows.Forms.Label();
this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
this.CorradePollTimeDial = new AquaControls.AquaGauge();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.statusStrip1.SuspendLayout();
this.RegionTeleportGroup.SuspendLayout();
@@ -236,7 +262,7 @@
this.groupBox16.SuspendLayout();
this.EstateListGroup.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.EstateListGridView)).BeginInit();
this.groupBox11.SuspendLayout();
this.RegionToolsTerrainToolsGroup.SuspendLayout();
this.groupBox13.SuspendLayout();
this.EstateTerrainDownloadUploadGroup.SuspendLayout();
this.EstateTopTab.SuspendLayout();
@@ -278,6 +304,14 @@
this.groupBox19.SuspendLayout();
this.groupBox18.SuspendLayout();
this.RegionToolsRegionDebugGroup.SuspendLayout();
this.ResidentListTeleportHomeGroup.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox18)).BeginInit();
this.EstateVariablesGroup.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox19)).BeginInit();
this.groupBox1.SuspendLayout();
this.groupBox11.SuspendLayout();
this.groupBox17.SuspendLayout();
this.groupBox24.SuspendLayout();
this.SuspendLayout();
//
// pictureBox1
@@ -337,6 +371,7 @@
this.RegionTeleportGroup.Controls.Add(this.pictureBox6);
this.RegionTeleportGroup.Controls.Add(this.button2);
this.RegionTeleportGroup.Controls.Add(this.LoadedRegionsBox);
this.RegionTeleportGroup.Enabled = false;
this.RegionTeleportGroup.Font = new System.Drawing.Font("Palatino Linotype", 8.25F);
this.RegionTeleportGroup.Location = new System.Drawing.Point(538, 79);
this.RegionTeleportGroup.Name = "RegionTeleportGroup";
@@ -375,9 +410,9 @@
this.CurrentRegionName.Font = new System.Drawing.Font("Palatino Linotype", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.CurrentRegionName.Location = new System.Drawing.Point(216, 157);
this.CurrentRegionName.Name = "CurrentRegionName";
this.CurrentRegionName.Size = new System.Drawing.Size(140, 26);
this.CurrentRegionName.Size = new System.Drawing.Size(17, 26);
this.CurrentRegionName.TabIndex = 7;
this.CurrentRegionName.Text = "Puguet Sound";
this.CurrentRegionName.Text = " ";
this.CurrentRegionName.Visible = false;
//
// CurrentRegionAt
@@ -416,6 +451,7 @@
this.ConnectionStatusPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.ConnectionStatusPictureBox.TabIndex = 12;
this.ConnectionStatusPictureBox.TabStop = false;
this.ConnectionStatusPictureBox.Click += new System.EventHandler(this.ReconnectRequested);
//
// pictureBox2
//
@@ -433,7 +469,7 @@
//
this.Version.AutoSize = true;
this.Version.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Version.Location = new System.Drawing.Point(280, 146);
this.Version.Location = new System.Drawing.Point(280, 142);
this.Version.Name = "Version";
this.Version.Size = new System.Drawing.Size(97, 13);
this.Version.TabIndex = 9;
@@ -449,7 +485,7 @@
//
this.pictureBox4.Cursor = System.Windows.Forms.Cursors.Help;
this.pictureBox4.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox4.Image")));
this.pictureBox4.Location = new System.Drawing.Point(174, 21);
this.pictureBox4.Location = new System.Drawing.Point(188, 22);
this.pictureBox4.Name = "pictureBox4";
this.pictureBox4.Size = new System.Drawing.Size(20, 20);
this.pictureBox4.TabIndex = 12;
@@ -460,7 +496,7 @@
//
this.pictureBox7.Cursor = System.Windows.Forms.Cursors.Help;
this.pictureBox7.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox7.Image")));
this.pictureBox7.Location = new System.Drawing.Point(174, 50);
this.pictureBox7.Location = new System.Drawing.Point(188, 51);
this.pictureBox7.Name = "pictureBox7";
this.pictureBox7.Size = new System.Drawing.Size(20, 20);
this.pictureBox7.TabIndex = 12;
@@ -471,7 +507,7 @@
//
this.pictureBox5.Cursor = System.Windows.Forms.Cursors.Help;
this.pictureBox5.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox5.Image")));
this.pictureBox5.Location = new System.Drawing.Point(173, 22);
this.pictureBox5.Location = new System.Drawing.Point(188, 22);
this.pictureBox5.Name = "pictureBox5";
this.pictureBox5.Size = new System.Drawing.Size(20, 20);
this.pictureBox5.TabIndex = 12;
@@ -482,7 +518,7 @@
//
this.pictureBox3.Cursor = System.Windows.Forms.Cursors.Help;
this.pictureBox3.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox3.Image")));
this.pictureBox3.Location = new System.Drawing.Point(461, 455);
this.pictureBox3.Location = new System.Drawing.Point(461, 456);
this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new System.Drawing.Size(20, 20);
this.pictureBox3.TabIndex = 11;
@@ -597,7 +633,7 @@
//
this.pictureBox17.Cursor = System.Windows.Forms.Cursors.Help;
this.pictureBox17.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox17.Image")));
this.pictureBox17.Location = new System.Drawing.Point(169, 23);
this.pictureBox17.Location = new System.Drawing.Point(172, 23);
this.pictureBox17.Name = "pictureBox17";
this.pictureBox17.Size = new System.Drawing.Size(20, 20);
this.pictureBox17.TabIndex = 11;
@@ -645,7 +681,7 @@
//
// button6
//
this.button6.Location = new System.Drawing.Point(112, 52);
this.button6.Location = new System.Drawing.Point(112, 51);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(118, 23);
this.button6.TabIndex = 19;
@@ -687,7 +723,7 @@
//
// button4
//
this.button4.Location = new System.Drawing.Point(90, 81);
this.button4.Location = new System.Drawing.Point(90, 82);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(118, 23);
this.button4.TabIndex = 18;
@@ -826,7 +862,7 @@
//
// RemoveEstateListMemberButton
//
this.RemoveEstateListMemberButton.Location = new System.Drawing.Point(494, 333);
this.RemoveEstateListMemberButton.Location = new System.Drawing.Point(494, 334);
this.RemoveEstateListMemberButton.Name = "RemoveEstateListMemberButton";
this.RemoveEstateListMemberButton.Size = new System.Drawing.Size(100, 23);
this.RemoveEstateListMemberButton.TabIndex = 4;
@@ -849,24 +885,25 @@
this.EstateListSelectBox.TabIndex = 2;
this.EstateListSelectBox.SelectedIndexChanged += new System.EventHandler(this.EstateListSelected);
//
// groupBox11
// RegionToolsTerrainToolsGroup
//
this.groupBox11.Controls.Add(this.groupBox13);
this.groupBox11.Controls.Add(this.EstateTerrainDownloadUploadGroup);
this.groupBox11.Location = new System.Drawing.Point(246, 140);
this.groupBox11.Name = "groupBox11";
this.groupBox11.Size = new System.Drawing.Size(460, 116);
this.groupBox11.TabIndex = 0;
this.groupBox11.TabStop = false;
this.groupBox11.Text = "Terrain";
this.RegionToolsTerrainToolsGroup.Controls.Add(this.EstateVariablesGroup);
this.RegionToolsTerrainToolsGroup.Controls.Add(this.groupBox13);
this.RegionToolsTerrainToolsGroup.Controls.Add(this.EstateTerrainDownloadUploadGroup);
this.RegionToolsTerrainToolsGroup.Location = new System.Drawing.Point(479, 100);
this.RegionToolsTerrainToolsGroup.Name = "RegionToolsTerrainToolsGroup";
this.RegionToolsTerrainToolsGroup.Size = new System.Drawing.Size(228, 386);
this.RegionToolsTerrainToolsGroup.TabIndex = 0;
this.RegionToolsTerrainToolsGroup.TabStop = false;
this.RegionToolsTerrainToolsGroup.Text = "Terrain Tools";
//
// groupBox13
//
this.groupBox13.Controls.Add(this.RipTerrainButton);
this.groupBox13.Controls.Add(this.pictureBox5);
this.groupBox13.Location = new System.Drawing.Point(219, 21);
this.groupBox13.Location = new System.Drawing.Point(6, 110);
this.groupBox13.Name = "groupBox13";
this.groupBox13.Size = new System.Drawing.Size(200, 56);
this.groupBox13.Size = new System.Drawing.Size(216, 56);
this.groupBox13.TabIndex = 14;
this.groupBox13.TabStop = false;
this.groupBox13.Text = "Override";
@@ -873,7 +910,7 @@
//
// RipTerrainButton
//
this.RipTerrainButton.Location = new System.Drawing.Point(73, 21);
this.RipTerrainButton.Location = new System.Drawing.Point(88, 21);
this.RipTerrainButton.Name = "RipTerrainButton";
this.RipTerrainButton.Size = new System.Drawing.Size(94, 23);
this.RipTerrainButton.TabIndex = 1;
@@ -890,7 +927,7 @@
this.EstateTerrainDownloadUploadGroup.Enabled = false;
this.EstateTerrainDownloadUploadGroup.Location = new System.Drawing.Point(6, 21);
this.EstateTerrainDownloadUploadGroup.Name = "EstateTerrainDownloadUploadGroup";
this.EstateTerrainDownloadUploadGroup.Size = new System.Drawing.Size(200, 83);
this.EstateTerrainDownloadUploadGroup.Size = new System.Drawing.Size(216, 83);
this.EstateTerrainDownloadUploadGroup.TabIndex = 13;
this.EstateTerrainDownloadUploadGroup.TabStop = false;
this.EstateTerrainDownloadUploadGroup.Text = "Estate";
@@ -897,7 +934,7 @@
//
// DownloadTerrainButton
//
this.DownloadTerrainButton.Location = new System.Drawing.Point(47, 20);
this.DownloadTerrainButton.Location = new System.Drawing.Point(61, 21);
this.DownloadTerrainButton.Name = "DownloadTerrainButton";
this.DownloadTerrainButton.Size = new System.Drawing.Size(121, 23);
this.DownloadTerrainButton.TabIndex = 0;
@@ -907,7 +944,7 @@
//
// UploadTerrainButton
//
this.UploadTerrainButton.Location = new System.Drawing.Point(66, 49);
this.UploadTerrainButton.Location = new System.Drawing.Point(80, 50);
this.UploadTerrainButton.Name = "UploadTerrainButton";
this.UploadTerrainButton.Size = new System.Drawing.Size(102, 23);
this.UploadTerrainButton.TabIndex = 2;
@@ -960,7 +997,7 @@
//
// ReturnTopCollidersButton
//
this.ReturnTopCollidersButton.Location = new System.Drawing.Point(503, 190);
this.ReturnTopCollidersButton.Location = new System.Drawing.Point(503, 189);
this.ReturnTopCollidersButton.Name = "ReturnTopCollidersButton";
this.ReturnTopCollidersButton.Size = new System.Drawing.Size(86, 23);
this.ReturnTopCollidersButton.TabIndex = 11;
@@ -1099,7 +1136,7 @@
//
// ReturnTopScriptsButton
//
this.ReturnTopScriptsButton.Location = new System.Drawing.Point(503, 227);
this.ReturnTopScriptsButton.Location = new System.Drawing.Point(503, 226);
this.ReturnTopScriptsButton.Name = "ReturnTopScriptsButton";
this.ReturnTopScriptsButton.Size = new System.Drawing.Size(86, 23);
this.ReturnTopScriptsButton.TabIndex = 2;
@@ -1167,7 +1204,7 @@
//
// BatchRestartButton
//
this.BatchRestartButton.Location = new System.Drawing.Point(348, 454);
this.BatchRestartButton.Location = new System.Drawing.Point(348, 455);
this.BatchRestartButton.Name = "BatchRestartButton";
this.BatchRestartButton.Size = new System.Drawing.Size(107, 23);
this.BatchRestartButton.TabIndex = 1;
@@ -1210,6 +1247,7 @@
//
// ResidentListTab
//
this.ResidentListTab.Controls.Add(this.ResidentListTeleportHomeGroup);
this.ResidentListTab.Controls.Add(this.ResidentListBanGroup);
this.ResidentListTab.Controls.Add(this.label4);
this.ResidentListTab.Controls.Add(this.ResidentListFilter);
@@ -1237,7 +1275,7 @@
// ResidentBanAllEstatesBox
//
this.ResidentBanAllEstatesBox.AutoSize = true;
this.ResidentBanAllEstatesBox.Location = new System.Drawing.Point(87, 23);
this.ResidentBanAllEstatesBox.Location = new System.Drawing.Point(6, 24);
this.ResidentBanAllEstatesBox.Name = "ResidentBanAllEstatesBox";
this.ResidentBanAllEstatesBox.Size = new System.Drawing.Size(79, 20);
this.ResidentBanAllEstatesBox.TabIndex = 3;
@@ -1246,7 +1284,7 @@
//
// ResidentBanButton
//
this.ResidentBanButton.Location = new System.Drawing.Point(6, 21);
this.ResidentBanButton.Location = new System.Drawing.Point(91, 21);
this.ResidentBanButton.Name = "ResidentBanButton";
this.ResidentBanButton.Size = new System.Drawing.Size(75, 23);
this.ResidentBanButton.TabIndex = 2;
@@ -1363,6 +1401,12 @@
//
// OverviewTab
//
this.OverviewTab.Controls.Add(this.CorradePollTimeDial);
this.OverviewTab.Controls.Add(this.groupBox24);
this.OverviewTab.Controls.Add(this.groupBox17);
this.OverviewTab.Controls.Add(this.groupBox11);
this.OverviewTab.Controls.Add(this.groupBox2);
this.OverviewTab.Controls.Add(this.groupBox1);
this.OverviewTab.Controls.Add(this.groupBox10);
this.OverviewTab.Controls.Add(this.groupBox9);
this.OverviewTab.Controls.Add(this.groupBox8);
@@ -1371,7 +1415,6 @@
this.OverviewTab.Controls.Add(this.groupBox5);
this.OverviewTab.Controls.Add(this.groupBox4);
this.OverviewTab.Controls.Add(this.groupBox3);
this.OverviewTab.Controls.Add(this.groupBox2);
this.OverviewTab.Location = new System.Drawing.Point(4, 25);
this.OverviewTab.Name = "OverviewTab";
this.OverviewTab.Padding = new System.Windows.Forms.Padding(3);
@@ -1531,7 +1574,7 @@
//
this.groupBox3.Controls.Add(this.LastLag);
this.groupBox3.Font = new System.Drawing.Font("Palatino Linotype", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox3.Location = new System.Drawing.Point(483, 171);
this.groupBox3.Location = new System.Drawing.Point(483, 226);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(107, 49);
this.groupBox3.TabIndex = 2;
@@ -1552,7 +1595,7 @@
//
this.groupBox2.Controls.Add(this.Agents);
this.groupBox2.Font = new System.Drawing.Font("Palatino Linotype", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox2.Location = new System.Drawing.Point(483, 6);
this.groupBox2.Location = new System.Drawing.Point(596, 226);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(107, 49);
this.groupBox2.TabIndex = 1;
@@ -1858,7 +1901,7 @@
//
this.RegionToolsTab.Controls.Add(this.RegionToolsRegionInfoGroup);
this.RegionToolsTab.Controls.Add(this.RegionToolsRegionDebugGroup);
this.RegionToolsTab.Controls.Add(this.groupBox11);
this.RegionToolsTab.Controls.Add(this.RegionToolsTerrainToolsGroup);
this.RegionToolsTab.Location = new System.Drawing.Point(4, 25);
this.RegionToolsTab.Name = "RegionToolsTab";
this.RegionToolsTab.Size = new System.Drawing.Size(719, 489);
@@ -1880,7 +1923,7 @@
this.RegionToolsRegionInfoGroup.Controls.Add(this.RegionInfoFlyBox);
this.RegionToolsRegionInfoGroup.Controls.Add(this.ApplyRegionInfoButton);
this.RegionToolsRegionInfoGroup.Enabled = false;
this.RegionToolsRegionInfoGroup.Location = new System.Drawing.Point(246, 12);
this.RegionToolsRegionInfoGroup.Location = new System.Drawing.Point(13, 12);
this.RegionToolsRegionInfoGroup.Name = "RegionToolsRegionInfoGroup";
this.RegionToolsRegionInfoGroup.Size = new System.Drawing.Size(460, 122);
this.RegionToolsRegionInfoGroup.TabIndex = 2;
@@ -2011,12 +2054,12 @@
this.RegionToolsRegionDebugGroup.Controls.Add(this.RegionDebugCollisionsBox);
this.RegionToolsRegionDebugGroup.Controls.Add(this.RegionDebugScriptsBox);
this.RegionToolsRegionDebugGroup.Enabled = false;
this.RegionToolsRegionDebugGroup.Location = new System.Drawing.Point(12, 12);
this.RegionToolsRegionDebugGroup.Location = new System.Drawing.Point(479, 12);
this.RegionToolsRegionDebugGroup.Name = "RegionToolsRegionDebugGroup";
this.RegionToolsRegionDebugGroup.Size = new System.Drawing.Size(228, 82);
this.RegionToolsRegionDebugGroup.TabIndex = 1;
this.RegionToolsRegionDebugGroup.TabStop = false;
this.RegionToolsRegionDebugGroup.Text = "Region Debug";
this.RegionToolsRegionDebugGroup.Text = "Set Region Debug";
//
// ApplyRegionDebugButton
//
@@ -2062,6 +2105,270 @@
//
this.LoadCSVFile.Filter = "CSV (*.csv)|*.csv|All files (*.*)|*.*";
//
// ResidentListTeleportHomeGroup
//
this.ResidentListTeleportHomeGroup.Controls.Add(this.pictureBox18);
this.ResidentListTeleportHomeGroup.Controls.Add(this.button1);
this.ResidentListTeleportHomeGroup.Location = new System.Drawing.Point(374, 426);
this.ResidentListTeleportHomeGroup.Name = "ResidentListTeleportHomeGroup";
this.ResidentListTeleportHomeGroup.Size = new System.Drawing.Size(132, 60);
this.ResidentListTeleportHomeGroup.TabIndex = 11;
this.ResidentListTeleportHomeGroup.TabStop = false;
this.ResidentListTeleportHomeGroup.Text = "Teleport Home";
//
// button1
//
this.button1.Location = new System.Drawing.Point(6, 20);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(92, 23);
this.button1.TabIndex = 0;
this.button1.Text = "Teleport Home";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.RequestTeleportHome);
//
// pictureBox18
//
this.pictureBox18.Cursor = System.Windows.Forms.Cursors.Help;
this.pictureBox18.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox18.Image")));
this.pictureBox18.Location = new System.Drawing.Point(104, 22);
this.pictureBox18.Name = "pictureBox18";
this.pictureBox18.Size = new System.Drawing.Size(20, 20);
this.pictureBox18.TabIndex = 12;
this.pictureBox18.TabStop = false;
this.toolTip1.SetToolTip(this.pictureBox18, "You can select residents (multiple\r\nselection is possible by control / shift\r\ncli" +
"cking the list) and then press the\r\n\"Teleport Home\" button in order to\r\nteleport" +
" the users home from the region.");
//
// EstateVariablesGroup
//
this.EstateVariablesGroup.Controls.Add(this.label10);
this.EstateVariablesGroup.Controls.Add(this.TerrainToolsSunPositionBox);
this.EstateVariablesGroup.Controls.Add(this.TerrainToolsFixedSunBox);
this.EstateVariablesGroup.Controls.Add(this.TerrainToolsUseEstateSunBox);
this.EstateVariablesGroup.Controls.Add(this.label9);
this.EstateVariablesGroup.Controls.Add(this.TerrainToolsTerrainLowerLimitBox);
this.EstateVariablesGroup.Controls.Add(this.label8);
this.EstateVariablesGroup.Controls.Add(this.TerrainToolsTerrainRaiseLimitBox);
this.EstateVariablesGroup.Controls.Add(this.label7);
this.EstateVariablesGroup.Controls.Add(this.TerrainToolsWaterHeightBox);
this.EstateVariablesGroup.Controls.Add(this.pictureBox19);
this.EstateVariablesGroup.Controls.Add(this.SetTerrainVariablesButton);
this.EstateVariablesGroup.Location = new System.Drawing.Point(7, 173);
this.EstateVariablesGroup.Name = "EstateVariablesGroup";
this.EstateVariablesGroup.Size = new System.Drawing.Size(215, 207);
this.EstateVariablesGroup.TabIndex = 15;
this.EstateVariablesGroup.TabStop = false;
this.EstateVariablesGroup.Text = "Variables";
//
// SetTerrainVariablesButton
//
this.SetTerrainVariablesButton.Location = new System.Drawing.Point(86, 178);
this.SetTerrainVariablesButton.Name = "SetTerrainVariablesButton";
this.SetTerrainVariablesButton.Size = new System.Drawing.Size(95, 23);
this.SetTerrainVariablesButton.TabIndex = 0;
this.SetTerrainVariablesButton.Text = "Set Variables";
this.SetTerrainVariablesButton.UseVisualStyleBackColor = true;
this.SetTerrainVariablesButton.Click += new System.EventHandler(this.RequestSetVariables);
//
// pictureBox19
//
this.pictureBox19.Cursor = System.Windows.Forms.Cursors.Help;
this.pictureBox19.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox19.Image")));
this.pictureBox19.Location = new System.Drawing.Point(187, 179);
this.pictureBox19.Name = "pictureBox19";
this.pictureBox19.Size = new System.Drawing.Size(20, 20);
this.pictureBox19.TabIndex = 13;
this.pictureBox19.TabStop = false;
this.toolTip1.SetToolTip(this.pictureBox19, "All the values have to be completed and\r\nthen by pressing the \"Set Variables\"\r\nbu" +
"tton, the settings will be applied to\r\nthe current region.");
//
// TerrainToolsWaterHeightBox
//
this.TerrainToolsWaterHeightBox.Location = new System.Drawing.Point(168, 18);
this.TerrainToolsWaterHeightBox.Name = "TerrainToolsWaterHeightBox";
this.TerrainToolsWaterHeightBox.Size = new System.Drawing.Size(39, 22);
this.TerrainToolsWaterHeightBox.TabIndex = 14;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(83, 19);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(76, 16);
this.label7.TabIndex = 15;
this.label7.Text = "Water Height:";
//
// TerrainToolsTerrainRaiseLimitBox
//
this.TerrainToolsTerrainRaiseLimitBox.Location = new System.Drawing.Point(168, 46);
this.TerrainToolsTerrainRaiseLimitBox.Name = "TerrainToolsTerrainRaiseLimitBox";
this.TerrainToolsTerrainRaiseLimitBox.Size = new System.Drawing.Size(39, 22);
this.TerrainToolsTerrainRaiseLimitBox.TabIndex = 16;
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(57, 48);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(102, 16);
this.label8.TabIndex = 17;
this.label8.Text = "Terrain Raise Limit:";
//
// TerrainToolsTerrainLowerLimitBox
//
this.TerrainToolsTerrainLowerLimitBox.Location = new System.Drawing.Point(168, 74);
this.TerrainToolsTerrainLowerLimitBox.Name = "TerrainToolsTerrainLowerLimitBox";
this.TerrainToolsTerrainLowerLimitBox.Size = new System.Drawing.Size(39, 22);
this.TerrainToolsTerrainLowerLimitBox.TabIndex = 18;
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(50, 76);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(109, 16);
this.label9.TabIndex = 19;
this.label9.Text = "Terrain Lower Limit:";
//
// TerrainToolsUseEstateSunBox
//
this.TerrainToolsUseEstateSunBox.AutoSize = true;
this.TerrainToolsUseEstateSunBox.Location = new System.Drawing.Point(107, 102);
this.TerrainToolsUseEstateSunBox.Name = "TerrainToolsUseEstateSunBox";
this.TerrainToolsUseEstateSunBox.Size = new System.Drawing.Size(100, 20);
this.TerrainToolsUseEstateSunBox.TabIndex = 3;
this.TerrainToolsUseEstateSunBox.Text = "Use Estate Sun";
this.TerrainToolsUseEstateSunBox.UseVisualStyleBackColor = true;
//
// TerrainToolsFixedSunBox
//
this.TerrainToolsFixedSunBox.AutoSize = true;
this.TerrainToolsFixedSunBox.Location = new System.Drawing.Point(132, 128);
this.TerrainToolsFixedSunBox.Name = "TerrainToolsFixedSunBox";
this.TerrainToolsFixedSunBox.Size = new System.Drawing.Size(75, 20);
this.TerrainToolsFixedSunBox.TabIndex = 3;
this.TerrainToolsFixedSunBox.Text = "Fixed Sun";
this.TerrainToolsFixedSunBox.UseVisualStyleBackColor = true;
//
// TerrainToolsSunPositionBox
//
this.TerrainToolsSunPositionBox.Location = new System.Drawing.Point(168, 150);
this.TerrainToolsSunPositionBox.Name = "TerrainToolsSunPositionBox";
this.TerrainToolsSunPositionBox.Size = new System.Drawing.Size(39, 22);
this.TerrainToolsSunPositionBox.TabIndex = 3;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(83, 152);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(74, 16);
this.label10.TabIndex = 3;
this.label10.Text = "Sun Position:";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.FrameTime);
this.groupBox1.Font = new System.Drawing.Font("Palatino Linotype", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox1.Location = new System.Drawing.Point(483, 171);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(107, 49);
this.groupBox1.TabIndex = 11;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Frame Time";
//
// FrameTime
//
this.FrameTime.AutoSize = true;
this.FrameTime.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FrameTime.Location = new System.Drawing.Point(12, 21);
this.FrameTime.Name = "FrameTime";
this.FrameTime.Size = new System.Drawing.Size(32, 18);
this.FrameTime.TabIndex = 0;
this.FrameTime.Text = " ";
//
// groupBox11
//
this.groupBox11.Controls.Add(this.ScriptedObjects);
this.groupBox11.Font = new System.Drawing.Font("Palatino Linotype", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox11.Location = new System.Drawing.Point(483, 6);
this.groupBox11.Name = "groupBox11";
this.groupBox11.Size = new System.Drawing.Size(107, 49);
this.groupBox11.TabIndex = 12;
this.groupBox11.TabStop = false;
this.groupBox11.Text = "Scripted Objects";
//
// ScriptedObjects
//
this.ScriptedObjects.AutoSize = true;
this.ScriptedObjects.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ScriptedObjects.Location = new System.Drawing.Point(12, 21);
this.ScriptedObjects.Name = "ScriptedObjects";
this.ScriptedObjects.Size = new System.Drawing.Size(32, 18);
this.ScriptedObjects.TabIndex = 10;
this.ScriptedObjects.Text = " ";
//
// groupBox17
//
this.groupBox17.Controls.Add(this.PhysicsTime);
this.groupBox17.Font = new System.Drawing.Font("Palatino Linotype", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox17.Location = new System.Drawing.Point(483, 281);
this.groupBox17.Name = "groupBox17";
this.groupBox17.Size = new System.Drawing.Size(107, 49);
this.groupBox17.TabIndex = 13;
this.groupBox17.TabStop = false;
this.groupBox17.Text = "Physics Time";
//
// PhysicsTime
//
this.PhysicsTime.AutoSize = true;
this.PhysicsTime.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.PhysicsTime.Location = new System.Drawing.Point(12, 21);
this.PhysicsTime.Name = "PhysicsTime";
this.PhysicsTime.Size = new System.Drawing.Size(32, 18);
this.PhysicsTime.TabIndex = 0;
this.PhysicsTime.Text = " ";
//
// groupBox24
//
this.groupBox24.Controls.Add(this.NetTime);
this.groupBox24.Font = new System.Drawing.Font("Palatino Linotype", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox24.Location = new System.Drawing.Point(596, 281);
this.groupBox24.Name = "groupBox24";
this.groupBox24.Size = new System.Drawing.Size(107, 49);
this.groupBox24.TabIndex = 14;
this.groupBox24.TabStop = false;
this.groupBox24.Text = "Net Time";
//
// NetTime
//
this.NetTime.AutoSize = true;
this.NetTime.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.NetTime.Location = new System.Drawing.Point(12, 21);
this.NetTime.Name = "NetTime";
this.NetTime.Size = new System.Drawing.Size(32, 18);
this.NetTime.TabIndex = 0;
this.NetTime.Text = " ";
//
// CorradePollTimeDial
//
this.CorradePollTimeDial.BackColor = System.Drawing.Color.Transparent;
this.CorradePollTimeDial.DialColor = System.Drawing.Color.LightYellow;
this.CorradePollTimeDial.DialText = "Poll (s)";
this.CorradePollTimeDial.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.CorradePollTimeDial.Glossiness = 0F;
this.CorradePollTimeDial.Location = new System.Drawing.Point(518, 333);
this.CorradePollTimeDial.MaxValue = 5F;
this.CorradePollTimeDial.MinValue = 0F;
this.CorradePollTimeDial.Name = "CorradePollTimeDial";
this.CorradePollTimeDial.NoOfDivisions = 5;
this.CorradePollTimeDial.NoOfSubDivisions = 4;
this.CorradePollTimeDial.RecommendedValue = 0F;
this.CorradePollTimeDial.Size = new System.Drawing.Size(150, 150);
this.CorradePollTimeDial.TabIndex = 15;
this.CorradePollTimeDial.ThresholdPercent = 20F;
this.CorradePollTimeDial.Value = 0F;
//
// Vassal
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -2115,7 +2422,7 @@
this.EstateListGroup.ResumeLayout(false);
this.EstateListGroup.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.EstateListGridView)).EndInit();
this.groupBox11.ResumeLayout(false);
this.RegionToolsTerrainToolsGroup.ResumeLayout(false);
this.groupBox13.ResumeLayout(false);
this.EstateTerrainDownloadUploadGroup.ResumeLayout(false);
this.EstateTopTab.ResumeLayout(false);
@@ -2178,6 +2485,19 @@
this.groupBox18.PerformLayout();
this.RegionToolsRegionDebugGroup.ResumeLayout(false);
this.RegionToolsRegionDebugGroup.PerformLayout();
this.ResidentListTeleportHomeGroup.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox18)).EndInit();
this.EstateVariablesGroup.ResumeLayout(false);
this.EstateVariablesGroup.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox19)).EndInit();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox11.ResumeLayout(false);
this.groupBox11.PerformLayout();
this.groupBox17.ResumeLayout(false);
this.groupBox17.PerformLayout();
this.groupBox24.ResumeLayout(false);
this.groupBox24.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
 
@@ -2205,7 +2525,7 @@
private SaveFileDialog SavePNGFileDialog;
private SaveFileDialog SaveRawFileDialog;
private TabPage EstateListsTab;
private GroupBox groupBox11;
private GroupBox RegionToolsTerrainToolsGroup;
private GroupBox groupBox13;
private Button RipTerrainButton;
private PictureBox pictureBox5;
@@ -2358,6 +2678,32 @@
private Button button4;
private OpenFileDialog LoadCSVFile;
private Button button9;
private GroupBox ResidentListTeleportHomeGroup;
private Button button1;
private PictureBox pictureBox18;
private GroupBox EstateVariablesGroup;
private Label label10;
private TextBox TerrainToolsSunPositionBox;
private CheckBox TerrainToolsFixedSunBox;
private CheckBox TerrainToolsUseEstateSunBox;
private Label label9;
private TextBox TerrainToolsTerrainLowerLimitBox;
private Label label8;
private TextBox TerrainToolsTerrainRaiseLimitBox;
private Label label7;
private TextBox TerrainToolsWaterHeightBox;
private PictureBox pictureBox19;
private Button SetTerrainVariablesButton;
private GroupBox groupBox1;
private Label FrameTime;
private GroupBox groupBox11;
private Label ScriptedObjects;
private GroupBox groupBox24;
private Label NetTime;
private GroupBox groupBox17;
private Label PhysicsTime;
private BackgroundWorker backgroundWorker1;
private AquaControls.AquaGauge CorradePollTimeDial;
}
}
 
/Vassal/Vassal/VassalForm.cs
@@ -6,6 +6,7 @@
 
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
@@ -499,6 +500,9 @@
vassalForm.StatusText.Text = @"Teleporting to " + selectedRegionName;
}));
 
// Pause for teleport (10 teleports / 15s allowed).
Thread.Sleep(700);
 
int elapsedSeconds = 0;
Timer teleportTimer = new Timer(TimeSpan.FromSeconds(1).TotalMilliseconds);
teleportTimer.Elapsed += (o, p) =>
@@ -619,6 +623,14 @@
ActiveScripts.Enabled = false;
ScriptTime.Text = string.Empty;
ScriptTime.Enabled = false;
FrameTime.Text = string.Empty;
FrameTime.Enabled = false;
ScriptedObjects.Text = string.Empty;
ScriptedObjects.Enabled = false;
PhysicsTime.Text = string.Empty;
PhysicsTime.Enabled = false;
NetTime.Text = string.Empty;
NetTime.Enabled = false;
Objects.Text = string.Empty;
Objects.Enabled = false;
}));
@@ -653,7 +665,9 @@
EstateTopTab.Enabled = false;
EstateListsTab.Enabled = false;
ResidentListBanGroup.Enabled = false;
ResidentListTeleportHomeGroup.Enabled = false;
EstateTerrainDownloadUploadGroup.Enabled = false;
EstateVariablesGroup.Enabled = false;
// Estate textures
RegionTexturesLowUUIDApplyBox.Enabled = false;
RegionTexturesLowUUIDApplyButton.Enabled = false;
@@ -734,6 +748,7 @@
break;
}
Tabs.Enabled = true;
RegionTeleportGroup.Enabled = true;
}));
}
catch (Exception)
@@ -757,6 +772,7 @@
break;
}
Tabs.Enabled = false;
RegionTeleportGroup.Enabled = false;
}));
}
 
@@ -799,7 +815,9 @@
EstateTopTab.Enabled = true;
EstateListsTab.Enabled = true;
ResidentListBanGroup.Enabled = true;
ResidentListTeleportHomeGroup.Enabled = true;
EstateTerrainDownloadUploadGroup.Enabled = true;
EstateVariablesGroup.Enabled = true;
RegionToolsRegionDebugGroup.Enabled = true;
RegionToolsRegionInfoGroup.Enabled = true;
// Estate textures
@@ -816,7 +834,9 @@
EstateTopTab.Enabled = false;
EstateListsTab.Enabled = false;
ResidentListBanGroup.Enabled = false;
ResidentListTeleportHomeGroup.Enabled = false;
EstateTerrainDownloadUploadGroup.Enabled = false;
EstateVariablesGroup.Enabled = false;
RegionToolsRegionDebugGroup.Enabled = false;
RegionToolsRegionInfoGroup.Enabled = false;
// Estate textures
@@ -862,6 +882,9 @@
 
try
{
// Start measuring the lag to Corrade.
Stopwatch stopWatch = new Stopwatch();
stopWatch.Start();
// Get the statistics.
string result = wasPOST(vassalConfiguration.HTTPServerURL,
wasKeyValueEscape(new Dictionary<string, string>
@@ -880,10 +903,15 @@
"ActiveScripts",
"ScriptTime",
"Objects",
"FrameTime",
"ScriptedObjects",
"PhysicsTime",
"NetTime",
"AvatarPositions"
})
}
}), vassalConfiguration.DataTimeout);
stopWatch.Stop();
 
bool success;
if (string.IsNullOrEmpty(result) ||
@@ -911,8 +939,21 @@
ActiveScripts.Enabled = true;
ScriptTime.Text = data[data.IndexOf("ScriptTime") + 1];
ScriptTime.Enabled = true;
FrameTime.Text = data[data.IndexOf("FrameTime") + 1];
FrameTime.Enabled = true;
ScriptedObjects.Text = data[data.IndexOf("ScriptedObjects") + 1];
ScriptedObjects.Enabled = true;
PhysicsTime.Text = data[data.IndexOf("PhysicsTime") + 1];
PhysicsTime.Enabled = true;
NetTime.Text = data[data.IndexOf("NetTime") + 1];
NetTime.Enabled = true;
Objects.Text = data[data.IndexOf("Objects") + 1];
Objects.Enabled = true;
 
// Show the overview lag time.
CorradePollTimeDial.Value =
(float) Math.Min(TimeSpan.FromMilliseconds(stopWatch.ElapsedMilliseconds).TotalSeconds,
CorradePollTimeDial.MaxValue);
}));
 
// Get avatar positions.
@@ -2037,7 +2078,6 @@
vassalForm.Invoke(
(MethodInvoker)
(() => { vassalForm.StatusText.Text = @"Teleport succeeded."; }));
Thread.Sleep(TimeSpan.FromSeconds(1).Milliseconds);
break;
default:
// In case the destination is to close (Corrade status code 37559),
@@ -2054,11 +2094,13 @@
vassalForm.Invoke(
(MethodInvoker)
(() => { vassalForm.StatusText.Text = @"Teleport failed."; }));
Thread.Sleep(10000);
break;
}
break;
}
 
// Pause for teleport (10 teleports / 15s allowed).
Thread.Sleep(700);
} while (!success && !(--teleportRetries).Equals(0));
 
if (!success)
@@ -2146,6 +2188,11 @@
}
}));
}
finally
{
// Pause for teleport (10 teleports / 15s allowed).
Thread.Sleep(700);
}
} while (!restartRegionQueue.Count.Equals(0));
}
catch (Exception)
@@ -2196,11 +2243,12 @@
// Block teleports and disable button.
vassalForm.Invoke((MethodInvoker) (() =>
{
ResidentListTeleportHomeGroup.Enabled = false;
ResidentListBanGroup.Enabled = false;
RegionTeleportGroup.Enabled = false;
}));
 
// Enqueue all the regions to restart.
// Enqueue all the agents to ban.
Queue<UUID> agentsQueue = new Queue<UUID>();
vassalForm.Invoke((MethodInvoker) (() =>
{
@@ -2256,7 +2304,7 @@
vassalForm.Invoke(
(MethodInvoker) (() => { alsoBan = vassalForm.ResidentBanAllEstatesBox.Checked; }));
 
// Teleport to the region.
// Ban the resident.
string result = wasPOST(vassalConfiguration.HTTPServerURL,
wasKeyValueEscape(new Dictionary<string, string>
{
@@ -2322,6 +2370,7 @@
// Allow teleports and enable button.
vassalForm.BeginInvoke((MethodInvoker) (() =>
{
ResidentListTeleportHomeGroup.Enabled = true;
ResidentListBanGroup.Enabled = true;
RegionTeleportGroup.Enabled = true;
}));
@@ -3999,6 +4048,294 @@
}));
}
 
private void RequestTeleportHome(object sender, EventArgs e)
{
// Block teleports and disable button.
vassalForm.Invoke((MethodInvoker) (() =>
{
ResidentListTeleportHomeGroup.Enabled = false;
ResidentListBanGroup.Enabled = false;
RegionTeleportGroup.Enabled = false;
}));
 
// Enqueue all the agents to teleport home.
Queue<UUID> agentsQueue = new Queue<UUID>();
vassalForm.Invoke((MethodInvoker) (() =>
{
foreach (
DataGridViewRow residentListRow in
ResidentListGridView.Rows.AsParallel()
.Cast<DataGridViewRow>()
.Where(o => o.Selected || o.Cells.Cast<DataGridViewCell>().Any(p => p.Selected)))
{
UUID agentUUID;
if (!UUID.TryParse(residentListRow.Cells["ResidentListUUID"].Value.ToString(), out agentUUID))
continue;
agentsQueue.Enqueue(agentUUID);
}
}));
 
// If no rows were selected, enable teleports, the return button and return.
if (agentsQueue.Count.Equals(0))
{
vassalForm.Invoke((MethodInvoker) (() =>
{
ResidentListBanGroup.Enabled = true;
RegionTeleportGroup.Enabled = true;
}));
return;
}
 
new Thread(() =>
{
Monitor.Enter(ClientInstanceTeleportLock);
try
{
do
{
// Dequeue the first object.
UUID agentUUID = agentsQueue.Dequeue();
DataGridViewRow currentDataGridViewRow = null;
vassalForm.Invoke((MethodInvoker) (() =>
{
currentDataGridViewRow = vassalForm.ResidentListGridView.Rows.AsParallel()
.Cast<DataGridViewRow>()
.FirstOrDefault(
o =>
o.Cells["ResidentListUUID"].Value.ToString()
.Equals(agentUUID.ToString(), StringComparison.OrdinalIgnoreCase));
}));
 
if (currentDataGridViewRow == null) continue;
 
try
{
// Teleport the user home.
string result = wasPOST(vassalConfiguration.HTTPServerURL,
wasKeyValueEscape(new Dictionary<string, string>
{
{"command", "estateteleportusershome"},
{"group", vassalConfiguration.Group},
{"password", vassalConfiguration.Password},
{"avatars", agentUUID.ToString()}
}), vassalConfiguration.DataTimeout);
 
if (string.IsNullOrEmpty(result))
throw new Exception("Error communicating with Corrade.");
 
bool success;
if (!bool.TryParse(wasInput(wasKeyValueGet("success", result)), out success))
throw new Exception("No success status could be retrieved.");
 
switch (success)
{
case true:
vassalForm.Invoke((MethodInvoker) (() =>
{
vassalForm.StatusText.Text = @"Resident teleported home.";
currentDataGridViewRow.Selected = false;
currentDataGridViewRow.DefaultCellStyle.BackColor = Color.LightGreen;
foreach (
DataGridViewCell cell in
currentDataGridViewRow.Cells.AsParallel().Cast<DataGridViewCell>())
{
cell.ToolTipText = @"Resident teleported home.";
}
}));
break;
default:
throw new Exception("Unable to teleport resident home.");
}
}
catch (Exception ex)
{
vassalForm.Invoke((MethodInvoker) (() =>
{
vassalForm.StatusText.Text = ex.Message;
currentDataGridViewRow.Selected = false;
currentDataGridViewRow.DefaultCellStyle.BackColor = Color.LightPink;
foreach (
DataGridViewCell cell in
currentDataGridViewRow.Cells.AsParallel().Cast<DataGridViewCell>())
{
cell.ToolTipText = ex.Message;
}
}));
}
} while (agentsQueue.Count.Equals(0));
}
catch (Exception)
{
}
finally
{
Monitor.Exit(ClientInstanceTeleportLock);
// Allow teleports and enable button.
vassalForm.BeginInvoke((MethodInvoker) (() =>
{
ResidentListTeleportHomeGroup.Enabled = true;
ResidentListBanGroup.Enabled = true;
RegionTeleportGroup.Enabled = true;
}));
}
})
{IsBackground = true}.Start();
}
 
private void RequestSetVariables(object sender, EventArgs e)
{
// Block teleports and disable button.
vassalForm.Invoke((MethodInvoker) (() =>
{
RegionTeleportGroup.Enabled = false;
SetTerrainVariablesButton.Enabled = false;
}));
 
new Thread(() =>
{
try
{
Monitor.Enter(ClientInstanceTeleportLock);
 
int waterHeight = 10;
int terrainRaiseLimit = 100;
int terrainLowerLimit = -100;
bool useEstateSun = true;
bool fixedSun = false;
int sunPosition = 18;
 
bool run = false;
 
vassalForm.Invoke((MethodInvoker) (() =>
{
useEstateSun = TerrainToolsUseEstateSunBox.Checked;
fixedSun = TerrainToolsFixedSunBox.Checked;
switch (!int.TryParse(TerrainToolsWaterHeightBox.Text, out waterHeight))
{
case true:
TerrainToolsWaterHeightBox.BackColor = Color.MistyRose;
return;
default:
TerrainToolsWaterHeightBox.BackColor = Color.Empty;
break;
}
switch (!int.TryParse(TerrainToolsTerrainRaiseLimitBox.Text, out terrainRaiseLimit))
{
case true:
TerrainToolsTerrainRaiseLimitBox.BackColor = Color.MistyRose;
return;
default:
TerrainToolsTerrainRaiseLimitBox.BackColor = Color.Empty;
break;
}
switch (!int.TryParse(TerrainToolsTerrainLowerLimitBox.Text, out terrainLowerLimit))
{
case true:
TerrainToolsTerrainLowerLimitBox.BackColor = Color.MistyRose;
return;
default:
TerrainToolsTerrainLowerLimitBox.BackColor = Color.Empty;
break;
}
switch (!int.TryParse(TerrainToolsSunPositionBox.Text, out sunPosition))
{
case true:
TerrainToolsSunPositionBox.BackColor = Color.MistyRose;
return;
default:
TerrainToolsSunPositionBox.BackColor = Color.Empty;
break;
}
 
run = true;
}));
 
if (!run) return;
 
// Set the terrain variables.
string result = wasPOST(vassalConfiguration.HTTPServerURL,
wasKeyValueEscape(new Dictionary<string, string>
{
{"command", "setregionterrainvariables"},
{"group", vassalConfiguration.Group},
{"password", vassalConfiguration.Password},
{"waterheight", waterHeight.ToString()},
{"terrainraiselimit", terrainRaiseLimit.ToString()},
{"terrainlowerlimit", terrainLowerLimit.ToString()},
{"useestatesun", useEstateSun.ToString()},
{"fixedsun", fixedSun.ToString()},
{"sunposition", sunPosition.ToString()}
}), vassalConfiguration.DataTimeout);
 
if (string.IsNullOrEmpty(result))
throw new Exception("Error communicating with Corrade");
 
bool success;
if (!bool.TryParse(wasInput(wasKeyValueGet("success", result)), out success))
throw new Exception("No success status could be retrieved");
 
if (!success)
throw new Exception("Unable to set region variables");
}
catch (Exception ex)
{
vassalForm.Invoke((MethodInvoker) (() => { StatusText.Text = ex.Message; }));
}
finally
{
Monitor.Exit(ClientInstanceTeleportLock);
}
 
// Block teleports and disable button.
vassalForm.Invoke((MethodInvoker) (() =>
{
RegionTeleportGroup.Enabled = true;
SetTerrainVariablesButton.Enabled = true;
}));
})
{IsBackground = true}.Start();
}
 
private void ReconnectRequested(object sender, EventArgs e)
{
// Spawn a thread to check Corrade's connection status.
new Thread(() =>
{
TcpClient tcpClient = new TcpClient();
try
{
Uri uri = new Uri(vassalConfiguration.HTTPServerURL);
tcpClient.Connect(uri.Host, uri.Port);
// port open
vassalForm.BeginInvoke((MethodInvoker) (() => { vassalForm.Tabs.Enabled = true; }));
// set the loading spinner
if (vassalForm.RegionAvatarsMap.Image == null)
{
Assembly thisAssembly = Assembly.GetExecutingAssembly();
Stream file =
thisAssembly.GetManifestResourceStream("Vassal.img.loading.gif");
switch (file != null)
{
case true:
vassalForm.BeginInvoke((MethodInvoker) (() =>
{
vassalForm.RegionAvatarsMap.SizeMode = PictureBoxSizeMode.CenterImage;
vassalForm.RegionAvatarsMap.Image = Image.FromStream(file);
vassalForm.RegionAvatarsMap.Refresh();
}));
break;
}
}
}
catch (Exception)
{
// port closed
vassalForm.BeginInvoke((MethodInvoker) (() => { vassalForm.Tabs.Enabled = false; }));
}
})
{IsBackground = true}.Start();
}
 
/// <summary>
/// Linden constants.
/// </summary>
/Vassal/Vassal/VassalForm.resx
@@ -7435,6 +7435,60 @@
<metadata name="EstateListUUID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="pictureBox19.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACH
DwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKOWlDQ1BQaG90b3Nob3AgSUNDIHByb2Zp
bGUAAEjHnZZ3VFTXFofPvXd6oc0wAlKG3rvAANJ7k15FYZgZYCgDDjM0sSGiAhFFRJoiSFDEgNFQJFZE
sRAUVLAHJAgoMRhFVCxvRtaLrqy89/Ly++Os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Hwc/vj/OGn/2S8Yv7ycKnpCfVEyqTDZPmU2dmnafvvF05dOJZ+nPFmYKf5X+
tfa5zvMffnP8rX82YnbiBf/Fp99LXsq/PPRq2aueuYC5R69TXy/MF72Rf3P4LeNt37vwd5MLWe+x7ys/
6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAAuIwAALiMBeKU/dgAAANVJREFUOE/Nkj0LwjAQ
hv3lHW1xUOigoKAgFKeCgyL4kUVwcCi46KSTLuLm5nLyRqIxvZAIoTg8y13v4b1ca1EkKCQW4Yqp+VFF
wle6JF6QmGZ0OaRv9tuurJVnPlgTQnA/N6RksxxKjrs2Pa51KtZ9dgawwmwwtg4iIXpJPC/1ACvEukiT
j/KvetqayTqS63Ud76MgGUS3U5N6nQn7DbAeRUetiSdAerOv45VQJeN6Jk6hOhCuzPVNqhcCSLk6h5fQ
dQgdpxD/YtCVgwtB0JV/5d+Fgp6AN1enJiPk3QAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="TopCollidersScore.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -7471,6 +7525,60 @@
<metadata name="BatchRestartPosition.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="pictureBox18.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACH
DwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKOWlDQ1BQaG90b3Nob3AgSUNDIHByb2Zp
bGUAAEjHnZZ3VFTXFofPvXd6oc0wAlKG3rvAANJ7k15FYZgZYCgDDjM0sSGiAhFFRJoiSFDEgNFQJFZE
sRAUVLAHJ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UeVjxS
fNTws+7PbaOWo6fHXMf6Hwc/vj/OGn/2S8Yv7ycKnpCfVEyqTDZPmU2dmnafvvF05dOJZ+nPFmYKf5X+
tfa5zvMffnP8rX82YnbiBf/Fp99LXsq/PPRq2aueuYC5R69TXy/MF72Rf3P4LeNt37vwd5MLWe+x7ys/
6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAAuIwAALiMBeKU/dgAAANVJREFUOE/Nkj0LwjAQ
hv3lHW1xUOigoKAgFKeCgyL4kUVwcCi46KSTLuLm5nLyRqIxvZAIoTg8y13v4b1ca1EkKCQW4Yqp+VFF
wle6JF6QmGZ0OaRv9tuurJVnPlgTQnA/N6RksxxKjrs2Pa51KtZ9dgawwmwwtg4iIXpJPC/1ACvEukiT
j/KvetqayTqS63Ud76MgGUS3U5N6nQn7DbAeRUetiSdAerOv45VQJeN6Jk6hOhCuzPVNqhcCSLk6h5fQ
dQgdpxD/YtCVgwtB0JV/5d+Fgp6AN1enJiPk3QAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="ResidentListName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -7492,6 +7600,9 @@
<metadata name="LoadCSVFile.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>837, 17</value>
</metadata>
<metadata name="backgroundWorker1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 56</value>
</metadata>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAYAAAAAAAEAIADVHwEAZgAAAICAAAABACAAKAgBADsgAQBAQAAAAQAgAChCAABjKAIAMDAAAAEA