Click here to Skip to main content
15,888,330 members
Home / Discussions / Mobile
   

Mobile

 
QuestionWin Mobile: How to draw an "always on top" graphical element? Pin
thomanil12-Sep-07 1:43
thomanil12-Sep-07 1:43 
QuestionWifi connection through a java/j2me program Pin
haimasree11-Sep-07 5:04
haimasree11-Sep-07 5:04 
QuestionFind character position into .txt file Pin
k.giannis_198010-Sep-07 3:59
k.giannis_198010-Sep-07 3:59 
QuestionSending SMS from a PC that is connected to a Windows Mobile Phone Pin
Hadi Dayvary10-Sep-07 0:16
professionalHadi Dayvary10-Sep-07 0:16 
Questionvisual studio express? Pin
ruanr7-Sep-07 0:25
ruanr7-Sep-07 0:25 
AnswerRe: visual studio express? Pin
leckey8-Sep-07 13:31
leckey8-Sep-07 13:31 
QuestionBlack Barry Application.... Pin
PavanPareta6-Sep-07 2:23
PavanPareta6-Sep-07 2:23 
QuestionTerrible Stack Overflow Exception error.... Pin
SKP245-Sep-07 22:49
SKP245-Sep-07 22:49 
Hi All,
how are you doing there? Must be fine. I am getting a terrible stack over flow exception error in my PDA application. And I simply can't under stand why this is happening? Currently I am working on a project where the user has to inspect a vehicle for different failures.
The flow is like this. There is a form named Select Inspection where the user selects the vehicle id and clicks on Inspection. Then It will go to the next screen where the user presses start inspection. After clicking on that the next form will display a list of categories such as cab test, brake test, emission test etc and all these values comes from the database and buttons are created according to the category. When the user clicks on a particular category different question will come on the screen under that category. It will also come from the database and the buttons are created at runtime. Then when the user clicks on a particular question in the next screen he has to pass or fail the question. Whatever button the user clicks, it then again comes back to the questions form and a tick or cross mark is displayed according to pass or fail. After answering all the question the user has to click on pass button at the bottom of the question screen. Then it will go back to the category screen and an associated image will be displayed on the right side of the category. All these buttons and pictures are created at run time. All these are working well for 7 question ...But when I click on the 8th question it is showing the stack over flow exception. I am here also giving mu code snippet.


Start Inspection Form...

private void button1_Click(object sender, EventArgs e)
{
CatgoryQuestion cc = new CatgoryQuestion();
cc.ShowDialog();
this.Close();
}

