R
rich
I'm a Beginer and trying my best i get this error but i'm not sure why. I
Keep getting this error here is my code. please help.
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace LinearDials
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frm1_IndicatorInfo());
}
}
public enum AcadColors : short
{
ByBlock=0,
Red=1,
Yellow=2,
Green=3,
Cyan=4,
Blue=5,
Magenta=6,
White=7,
ByLayer=256
}
public enum DialTypeStyle : byte
{
BitWeight=0,
CraneWeight=1
}
public enum DialWeightType : byte
{
BitWeight=0,
TotalWeight=1
}
public enum DialDirection : byte
{
None=0,
Inside=1,
Outside=2
}
public enum DialJustification:byte
{
None=0,
Left=1,
Center=2,
Right=3
}
public struct DialDoc
{
private string m_BaseNumber;
private string m_DashNumber;
private string m_DocNumber;
private string m_Title1;
private string m_Title2;
private string m_BlockName;
private double m_BlockScale;
private double[] m_InsPoint;
private string m_BlockLayer;
private AcadColors m_BlockColor;
private string m_FileName;
private long m_SheetNumber;
private long m_TotalSheets;
public DialDoc(string BaseNo, string DashNo, string T1, string T2,
string BlkName, double BlkScl, double[] InsPt, string
BlkLayer, AcadColors BlkColor,
string FileNo, long ShtNo, long TotalShts)
{
BaseNumber = BaseNo;
DashNumber = DashNo;
DocNumber = BaseNo + "-" + DashNo;
Title1 = T1;
Title2 = T2;
BlockName = BlkName;
BlockScale = BlkScl;
InsPoint = InsPt;
BlockLayer = BlkLayer;
BlockColor = BlkColor;
FileName = FileNo;
SheetNumber = ShtNo;
TotalSheets = TotalShts;
}
public string BaseNumber
{
get { return m_BaseNumber; }
set { m_BaseNumber = value; }
}
public string DashNumber
{
get { return m_DashNumber; }
set { m_DashNumber = value; }
}
public string DocNumber
{
get { return m_BaseNumber + "-" + m_DashNumber; }
set { m_BaseNumber = value; }
}
public string Title1
{
get { return m_Title1; }
set { m_Title1 = value; }
}
public string Title2
{
get { return m_Title2; }
set { m_Title2 = value; }
}
public string BlockName
{
get { return m_BlockName; }
set { m_BlockName = value; }
}
public double BlockScale
{
get { return m_BlockScale; }
set { m_BlockScale = value; }
}
//public double[] InsPoint_Set(double P1, double P2, double P3)
//{
// double[] m_InsPoint = new double[3] { P1, P2, P3 };
// return m_InsPoint;
//}
//public double[] InsPoint
//{
// get { return m_InsPoint; }
//}
public string BlockLayer
{
get { return m_BlockLayer; }
set { m_BlockLayer = value; }
}
public AcadColors BlockColor
{
get { return m_BlockColor; }
set { m_BlockColor = value; }
}
public string FileName
{
get { return m_FileName; }
set { m_FileName = value; }
}
public long SheetNumber
{
get { return m_SheetNumber; }
set { m_SheetNumber = value; }
}
public long TotalSheets
{
get { return m_TotalSheets; }
set { m_TotalSheets = value; }
}
}
public struct DialData
{
private string m_SeriesNumber;
private string m_SeriesDesc;
private string m_DialDesc;
private string m_Revision;
private string m_Drafter;
private string m_Engineer;
private string m_EsrNumber;
private string m_SalesOrderNo;
private bool m_SupportsReverseSide;
private bool m_SupportsBitWeight;
private bool m_SupportsPartsLine;
private bool m_SupportsDualUnits;
private bool m_DisplayLBS_as_KLBS;
private bool m_IncludeReverseSide;
private bool m_IncludeBitWeight;
private bool m_IncludePartsLine;
private bool m_UseSingleLineCap;
private long m_SingleLineCapacity;
private bool m_UseDualUnits;
private string m_OuterUnits;
private string m_InnerUnits;
private long m_FrontPartsLine;
private long m_ReversePartsLine;
private string m_FilePath;
private string m_XLS_File;
private string m_BlkPath;
private DialTypeStyle m_DialType;
public string SeriesNumber
{
get { return m_SeriesNumber; }
set { m_SeriesNumber = value; }
}
public string SeriesDesc
{
get { return m_SeriesDesc; }
set { m_SeriesDesc = value; }
}
public string DialDesc
{
get { return m_DialDesc; }
set { m_DialDesc = value; }
}
public string Revision
{
get { return m_Revision; }
set { m_Revision = value; }
}
public string Drafter
{
get { return m_Drafter; }
set { m_Drafter = value; }
}
public string Engineer
{
get { return m_Engineer; }
set { m_Engineer = value; }
}
public string EsrNumber
{
get { return m_EsrNumber; }
set { m_EsrNumber = value; }
}
public string SalesOrderNo
{
get { return m_SalesOrderNo; }
set { m_SalesOrderNo = value; }
}
public bool SupportsReverseSide
{
get { return m_SupportsReverseSide; }
set { m_SupportsReverseSide = value; }
}
public bool SupportsBitWeight
{
get { return m_SupportsBitWeight; }
set { m_SupportsBitWeight = value; }
}
public bool SupportsPartsLine
{
get { return m_SupportsPartsLine; }
set { m_SupportsPartsLine = value; }
}
public bool SupportsDualUnits
{
get { return m_SupportsDualUnits; }
set { m_SupportsDualUnits = value; }
}
public bool DisplayLBS_as_KLBS
{
get { return m_DisplayLBS_as_KLBS; }
set { m_DisplayLBS_as_KLBS = value; }
}
public bool IncludeReverseSide
{
get { return m_IncludeReverseSide; }
set { m_IncludeReverseSide = value; }
}
public bool IncludeBitWeight
{
get { return m_IncludeBitWeight; }
set { m_IncludeBitWeight = value; }
}
public bool IncludePartsLine
{
get { return m_IncludePartsLine; }
set { m_IncludePartsLine = value; }
}
public bool UseSingleLineCap
{
get { return m_UseSingleLineCap; }
set { m_UseSingleLineCap = value; }
}
public long SingleLineCapacity
{
get { return m_SingleLineCapacity; }
set { m_SingleLineCapacity = value; }
}
public bool UseDualUnits
{
get { return m_UseDualUnits; }
set { m_UseDualUnits = value; }
}
public string OuterUnits
{
get { return m_OuterUnits; }
set { m_OuterUnits = value; }
}
public string InnerUnits
{
get { return m_InnerUnits; }
set { m_InnerUnits = value; }
}
public long FrontPartsLine
{
get { return m_FrontPartsLine; }
set { m_FrontPartsLine = value; }
}
public long ReversePartsLine
{
get { return m_ReversePartsLine; }
set { m_ReversePartsLine = value; }
}
public string FilePath
{
get { return m_FilePath; }
set { m_FilePath = value; }
}
public string XLS_File
{
get { return m_XLS_File; }
set { m_XLS_File = value; }
}
public string BlkPath
{
get { return m_BlkPath; }
set { m_BlkPath = value; }
}
public DialTypeStyle DialType
{
get { return m_DialType; }
set { m_DialType = value; }
}
}
public struct DialTW
{
private string m_PartsLine;
private string m_DialType;
private string m_IncSize;
private string m_Capacity;
private string m_Measurement;
private long m_CalLoadCapacity;
private long m_SelLoadCapacity;
private long m_DialScaleAng;
private long m_IncScale;
private double m_IncLoad;
private double m_IncAngle;
private long m_MinorTicks;
private long m_MajorTicks;
private long m_TextTicks;
private long m_TextMultiplier;
private string m_BlockName;
private double m_BlockScale;
private double[] m_InsPoint;
private string m_BlockLayer;
private AcadColors m_BlockColor;
private double m_TickOuterDiameter;
private double m_TickOuterDiameterWidth;
private double m_TickInnerDiameter;
private double m_TickInnerDiameterWidth;
private double m_TickTextDiameter;
private DialDirection m_TickTextDirection;
private double m_MinorTickLength;
private double m_MinorTickWidth;
private double m_MajorTickLength;
private double m_MajorTickWidth;
private double m_Tick0Angle;
private string m_TextStyleName;
private double m_TextHeight;
private double m_TextWidth;
private double m_TextRotAngle;
private string m_LayerName;
private AcadColors m_LayerColor;
private double m_AT_PL_Radius;
private DialDirection m_AT_PL_Direction;
private DialJustification m_AT_PL_Justification;
private string m_AT_PL_TextStyleName;
private double m_AT_PL_Height;
private double m_AT_PL_Spacing;
private string m_AT_PL_LayerName;
private AcadColors m_AT_PL_LayerColor;
private double m_AT_PN_Radius;
private DialDirection m_AT_PN_Direction;
private DialJustification m_AT_PN_Justification;
private string m_AT_PN_TextStyleName;
private double m_AT_PN_Height;
private double m_AT_PN_Spacing;
private string m_AT_PN_LayerName;
private AcadColors m_AT_PN_LayerColor;
public string PartsLine
{
get { return m_PartsLine; }
set { m_PartsLine = value; }
}
public string DialType
{
get { return m_DialType; }
set { m_DialType = value; }
}
public string IncSize
{
get { return m_IncSize; }
set { m_IncSize = value; }
}
public string Capacity
{
get { return m_Capacity; }
set { m_Capacity = value; }
}
public string Measurement
{
get { return m_Measurement; }
set { m_Measurement = value; }
}
public long CalLoadCapacity
{
get { return m_CalLoadCapacity; }
set { m_CalLoadCapacity = value; }
}
public long SelLoadCapacity
{
get { return m_SelLoadCapacity; }
set { m_SelLoadCapacity = value; }
}
public long DialScaleAng
{
get { return m_DialScaleAng; }
set { m_DialScaleAng = value; }
}
public long IncScale
{
get { return m_IncScale; }
set { m_IncScale = value; }
}
public double IncLoad
{
get { return m_IncLoad; }
set { m_IncLoad = value; }
}
public double IncAngle
{
get { return m_IncAngle; }
set { m_IncAngle = value; }
}
public long MinorTicks
{
get { return m_MinorTicks; }
set { m_MinorTicks = value; }
}
public long MajorTicks
{
get { return m_MajorTicks; }
set { m_MajorTicks = value; }
}
public long TextTicks
{
get { return m_TextTicks; }
set { m_TextTicks = value; }
}
public long TextMultiplier
{
get { return m_TextMultiplier; }
set { m_TextMultiplier = value; }
}
public string BlockName
{
get { return m_BlockName; }
set { m_BlockName = value; }
}
public double BlockScale
{
get { return m_BlockScale; }
set { m_BlockScale = value; }
}
public double[] InsPoint_Set(double P1, double P2, double P3)
{
double[] m_InsPoint = new double[3] { P1, P2, P3 };
return m_InsPoint;
}
public double[] InsPoint
{
get { return m_InsPoint; }
}
Keep getting this error here is my code. please help.
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace LinearDials
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frm1_IndicatorInfo());
}
}
public enum AcadColors : short
{
ByBlock=0,
Red=1,
Yellow=2,
Green=3,
Cyan=4,
Blue=5,
Magenta=6,
White=7,
ByLayer=256
}
public enum DialTypeStyle : byte
{
BitWeight=0,
CraneWeight=1
}
public enum DialWeightType : byte
{
BitWeight=0,
TotalWeight=1
}
public enum DialDirection : byte
{
None=0,
Inside=1,
Outside=2
}
public enum DialJustification:byte
{
None=0,
Left=1,
Center=2,
Right=3
}
public struct DialDoc
{
private string m_BaseNumber;
private string m_DashNumber;
private string m_DocNumber;
private string m_Title1;
private string m_Title2;
private string m_BlockName;
private double m_BlockScale;
private double[] m_InsPoint;
private string m_BlockLayer;
private AcadColors m_BlockColor;
private string m_FileName;
private long m_SheetNumber;
private long m_TotalSheets;
public DialDoc(string BaseNo, string DashNo, string T1, string T2,
string BlkName, double BlkScl, double[] InsPt, string
BlkLayer, AcadColors BlkColor,
string FileNo, long ShtNo, long TotalShts)
{
BaseNumber = BaseNo;
DashNumber = DashNo;
DocNumber = BaseNo + "-" + DashNo;
Title1 = T1;
Title2 = T2;
BlockName = BlkName;
BlockScale = BlkScl;
InsPoint = InsPt;
BlockLayer = BlkLayer;
BlockColor = BlkColor;
FileName = FileNo;
SheetNumber = ShtNo;
TotalSheets = TotalShts;
}
public string BaseNumber
{
get { return m_BaseNumber; }
set { m_BaseNumber = value; }
}
public string DashNumber
{
get { return m_DashNumber; }
set { m_DashNumber = value; }
}
public string DocNumber
{
get { return m_BaseNumber + "-" + m_DashNumber; }
set { m_BaseNumber = value; }
}
public string Title1
{
get { return m_Title1; }
set { m_Title1 = value; }
}
public string Title2
{
get { return m_Title2; }
set { m_Title2 = value; }
}
public string BlockName
{
get { return m_BlockName; }
set { m_BlockName = value; }
}
public double BlockScale
{
get { return m_BlockScale; }
set { m_BlockScale = value; }
}
//public double[] InsPoint_Set(double P1, double P2, double P3)
//{
// double[] m_InsPoint = new double[3] { P1, P2, P3 };
// return m_InsPoint;
//}
//public double[] InsPoint
//{
// get { return m_InsPoint; }
//}
public string BlockLayer
{
get { return m_BlockLayer; }
set { m_BlockLayer = value; }
}
public AcadColors BlockColor
{
get { return m_BlockColor; }
set { m_BlockColor = value; }
}
public string FileName
{
get { return m_FileName; }
set { m_FileName = value; }
}
public long SheetNumber
{
get { return m_SheetNumber; }
set { m_SheetNumber = value; }
}
public long TotalSheets
{
get { return m_TotalSheets; }
set { m_TotalSheets = value; }
}
}
public struct DialData
{
private string m_SeriesNumber;
private string m_SeriesDesc;
private string m_DialDesc;
private string m_Revision;
private string m_Drafter;
private string m_Engineer;
private string m_EsrNumber;
private string m_SalesOrderNo;
private bool m_SupportsReverseSide;
private bool m_SupportsBitWeight;
private bool m_SupportsPartsLine;
private bool m_SupportsDualUnits;
private bool m_DisplayLBS_as_KLBS;
private bool m_IncludeReverseSide;
private bool m_IncludeBitWeight;
private bool m_IncludePartsLine;
private bool m_UseSingleLineCap;
private long m_SingleLineCapacity;
private bool m_UseDualUnits;
private string m_OuterUnits;
private string m_InnerUnits;
private long m_FrontPartsLine;
private long m_ReversePartsLine;
private string m_FilePath;
private string m_XLS_File;
private string m_BlkPath;
private DialTypeStyle m_DialType;
public string SeriesNumber
{
get { return m_SeriesNumber; }
set { m_SeriesNumber = value; }
}
public string SeriesDesc
{
get { return m_SeriesDesc; }
set { m_SeriesDesc = value; }
}
public string DialDesc
{
get { return m_DialDesc; }
set { m_DialDesc = value; }
}
public string Revision
{
get { return m_Revision; }
set { m_Revision = value; }
}
public string Drafter
{
get { return m_Drafter; }
set { m_Drafter = value; }
}
public string Engineer
{
get { return m_Engineer; }
set { m_Engineer = value; }
}
public string EsrNumber
{
get { return m_EsrNumber; }
set { m_EsrNumber = value; }
}
public string SalesOrderNo
{
get { return m_SalesOrderNo; }
set { m_SalesOrderNo = value; }
}
public bool SupportsReverseSide
{
get { return m_SupportsReverseSide; }
set { m_SupportsReverseSide = value; }
}
public bool SupportsBitWeight
{
get { return m_SupportsBitWeight; }
set { m_SupportsBitWeight = value; }
}
public bool SupportsPartsLine
{
get { return m_SupportsPartsLine; }
set { m_SupportsPartsLine = value; }
}
public bool SupportsDualUnits
{
get { return m_SupportsDualUnits; }
set { m_SupportsDualUnits = value; }
}
public bool DisplayLBS_as_KLBS
{
get { return m_DisplayLBS_as_KLBS; }
set { m_DisplayLBS_as_KLBS = value; }
}
public bool IncludeReverseSide
{
get { return m_IncludeReverseSide; }
set { m_IncludeReverseSide = value; }
}
public bool IncludeBitWeight
{
get { return m_IncludeBitWeight; }
set { m_IncludeBitWeight = value; }
}
public bool IncludePartsLine
{
get { return m_IncludePartsLine; }
set { m_IncludePartsLine = value; }
}
public bool UseSingleLineCap
{
get { return m_UseSingleLineCap; }
set { m_UseSingleLineCap = value; }
}
public long SingleLineCapacity
{
get { return m_SingleLineCapacity; }
set { m_SingleLineCapacity = value; }
}
public bool UseDualUnits
{
get { return m_UseDualUnits; }
set { m_UseDualUnits = value; }
}
public string OuterUnits
{
get { return m_OuterUnits; }
set { m_OuterUnits = value; }
}
public string InnerUnits
{
get { return m_InnerUnits; }
set { m_InnerUnits = value; }
}
public long FrontPartsLine
{
get { return m_FrontPartsLine; }
set { m_FrontPartsLine = value; }
}
public long ReversePartsLine
{
get { return m_ReversePartsLine; }
set { m_ReversePartsLine = value; }
}
public string FilePath
{
get { return m_FilePath; }
set { m_FilePath = value; }
}
public string XLS_File
{
get { return m_XLS_File; }
set { m_XLS_File = value; }
}
public string BlkPath
{
get { return m_BlkPath; }
set { m_BlkPath = value; }
}
public DialTypeStyle DialType
{
get { return m_DialType; }
set { m_DialType = value; }
}
}
public struct DialTW
{
private string m_PartsLine;
private string m_DialType;
private string m_IncSize;
private string m_Capacity;
private string m_Measurement;
private long m_CalLoadCapacity;
private long m_SelLoadCapacity;
private long m_DialScaleAng;
private long m_IncScale;
private double m_IncLoad;
private double m_IncAngle;
private long m_MinorTicks;
private long m_MajorTicks;
private long m_TextTicks;
private long m_TextMultiplier;
private string m_BlockName;
private double m_BlockScale;
private double[] m_InsPoint;
private string m_BlockLayer;
private AcadColors m_BlockColor;
private double m_TickOuterDiameter;
private double m_TickOuterDiameterWidth;
private double m_TickInnerDiameter;
private double m_TickInnerDiameterWidth;
private double m_TickTextDiameter;
private DialDirection m_TickTextDirection;
private double m_MinorTickLength;
private double m_MinorTickWidth;
private double m_MajorTickLength;
private double m_MajorTickWidth;
private double m_Tick0Angle;
private string m_TextStyleName;
private double m_TextHeight;
private double m_TextWidth;
private double m_TextRotAngle;
private string m_LayerName;
private AcadColors m_LayerColor;
private double m_AT_PL_Radius;
private DialDirection m_AT_PL_Direction;
private DialJustification m_AT_PL_Justification;
private string m_AT_PL_TextStyleName;
private double m_AT_PL_Height;
private double m_AT_PL_Spacing;
private string m_AT_PL_LayerName;
private AcadColors m_AT_PL_LayerColor;
private double m_AT_PN_Radius;
private DialDirection m_AT_PN_Direction;
private DialJustification m_AT_PN_Justification;
private string m_AT_PN_TextStyleName;
private double m_AT_PN_Height;
private double m_AT_PN_Spacing;
private string m_AT_PN_LayerName;
private AcadColors m_AT_PN_LayerColor;
public string PartsLine
{
get { return m_PartsLine; }
set { m_PartsLine = value; }
}
public string DialType
{
get { return m_DialType; }
set { m_DialType = value; }
}
public string IncSize
{
get { return m_IncSize; }
set { m_IncSize = value; }
}
public string Capacity
{
get { return m_Capacity; }
set { m_Capacity = value; }
}
public string Measurement
{
get { return m_Measurement; }
set { m_Measurement = value; }
}
public long CalLoadCapacity
{
get { return m_CalLoadCapacity; }
set { m_CalLoadCapacity = value; }
}
public long SelLoadCapacity
{
get { return m_SelLoadCapacity; }
set { m_SelLoadCapacity = value; }
}
public long DialScaleAng
{
get { return m_DialScaleAng; }
set { m_DialScaleAng = value; }
}
public long IncScale
{
get { return m_IncScale; }
set { m_IncScale = value; }
}
public double IncLoad
{
get { return m_IncLoad; }
set { m_IncLoad = value; }
}
public double IncAngle
{
get { return m_IncAngle; }
set { m_IncAngle = value; }
}
public long MinorTicks
{
get { return m_MinorTicks; }
set { m_MinorTicks = value; }
}
public long MajorTicks
{
get { return m_MajorTicks; }
set { m_MajorTicks = value; }
}
public long TextTicks
{
get { return m_TextTicks; }
set { m_TextTicks = value; }
}
public long TextMultiplier
{
get { return m_TextMultiplier; }
set { m_TextMultiplier = value; }
}
public string BlockName
{
get { return m_BlockName; }
set { m_BlockName = value; }
}
public double BlockScale
{
get { return m_BlockScale; }
set { m_BlockScale = value; }
}
public double[] InsPoint_Set(double P1, double P2, double P3)
{
double[] m_InsPoint = new double[3] { P1, P2, P3 };
return m_InsPoint;
}
public double[] InsPoint
{
get { return m_InsPoint; }
}