private void timer1_Tick(object sender, EventArgs e) { FormGPS.DirectoryCopy(Settings.Default.setF_local, Settings.Default.setF_synchro, true); FormGPS.DirectoryCopy(Settings.Default.setF_synchro, Settings.Default.setF_local, true); this.Close(); }
//constructor public CContour(FormGPS _f) { mf = _f; }
public CGuidance(FormGPS _f) { //constructor mf = _f; }
public FormDisplaySettings(Form callingForm) { mf = callingForm as FormGPS; InitializeComponent(); }
//constructor public CRecordedPath(OpenGL _gl, FormGPS _f) { gl = _gl; mf = _f; }
public CNMEA(FormGPS f) { //constructor, grab the main form reference mf = f; }
public FormGPSData(Form callingForm) { mainForm = callingForm as FormGPS; InitializeComponent(); }
public CABLine(OpenGL _gl, FormGPS _f) { //constructor gl = _gl; mf = _f; }
public FormTreePlant(Form callingForm) { mf = callingForm as FormGPS; InitializeComponent(); }
public CABLine(FormGPS _f) { //constructor mf = _f; isOnTramLine = true; }
public CFont(FormGPS _f) { //constructor mf = _f; isFontOn = true; }
//constructor public CContour(OpenGL gl, FormGPS f) { this.mf = f; this.gl = gl; }
//constructor public CAutoSteer(FormGPS _f) { mf = _f; isInFreeDriveMode = false; }
public CWaypoint(OpenGL _gl, FormGPS _f) { //constructor gl = _gl; mf = _f; }
public FormHeadland(Form callingForm) { mf = callingForm as FormGPS; InitializeComponent(); }
public FormModules(Form callingForm) { mf = callingForm as FormGPS; InitializeComponent(); }
//strings for comboboxes past auto and manual choices //pos0 is "-" no matter what public FormYouTurn(Form callingForm) { mf = callingForm as FormGPS; InitializeComponent(); }
public FormSteerGraph(Form callingForm) { mf = callingForm as FormGPS; InitializeComponent(); }
public CWorldGrid(FormGPS _f) { mf = _f; }
public Form_Help(Form callingForm) { mf = callingForm as FormGPS; InitializeComponent(); }
//constructor public CGeoFence(FormGPS _f) { mf = _f; }
public CABCurve(FormGPS _f) { //constructor mf = _f; }
public FormUDP(Form callingForm) { //get copy of the calling main form mf = callingForm as FormGPS; InitializeComponent(); }
//constructor public FormBoundaryPlayer(Form callingForm) { mf = callingForm as FormGPS; InitializeComponent(); }
public FormWizardSteer(Form callingForm) { mf = callingForm as FormGPS; InitializeComponent(); }
public CNMEA(FormGPS f) { //constructor, grab the main form reference mf = f; fixFrom = Properties.Settings.Default.setGPS_fixFromWhichSentence; }
public FormABCurve(Form _mf) { mf = _mf as FormGPS; InitializeComponent(); }
//constructor public CSequence(FormGPS _f) { mf = _f; //Fill in the strings for comboboxes - editable string line = Properties.Vehicle.Default.seq_FunctionList; string[] words = line.Split(','); pos3 = words[0]; pos4 = words[1]; pos5 = words[2]; pos6 = words[3]; pos7 = words[4]; pos8 = words[5]; string sentence; seqEnter = new SeqEvent[FormGPS.MAXFUNCTIONS]; for (int i = 0; i < FormGPS.MAXFUNCTIONS; i++) { seqEnter[i].function = 0; seqEnter[i].action = 0; seqEnter[i].isTrig = true; seqEnter[i].distance = 0; } sentence = Properties.Vehicle.Default.seq_FunctionEnter; words = sentence.Split(','); for (int i = 0; i < FormGPS.MAXFUNCTIONS; i++) { int.TryParse(words[i], out seqEnter[i].function); } sentence = Properties.Vehicle.Default.seq_ActionEnter; words = sentence.Split(','); for (int i = 0; i < FormGPS.MAXFUNCTIONS; i++) { int.TryParse(words[i], out seqEnter[i].action); } sentence = Properties.Vehicle.Default.seq_DistanceEnter; words = sentence.Split(','); for (int i = 0; i < FormGPS.MAXFUNCTIONS; i++) { double.TryParse(words[i], NumberStyles.Float, CultureInfo.InvariantCulture, out seqEnter[i].distance); } seqExit = new SeqEvent[FormGPS.MAXFUNCTIONS]; for (int i = 0; i < FormGPS.MAXFUNCTIONS; i++) { seqExit[i].function = 0; seqExit[i].action = 0; seqExit[i].isTrig = true; seqExit[i].distance = 0; } sentence = Properties.Vehicle.Default.seq_FunctionExit; words = sentence.Split(','); for (int i = 0; i < FormGPS.MAXFUNCTIONS; i++) { int.TryParse(words[i], out seqExit[i].function); } sentence = Properties.Vehicle.Default.seq_ActionExit; words = sentence.Split(','); for (int i = 0; i < FormGPS.MAXFUNCTIONS; i++) { int.TryParse(words[i], out seqExit[i].action); } sentence = Properties.Vehicle.Default.seq_DistanceExit; words = sentence.Split(','); for (int i = 0; i < FormGPS.MAXFUNCTIONS; i++) { double.TryParse(words[i], NumberStyles.Float, CultureInfo.InvariantCulture, out seqExit[i].distance); } }
public CSim(FormGPS _f) { mf = _f; latitude = Properties.Settings.Default.setGPS_SimLatitude; longitude = Properties.Settings.Default.setGPS_SimLongitude; }
public FormSynchro(FormGPS formGPS) { InitializeComponent(); }