Category Form
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlServerCe;
namespace AIS_Start
{
public partial class CatgoryQuestion : Form
{
public CatgoryQuestion()
{
InitializeComponent();
}
private const string LOCALDATABASE = "\\My Documents\\AISNEW.sdf";
private const string CONNECTIONSTRING = "data source=" + LOCALDATABASE;//connection string for local database
private SqlCeConnection ceConn = null;
Button btn;
int a, b, c, d, i, f, g;
PictureBox pic;

private void CatgoryQuestion_Load(object sender, EventArgs e)
{
this.Text = "Vehicle Inspection";
a = 30;
b = 50;
c = 52;
d = 0;
f = 0;
ceConn = new SqlCeConnection(CONNECTIONSTRING);
ceConn.Open();
string sSQL = "SELECT QuestionID, Title, Reference1, Reference2 FROM QuestionTree WHERE ParentId = 0 AND TemplateID = '19' ORDER BY Position";

SqlCeCommand cmd = new SqlCeCommand(sSQL, ceConn);
SqlCeDataReader rdr = cmd.ExecuteReader();
int iFieldCount = 0;


try
{
// Iterate through the results
while (rdr.Read())
{
btn = new Button();
btn.Text = rdr.GetValue(1).ToString();
btn.Name = rdr.GetValue(1).ToString();

btn.Tag = d;
btn.Location = new Point(a, b);
btn.Size = new Size(175, 23);
panel1.Controls.Add(btn);

btn.Click += new EventHandler(btnclick);
pic = new PictureBox();

//pic.Name = rdr.GetValue(0).ToString();
//pic.Location = new Point(205, c);
//pic.Size = new Size(16, 16);
//pic.Image = ((System.Drawing.Image)(pictureBox2.Image)); //resources.GetObject("pictureBox2.Image"); //StartInspection.Properties.Resources.checkmark;
//panel1.Controls.Add(pic);

if (GlobalClass.btntag.ToString() == "")
{
pic = new PictureBox();
pic.Name = rdr.GetValue(0).ToString();
pic.Location = new Point(205, c);
pic.Size = new Size(16, 16);
pic.Image = ((System.Drawing.Image)(pictureBox2.Image)); //resources.GetObject("pictureBox2.Image"); //StartInspection.Properties.Resources.checkmark;
panel1.Controls.Add(pic);
}
else
{
int caseswitch = Convert.ToInt32(GlobalClass.ImageStatus[f]);
switch (caseswitch)
{
case 1:
//MessageBox.Show("case1" + GlobalClass.ImageStatus[f]);

pic = new PictureBox();
pic.Image = ((System.Drawing.Image)(pictureBox1.Image));//StartInspection.Properties.Resources.checkmark;
pic.Name = rdr.GetValue(0).ToString();

pic.Location = new Point(205, c);
pic.Size = new Size(16, 16);
panel1.Controls.Add(pic);
GlobalClass.ImgStatus[f] = "Pass";
break;
case 2:
//MessageBox.Show("case2" + GlobalClass.ImageStatus[f]);
//string chkstus = "";

pic = new PictureBox();
pic.Image = ((System.Drawing.Image)(pictureBox2.Image));//StartInspection.Properties.Resources.xmark;
pic.Name = rdr.GetValue(0).ToString();
pic.Location = new Point(205, c);
pic.Size = new Size(16, 16);
panel1.Controls.Add(pic);
GlobalClass.ImgStatus[f] = "Fail";
break;
//case 3:
// // MessageBox.Show("case3" + GlobalClass.ImageStatus[f]);
// pic = new PictureBox();
// pic.Image = StartInspection.Properties.Resources.questionmark;
// pic.Name = dr.GetValue(0).ToString();
// pic.Location = new Point(a + 85, c);
// pic.Size = new Size(16, 16);
// this.Controls.Add(pic);
// GlobalClass.ImgStatus[f] = "Not Applicable";
// break;
default:
pic = new PictureBox();
pic.Name = rdr.GetValue(0).ToString();
pic.Location = new Point(205, c);
pic.Size = new Size(16, 16);
panel1.Controls.Add(pic);
break;
}
}
b = b + 22;
c = c + 22;
d = d + 1;
f = f + 1;

}
}
finally
{
// Always call Close when done reading
rdr.Close();
// Always call Close when done reading
ceConn.Close();
}

}

private void button1_Click(object sender, EventArgs e)
{

}

private void label1_ParentChanged(object sender, EventArgs e)
{

}
private void btnclick(object sender, EventArgs e)
{
Button currentButton = (Button)sender;
GlobalClass.EmpName = currentButton.Name;
GlobalClass.btntag = Convert.ToInt32(currentButton.Tag);
i = GlobalClass.btntag;
ceConn = new SqlCeConnection(CONNECTIONSTRING);
ceConn.Open();
string sSQL = "select QuestionID from QuestionTree WHERE TemplateID = '19' and Title = '" + currentButton.Name + "'";
SqlCeCommand cmd = new SqlCeCommand(sSQL, ceConn);
SqlCeDataReader rdr = cmd.ExecuteReader();
int iFieldCount = 0;
try
{
// Iterate through the results
while (rdr.Read())
{
GlobalClass.QuestionId = Convert.ToInt32(rdr.GetValue(0).ToString());
iFieldCount = iFieldCount + 1;
}
}
finally
{
// Always call Close when done reading
rdr.Close();
// Always call Close when done reading
ceConn.Close();
}
GlobalClass.parent = false;
CatagoryQuestion2 cq2 = new CatagoryQuestion2();
cq2.ShowDialog();
this.Close();
//this.Hide();
}

private void toolBar1_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
{
Select_Inspection_start se = new Select_Inspection_start();
se.ShowDialog();
this.Close();
//Login la = new Login();
//la.ShowDialog();
}
}
}

