internal CInternetExport(Interface callerInterface)
		{
			myInterface = callerInterface;
			
			colPlaceWidth = 5;
			colNameWidth = 29;
			colClubWidth = 24;
			colResultWidth = 24;
			colPointsWidth = 9;
			colResultTotWidth = 9;
			colStdMedWidth = 6;
		}
		public ClientInterface()
		{
			CommonCode = new Interface();
			CommonCode.UpdatedClub += 
				updatedClub;
			CommonCode.UpdatedWeapon += 
				updatedWeapon;
			CommonCode.UpdatedCompetition += 
				updatedCompetition;
			CommonCode.UpdatedCompetitor += 
				updatedCompetitor;
			CommonCode.UpdatedCompetitorResult += 
				updatedCompetitorResult;
			CommonCode.UpdatedFileImportCount +=
				updatedFileImportCount;
			CommonCode.UpdatedPatrol += 
				updatedPatrol;
			CommonCode.UpdatedStation +=
				updatedStation;
			CommonCode.UpdatedShooter +=
				updatedShooter;
			CommonCode.UpdatedTeam +=
				updatedTeam;
			CommonCode.UpdatedPatrolAddAutomaticCompetitors += 
				updatedPatrolAddAutomaticCompetitors;

			CommonCode.SyncronizeEvent +=
				Sync;

			try
			{
				Thread.CurrentThread.Name = "Server Interface Thread";
			}
			catch(Exception exc)
			{
				Console.WriteLine(exc.ToString());
			}
		}
		internal CInternetPdfExport(Interface callerInterface)
		{
			myInterface = callerInterface;
			settings = CSettings.Instance;

			columnPatrolsPatrolPos = leftMargin;
			columnPatrolsNamePos = columnPatrolsPatrolPos + 25;
			columnPatrolsClubNamePos = columnPatrolsNamePos + 70;
			columnPatrolsWeaponPos = columnPatrolsClubNamePos + 50;

			columnPatrolsByClubClubIdPos = leftMargin;
			columnPatrolsByClubNamePos = columnPatrolsByClubClubIdPos + 15;
			columnPatrolsByClubPatrolPos = columnPatrolsByClubNamePos + 70;
			columnPatrolsByClubWeaponPos = columnPatrolsByClubPatrolPos + 20;
			columnPatrolsByClubClassPos = columnPatrolsByClubWeaponPos + 30;

			colResultNamePos = leftMargin + 10;
			colResultClubPos = colResultNamePos + 40;
			colResultResultPos = colResultClubPos + 45;
			colResultTotPos = colResultResultPos + 60; //40
			colResultPointsPos = colResultTotPos + 15;
			colResultStmPos = colResultPointsPos + 5;
			colResultPricePos = colResultStmPos + 10;
		}
Пример #4
0
		internal CFileImport(Interface callerInterface)
		{
			myInterface = callerInterface;
		}
Пример #5
0
		internal string[] LoadFile(string filePath, 
			Interface.ImportFileType fileType, SortedList columnOrder)
		{
			createViewDatatable(columnOrder);

			FileStream fs = new FileStream(filePath, FileMode.Open, 
				FileAccess.Read, FileShare.Write);

			StringBuilder output = new StringBuilder();

			output.Length = 0;

			Encoding encoding = Encoding.GetEncoding(1252);
			StreamReader r = new StreamReader(fs, encoding);
			r.BaseStream.Seek(0, SeekOrigin.Begin);

			while (r.Peek() > -1) 
			{
				string temp = r.ReadLine();
				if (temp.Replace(";", "").Replace(" ", "").Length != 0)
				{
					output.Append(temp + "\n");
				}
			}

			r.Close();

			switch(fileType)
			{
				case Interface.ImportFileType.SKV:
					parseSkvFile(output.ToString(), columnOrder);
					break;
				default:
					throw new ApplicationException("Not implemented");
			}

			return output.ToString().Replace("\r", "").Split('\n');
		}
Пример #6
0
		internal CResultCache(Interface callerInterface)
		{
			myInterface = callerInterface;
			result = new CResult(callerInterface);
		}
Пример #7
0
		internal CResultTeam(Interface callerInterface)
		{
			myInterface = callerInterface;
		}
		internal CInternetTextExport(Interface callerInterface)
		{
			myInterface = callerInterface;
		}
Пример #9
0
		internal CFollowUp(Interface callerInterface)
		{
			myInterface = callerInterface;
			database = myInterface.databaseClass.Database;
		}
		internal CInternetExcelExport(Interface callerInterface)
		{
			myInterface = callerInterface;
			settings = CSettings.Instance;
		}
Пример #11
0
		internal CDatabase(Interface callerInterface)
		{
			MyInterface = callerInterface;
		}
		internal CPatrolManagement(Interface callerInterface)
		{
			myInterface = callerInterface;
		}
		internal CInternetXmlExport(Interface callerInterface)
		{
			myInterface = callerInterface;
		}