Question Form

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlServerCe;
namespace AIS_Start
{
public partial class CatagoryQuestion2 : Form
{
string status;
private bool m_sync = true;
public CatagoryQuestion2()
{
InitializeComponent();
}
private const string LOCALDATABASE = "\\My Documents\\AISNEW.sdf";
private const string CONNECTIONSTRING = "data source=" + LOCALDATABASE;//connection string for local database
private SqlCeConnection ceConn = new SqlCeConnection(CONNECTIONSTRING);
int a, b, c, d, i, f, g;
Button btn;
PictureBox pic;
private void label1_ParentChanged(object sender, EventArgs e)
{

}

private void CatagoryQuestion2_Load(object sender, EventArgs e)
{
//this.Text = GlobalClass.QuestionId.ToString();

if (GlobalClass.parent == true)
{
this.Text = GlobalClass.EmpName.ToString();
a = 30;
b = 50;
c = 52;
d = 0;
f = 0;
ceConn.Open();

//this.Text = GlobalClass.QuestionId.ToString();
string sSQL = "SELECT QuestionID, Title, Reference1, Reference2 FROM QuestionTree WHERE ParentId = '" + GlobalClass.QuestionId.ToString() + "' AND TemplateID = '19' ORDER BY Position";
SqlCeCommand cmd = new SqlCeCommand(sSQL, ceConn);
SqlCeDataReader dr1 = cmd.ExecuteReader();
while (dr1.Read())
{
btn = new Button();
btn.Text = dr1.GetValue(1).ToString();
if (btn.Text.StartsWith("Z"))
{
btn.Text =dr1.GetValue(1).ToString()+"*" ;
}
btn.Name = dr1.GetValue(1).ToString();
btn.Tag = d;
btn.Location = new Point(a, b);
btn.Size = new Size(150, 23);
panel1.Controls.Add(btn);
btn.Click += new EventHandler(btnclick);
//------------------------------------
SqlCeConnection ceConn1 = new SqlCeConnection(CONNECTIONSTRING);
ceConn1.Open();
string sSQL1 = "select QuestionID from Standards where QuestionID='" + dr1.GetValue(0).ToString() + "'";
SqlCeCommand cmd1 = new SqlCeCommand(sSQL1, ceConn1);
SqlCeDataReader dr2 = cmd1.ExecuteReader();
while (dr2.Read())
{
string bid = dr2.GetValue(0).ToString();
if (bid == dr1.GetValue(0).ToString())
{
btn.BackColor = Color.Tomato;
}
}
dr2.Close();
ceConn1.Close();
//------------------------------------
//panel1.Controls.Add(pic);
if (GlobalClass.btntagSub.ToString() == "")
{

pic = new PictureBox();
pic.Image = ((System.Drawing.Image)(pictureBox1.Image));
pic.Name = dr1.GetValue(0).ToString();
pic.Location = new Point(195, c);
pic.Size = new Size(16, 16);
panel1.Controls.Add(pic);
}
else
{
int caseswitch = Convert.ToInt32(GlobalClass.ImageStatusSub[f]);
switch (caseswitch)
{
case 1:

//MessageBox.Show("case1"+GlobalClass.ImageStatusSub[f]);
pic = new PictureBox();
pic.Image = ((System.Drawing.Image)(pictureBox2.Image));
pic.Name = dr1.GetValue(0).ToString();
//MessageBox.Show(pic.Name );
pic.Location = new Point(195, c);
pic.Size = new Size(16, 16);
panel1.Controls.Add(pic);
GlobalClass.ImgStatusSub[f] = "Pass";
break;
case 2:

//MessageBox.Show("case2"+GlobalClass.ImageStatusSub[f]);
pic = new PictureBox();
pic.Image = ((System.Drawing.Image)(pictureBox3.Image));
pic.Name = dr1.GetValue(0).ToString();
pic.Location = new Point(195, c);
pic.Size = new Size(16, 16);
panel1.Controls.Add(pic);
GlobalClass.ImgStatusSub[f] = "Fail";
break;
case 3:
//MessageBox.Show("cae3"+GlobalClass.ImageStatusSub[f]);
pic = new PictureBox();
pic.Image = ((System.Drawing.Image)(pictureBox3.Image));
pic.Name = dr1.GetValue(0).ToString();
pic.Location = new Point(195, c);
pic.Size = new Size(16, 16);
panel1.Controls.Add(pic);
GlobalClass.ImgStatusSub[f] = "Not Applicable";
break;
default:
pic = new PictureBox();
pic.Name = dr1.GetValue(0).ToString();
pic.Location = new Point(a + 85, c);
pic.Size = new Size(16, 16);
panel1.Controls.Add(pic);
break;
}
}
b = b + 22;
c = c + 22;
d = d + 1;
f = f + 1;
}
dr1.Close();
ceConn.Close();
}
else if (GlobalClass.parent == false)
{
this.Text = GlobalClass.EmpName.ToString();
int i;
GlobalClass.EmpNameSub = "";
GlobalClass.btntagSub = 0;
GlobalClass.FailSub = "";
for (i = 0; i < 100; i++)
{
GlobalClass.ImgStatusSub[i] = "";
}
for (i = 0; i < 101; i++)
{
GlobalClass.ImageStatusSub[i] = 0;
}
GlobalClass.NotApplSub = "";
GlobalClass.PassSub = "";
GlobalClass.QuestionIdSub = 0;

a = 30;
b = 50;
c = 52;
d = 0;
f = 0;

ceConn = new SqlCeConnection(CONNECTIONSTRING);
ceConn.Open();
string sSQL2 = "SELECT QuestionID, Title, Reference1, Reference2 FROM QuestionTree WHERE ParentId = '" + GlobalClass.QuestionId.ToString() + "' AND TemplateID = '19' ORDER BY Position";
SqlCeCommand cmd1 = new SqlCeCommand(sSQL2, ceConn);
SqlCeDataReader dr1;
dr1= cmd1.ExecuteReader();
while (dr1.Read())
{
btn = new Button();
btn.Text = dr1.GetValue(1).ToString();
if (btn.Text.StartsWith("Z"))
{
btn.Text = dr1.GetValue(1).ToString() + "*";
}
btn.Name = dr1.GetValue(1).ToString();
btn.Tag = d;
btn.Location = new Point(a, b);
btn.Size = new Size(150, 23);
panel1.Controls.Add(btn);
btn.Click += new EventHandler(btnclick);

//------------------------------------

SqlCeConnection ceConn1 = new SqlCeConnection(CONNECTIONSTRING);
ceConn1.Open();
string sSQL3 = "select QuestionID from Standards where QuestionID='" + dr1.GetValue(0).ToString() + "'";
SqlCeCommand cmd2 = new SqlCeCommand(sSQL3, ceConn1);
SqlCeDataReader dr2 = cmd2.ExecuteReader();
while (dr2.Read())
{
string bid = dr2.GetValue(0).ToString();
if (bid == dr1.GetValue(0).ToString())
{
btn.BackColor = Color.Tomato;
}
}
dr2.Close();
ceConn1.Close();
//pic = new PictureBox();
//pic.Image = ((System.Drawing.Image)(pictureBox1.Image));
//pic.Name = dr1.GetValue(0).ToString();
//pic.Location = new Point(195, c);
//pic.Size = new Size(16, 16);
//panel1.Controls.Add(pic);
//------------------------------------
if (GlobalClass.btntagSub.ToString() == "")
{

pic = new PictureBox();
pic.Image = ((System.Drawing.Image)(pictureBox1.Image));
pic.Name = dr1.GetValue(0).ToString();
pic.Location = new Point(195, c);
pic.Size = new Size(16, 16);
panel1.Controls.Add(pic);
}
b = b + 22;
c = c + 22;
d = d + 1;
f = f + 1;
}

dr1.Close();
ceConn.Close();
}

}
private void btnclick(object sender, EventArgs e)
{
if (m_sync)
{
m_sync = false;
try
{
Button currentButton = (Button)sender;
GlobalClass.EmpNameSub = currentButton.Name;
GlobalClass.btntagSub = Convert.ToInt32(currentButton.Tag);
i = GlobalClass.btntagSub;

SqlCeConnection ceConn1 = new SqlCeConnection(CONNECTIONSTRING);
ceConn1.Open();

string sSQL4 = "select QuestionID from QuestionTree WHERE TemplateID = '19' and Title = '" + currentButton.Name + "'";

SqlCeCommand cmd = new SqlCeCommand(sSQL4, ceConn1);
SqlCeDataReader dr = cmd.ExecuteReader();

while (dr.Read())
{
GlobalClass.QuestionIdSub = Convert.ToInt32(dr.GetValue(0).ToString());
}
dr.Close();
ceConn1.Close();

Adverts ad = new Adverts();
ad.ShowDialog();
this.Close();
}
catch (StackOverflowException ex)
{
string msg = ex.Message;
MessageBox.Show(ex.Message);
}
m_sync = true;
}

}

private void button1_Click(object sender, EventArgs e)
{
bool chkst = false;
g = 0;
SqlCeConnection ceConn1 = new SqlCeConnection(CONNECTIONSTRING);
ceConn1.Open();

string sSQL4 = "SELECT QuestionID, Title, Reference1, Reference2 FROM QuestionTree WHERE ParentId = '" + GlobalClass.QuestionId.ToString() + "' AND TemplateID = '19' ORDER BY Position";
SqlCeCommand cmd = new SqlCeCommand(sSQL4, ceConn1);
SqlCeDataReader dr = cmd.ExecuteReader();
GlobalClass.ImageStatus[GlobalClass.btntag] = 1;

while (dr.Read())
{

if (GlobalClass.ImgStatusSub[g].ToString() == "Fail")
{
GlobalClass.ImageStatus[GlobalClass.btntag] = 2;
}
if (GlobalClass.ImgStatusSub[g].ToString() == "")
{
chkst = true;
}
g = g + 1;
}

dr.Close();
ceConn1.Close();
GlobalClass.ImgStatusSub[f] = "";
if (chkst == false)
{

CatgoryQuestion cq = new CatgoryQuestion();
cq.Show();
//this.Hide();
}
else
{
MessageBox.Show("Inspection not done perfectly!");
}

}

private void toolBar1_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
{
//switch (toolBar1.Buttons.IndexOf(e.Button))
//{

// //case 0:
// // this.Close();
// // break;
// //case 1:
// // //MessageBox.Show("Button2");
// // //if (treeView1.SelectedNode.Text == "")
// // //{
// // // MessageBox.Show("Please select an Asset to view details");
// // //}
// // //else
// // //{
// // // GlobalClass.GlobaltvselItem = treeView1.SelectedNode.Text;
// // // Assets_Information frm = new Assets_Information();
// // // frm.Show();
// // //}

// // Assets_Information asset = new Assets_Information();
// // asset.ShowDialog();
// // break;
//}
//CatgoryQuestion frm = new CatgoryQuestion();
//frm.Show();

CatgoryQuestion frm = new CatgoryQuestion();
frm.ShowDialog();
this.Close();
}

}
}


The Global Class

using System;
using System.Collections.Generic;
using System.Text;

namespace AIS_Start
{
static class GlobalClass
{

private static string tvselItem = "";
public static string GlobaltvselItem
{
get
{
return tvselItem;
}
set
{
tvselItem = value;
}
}
private static string type = "";
public static string typeasset
{
get
{
return type;
}
set
{
type = value;
}
}
private static bool inspection = false;
public static bool inspectionstart
{
get
{
return inspection;
}
set
{
inspection = value;
}
}
private static bool sta = false;
public static bool status
{
get
{
return sta;
}
set
{
sta = value;
}
}
private static string stand = "";
public static string standards
{
get
{
return stand;
}
set
{
stand = value;
}
}
private static string desc = "";
public static string description
{
get
{
return desc;
}
set
{
desc = value;
}
}

// Values that will be stored in InspectionResult table for BrakePad Liner Thickness Question when the user presses NA
private static int autoid;
public static int InspeResid
{
get
{
return autoid;
}
set
{
autoid = value;
}
}
private static int thi;
public static int thickness
{
get
{
return thi;
}
set
{
thi = value;
}
}
private static string stat = "";
public static string InspeResStatus
{
get
{
return stat;
}
set
{
stat = value;
}
}
private static string det = "";
public static string InspeResDetails
{
get
{
return det;
}
set
{
det = value;
}
}
// Values that will be stored in the InspectionDefects

private static string defect = "";
public static string defectPrior
{
get
{
return defect;
}
set
{
defect = value;
}
}
private static string abc = "";
public static string AVCode
{
get
{
return abc;
}
set
{
abc = value;
}
}
private static string abc1 = "";
public static string AVGCode
{
get
{
return abc1;
}
set
{
abc1 = value;
}
}
private static string abc2 = "";
public static string ADV
{
get
{
return abc2;
}
set
{
abc2 = value;
}
}
private static string abc3 = "";
public static string CauseGroupCode
{
get
{
return abc3;
}
set
{
abc3 = value;
}
}
private static string abc4 = "";
public static string CauseCode
{
get
{
return abc4;
}
set
{
abc4 = value;
}
}
private static string abc5 = "";
public static string DefaultText
{
get
{
return abc5;
}
set
{
abc5 = value;
}
}
private static string abc6 = "";
public static string CauseText
{
get
{
return abc6;
}
set
{
abc6 = value;
}
}
//Variable declaration to store variable by retriving data from System settings
private static int sbe;
public static int ServiceBrakeEff
{
get
{
return sbe;
}
set
{
sbe = value;
}
}
private static string emi = "";
public static string emiStatus
{
get
{
return emi;
}
set
{
emi = value;
}
}
private static string emid = "";
public static string emiDetail
{
get
{
return emid;
}
set
{
emid = value;
}
}
private static string emid1 = "";
public static string emiDefectText
{
get
{
return emid1;
}
set
{
emid1 = value;
}
}
private static string emid2 = "";
public static string emiCauseText
{
get
{
return emid2;
}
set
{
emid2 = value;
}
}
private static string numq1 = "";
public static string numberQStatus
{
get
{
return numq1;
}
set
{
numq1 = value;
}
}
private static string numq2 = "";
public static string numberQDetail
{
get
{
return numq2;
}
set
{
numq2 = value;
}
}
private static string numq3 = "";
public static string numberQDefectText
{
get
{
return numq3;
}
set
{
numq3 = value;
}
}
private static string numq4 = "";
public static string numberQCauseText
{
get
{
return numq4;
}
set
{
numq4 = value;
}
}
private static string perq1 = "";
public static string percentageStatus
{
get
{
return perq1;
}
set
{
perq1 = value;
}
}
private static string perq2 = "";
public static string percentageDetail
{
get
{
return perq2;
}
set
{
perq2 = value;
}
}
private static string perq3 = "";
public static string percentageDefectText
{
get
{
return perq3;
}
set
{
perq3 = value;
}
}
private static string perq4 = "";
public static string percentageCauseText
{
get
{
return perq4;
}
set
{
perq4 = value;
}
}
private static string trd1 = "";
public static string TreadDefectText
{
get
{
return trd1;
}
set
{
trd1 = value;
}
}
private static string trd2 = "";
public static string TradeCauseText
{
get
{
return trd2;
}
set
{
trd2 = value;
}
}
private static string tp6 = "";
public static string TPaxile //Vehicle Axile type
{
get
{
return tp6;
}
set
{
tp6 = value;
}
}
private static string tp1 = "";
public static string TPVehicleType
{
get
{
return tp1;
}
set
{
tp1 = value;
}
}
private static string tp3 = "";
public static string TPFrontOS //TyrePressure Off Side
{
get
{
return tp3;
}
set
{
tp3 = value;
}
}
//---------------------------------------------------------------
private static string tp4 = "";
public static string TPFrontNSUI //TyrePressure Near Side UI
{
get
{
return tp4;
}
set
{
tp4 = value;
}
}
//-----------------------------------------------------------
private static string tp5 = "";
public static string TPFrontOSUI //TyrePressure Near Side UI
{
get
{
return tp5;
}
set
{
tp5 = value;
}
}
//-----------------------------Centre--------------------------------------
//-----------------------------TyrePressure Question(Front)----------------------------------------------------
private static string tpc2 = "";
public static string TPCNS //TyrePressure Near Side
{
get
{
return tpc2;
}
set
{
tpc2 = value;
}
}
//---------------------------------------------------------------
private static string tpc3 = "";
public static string TPCOS //TyrePressure Off Side
{
get
{
return tpc3;
}
set
{
tpc3 = value;
}
}
//---------------------------------------------------------------
private static string tpc4 = "";
public static string TPCNSUI //TyrePressure Near Side UI
{
get
{
return tpc4;
}
set
{
tpc4 = value;
}
}
//-----------------------------------------------------------
private static string tpc5 = "";
public static string TPCOSUI //TyrePressure Near Side UI
{
get
{
return tpc5;
}
set
{
tpc5 = value;
}
}
private static string tp2 = "";
public static string TPFrontNS //TyrePressure Near Side
{
get
{
return tp2;
}
set
{
tp2 = value;
}
}
//----------------------------------------------------------------------
//-----------------------No of axile------------------------------------
//private static string tp6 = "";
//public static string TPaxile //Vehicle Axile type
//{
// get
// {
// return tp6;
// }
// set
// {
// tp6 = value;
// }
//}
//---------------------------------------------------------------
//---------------------------------------------------------------
private static string tp7 = "";
public static string TPRearInnerNSUI //TyrePressure Inner Near Side UI
{
get
{
return tp7;
}
set
{
tp7 = value;
}
}
//-----------------------------------------------------------
private static string tp8 = "";
public static string TPRearInnerOSUI //TyrePressure Inner Off Side UI
{
get
{
return tp8;
}
set
{
tp8 = value;
}
}
//---------------------------------------------------------------
private static string tp9 = "";
public static string TPRearOuterNSUI //TyrePressure Outer Near Side UI
{
get
{
return tp9;
}
set
{
tp9 = value;
}
}
//-----------------------------------------------------------
private static string tp10 = "";
public static string TPRearOuterOSUI //TyrePressure Outer Off Side UI
{
get
{
return tp10;
}
set
{
tp10 = value;
}
}
//===================================
//-----------------------------TyrePressure Question(Rear)----------------------------------------------------
private static string tp11 = "";
public static string TPRearInnerNS //TyrePressure Inner Near Side
{
get
{
return tp11;
}
set
{
tp11 = value;
}
}
//---------------------------------------------------------------
private static string tp12 = "";
public static string TPRearInnerOS //TyrePressure Inner Off Side
{
get
{
return tp12;
}
set
{
tp12 = value;
}
}
//====================================
//-----------------------------TyrePressure Question(Front)----------------------------------------------------
private static string tp13 = "";
public static string TPRearOuterNS //TyrePressure Inner Near Side
{
get
{
return tp13;
}
set
{
tp13 = value;
}
}
//---------------------------------------------------------------
private static string tp14 = "";
public static string TPRearOuterOS //TyrePressure Inner Off Side
{
get
{
return tp14;
}
set
{
tp14 = value;
}
}//-------------------
//======================================================================
//----------------------------------------------------------------------
//---------------------------------------------------------------
private static string tpc7 = "";
public static string TPCentreInnerNSUI //TyrePressure Inner Near Side UI
{
get
{
return tpc7;
}
set
{
tpc7 = value;
}
}
//-----------------------------------------------------------
private static string tpc8 = "";
public static string TPCentreInnerOSUI //TyrePressure Inner Off Side UI
{
get
{
return tpc8;
}
set
{
tpc8 = value;
}
}
//---------------------------------------------------------------
private static string tpc9 = "";
public static string TPCentreOuterNSUI //TyrePressure Outer Near Side UI
{
get
{
return tpc9;
}
set
{
tpc9 = value;
}
}
//-----------------------------------------------------------
private static string tpc10 = "";
public static string TPCentreOuterOSUI //TyrePressure Outer Off Side UI
{
get
{
return tpc10;
}
set
{
tpc10 = value;
}
}
//===================================
//-----------------------------TyrePressure Question(Rear)----------------------------------------------------
private static string tpc11 = "";
public static string TPCentreInnerNS //TyrePressure Inner Near Side
{
get
{
return tpc11;
}
set
{
tpc11 = value;
}
}
//---------------------------------------------------------------
private static string tpc12 = "";
public static string TPCentreInnerOS //TyrePressure Inner Off Side
{
get
{
return tpc12;
}
set
{
tpc12 = value;
}
}
//====================================
//-----------------------------TyrePressure Question(Front)----------------------------------------------------
private static string tpc13 = "";
public static string TPCentreOuterNS //TyrePressure Inner Near Side
{
get
{
return tpc13;
}
set
{
tpc13 = value;
}
}
//---------------------------------------------------------------
private static string tpc14 = "";
public static string TPCentreOuterOS //TyrePressure Inner Off Side
{
get
{
return tpc14;
}
set
{
tpc14 = value;
}
}
//---------------------------------------------------------------
private static string failcategory = "";
public static string FailureCategory//Used in showing the name of form zAuto Adjuster.cs while form loading.
{
get
{
return failcategory;
}
set
{
failcategory = value;
}
}
// private static string ename = "";
// public static string EmpName
// {
// get
// {
// return ename;
// }
// set
// {
// ename = value;
// }
// }
// private static string pa = "";
// public static string Pass
// {
// get
// {
// return pa;
// }
// set
// {
// pa = value;
// }
// }
// private static string Fa = "";
// public static string Fail
// {
// get
// {
// return Fa;
// }
// set
// {
// Fa = value;
// }
// }
// private static string na = "";
// public static string NotAppl
// {
// get
// {
// return na;
// }
// set
// {
// na = value;
// }
// }
// ///
// /// ////////////
// /// question parent id
private static string Question = "";
public static string QuestionID
{
get
{
return Question;
}
set
{
Question = value;
}
}
//------------------question id1
private static string Question1 = "";
public static string QuesID
{
get
{
return Question1;
}
set
{
Question1 = value;
}
}
////------------question type
// /// question parent id
private static string Questiontyp = "";
public static string QuestionType
{
get
{
return Questiontyp;
}
set
{
Questiontyp = value;
}
}
// ///

// ///
// private static int[] imgSta = new int[10];
// public static int[] ImageStatus
// {
// get
// {
// return imgSta;
// }
// set
// {
// imgSta = value;
// }
// }
// private static int abcbtn;
// public static int btntag
// {
// get
// {
// return abcbtn;
// }
// set
// {
// abcbtn = value;
// }
// }
// private static string[] empname = new string[10];
// public static string[] employeename
// {
// get
// {
// return empname;
// }
// set
// {
// empname = value;
// }
// }
// private static string[] img = new string[10];
// public static string[] ImgStatus
// {
// get
// {
// return img;
// }
// set
// {
// img = value;
// }
// }
private static string ename = "";
public static string EmpName
{
get
{
return ename;
}
set
{
ename = value;
}
}
private static string pa = "";
public static string Pass
{
get
{
return pa;
}
set
{
pa = value;
}
}
private static string Fa = "";
public static string Fail
{
get
{
return Fa;
}
set
{
Fa = value;
}
}
private static string na = "";
public static string NotAppl
{
get
{
return na;
}
set
{
na = value;
}
}
private static int[] imgSta = new int[201];
public static int[] ImageStatus
{
get
{
return imgSta;
}
set
{
imgSta = value;
}
}
//private static int abc;
//public static int btntag
//{
// get
// {
// return abc;
// }
// set
// {
// abc = value;
// }
//}
////private static string[] empname = new string[100];
//public static string[] employeename
//{
// get
// {
// return empname;
// }
// set
// {
// empname = value;
// }
//}
private static string[] img = new string[200];
public static string[] ImgStatus
{
get
{
return img;
}
set
{
img = value;
}
}
private static int qid;
public static int QuestionId
{
get
{
return qid;
}
set
{
qid = value;
}
}
//--------------------------For Sub Question------------------------------------
private static string enameSub = "";
public static string EmpNameSub
{
get
{
return enameSub;
}
set
{
enameSub = value;
}
}
private static string paSub = "";
public static string PassSub
{
get
{
return paSub;
}
set
{
paSub = value;
}
}
private static string FaSub = "";
public static string FailSub
{
get
{
return FaSub;
}
set
{
FaSub = value;
}
}
private static string naSub = "";
public static string NotApplSub
{
get
{
return naSub;
}
set
{
naSub = value;
}
}
private static int[] imgStaSub = new int[201];
public static int[] ImageStatusSub
{
get
{
return imgStaSub;
}
set
{
imgStaSub = value;
}
}
private static int abcSub;
public static int btntagSub
{
get
{
return abcSub;
}
set
{
abcSub = value;
}
}

private static string[] imgSub = new string[200];
public static string[] ImgStatusSub
{
get
{
return imgSub;
}
set
{
imgSub = value;
}
}
private static int qidSub;
public static int QuestionIdSub
{
get
{
return qidSub;
}
set
{
qidSub = value;
}
}
private static bool paren;
public static bool parent
{
get
{
return paren;
}
set
{
paren = value;
}
}
private static int btnabc;
public static int btntag
{
get
{
return btnabc;
}
set
{
btnabc = value;
}
}
//---------------------FaultLocation for Positional Screen---------------------------------
private static string fl = "";
public static string faultLocation
{
get
{
return fl;
}
set
{
fl = value;
}
}
//---------------------Variables for Positional Screen---------------------------------
private static string psp = "";
public static string PSposition
{
get
{
return psp;
}
set
{
psp = value;
}
}
//---------------------Variables for Positional Screen---------------------------------
private static string psd = "";
public static string PSdetail
{
get
{
return psd;
}
set
{
psd = value;
}
}
//---------------------Variables for Positional Screen---------------------------------
private static string psi = "";
public static string PSitemno
{
get
{
return psi;
}
set
{
psi = value;
}
}
//--------------------------------------------------------------------------------------

}
}



Please help me in this. I am helpless. Any help will be appriciated.



Sagar Pattnayak
Software Developer
Sun-Dew Solutions
+91-9831169962

QuestionAccessing phone functions on Windows Mobile 2003 Pin
Crumpler794-Sep-07 16:28
Crumpler794-Sep-07 16:28 
Question.exp file Pin
George_George4-Sep-07 5:08
George_George4-Sep-07 5:08 
Questionlink error -- machine type conflict Pin
George_George4-Sep-07 1:08
George_George4-Sep-07 1:08 
QuestionGet the window handle? Pin
Syouki_kou3-Sep-07 21:48
Syouki_kou3-Sep-07 21:48 
QuestionI need a help with my mobile app.... Pin
cxheun1-Sep-07 12:24
cxheun1-Sep-07 12:24 
QuestionSQL Connetion from Pocket PC2003 to SQL2000-SP4 Arabic Coallation Pin
Peer Md0730-Aug-07 0:21
Peer Md0730-Aug-07 0:21 
QuestionRunning my program Pin
Gareth H29-Aug-07 8:00
Gareth H29-Aug-07 8:00 
AnswerRe: Running my program Pin
Rupesh Kumar Swami29-Aug-07 21:23
Rupesh Kumar Swami29-Aug-07 21:23 
GeneralRe: Running my program [modified] Pin
Gareth H29-Aug-07 23:17
Gareth H29-Aug-07 23:17 
AnswerRe: Running my program Pin
ghle27-Sep-07 21:45
ghle27-Sep-07 21:45 
QuestionSaving a signature on a PDA devie Pin
steve_rm28-Aug-07 8:01
steve_rm28-Aug-07 8:01 
AnswerRe: Saving a signature on a PDA devie Pin
ghle27-Sep-07 21:57
ghle27-Sep-07 21:57 
Questionwindows mobile IP add Pin
rituparn28-Aug-07 5:57
rituparn28-Aug-07 5:57 
QuestionWindows CE 5 Emulator on Vista x64 Pin
martin_hughes24-Aug-07 10:18
martin_hughes24-Aug-07 10:18 
QuestionSync Contacts with my PIM Pin
kanitamildasan23-Aug-07 18:49
kanitamildasan23-Aug-07 18:49 
AnswerRe: Sync Contacts with my PIM Pin
markkuk24-Aug-07 11:56
markkuk24-Aug-07 11:56 
GeneralRe: Sync Contacts with my PIM Pin
kanitamildasan25-Aug-07 1:34
kanitamildasan25-Aug-07 1:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.