Session3_4DataSet.Designer.cs 625 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Session_4 {
  12. /// <summary>
  13. ///Represents a strongly typed in-memory cache of data.
  14. ///</summary>
  15. [global::System.Serializable()]
  16. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  17. [global::System.ComponentModel.ToolboxItem(true)]
  18. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  19. [global::System.Xml.Serialization.XmlRootAttribute("Session3_4DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class Session3_4DataSet : global::System.Data.DataSet {
  22. private AircraftsDataTable tableAircrafts;
  23. private AirportsDataTable tableAirports;
  24. private CabinTypesDataTable tableCabinTypes;
  25. private CountriesDataTable tableCountries;
  26. private OfficesDataTable tableOffices;
  27. private RolesDataTable tableRoles;
  28. private RoutesDataTable tableRoutes;
  29. private SchedulesDataTable tableSchedules;
  30. private TicketsDataTable tableTickets;
  31. private UsersDataTable tableUsers;
  32. private global::System.Data.DataRelation relationFK_AirPort_Country;
  33. private global::System.Data.DataRelation relationFK_Office_Country;
  34. private global::System.Data.DataRelation relationFK_Routes_Airports2;
  35. private global::System.Data.DataRelation relationFK_Routes_Airports3;
  36. private global::System.Data.DataRelation relationFK_Schedule_AirCraft;
  37. private global::System.Data.DataRelation relationFK_Schedule_Routes;
  38. private global::System.Data.DataRelation relationFK_Ticket_Schedule;
  39. private global::System.Data.DataRelation relationFK_Ticket_TravelClass;
  40. private global::System.Data.DataRelation relationFK_Ticket_User;
  41. private global::System.Data.DataRelation relationFK_Users_Offices;
  42. private global::System.Data.DataRelation relationFK_Users_Roles;
  43. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  44. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  45. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  46. public Session3_4DataSet() {
  47. this.BeginInit();
  48. this.InitClass();
  49. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  50. base.Tables.CollectionChanged += schemaChangedHandler;
  51. base.Relations.CollectionChanged += schemaChangedHandler;
  52. this.EndInit();
  53. }
  54. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  55. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  56. protected Session3_4DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  57. base(info, context, false) {
  58. if ((this.IsBinarySerialized(info, context) == true)) {
  59. this.InitVars(false);
  60. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  61. this.Tables.CollectionChanged += schemaChangedHandler1;
  62. this.Relations.CollectionChanged += schemaChangedHandler1;
  63. return;
  64. }
  65. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  66. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  67. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  68. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  69. if ((ds.Tables["Aircrafts"] != null)) {
  70. base.Tables.Add(new AircraftsDataTable(ds.Tables["Aircrafts"]));
  71. }
  72. if ((ds.Tables["Airports"] != null)) {
  73. base.Tables.Add(new AirportsDataTable(ds.Tables["Airports"]));
  74. }
  75. if ((ds.Tables["CabinTypes"] != null)) {
  76. base.Tables.Add(new CabinTypesDataTable(ds.Tables["CabinTypes"]));
  77. }
  78. if ((ds.Tables["Countries"] != null)) {
  79. base.Tables.Add(new CountriesDataTable(ds.Tables["Countries"]));
  80. }
  81. if ((ds.Tables["Offices"] != null)) {
  82. base.Tables.Add(new OfficesDataTable(ds.Tables["Offices"]));
  83. }
  84. if ((ds.Tables["Roles"] != null)) {
  85. base.Tables.Add(new RolesDataTable(ds.Tables["Roles"]));
  86. }
  87. if ((ds.Tables["Routes"] != null)) {
  88. base.Tables.Add(new RoutesDataTable(ds.Tables["Routes"]));
  89. }
  90. if ((ds.Tables["Schedules"] != null)) {
  91. base.Tables.Add(new SchedulesDataTable(ds.Tables["Schedules"]));
  92. }
  93. if ((ds.Tables["Tickets"] != null)) {
  94. base.Tables.Add(new TicketsDataTable(ds.Tables["Tickets"]));
  95. }
  96. if ((ds.Tables["Users"] != null)) {
  97. base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
  98. }
  99. this.DataSetName = ds.DataSetName;
  100. this.Prefix = ds.Prefix;
  101. this.Namespace = ds.Namespace;
  102. this.Locale = ds.Locale;
  103. this.CaseSensitive = ds.CaseSensitive;
  104. this.EnforceConstraints = ds.EnforceConstraints;
  105. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  106. this.InitVars();
  107. }
  108. else {
  109. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  110. }
  111. this.GetSerializationData(info, context);
  112. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  113. base.Tables.CollectionChanged += schemaChangedHandler;
  114. this.Relations.CollectionChanged += schemaChangedHandler;
  115. }
  116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  118. [global::System.ComponentModel.Browsable(false)]
  119. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  120. public AircraftsDataTable Aircrafts {
  121. get {
  122. return this.tableAircrafts;
  123. }
  124. }
  125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  127. [global::System.ComponentModel.Browsable(false)]
  128. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  129. public AirportsDataTable Airports {
  130. get {
  131. return this.tableAirports;
  132. }
  133. }
  134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  136. [global::System.ComponentModel.Browsable(false)]
  137. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  138. public CabinTypesDataTable CabinTypes {
  139. get {
  140. return this.tableCabinTypes;
  141. }
  142. }
  143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  145. [global::System.ComponentModel.Browsable(false)]
  146. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  147. public CountriesDataTable Countries {
  148. get {
  149. return this.tableCountries;
  150. }
  151. }
  152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  154. [global::System.ComponentModel.Browsable(false)]
  155. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  156. public OfficesDataTable Offices {
  157. get {
  158. return this.tableOffices;
  159. }
  160. }
  161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  163. [global::System.ComponentModel.Browsable(false)]
  164. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  165. public RolesDataTable Roles {
  166. get {
  167. return this.tableRoles;
  168. }
  169. }
  170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  172. [global::System.ComponentModel.Browsable(false)]
  173. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  174. public RoutesDataTable Routes {
  175. get {
  176. return this.tableRoutes;
  177. }
  178. }
  179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  181. [global::System.ComponentModel.Browsable(false)]
  182. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  183. public SchedulesDataTable Schedules {
  184. get {
  185. return this.tableSchedules;
  186. }
  187. }
  188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  190. [global::System.ComponentModel.Browsable(false)]
  191. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  192. public TicketsDataTable Tickets {
  193. get {
  194. return this.tableTickets;
  195. }
  196. }
  197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  199. [global::System.ComponentModel.Browsable(false)]
  200. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  201. public UsersDataTable Users {
  202. get {
  203. return this.tableUsers;
  204. }
  205. }
  206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  208. [global::System.ComponentModel.BrowsableAttribute(true)]
  209. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  210. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  211. get {
  212. return this._schemaSerializationMode;
  213. }
  214. set {
  215. this._schemaSerializationMode = value;
  216. }
  217. }
  218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  220. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  221. public new global::System.Data.DataTableCollection Tables {
  222. get {
  223. return base.Tables;
  224. }
  225. }
  226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  228. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  229. public new global::System.Data.DataRelationCollection Relations {
  230. get {
  231. return base.Relations;
  232. }
  233. }
  234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  236. protected override void InitializeDerivedDataSet() {
  237. this.BeginInit();
  238. this.InitClass();
  239. this.EndInit();
  240. }
  241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  243. public override global::System.Data.DataSet Clone() {
  244. Session3_4DataSet cln = ((Session3_4DataSet)(base.Clone()));
  245. cln.InitVars();
  246. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  247. return cln;
  248. }
  249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  251. protected override bool ShouldSerializeTables() {
  252. return false;
  253. }
  254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  256. protected override bool ShouldSerializeRelations() {
  257. return false;
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  261. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  262. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  263. this.Reset();
  264. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  265. ds.ReadXml(reader);
  266. if ((ds.Tables["Aircrafts"] != null)) {
  267. base.Tables.Add(new AircraftsDataTable(ds.Tables["Aircrafts"]));
  268. }
  269. if ((ds.Tables["Airports"] != null)) {
  270. base.Tables.Add(new AirportsDataTable(ds.Tables["Airports"]));
  271. }
  272. if ((ds.Tables["CabinTypes"] != null)) {
  273. base.Tables.Add(new CabinTypesDataTable(ds.Tables["CabinTypes"]));
  274. }
  275. if ((ds.Tables["Countries"] != null)) {
  276. base.Tables.Add(new CountriesDataTable(ds.Tables["Countries"]));
  277. }
  278. if ((ds.Tables["Offices"] != null)) {
  279. base.Tables.Add(new OfficesDataTable(ds.Tables["Offices"]));
  280. }
  281. if ((ds.Tables["Roles"] != null)) {
  282. base.Tables.Add(new RolesDataTable(ds.Tables["Roles"]));
  283. }
  284. if ((ds.Tables["Routes"] != null)) {
  285. base.Tables.Add(new RoutesDataTable(ds.Tables["Routes"]));
  286. }
  287. if ((ds.Tables["Schedules"] != null)) {
  288. base.Tables.Add(new SchedulesDataTable(ds.Tables["Schedules"]));
  289. }
  290. if ((ds.Tables["Tickets"] != null)) {
  291. base.Tables.Add(new TicketsDataTable(ds.Tables["Tickets"]));
  292. }
  293. if ((ds.Tables["Users"] != null)) {
  294. base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
  295. }
  296. this.DataSetName = ds.DataSetName;
  297. this.Prefix = ds.Prefix;
  298. this.Namespace = ds.Namespace;
  299. this.Locale = ds.Locale;
  300. this.CaseSensitive = ds.CaseSensitive;
  301. this.EnforceConstraints = ds.EnforceConstraints;
  302. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  303. this.InitVars();
  304. }
  305. else {
  306. this.ReadXml(reader);
  307. this.InitVars();
  308. }
  309. }
  310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  312. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  313. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  314. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  315. stream.Position = 0;
  316. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  317. }
  318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  320. internal void InitVars() {
  321. this.InitVars(true);
  322. }
  323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  325. internal void InitVars(bool initTable) {
  326. this.tableAircrafts = ((AircraftsDataTable)(base.Tables["Aircrafts"]));
  327. if ((initTable == true)) {
  328. if ((this.tableAircrafts != null)) {
  329. this.tableAircrafts.InitVars();
  330. }
  331. }
  332. this.tableAirports = ((AirportsDataTable)(base.Tables["Airports"]));
  333. if ((initTable == true)) {
  334. if ((this.tableAirports != null)) {
  335. this.tableAirports.InitVars();
  336. }
  337. }
  338. this.tableCabinTypes = ((CabinTypesDataTable)(base.Tables["CabinTypes"]));
  339. if ((initTable == true)) {
  340. if ((this.tableCabinTypes != null)) {
  341. this.tableCabinTypes.InitVars();
  342. }
  343. }
  344. this.tableCountries = ((CountriesDataTable)(base.Tables["Countries"]));
  345. if ((initTable == true)) {
  346. if ((this.tableCountries != null)) {
  347. this.tableCountries.InitVars();
  348. }
  349. }
  350. this.tableOffices = ((OfficesDataTable)(base.Tables["Offices"]));
  351. if ((initTable == true)) {
  352. if ((this.tableOffices != null)) {
  353. this.tableOffices.InitVars();
  354. }
  355. }
  356. this.tableRoles = ((RolesDataTable)(base.Tables["Roles"]));
  357. if ((initTable == true)) {
  358. if ((this.tableRoles != null)) {
  359. this.tableRoles.InitVars();
  360. }
  361. }
  362. this.tableRoutes = ((RoutesDataTable)(base.Tables["Routes"]));
  363. if ((initTable == true)) {
  364. if ((this.tableRoutes != null)) {
  365. this.tableRoutes.InitVars();
  366. }
  367. }
  368. this.tableSchedules = ((SchedulesDataTable)(base.Tables["Schedules"]));
  369. if ((initTable == true)) {
  370. if ((this.tableSchedules != null)) {
  371. this.tableSchedules.InitVars();
  372. }
  373. }
  374. this.tableTickets = ((TicketsDataTable)(base.Tables["Tickets"]));
  375. if ((initTable == true)) {
  376. if ((this.tableTickets != null)) {
  377. this.tableTickets.InitVars();
  378. }
  379. }
  380. this.tableUsers = ((UsersDataTable)(base.Tables["Users"]));
  381. if ((initTable == true)) {
  382. if ((this.tableUsers != null)) {
  383. this.tableUsers.InitVars();
  384. }
  385. }
  386. this.relationFK_AirPort_Country = this.Relations["FK_AirPort_Country"];
  387. this.relationFK_Office_Country = this.Relations["FK_Office_Country"];
  388. this.relationFK_Routes_Airports2 = this.Relations["FK_Routes_Airports2"];
  389. this.relationFK_Routes_Airports3 = this.Relations["FK_Routes_Airports3"];
  390. this.relationFK_Schedule_AirCraft = this.Relations["FK_Schedule_AirCraft"];
  391. this.relationFK_Schedule_Routes = this.Relations["FK_Schedule_Routes"];
  392. this.relationFK_Ticket_Schedule = this.Relations["FK_Ticket_Schedule"];
  393. this.relationFK_Ticket_TravelClass = this.Relations["FK_Ticket_TravelClass"];
  394. this.relationFK_Ticket_User = this.Relations["FK_Ticket_User"];
  395. this.relationFK_Users_Offices = this.Relations["FK_Users_Offices"];
  396. this.relationFK_Users_Roles = this.Relations["FK_Users_Roles"];
  397. }
  398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  400. private void InitClass() {
  401. this.DataSetName = "Session3_4DataSet";
  402. this.Prefix = "";
  403. this.Namespace = "http://tempuri.org/Session3_4DataSet.xsd";
  404. this.EnforceConstraints = true;
  405. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  406. this.tableAircrafts = new AircraftsDataTable();
  407. base.Tables.Add(this.tableAircrafts);
  408. this.tableAirports = new AirportsDataTable();
  409. base.Tables.Add(this.tableAirports);
  410. this.tableCabinTypes = new CabinTypesDataTable();
  411. base.Tables.Add(this.tableCabinTypes);
  412. this.tableCountries = new CountriesDataTable();
  413. base.Tables.Add(this.tableCountries);
  414. this.tableOffices = new OfficesDataTable();
  415. base.Tables.Add(this.tableOffices);
  416. this.tableRoles = new RolesDataTable();
  417. base.Tables.Add(this.tableRoles);
  418. this.tableRoutes = new RoutesDataTable();
  419. base.Tables.Add(this.tableRoutes);
  420. this.tableSchedules = new SchedulesDataTable();
  421. base.Tables.Add(this.tableSchedules);
  422. this.tableTickets = new TicketsDataTable();
  423. base.Tables.Add(this.tableTickets);
  424. this.tableUsers = new UsersDataTable();
  425. base.Tables.Add(this.tableUsers);
  426. this.relationFK_AirPort_Country = new global::System.Data.DataRelation("FK_AirPort_Country", new global::System.Data.DataColumn[] {
  427. this.tableCountries.IDColumn}, new global::System.Data.DataColumn[] {
  428. this.tableAirports.CountryIDColumn}, false);
  429. this.Relations.Add(this.relationFK_AirPort_Country);
  430. this.relationFK_Office_Country = new global::System.Data.DataRelation("FK_Office_Country", new global::System.Data.DataColumn[] {
  431. this.tableCountries.IDColumn}, new global::System.Data.DataColumn[] {
  432. this.tableOffices.CountryIDColumn}, false);
  433. this.Relations.Add(this.relationFK_Office_Country);
  434. this.relationFK_Routes_Airports2 = new global::System.Data.DataRelation("FK_Routes_Airports2", new global::System.Data.DataColumn[] {
  435. this.tableAirports.IDColumn}, new global::System.Data.DataColumn[] {
  436. this.tableRoutes.DepartureAirportIDColumn}, false);
  437. this.Relations.Add(this.relationFK_Routes_Airports2);
  438. this.relationFK_Routes_Airports3 = new global::System.Data.DataRelation("FK_Routes_Airports3", new global::System.Data.DataColumn[] {
  439. this.tableAirports.IDColumn}, new global::System.Data.DataColumn[] {
  440. this.tableRoutes.ArrivalAirportIDColumn}, false);
  441. this.Relations.Add(this.relationFK_Routes_Airports3);
  442. this.relationFK_Schedule_AirCraft = new global::System.Data.DataRelation("FK_Schedule_AirCraft", new global::System.Data.DataColumn[] {
  443. this.tableAircrafts.IDColumn}, new global::System.Data.DataColumn[] {
  444. this.tableSchedules.AircraftIDColumn}, false);
  445. this.Relations.Add(this.relationFK_Schedule_AirCraft);
  446. this.relationFK_Schedule_Routes = new global::System.Data.DataRelation("FK_Schedule_Routes", new global::System.Data.DataColumn[] {
  447. this.tableRoutes.IDColumn}, new global::System.Data.DataColumn[] {
  448. this.tableSchedules.RouteIDColumn}, false);
  449. this.Relations.Add(this.relationFK_Schedule_Routes);
  450. this.relationFK_Ticket_Schedule = new global::System.Data.DataRelation("FK_Ticket_Schedule", new global::System.Data.DataColumn[] {
  451. this.tableSchedules.IDColumn}, new global::System.Data.DataColumn[] {
  452. this.tableTickets.ScheduleIDColumn}, false);
  453. this.Relations.Add(this.relationFK_Ticket_Schedule);
  454. this.relationFK_Ticket_TravelClass = new global::System.Data.DataRelation("FK_Ticket_TravelClass", new global::System.Data.DataColumn[] {
  455. this.tableCabinTypes.IDColumn}, new global::System.Data.DataColumn[] {
  456. this.tableTickets.CabinTypeIDColumn}, false);
  457. this.Relations.Add(this.relationFK_Ticket_TravelClass);
  458. this.relationFK_Ticket_User = new global::System.Data.DataRelation("FK_Ticket_User", new global::System.Data.DataColumn[] {
  459. this.tableUsers.IDColumn}, new global::System.Data.DataColumn[] {
  460. this.tableTickets.UserIDColumn}, false);
  461. this.Relations.Add(this.relationFK_Ticket_User);
  462. this.relationFK_Users_Offices = new global::System.Data.DataRelation("FK_Users_Offices", new global::System.Data.DataColumn[] {
  463. this.tableOffices.IDColumn}, new global::System.Data.DataColumn[] {
  464. this.tableUsers.OfficeIDColumn}, false);
  465. this.Relations.Add(this.relationFK_Users_Offices);
  466. this.relationFK_Users_Roles = new global::System.Data.DataRelation("FK_Users_Roles", new global::System.Data.DataColumn[] {
  467. this.tableRoles.IDColumn}, new global::System.Data.DataColumn[] {
  468. this.tableUsers.RoleIDColumn}, false);
  469. this.Relations.Add(this.relationFK_Users_Roles);
  470. }
  471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  473. private bool ShouldSerializeAircrafts() {
  474. return false;
  475. }
  476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  478. private bool ShouldSerializeAirports() {
  479. return false;
  480. }
  481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  483. private bool ShouldSerializeCabinTypes() {
  484. return false;
  485. }
  486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  488. private bool ShouldSerializeCountries() {
  489. return false;
  490. }
  491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  493. private bool ShouldSerializeOffices() {
  494. return false;
  495. }
  496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  498. private bool ShouldSerializeRoles() {
  499. return false;
  500. }
  501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  503. private bool ShouldSerializeRoutes() {
  504. return false;
  505. }
  506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  508. private bool ShouldSerializeSchedules() {
  509. return false;
  510. }
  511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  513. private bool ShouldSerializeTickets() {
  514. return false;
  515. }
  516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  518. private bool ShouldSerializeUsers() {
  519. return false;
  520. }
  521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  523. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  524. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  525. this.InitVars();
  526. }
  527. }
  528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  530. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  531. Session3_4DataSet ds = new Session3_4DataSet();
  532. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  533. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  534. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  535. any.Namespace = ds.Namespace;
  536. sequence.Items.Add(any);
  537. type.Particle = sequence;
  538. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  539. if (xs.Contains(dsSchema.TargetNamespace)) {
  540. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  541. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  542. try {
  543. global::System.Xml.Schema.XmlSchema schema = null;
  544. dsSchema.Write(s1);
  545. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  546. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  547. s2.SetLength(0);
  548. schema.Write(s2);
  549. if ((s1.Length == s2.Length)) {
  550. s1.Position = 0;
  551. s2.Position = 0;
  552. for (; ((s1.Position != s1.Length)
  553. && (s1.ReadByte() == s2.ReadByte())); ) {
  554. ;
  555. }
  556. if ((s1.Position == s1.Length)) {
  557. return type;
  558. }
  559. }
  560. }
  561. }
  562. finally {
  563. if ((s1 != null)) {
  564. s1.Close();
  565. }
  566. if ((s2 != null)) {
  567. s2.Close();
  568. }
  569. }
  570. }
  571. xs.Add(dsSchema);
  572. return type;
  573. }
  574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  575. public delegate void AircraftsRowChangeEventHandler(object sender, AircraftsRowChangeEvent e);
  576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  577. public delegate void AirportsRowChangeEventHandler(object sender, AirportsRowChangeEvent e);
  578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  579. public delegate void CabinTypesRowChangeEventHandler(object sender, CabinTypesRowChangeEvent e);
  580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  581. public delegate void CountriesRowChangeEventHandler(object sender, CountriesRowChangeEvent e);
  582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  583. public delegate void OfficesRowChangeEventHandler(object sender, OfficesRowChangeEvent e);
  584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  585. public delegate void RolesRowChangeEventHandler(object sender, RolesRowChangeEvent e);
  586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  587. public delegate void RoutesRowChangeEventHandler(object sender, RoutesRowChangeEvent e);
  588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  589. public delegate void SchedulesRowChangeEventHandler(object sender, SchedulesRowChangeEvent e);
  590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  591. public delegate void TicketsRowChangeEventHandler(object sender, TicketsRowChangeEvent e);
  592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  593. public delegate void UsersRowChangeEventHandler(object sender, UsersRowChangeEvent e);
  594. /// <summary>
  595. ///Represents the strongly named DataTable class.
  596. ///</summary>
  597. [global::System.Serializable()]
  598. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  599. public partial class AircraftsDataTable : global::System.Data.TypedTableBase<AircraftsRow> {
  600. private global::System.Data.DataColumn columnID;
  601. private global::System.Data.DataColumn columnName;
  602. private global::System.Data.DataColumn columnMakeModel;
  603. private global::System.Data.DataColumn columnTotalSeats;
  604. private global::System.Data.DataColumn columnEconomySeats;
  605. private global::System.Data.DataColumn columnBusinessSeats;
  606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  608. public AircraftsDataTable() {
  609. this.TableName = "Aircrafts";
  610. this.BeginInit();
  611. this.InitClass();
  612. this.EndInit();
  613. }
  614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  616. internal AircraftsDataTable(global::System.Data.DataTable table) {
  617. this.TableName = table.TableName;
  618. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  619. this.CaseSensitive = table.CaseSensitive;
  620. }
  621. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  622. this.Locale = table.Locale;
  623. }
  624. if ((table.Namespace != table.DataSet.Namespace)) {
  625. this.Namespace = table.Namespace;
  626. }
  627. this.Prefix = table.Prefix;
  628. this.MinimumCapacity = table.MinimumCapacity;
  629. }
  630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  632. protected AircraftsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  633. base(info, context) {
  634. this.InitVars();
  635. }
  636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  638. public global::System.Data.DataColumn IDColumn {
  639. get {
  640. return this.columnID;
  641. }
  642. }
  643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  645. public global::System.Data.DataColumn NameColumn {
  646. get {
  647. return this.columnName;
  648. }
  649. }
  650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  652. public global::System.Data.DataColumn MakeModelColumn {
  653. get {
  654. return this.columnMakeModel;
  655. }
  656. }
  657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  659. public global::System.Data.DataColumn TotalSeatsColumn {
  660. get {
  661. return this.columnTotalSeats;
  662. }
  663. }
  664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  666. public global::System.Data.DataColumn EconomySeatsColumn {
  667. get {
  668. return this.columnEconomySeats;
  669. }
  670. }
  671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  673. public global::System.Data.DataColumn BusinessSeatsColumn {
  674. get {
  675. return this.columnBusinessSeats;
  676. }
  677. }
  678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  680. [global::System.ComponentModel.Browsable(false)]
  681. public int Count {
  682. get {
  683. return this.Rows.Count;
  684. }
  685. }
  686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  688. public AircraftsRow this[int index] {
  689. get {
  690. return ((AircraftsRow)(this.Rows[index]));
  691. }
  692. }
  693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  694. public event AircraftsRowChangeEventHandler AircraftsRowChanging;
  695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  696. public event AircraftsRowChangeEventHandler AircraftsRowChanged;
  697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  698. public event AircraftsRowChangeEventHandler AircraftsRowDeleting;
  699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  700. public event AircraftsRowChangeEventHandler AircraftsRowDeleted;
  701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  703. public void AddAircraftsRow(AircraftsRow row) {
  704. this.Rows.Add(row);
  705. }
  706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  708. public AircraftsRow AddAircraftsRow(int ID, string Name, string MakeModel, int TotalSeats, int EconomySeats, int BusinessSeats) {
  709. AircraftsRow rowAircraftsRow = ((AircraftsRow)(this.NewRow()));
  710. object[] columnValuesArray = new object[] {
  711. ID,
  712. Name,
  713. MakeModel,
  714. TotalSeats,
  715. EconomySeats,
  716. BusinessSeats};
  717. rowAircraftsRow.ItemArray = columnValuesArray;
  718. this.Rows.Add(rowAircraftsRow);
  719. return rowAircraftsRow;
  720. }
  721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  723. public AircraftsRow FindByID(int ID) {
  724. return ((AircraftsRow)(this.Rows.Find(new object[] {
  725. ID})));
  726. }
  727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  729. public override global::System.Data.DataTable Clone() {
  730. AircraftsDataTable cln = ((AircraftsDataTable)(base.Clone()));
  731. cln.InitVars();
  732. return cln;
  733. }
  734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  736. protected override global::System.Data.DataTable CreateInstance() {
  737. return new AircraftsDataTable();
  738. }
  739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  741. internal void InitVars() {
  742. this.columnID = base.Columns["ID"];
  743. this.columnName = base.Columns["Name"];
  744. this.columnMakeModel = base.Columns["MakeModel"];
  745. this.columnTotalSeats = base.Columns["TotalSeats"];
  746. this.columnEconomySeats = base.Columns["EconomySeats"];
  747. this.columnBusinessSeats = base.Columns["BusinessSeats"];
  748. }
  749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  751. private void InitClass() {
  752. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  753. base.Columns.Add(this.columnID);
  754. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  755. base.Columns.Add(this.columnName);
  756. this.columnMakeModel = new global::System.Data.DataColumn("MakeModel", typeof(string), null, global::System.Data.MappingType.Element);
  757. base.Columns.Add(this.columnMakeModel);
  758. this.columnTotalSeats = new global::System.Data.DataColumn("TotalSeats", typeof(int), null, global::System.Data.MappingType.Element);
  759. base.Columns.Add(this.columnTotalSeats);
  760. this.columnEconomySeats = new global::System.Data.DataColumn("EconomySeats", typeof(int), null, global::System.Data.MappingType.Element);
  761. base.Columns.Add(this.columnEconomySeats);
  762. this.columnBusinessSeats = new global::System.Data.DataColumn("BusinessSeats", typeof(int), null, global::System.Data.MappingType.Element);
  763. base.Columns.Add(this.columnBusinessSeats);
  764. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  765. this.columnID}, true));
  766. this.columnID.AllowDBNull = false;
  767. this.columnID.Unique = true;
  768. this.columnName.AllowDBNull = false;
  769. this.columnName.MaxLength = 50;
  770. this.columnMakeModel.MaxLength = 10;
  771. this.columnTotalSeats.AllowDBNull = false;
  772. this.columnEconomySeats.AllowDBNull = false;
  773. this.columnBusinessSeats.AllowDBNull = false;
  774. }
  775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  777. public AircraftsRow NewAircraftsRow() {
  778. return ((AircraftsRow)(this.NewRow()));
  779. }
  780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  782. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  783. return new AircraftsRow(builder);
  784. }
  785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  787. protected override global::System.Type GetRowType() {
  788. return typeof(AircraftsRow);
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  792. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  793. base.OnRowChanged(e);
  794. if ((this.AircraftsRowChanged != null)) {
  795. this.AircraftsRowChanged(this, new AircraftsRowChangeEvent(((AircraftsRow)(e.Row)), e.Action));
  796. }
  797. }
  798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  800. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  801. base.OnRowChanging(e);
  802. if ((this.AircraftsRowChanging != null)) {
  803. this.AircraftsRowChanging(this, new AircraftsRowChangeEvent(((AircraftsRow)(e.Row)), e.Action));
  804. }
  805. }
  806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  808. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  809. base.OnRowDeleted(e);
  810. if ((this.AircraftsRowDeleted != null)) {
  811. this.AircraftsRowDeleted(this, new AircraftsRowChangeEvent(((AircraftsRow)(e.Row)), e.Action));
  812. }
  813. }
  814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  816. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  817. base.OnRowDeleting(e);
  818. if ((this.AircraftsRowDeleting != null)) {
  819. this.AircraftsRowDeleting(this, new AircraftsRowChangeEvent(((AircraftsRow)(e.Row)), e.Action));
  820. }
  821. }
  822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  824. public void RemoveAircraftsRow(AircraftsRow row) {
  825. this.Rows.Remove(row);
  826. }
  827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  829. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  830. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  831. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  832. Session3_4DataSet ds = new Session3_4DataSet();
  833. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  834. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  835. any1.MinOccurs = new decimal(0);
  836. any1.MaxOccurs = decimal.MaxValue;
  837. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  838. sequence.Items.Add(any1);
  839. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  840. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  841. any2.MinOccurs = new decimal(1);
  842. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  843. sequence.Items.Add(any2);
  844. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  845. attribute1.Name = "namespace";
  846. attribute1.FixedValue = ds.Namespace;
  847. type.Attributes.Add(attribute1);
  848. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  849. attribute2.Name = "tableTypeName";
  850. attribute2.FixedValue = "AircraftsDataTable";
  851. type.Attributes.Add(attribute2);
  852. type.Particle = sequence;
  853. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  854. if (xs.Contains(dsSchema.TargetNamespace)) {
  855. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  856. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  857. try {
  858. global::System.Xml.Schema.XmlSchema schema = null;
  859. dsSchema.Write(s1);
  860. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  861. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  862. s2.SetLength(0);
  863. schema.Write(s2);
  864. if ((s1.Length == s2.Length)) {
  865. s1.Position = 0;
  866. s2.Position = 0;
  867. for (; ((s1.Position != s1.Length)
  868. && (s1.ReadByte() == s2.ReadByte())); ) {
  869. ;
  870. }
  871. if ((s1.Position == s1.Length)) {
  872. return type;
  873. }
  874. }
  875. }
  876. }
  877. finally {
  878. if ((s1 != null)) {
  879. s1.Close();
  880. }
  881. if ((s2 != null)) {
  882. s2.Close();
  883. }
  884. }
  885. }
  886. xs.Add(dsSchema);
  887. return type;
  888. }
  889. }
  890. /// <summary>
  891. ///Represents the strongly named DataTable class.
  892. ///</summary>
  893. [global::System.Serializable()]
  894. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  895. public partial class AirportsDataTable : global::System.Data.TypedTableBase<AirportsRow> {
  896. private global::System.Data.DataColumn columnID;
  897. private global::System.Data.DataColumn columnCountryID;
  898. private global::System.Data.DataColumn columnIATACode;
  899. private global::System.Data.DataColumn columnName;
  900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  902. public AirportsDataTable() {
  903. this.TableName = "Airports";
  904. this.BeginInit();
  905. this.InitClass();
  906. this.EndInit();
  907. }
  908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  910. internal AirportsDataTable(global::System.Data.DataTable table) {
  911. this.TableName = table.TableName;
  912. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  913. this.CaseSensitive = table.CaseSensitive;
  914. }
  915. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  916. this.Locale = table.Locale;
  917. }
  918. if ((table.Namespace != table.DataSet.Namespace)) {
  919. this.Namespace = table.Namespace;
  920. }
  921. this.Prefix = table.Prefix;
  922. this.MinimumCapacity = table.MinimumCapacity;
  923. }
  924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  926. protected AirportsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  927. base(info, context) {
  928. this.InitVars();
  929. }
  930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  932. public global::System.Data.DataColumn IDColumn {
  933. get {
  934. return this.columnID;
  935. }
  936. }
  937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  939. public global::System.Data.DataColumn CountryIDColumn {
  940. get {
  941. return this.columnCountryID;
  942. }
  943. }
  944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  946. public global::System.Data.DataColumn IATACodeColumn {
  947. get {
  948. return this.columnIATACode;
  949. }
  950. }
  951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  953. public global::System.Data.DataColumn NameColumn {
  954. get {
  955. return this.columnName;
  956. }
  957. }
  958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  960. [global::System.ComponentModel.Browsable(false)]
  961. public int Count {
  962. get {
  963. return this.Rows.Count;
  964. }
  965. }
  966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  968. public AirportsRow this[int index] {
  969. get {
  970. return ((AirportsRow)(this.Rows[index]));
  971. }
  972. }
  973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  974. public event AirportsRowChangeEventHandler AirportsRowChanging;
  975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  976. public event AirportsRowChangeEventHandler AirportsRowChanged;
  977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  978. public event AirportsRowChangeEventHandler AirportsRowDeleting;
  979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  980. public event AirportsRowChangeEventHandler AirportsRowDeleted;
  981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  983. public void AddAirportsRow(AirportsRow row) {
  984. this.Rows.Add(row);
  985. }
  986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  988. public AirportsRow AddAirportsRow(CountriesRow parentCountriesRowByFK_AirPort_Country, string IATACode, string Name) {
  989. AirportsRow rowAirportsRow = ((AirportsRow)(this.NewRow()));
  990. object[] columnValuesArray = new object[] {
  991. null,
  992. null,
  993. IATACode,
  994. Name};
  995. if ((parentCountriesRowByFK_AirPort_Country != null)) {
  996. columnValuesArray[1] = parentCountriesRowByFK_AirPort_Country[0];
  997. }
  998. rowAirportsRow.ItemArray = columnValuesArray;
  999. this.Rows.Add(rowAirportsRow);
  1000. return rowAirportsRow;
  1001. }
  1002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1004. public AirportsRow FindByID(int ID) {
  1005. return ((AirportsRow)(this.Rows.Find(new object[] {
  1006. ID})));
  1007. }
  1008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1010. public override global::System.Data.DataTable Clone() {
  1011. AirportsDataTable cln = ((AirportsDataTable)(base.Clone()));
  1012. cln.InitVars();
  1013. return cln;
  1014. }
  1015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1017. protected override global::System.Data.DataTable CreateInstance() {
  1018. return new AirportsDataTable();
  1019. }
  1020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1022. internal void InitVars() {
  1023. this.columnID = base.Columns["ID"];
  1024. this.columnCountryID = base.Columns["CountryID"];
  1025. this.columnIATACode = base.Columns["IATACode"];
  1026. this.columnName = base.Columns["Name"];
  1027. }
  1028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1030. private void InitClass() {
  1031. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1032. base.Columns.Add(this.columnID);
  1033. this.columnCountryID = new global::System.Data.DataColumn("CountryID", typeof(int), null, global::System.Data.MappingType.Element);
  1034. base.Columns.Add(this.columnCountryID);
  1035. this.columnIATACode = new global::System.Data.DataColumn("IATACode", typeof(string), null, global::System.Data.MappingType.Element);
  1036. base.Columns.Add(this.columnIATACode);
  1037. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1038. base.Columns.Add(this.columnName);
  1039. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1040. this.columnID}, true));
  1041. this.columnID.AutoIncrement = true;
  1042. this.columnID.AutoIncrementSeed = -1;
  1043. this.columnID.AutoIncrementStep = -1;
  1044. this.columnID.AllowDBNull = false;
  1045. this.columnID.ReadOnly = true;
  1046. this.columnID.Unique = true;
  1047. this.columnCountryID.AllowDBNull = false;
  1048. this.columnIATACode.AllowDBNull = false;
  1049. this.columnIATACode.MaxLength = 3;
  1050. this.columnName.MaxLength = 50;
  1051. }
  1052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1054. public AirportsRow NewAirportsRow() {
  1055. return ((AirportsRow)(this.NewRow()));
  1056. }
  1057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1059. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1060. return new AirportsRow(builder);
  1061. }
  1062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1064. protected override global::System.Type GetRowType() {
  1065. return typeof(AirportsRow);
  1066. }
  1067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1069. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1070. base.OnRowChanged(e);
  1071. if ((this.AirportsRowChanged != null)) {
  1072. this.AirportsRowChanged(this, new AirportsRowChangeEvent(((AirportsRow)(e.Row)), e.Action));
  1073. }
  1074. }
  1075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1077. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1078. base.OnRowChanging(e);
  1079. if ((this.AirportsRowChanging != null)) {
  1080. this.AirportsRowChanging(this, new AirportsRowChangeEvent(((AirportsRow)(e.Row)), e.Action));
  1081. }
  1082. }
  1083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1085. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1086. base.OnRowDeleted(e);
  1087. if ((this.AirportsRowDeleted != null)) {
  1088. this.AirportsRowDeleted(this, new AirportsRowChangeEvent(((AirportsRow)(e.Row)), e.Action));
  1089. }
  1090. }
  1091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1093. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1094. base.OnRowDeleting(e);
  1095. if ((this.AirportsRowDeleting != null)) {
  1096. this.AirportsRowDeleting(this, new AirportsRowChangeEvent(((AirportsRow)(e.Row)), e.Action));
  1097. }
  1098. }
  1099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1101. public void RemoveAirportsRow(AirportsRow row) {
  1102. this.Rows.Remove(row);
  1103. }
  1104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1106. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1107. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1108. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1109. Session3_4DataSet ds = new Session3_4DataSet();
  1110. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1111. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1112. any1.MinOccurs = new decimal(0);
  1113. any1.MaxOccurs = decimal.MaxValue;
  1114. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1115. sequence.Items.Add(any1);
  1116. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1117. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1118. any2.MinOccurs = new decimal(1);
  1119. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1120. sequence.Items.Add(any2);
  1121. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1122. attribute1.Name = "namespace";
  1123. attribute1.FixedValue = ds.Namespace;
  1124. type.Attributes.Add(attribute1);
  1125. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1126. attribute2.Name = "tableTypeName";
  1127. attribute2.FixedValue = "AirportsDataTable";
  1128. type.Attributes.Add(attribute2);
  1129. type.Particle = sequence;
  1130. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1131. if (xs.Contains(dsSchema.TargetNamespace)) {
  1132. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1133. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1134. try {
  1135. global::System.Xml.Schema.XmlSchema schema = null;
  1136. dsSchema.Write(s1);
  1137. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1138. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1139. s2.SetLength(0);
  1140. schema.Write(s2);
  1141. if ((s1.Length == s2.Length)) {
  1142. s1.Position = 0;
  1143. s2.Position = 0;
  1144. for (; ((s1.Position != s1.Length)
  1145. && (s1.ReadByte() == s2.ReadByte())); ) {
  1146. ;
  1147. }
  1148. if ((s1.Position == s1.Length)) {
  1149. return type;
  1150. }
  1151. }
  1152. }
  1153. }
  1154. finally {
  1155. if ((s1 != null)) {
  1156. s1.Close();
  1157. }
  1158. if ((s2 != null)) {
  1159. s2.Close();
  1160. }
  1161. }
  1162. }
  1163. xs.Add(dsSchema);
  1164. return type;
  1165. }
  1166. }
  1167. /// <summary>
  1168. ///Represents the strongly named DataTable class.
  1169. ///</summary>
  1170. [global::System.Serializable()]
  1171. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1172. public partial class CabinTypesDataTable : global::System.Data.TypedTableBase<CabinTypesRow> {
  1173. private global::System.Data.DataColumn columnID;
  1174. private global::System.Data.DataColumn columnName;
  1175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1177. public CabinTypesDataTable() {
  1178. this.TableName = "CabinTypes";
  1179. this.BeginInit();
  1180. this.InitClass();
  1181. this.EndInit();
  1182. }
  1183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1185. internal CabinTypesDataTable(global::System.Data.DataTable table) {
  1186. this.TableName = table.TableName;
  1187. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1188. this.CaseSensitive = table.CaseSensitive;
  1189. }
  1190. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1191. this.Locale = table.Locale;
  1192. }
  1193. if ((table.Namespace != table.DataSet.Namespace)) {
  1194. this.Namespace = table.Namespace;
  1195. }
  1196. this.Prefix = table.Prefix;
  1197. this.MinimumCapacity = table.MinimumCapacity;
  1198. }
  1199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1201. protected CabinTypesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1202. base(info, context) {
  1203. this.InitVars();
  1204. }
  1205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1207. public global::System.Data.DataColumn IDColumn {
  1208. get {
  1209. return this.columnID;
  1210. }
  1211. }
  1212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1214. public global::System.Data.DataColumn NameColumn {
  1215. get {
  1216. return this.columnName;
  1217. }
  1218. }
  1219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1221. [global::System.ComponentModel.Browsable(false)]
  1222. public int Count {
  1223. get {
  1224. return this.Rows.Count;
  1225. }
  1226. }
  1227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1229. public CabinTypesRow this[int index] {
  1230. get {
  1231. return ((CabinTypesRow)(this.Rows[index]));
  1232. }
  1233. }
  1234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1235. public event CabinTypesRowChangeEventHandler CabinTypesRowChanging;
  1236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1237. public event CabinTypesRowChangeEventHandler CabinTypesRowChanged;
  1238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1239. public event CabinTypesRowChangeEventHandler CabinTypesRowDeleting;
  1240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1241. public event CabinTypesRowChangeEventHandler CabinTypesRowDeleted;
  1242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1244. public void AddCabinTypesRow(CabinTypesRow row) {
  1245. this.Rows.Add(row);
  1246. }
  1247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1249. public CabinTypesRow AddCabinTypesRow(string Name) {
  1250. CabinTypesRow rowCabinTypesRow = ((CabinTypesRow)(this.NewRow()));
  1251. object[] columnValuesArray = new object[] {
  1252. null,
  1253. Name};
  1254. rowCabinTypesRow.ItemArray = columnValuesArray;
  1255. this.Rows.Add(rowCabinTypesRow);
  1256. return rowCabinTypesRow;
  1257. }
  1258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1260. public CabinTypesRow FindByID(int ID) {
  1261. return ((CabinTypesRow)(this.Rows.Find(new object[] {
  1262. ID})));
  1263. }
  1264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1266. public override global::System.Data.DataTable Clone() {
  1267. CabinTypesDataTable cln = ((CabinTypesDataTable)(base.Clone()));
  1268. cln.InitVars();
  1269. return cln;
  1270. }
  1271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1273. protected override global::System.Data.DataTable CreateInstance() {
  1274. return new CabinTypesDataTable();
  1275. }
  1276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1278. internal void InitVars() {
  1279. this.columnID = base.Columns["ID"];
  1280. this.columnName = base.Columns["Name"];
  1281. }
  1282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1284. private void InitClass() {
  1285. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1286. base.Columns.Add(this.columnID);
  1287. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1288. base.Columns.Add(this.columnName);
  1289. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1290. this.columnID}, true));
  1291. this.columnID.AutoIncrement = true;
  1292. this.columnID.AutoIncrementSeed = -1;
  1293. this.columnID.AutoIncrementStep = -1;
  1294. this.columnID.AllowDBNull = false;
  1295. this.columnID.ReadOnly = true;
  1296. this.columnID.Unique = true;
  1297. this.columnName.AllowDBNull = false;
  1298. this.columnName.MaxLength = 50;
  1299. }
  1300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1302. public CabinTypesRow NewCabinTypesRow() {
  1303. return ((CabinTypesRow)(this.NewRow()));
  1304. }
  1305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1307. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1308. return new CabinTypesRow(builder);
  1309. }
  1310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1312. protected override global::System.Type GetRowType() {
  1313. return typeof(CabinTypesRow);
  1314. }
  1315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1317. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1318. base.OnRowChanged(e);
  1319. if ((this.CabinTypesRowChanged != null)) {
  1320. this.CabinTypesRowChanged(this, new CabinTypesRowChangeEvent(((CabinTypesRow)(e.Row)), e.Action));
  1321. }
  1322. }
  1323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1325. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1326. base.OnRowChanging(e);
  1327. if ((this.CabinTypesRowChanging != null)) {
  1328. this.CabinTypesRowChanging(this, new CabinTypesRowChangeEvent(((CabinTypesRow)(e.Row)), e.Action));
  1329. }
  1330. }
  1331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1333. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1334. base.OnRowDeleted(e);
  1335. if ((this.CabinTypesRowDeleted != null)) {
  1336. this.CabinTypesRowDeleted(this, new CabinTypesRowChangeEvent(((CabinTypesRow)(e.Row)), e.Action));
  1337. }
  1338. }
  1339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1341. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1342. base.OnRowDeleting(e);
  1343. if ((this.CabinTypesRowDeleting != null)) {
  1344. this.CabinTypesRowDeleting(this, new CabinTypesRowChangeEvent(((CabinTypesRow)(e.Row)), e.Action));
  1345. }
  1346. }
  1347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1349. public void RemoveCabinTypesRow(CabinTypesRow row) {
  1350. this.Rows.Remove(row);
  1351. }
  1352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1354. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1355. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1356. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1357. Session3_4DataSet ds = new Session3_4DataSet();
  1358. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1359. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1360. any1.MinOccurs = new decimal(0);
  1361. any1.MaxOccurs = decimal.MaxValue;
  1362. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1363. sequence.Items.Add(any1);
  1364. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1365. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1366. any2.MinOccurs = new decimal(1);
  1367. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1368. sequence.Items.Add(any2);
  1369. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1370. attribute1.Name = "namespace";
  1371. attribute1.FixedValue = ds.Namespace;
  1372. type.Attributes.Add(attribute1);
  1373. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1374. attribute2.Name = "tableTypeName";
  1375. attribute2.FixedValue = "CabinTypesDataTable";
  1376. type.Attributes.Add(attribute2);
  1377. type.Particle = sequence;
  1378. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1379. if (xs.Contains(dsSchema.TargetNamespace)) {
  1380. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1381. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1382. try {
  1383. global::System.Xml.Schema.XmlSchema schema = null;
  1384. dsSchema.Write(s1);
  1385. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1386. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1387. s2.SetLength(0);
  1388. schema.Write(s2);
  1389. if ((s1.Length == s2.Length)) {
  1390. s1.Position = 0;
  1391. s2.Position = 0;
  1392. for (; ((s1.Position != s1.Length)
  1393. && (s1.ReadByte() == s2.ReadByte())); ) {
  1394. ;
  1395. }
  1396. if ((s1.Position == s1.Length)) {
  1397. return type;
  1398. }
  1399. }
  1400. }
  1401. }
  1402. finally {
  1403. if ((s1 != null)) {
  1404. s1.Close();
  1405. }
  1406. if ((s2 != null)) {
  1407. s2.Close();
  1408. }
  1409. }
  1410. }
  1411. xs.Add(dsSchema);
  1412. return type;
  1413. }
  1414. }
  1415. /// <summary>
  1416. ///Represents the strongly named DataTable class.
  1417. ///</summary>
  1418. [global::System.Serializable()]
  1419. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1420. public partial class CountriesDataTable : global::System.Data.TypedTableBase<CountriesRow> {
  1421. private global::System.Data.DataColumn columnID;
  1422. private global::System.Data.DataColumn columnName;
  1423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1425. public CountriesDataTable() {
  1426. this.TableName = "Countries";
  1427. this.BeginInit();
  1428. this.InitClass();
  1429. this.EndInit();
  1430. }
  1431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1433. internal CountriesDataTable(global::System.Data.DataTable table) {
  1434. this.TableName = table.TableName;
  1435. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1436. this.CaseSensitive = table.CaseSensitive;
  1437. }
  1438. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1439. this.Locale = table.Locale;
  1440. }
  1441. if ((table.Namespace != table.DataSet.Namespace)) {
  1442. this.Namespace = table.Namespace;
  1443. }
  1444. this.Prefix = table.Prefix;
  1445. this.MinimumCapacity = table.MinimumCapacity;
  1446. }
  1447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1449. protected CountriesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1450. base(info, context) {
  1451. this.InitVars();
  1452. }
  1453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1455. public global::System.Data.DataColumn IDColumn {
  1456. get {
  1457. return this.columnID;
  1458. }
  1459. }
  1460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1462. public global::System.Data.DataColumn NameColumn {
  1463. get {
  1464. return this.columnName;
  1465. }
  1466. }
  1467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1469. [global::System.ComponentModel.Browsable(false)]
  1470. public int Count {
  1471. get {
  1472. return this.Rows.Count;
  1473. }
  1474. }
  1475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1477. public CountriesRow this[int index] {
  1478. get {
  1479. return ((CountriesRow)(this.Rows[index]));
  1480. }
  1481. }
  1482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1483. public event CountriesRowChangeEventHandler CountriesRowChanging;
  1484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1485. public event CountriesRowChangeEventHandler CountriesRowChanged;
  1486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1487. public event CountriesRowChangeEventHandler CountriesRowDeleting;
  1488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1489. public event CountriesRowChangeEventHandler CountriesRowDeleted;
  1490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1492. public void AddCountriesRow(CountriesRow row) {
  1493. this.Rows.Add(row);
  1494. }
  1495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1497. public CountriesRow AddCountriesRow(string Name) {
  1498. CountriesRow rowCountriesRow = ((CountriesRow)(this.NewRow()));
  1499. object[] columnValuesArray = new object[] {
  1500. null,
  1501. Name};
  1502. rowCountriesRow.ItemArray = columnValuesArray;
  1503. this.Rows.Add(rowCountriesRow);
  1504. return rowCountriesRow;
  1505. }
  1506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1508. public CountriesRow FindByID(int ID) {
  1509. return ((CountriesRow)(this.Rows.Find(new object[] {
  1510. ID})));
  1511. }
  1512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1514. public override global::System.Data.DataTable Clone() {
  1515. CountriesDataTable cln = ((CountriesDataTable)(base.Clone()));
  1516. cln.InitVars();
  1517. return cln;
  1518. }
  1519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1521. protected override global::System.Data.DataTable CreateInstance() {
  1522. return new CountriesDataTable();
  1523. }
  1524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1526. internal void InitVars() {
  1527. this.columnID = base.Columns["ID"];
  1528. this.columnName = base.Columns["Name"];
  1529. }
  1530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1532. private void InitClass() {
  1533. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1534. base.Columns.Add(this.columnID);
  1535. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1536. base.Columns.Add(this.columnName);
  1537. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1538. this.columnID}, true));
  1539. this.columnID.AutoIncrement = true;
  1540. this.columnID.AutoIncrementSeed = -1;
  1541. this.columnID.AutoIncrementStep = -1;
  1542. this.columnID.AllowDBNull = false;
  1543. this.columnID.ReadOnly = true;
  1544. this.columnID.Unique = true;
  1545. this.columnName.AllowDBNull = false;
  1546. this.columnName.MaxLength = 50;
  1547. }
  1548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1550. public CountriesRow NewCountriesRow() {
  1551. return ((CountriesRow)(this.NewRow()));
  1552. }
  1553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1555. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1556. return new CountriesRow(builder);
  1557. }
  1558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1560. protected override global::System.Type GetRowType() {
  1561. return typeof(CountriesRow);
  1562. }
  1563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1565. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1566. base.OnRowChanged(e);
  1567. if ((this.CountriesRowChanged != null)) {
  1568. this.CountriesRowChanged(this, new CountriesRowChangeEvent(((CountriesRow)(e.Row)), e.Action));
  1569. }
  1570. }
  1571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1573. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1574. base.OnRowChanging(e);
  1575. if ((this.CountriesRowChanging != null)) {
  1576. this.CountriesRowChanging(this, new CountriesRowChangeEvent(((CountriesRow)(e.Row)), e.Action));
  1577. }
  1578. }
  1579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1581. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1582. base.OnRowDeleted(e);
  1583. if ((this.CountriesRowDeleted != null)) {
  1584. this.CountriesRowDeleted(this, new CountriesRowChangeEvent(((CountriesRow)(e.Row)), e.Action));
  1585. }
  1586. }
  1587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1589. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1590. base.OnRowDeleting(e);
  1591. if ((this.CountriesRowDeleting != null)) {
  1592. this.CountriesRowDeleting(this, new CountriesRowChangeEvent(((CountriesRow)(e.Row)), e.Action));
  1593. }
  1594. }
  1595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1597. public void RemoveCountriesRow(CountriesRow row) {
  1598. this.Rows.Remove(row);
  1599. }
  1600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1602. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1603. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1604. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1605. Session3_4DataSet ds = new Session3_4DataSet();
  1606. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1607. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1608. any1.MinOccurs = new decimal(0);
  1609. any1.MaxOccurs = decimal.MaxValue;
  1610. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1611. sequence.Items.Add(any1);
  1612. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1613. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1614. any2.MinOccurs = new decimal(1);
  1615. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1616. sequence.Items.Add(any2);
  1617. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1618. attribute1.Name = "namespace";
  1619. attribute1.FixedValue = ds.Namespace;
  1620. type.Attributes.Add(attribute1);
  1621. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1622. attribute2.Name = "tableTypeName";
  1623. attribute2.FixedValue = "CountriesDataTable";
  1624. type.Attributes.Add(attribute2);
  1625. type.Particle = sequence;
  1626. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1627. if (xs.Contains(dsSchema.TargetNamespace)) {
  1628. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1629. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1630. try {
  1631. global::System.Xml.Schema.XmlSchema schema = null;
  1632. dsSchema.Write(s1);
  1633. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1634. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1635. s2.SetLength(0);
  1636. schema.Write(s2);
  1637. if ((s1.Length == s2.Length)) {
  1638. s1.Position = 0;
  1639. s2.Position = 0;
  1640. for (; ((s1.Position != s1.Length)
  1641. && (s1.ReadByte() == s2.ReadByte())); ) {
  1642. ;
  1643. }
  1644. if ((s1.Position == s1.Length)) {
  1645. return type;
  1646. }
  1647. }
  1648. }
  1649. }
  1650. finally {
  1651. if ((s1 != null)) {
  1652. s1.Close();
  1653. }
  1654. if ((s2 != null)) {
  1655. s2.Close();
  1656. }
  1657. }
  1658. }
  1659. xs.Add(dsSchema);
  1660. return type;
  1661. }
  1662. }
  1663. /// <summary>
  1664. ///Represents the strongly named DataTable class.
  1665. ///</summary>
  1666. [global::System.Serializable()]
  1667. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1668. public partial class OfficesDataTable : global::System.Data.TypedTableBase<OfficesRow> {
  1669. private global::System.Data.DataColumn columnID;
  1670. private global::System.Data.DataColumn columnCountryID;
  1671. private global::System.Data.DataColumn columnTitle;
  1672. private global::System.Data.DataColumn columnPhone;
  1673. private global::System.Data.DataColumn columnContact;
  1674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1676. public OfficesDataTable() {
  1677. this.TableName = "Offices";
  1678. this.BeginInit();
  1679. this.InitClass();
  1680. this.EndInit();
  1681. }
  1682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1684. internal OfficesDataTable(global::System.Data.DataTable table) {
  1685. this.TableName = table.TableName;
  1686. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1687. this.CaseSensitive = table.CaseSensitive;
  1688. }
  1689. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1690. this.Locale = table.Locale;
  1691. }
  1692. if ((table.Namespace != table.DataSet.Namespace)) {
  1693. this.Namespace = table.Namespace;
  1694. }
  1695. this.Prefix = table.Prefix;
  1696. this.MinimumCapacity = table.MinimumCapacity;
  1697. }
  1698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1700. protected OfficesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1701. base(info, context) {
  1702. this.InitVars();
  1703. }
  1704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1706. public global::System.Data.DataColumn IDColumn {
  1707. get {
  1708. return this.columnID;
  1709. }
  1710. }
  1711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1713. public global::System.Data.DataColumn CountryIDColumn {
  1714. get {
  1715. return this.columnCountryID;
  1716. }
  1717. }
  1718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1720. public global::System.Data.DataColumn TitleColumn {
  1721. get {
  1722. return this.columnTitle;
  1723. }
  1724. }
  1725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1727. public global::System.Data.DataColumn PhoneColumn {
  1728. get {
  1729. return this.columnPhone;
  1730. }
  1731. }
  1732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1734. public global::System.Data.DataColumn ContactColumn {
  1735. get {
  1736. return this.columnContact;
  1737. }
  1738. }
  1739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1741. [global::System.ComponentModel.Browsable(false)]
  1742. public int Count {
  1743. get {
  1744. return this.Rows.Count;
  1745. }
  1746. }
  1747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1749. public OfficesRow this[int index] {
  1750. get {
  1751. return ((OfficesRow)(this.Rows[index]));
  1752. }
  1753. }
  1754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1755. public event OfficesRowChangeEventHandler OfficesRowChanging;
  1756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1757. public event OfficesRowChangeEventHandler OfficesRowChanged;
  1758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1759. public event OfficesRowChangeEventHandler OfficesRowDeleting;
  1760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1761. public event OfficesRowChangeEventHandler OfficesRowDeleted;
  1762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1764. public void AddOfficesRow(OfficesRow row) {
  1765. this.Rows.Add(row);
  1766. }
  1767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1769. public OfficesRow AddOfficesRow(CountriesRow parentCountriesRowByFK_Office_Country, string Title, string Phone, string Contact) {
  1770. OfficesRow rowOfficesRow = ((OfficesRow)(this.NewRow()));
  1771. object[] columnValuesArray = new object[] {
  1772. null,
  1773. null,
  1774. Title,
  1775. Phone,
  1776. Contact};
  1777. if ((parentCountriesRowByFK_Office_Country != null)) {
  1778. columnValuesArray[1] = parentCountriesRowByFK_Office_Country[0];
  1779. }
  1780. rowOfficesRow.ItemArray = columnValuesArray;
  1781. this.Rows.Add(rowOfficesRow);
  1782. return rowOfficesRow;
  1783. }
  1784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1786. public OfficesRow FindByID(int ID) {
  1787. return ((OfficesRow)(this.Rows.Find(new object[] {
  1788. ID})));
  1789. }
  1790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1792. public override global::System.Data.DataTable Clone() {
  1793. OfficesDataTable cln = ((OfficesDataTable)(base.Clone()));
  1794. cln.InitVars();
  1795. return cln;
  1796. }
  1797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1799. protected override global::System.Data.DataTable CreateInstance() {
  1800. return new OfficesDataTable();
  1801. }
  1802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1804. internal void InitVars() {
  1805. this.columnID = base.Columns["ID"];
  1806. this.columnCountryID = base.Columns["CountryID"];
  1807. this.columnTitle = base.Columns["Title"];
  1808. this.columnPhone = base.Columns["Phone"];
  1809. this.columnContact = base.Columns["Contact"];
  1810. }
  1811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1813. private void InitClass() {
  1814. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1815. base.Columns.Add(this.columnID);
  1816. this.columnCountryID = new global::System.Data.DataColumn("CountryID", typeof(int), null, global::System.Data.MappingType.Element);
  1817. base.Columns.Add(this.columnCountryID);
  1818. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  1819. base.Columns.Add(this.columnTitle);
  1820. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1821. base.Columns.Add(this.columnPhone);
  1822. this.columnContact = new global::System.Data.DataColumn("Contact", typeof(string), null, global::System.Data.MappingType.Element);
  1823. base.Columns.Add(this.columnContact);
  1824. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1825. this.columnID}, true));
  1826. this.columnID.AutoIncrement = true;
  1827. this.columnID.AutoIncrementSeed = -1;
  1828. this.columnID.AutoIncrementStep = -1;
  1829. this.columnID.AllowDBNull = false;
  1830. this.columnID.ReadOnly = true;
  1831. this.columnID.Unique = true;
  1832. this.columnCountryID.AllowDBNull = false;
  1833. this.columnTitle.AllowDBNull = false;
  1834. this.columnTitle.MaxLength = 50;
  1835. this.columnPhone.AllowDBNull = false;
  1836. this.columnPhone.MaxLength = 50;
  1837. this.columnContact.AllowDBNull = false;
  1838. this.columnContact.MaxLength = 250;
  1839. }
  1840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1842. public OfficesRow NewOfficesRow() {
  1843. return ((OfficesRow)(this.NewRow()));
  1844. }
  1845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1847. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1848. return new OfficesRow(builder);
  1849. }
  1850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1852. protected override global::System.Type GetRowType() {
  1853. return typeof(OfficesRow);
  1854. }
  1855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1857. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1858. base.OnRowChanged(e);
  1859. if ((this.OfficesRowChanged != null)) {
  1860. this.OfficesRowChanged(this, new OfficesRowChangeEvent(((OfficesRow)(e.Row)), e.Action));
  1861. }
  1862. }
  1863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1865. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1866. base.OnRowChanging(e);
  1867. if ((this.OfficesRowChanging != null)) {
  1868. this.OfficesRowChanging(this, new OfficesRowChangeEvent(((OfficesRow)(e.Row)), e.Action));
  1869. }
  1870. }
  1871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1873. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1874. base.OnRowDeleted(e);
  1875. if ((this.OfficesRowDeleted != null)) {
  1876. this.OfficesRowDeleted(this, new OfficesRowChangeEvent(((OfficesRow)(e.Row)), e.Action));
  1877. }
  1878. }
  1879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1881. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1882. base.OnRowDeleting(e);
  1883. if ((this.OfficesRowDeleting != null)) {
  1884. this.OfficesRowDeleting(this, new OfficesRowChangeEvent(((OfficesRow)(e.Row)), e.Action));
  1885. }
  1886. }
  1887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1889. public void RemoveOfficesRow(OfficesRow row) {
  1890. this.Rows.Remove(row);
  1891. }
  1892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1894. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1895. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1896. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1897. Session3_4DataSet ds = new Session3_4DataSet();
  1898. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1899. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1900. any1.MinOccurs = new decimal(0);
  1901. any1.MaxOccurs = decimal.MaxValue;
  1902. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1903. sequence.Items.Add(any1);
  1904. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1905. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1906. any2.MinOccurs = new decimal(1);
  1907. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1908. sequence.Items.Add(any2);
  1909. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1910. attribute1.Name = "namespace";
  1911. attribute1.FixedValue = ds.Namespace;
  1912. type.Attributes.Add(attribute1);
  1913. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1914. attribute2.Name = "tableTypeName";
  1915. attribute2.FixedValue = "OfficesDataTable";
  1916. type.Attributes.Add(attribute2);
  1917. type.Particle = sequence;
  1918. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1919. if (xs.Contains(dsSchema.TargetNamespace)) {
  1920. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1921. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1922. try {
  1923. global::System.Xml.Schema.XmlSchema schema = null;
  1924. dsSchema.Write(s1);
  1925. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1926. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1927. s2.SetLength(0);
  1928. schema.Write(s2);
  1929. if ((s1.Length == s2.Length)) {
  1930. s1.Position = 0;
  1931. s2.Position = 0;
  1932. for (; ((s1.Position != s1.Length)
  1933. && (s1.ReadByte() == s2.ReadByte())); ) {
  1934. ;
  1935. }
  1936. if ((s1.Position == s1.Length)) {
  1937. return type;
  1938. }
  1939. }
  1940. }
  1941. }
  1942. finally {
  1943. if ((s1 != null)) {
  1944. s1.Close();
  1945. }
  1946. if ((s2 != null)) {
  1947. s2.Close();
  1948. }
  1949. }
  1950. }
  1951. xs.Add(dsSchema);
  1952. return type;
  1953. }
  1954. }
  1955. /// <summary>
  1956. ///Represents the strongly named DataTable class.
  1957. ///</summary>
  1958. [global::System.Serializable()]
  1959. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1960. public partial class RolesDataTable : global::System.Data.TypedTableBase<RolesRow> {
  1961. private global::System.Data.DataColumn columnID;
  1962. private global::System.Data.DataColumn columnTitle;
  1963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1965. public RolesDataTable() {
  1966. this.TableName = "Roles";
  1967. this.BeginInit();
  1968. this.InitClass();
  1969. this.EndInit();
  1970. }
  1971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1973. internal RolesDataTable(global::System.Data.DataTable table) {
  1974. this.TableName = table.TableName;
  1975. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1976. this.CaseSensitive = table.CaseSensitive;
  1977. }
  1978. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1979. this.Locale = table.Locale;
  1980. }
  1981. if ((table.Namespace != table.DataSet.Namespace)) {
  1982. this.Namespace = table.Namespace;
  1983. }
  1984. this.Prefix = table.Prefix;
  1985. this.MinimumCapacity = table.MinimumCapacity;
  1986. }
  1987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1989. protected RolesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1990. base(info, context) {
  1991. this.InitVars();
  1992. }
  1993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1995. public global::System.Data.DataColumn IDColumn {
  1996. get {
  1997. return this.columnID;
  1998. }
  1999. }
  2000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2002. public global::System.Data.DataColumn TitleColumn {
  2003. get {
  2004. return this.columnTitle;
  2005. }
  2006. }
  2007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2009. [global::System.ComponentModel.Browsable(false)]
  2010. public int Count {
  2011. get {
  2012. return this.Rows.Count;
  2013. }
  2014. }
  2015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2017. public RolesRow this[int index] {
  2018. get {
  2019. return ((RolesRow)(this.Rows[index]));
  2020. }
  2021. }
  2022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2023. public event RolesRowChangeEventHandler RolesRowChanging;
  2024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2025. public event RolesRowChangeEventHandler RolesRowChanged;
  2026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2027. public event RolesRowChangeEventHandler RolesRowDeleting;
  2028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2029. public event RolesRowChangeEventHandler RolesRowDeleted;
  2030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2032. public void AddRolesRow(RolesRow row) {
  2033. this.Rows.Add(row);
  2034. }
  2035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2037. public RolesRow AddRolesRow(int ID, string Title) {
  2038. RolesRow rowRolesRow = ((RolesRow)(this.NewRow()));
  2039. object[] columnValuesArray = new object[] {
  2040. ID,
  2041. Title};
  2042. rowRolesRow.ItemArray = columnValuesArray;
  2043. this.Rows.Add(rowRolesRow);
  2044. return rowRolesRow;
  2045. }
  2046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2048. public RolesRow FindByID(int ID) {
  2049. return ((RolesRow)(this.Rows.Find(new object[] {
  2050. ID})));
  2051. }
  2052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2054. public override global::System.Data.DataTable Clone() {
  2055. RolesDataTable cln = ((RolesDataTable)(base.Clone()));
  2056. cln.InitVars();
  2057. return cln;
  2058. }
  2059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2061. protected override global::System.Data.DataTable CreateInstance() {
  2062. return new RolesDataTable();
  2063. }
  2064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2066. internal void InitVars() {
  2067. this.columnID = base.Columns["ID"];
  2068. this.columnTitle = base.Columns["Title"];
  2069. }
  2070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2072. private void InitClass() {
  2073. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2074. base.Columns.Add(this.columnID);
  2075. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2076. base.Columns.Add(this.columnTitle);
  2077. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2078. this.columnID}, true));
  2079. this.columnID.AllowDBNull = false;
  2080. this.columnID.Unique = true;
  2081. this.columnTitle.AllowDBNull = false;
  2082. this.columnTitle.MaxLength = 50;
  2083. }
  2084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2086. public RolesRow NewRolesRow() {
  2087. return ((RolesRow)(this.NewRow()));
  2088. }
  2089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2091. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2092. return new RolesRow(builder);
  2093. }
  2094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2096. protected override global::System.Type GetRowType() {
  2097. return typeof(RolesRow);
  2098. }
  2099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2101. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2102. base.OnRowChanged(e);
  2103. if ((this.RolesRowChanged != null)) {
  2104. this.RolesRowChanged(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  2105. }
  2106. }
  2107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2109. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2110. base.OnRowChanging(e);
  2111. if ((this.RolesRowChanging != null)) {
  2112. this.RolesRowChanging(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  2113. }
  2114. }
  2115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2117. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2118. base.OnRowDeleted(e);
  2119. if ((this.RolesRowDeleted != null)) {
  2120. this.RolesRowDeleted(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  2121. }
  2122. }
  2123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2125. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2126. base.OnRowDeleting(e);
  2127. if ((this.RolesRowDeleting != null)) {
  2128. this.RolesRowDeleting(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  2129. }
  2130. }
  2131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2133. public void RemoveRolesRow(RolesRow row) {
  2134. this.Rows.Remove(row);
  2135. }
  2136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2138. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2139. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2140. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2141. Session3_4DataSet ds = new Session3_4DataSet();
  2142. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2143. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2144. any1.MinOccurs = new decimal(0);
  2145. any1.MaxOccurs = decimal.MaxValue;
  2146. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2147. sequence.Items.Add(any1);
  2148. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2149. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2150. any2.MinOccurs = new decimal(1);
  2151. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2152. sequence.Items.Add(any2);
  2153. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2154. attribute1.Name = "namespace";
  2155. attribute1.FixedValue = ds.Namespace;
  2156. type.Attributes.Add(attribute1);
  2157. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2158. attribute2.Name = "tableTypeName";
  2159. attribute2.FixedValue = "RolesDataTable";
  2160. type.Attributes.Add(attribute2);
  2161. type.Particle = sequence;
  2162. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2163. if (xs.Contains(dsSchema.TargetNamespace)) {
  2164. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2165. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2166. try {
  2167. global::System.Xml.Schema.XmlSchema schema = null;
  2168. dsSchema.Write(s1);
  2169. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2170. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2171. s2.SetLength(0);
  2172. schema.Write(s2);
  2173. if ((s1.Length == s2.Length)) {
  2174. s1.Position = 0;
  2175. s2.Position = 0;
  2176. for (; ((s1.Position != s1.Length)
  2177. && (s1.ReadByte() == s2.ReadByte())); ) {
  2178. ;
  2179. }
  2180. if ((s1.Position == s1.Length)) {
  2181. return type;
  2182. }
  2183. }
  2184. }
  2185. }
  2186. finally {
  2187. if ((s1 != null)) {
  2188. s1.Close();
  2189. }
  2190. if ((s2 != null)) {
  2191. s2.Close();
  2192. }
  2193. }
  2194. }
  2195. xs.Add(dsSchema);
  2196. return type;
  2197. }
  2198. }
  2199. /// <summary>
  2200. ///Represents the strongly named DataTable class.
  2201. ///</summary>
  2202. [global::System.Serializable()]
  2203. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2204. public partial class RoutesDataTable : global::System.Data.TypedTableBase<RoutesRow> {
  2205. private global::System.Data.DataColumn columnID;
  2206. private global::System.Data.DataColumn columnDepartureAirportID;
  2207. private global::System.Data.DataColumn columnArrivalAirportID;
  2208. private global::System.Data.DataColumn columnDistance;
  2209. private global::System.Data.DataColumn columnFlightTime;
  2210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2212. public RoutesDataTable() {
  2213. this.TableName = "Routes";
  2214. this.BeginInit();
  2215. this.InitClass();
  2216. this.EndInit();
  2217. }
  2218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2220. internal RoutesDataTable(global::System.Data.DataTable table) {
  2221. this.TableName = table.TableName;
  2222. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2223. this.CaseSensitive = table.CaseSensitive;
  2224. }
  2225. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2226. this.Locale = table.Locale;
  2227. }
  2228. if ((table.Namespace != table.DataSet.Namespace)) {
  2229. this.Namespace = table.Namespace;
  2230. }
  2231. this.Prefix = table.Prefix;
  2232. this.MinimumCapacity = table.MinimumCapacity;
  2233. }
  2234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2236. protected RoutesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2237. base(info, context) {
  2238. this.InitVars();
  2239. }
  2240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2242. public global::System.Data.DataColumn IDColumn {
  2243. get {
  2244. return this.columnID;
  2245. }
  2246. }
  2247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2249. public global::System.Data.DataColumn DepartureAirportIDColumn {
  2250. get {
  2251. return this.columnDepartureAirportID;
  2252. }
  2253. }
  2254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2256. public global::System.Data.DataColumn ArrivalAirportIDColumn {
  2257. get {
  2258. return this.columnArrivalAirportID;
  2259. }
  2260. }
  2261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2263. public global::System.Data.DataColumn DistanceColumn {
  2264. get {
  2265. return this.columnDistance;
  2266. }
  2267. }
  2268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2270. public global::System.Data.DataColumn FlightTimeColumn {
  2271. get {
  2272. return this.columnFlightTime;
  2273. }
  2274. }
  2275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2277. [global::System.ComponentModel.Browsable(false)]
  2278. public int Count {
  2279. get {
  2280. return this.Rows.Count;
  2281. }
  2282. }
  2283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2285. public RoutesRow this[int index] {
  2286. get {
  2287. return ((RoutesRow)(this.Rows[index]));
  2288. }
  2289. }
  2290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2291. public event RoutesRowChangeEventHandler RoutesRowChanging;
  2292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2293. public event RoutesRowChangeEventHandler RoutesRowChanged;
  2294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2295. public event RoutesRowChangeEventHandler RoutesRowDeleting;
  2296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2297. public event RoutesRowChangeEventHandler RoutesRowDeleted;
  2298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2300. public void AddRoutesRow(RoutesRow row) {
  2301. this.Rows.Add(row);
  2302. }
  2303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2305. public RoutesRow AddRoutesRow(AirportsRow parentAirportsRowByFK_Routes_Airports2, AirportsRow parentAirportsRowByFK_Routes_Airports3, int Distance, int FlightTime) {
  2306. RoutesRow rowRoutesRow = ((RoutesRow)(this.NewRow()));
  2307. object[] columnValuesArray = new object[] {
  2308. null,
  2309. null,
  2310. null,
  2311. Distance,
  2312. FlightTime};
  2313. if ((parentAirportsRowByFK_Routes_Airports2 != null)) {
  2314. columnValuesArray[1] = parentAirportsRowByFK_Routes_Airports2[0];
  2315. }
  2316. if ((parentAirportsRowByFK_Routes_Airports3 != null)) {
  2317. columnValuesArray[2] = parentAirportsRowByFK_Routes_Airports3[0];
  2318. }
  2319. rowRoutesRow.ItemArray = columnValuesArray;
  2320. this.Rows.Add(rowRoutesRow);
  2321. return rowRoutesRow;
  2322. }
  2323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2325. public RoutesRow FindByID(int ID) {
  2326. return ((RoutesRow)(this.Rows.Find(new object[] {
  2327. ID})));
  2328. }
  2329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2331. public override global::System.Data.DataTable Clone() {
  2332. RoutesDataTable cln = ((RoutesDataTable)(base.Clone()));
  2333. cln.InitVars();
  2334. return cln;
  2335. }
  2336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2338. protected override global::System.Data.DataTable CreateInstance() {
  2339. return new RoutesDataTable();
  2340. }
  2341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2343. internal void InitVars() {
  2344. this.columnID = base.Columns["ID"];
  2345. this.columnDepartureAirportID = base.Columns["DepartureAirportID"];
  2346. this.columnArrivalAirportID = base.Columns["ArrivalAirportID"];
  2347. this.columnDistance = base.Columns["Distance"];
  2348. this.columnFlightTime = base.Columns["FlightTime"];
  2349. }
  2350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2352. private void InitClass() {
  2353. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2354. base.Columns.Add(this.columnID);
  2355. this.columnDepartureAirportID = new global::System.Data.DataColumn("DepartureAirportID", typeof(int), null, global::System.Data.MappingType.Element);
  2356. base.Columns.Add(this.columnDepartureAirportID);
  2357. this.columnArrivalAirportID = new global::System.Data.DataColumn("ArrivalAirportID", typeof(int), null, global::System.Data.MappingType.Element);
  2358. base.Columns.Add(this.columnArrivalAirportID);
  2359. this.columnDistance = new global::System.Data.DataColumn("Distance", typeof(int), null, global::System.Data.MappingType.Element);
  2360. base.Columns.Add(this.columnDistance);
  2361. this.columnFlightTime = new global::System.Data.DataColumn("FlightTime", typeof(int), null, global::System.Data.MappingType.Element);
  2362. base.Columns.Add(this.columnFlightTime);
  2363. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2364. this.columnID}, true));
  2365. this.columnID.AutoIncrement = true;
  2366. this.columnID.AutoIncrementSeed = -1;
  2367. this.columnID.AutoIncrementStep = -1;
  2368. this.columnID.AllowDBNull = false;
  2369. this.columnID.ReadOnly = true;
  2370. this.columnID.Unique = true;
  2371. this.columnDepartureAirportID.AllowDBNull = false;
  2372. this.columnArrivalAirportID.AllowDBNull = false;
  2373. this.columnDistance.AllowDBNull = false;
  2374. this.columnFlightTime.AllowDBNull = false;
  2375. }
  2376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2378. public RoutesRow NewRoutesRow() {
  2379. return ((RoutesRow)(this.NewRow()));
  2380. }
  2381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2383. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2384. return new RoutesRow(builder);
  2385. }
  2386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2388. protected override global::System.Type GetRowType() {
  2389. return typeof(RoutesRow);
  2390. }
  2391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2393. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2394. base.OnRowChanged(e);
  2395. if ((this.RoutesRowChanged != null)) {
  2396. this.RoutesRowChanged(this, new RoutesRowChangeEvent(((RoutesRow)(e.Row)), e.Action));
  2397. }
  2398. }
  2399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2401. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2402. base.OnRowChanging(e);
  2403. if ((this.RoutesRowChanging != null)) {
  2404. this.RoutesRowChanging(this, new RoutesRowChangeEvent(((RoutesRow)(e.Row)), e.Action));
  2405. }
  2406. }
  2407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2409. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2410. base.OnRowDeleted(e);
  2411. if ((this.RoutesRowDeleted != null)) {
  2412. this.RoutesRowDeleted(this, new RoutesRowChangeEvent(((RoutesRow)(e.Row)), e.Action));
  2413. }
  2414. }
  2415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2417. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2418. base.OnRowDeleting(e);
  2419. if ((this.RoutesRowDeleting != null)) {
  2420. this.RoutesRowDeleting(this, new RoutesRowChangeEvent(((RoutesRow)(e.Row)), e.Action));
  2421. }
  2422. }
  2423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2425. public void RemoveRoutesRow(RoutesRow row) {
  2426. this.Rows.Remove(row);
  2427. }
  2428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2430. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2431. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2432. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2433. Session3_4DataSet ds = new Session3_4DataSet();
  2434. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2435. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2436. any1.MinOccurs = new decimal(0);
  2437. any1.MaxOccurs = decimal.MaxValue;
  2438. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2439. sequence.Items.Add(any1);
  2440. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2441. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2442. any2.MinOccurs = new decimal(1);
  2443. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2444. sequence.Items.Add(any2);
  2445. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2446. attribute1.Name = "namespace";
  2447. attribute1.FixedValue = ds.Namespace;
  2448. type.Attributes.Add(attribute1);
  2449. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2450. attribute2.Name = "tableTypeName";
  2451. attribute2.FixedValue = "RoutesDataTable";
  2452. type.Attributes.Add(attribute2);
  2453. type.Particle = sequence;
  2454. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2455. if (xs.Contains(dsSchema.TargetNamespace)) {
  2456. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2457. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2458. try {
  2459. global::System.Xml.Schema.XmlSchema schema = null;
  2460. dsSchema.Write(s1);
  2461. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2462. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2463. s2.SetLength(0);
  2464. schema.Write(s2);
  2465. if ((s1.Length == s2.Length)) {
  2466. s1.Position = 0;
  2467. s2.Position = 0;
  2468. for (; ((s1.Position != s1.Length)
  2469. && (s1.ReadByte() == s2.ReadByte())); ) {
  2470. ;
  2471. }
  2472. if ((s1.Position == s1.Length)) {
  2473. return type;
  2474. }
  2475. }
  2476. }
  2477. }
  2478. finally {
  2479. if ((s1 != null)) {
  2480. s1.Close();
  2481. }
  2482. if ((s2 != null)) {
  2483. s2.Close();
  2484. }
  2485. }
  2486. }
  2487. xs.Add(dsSchema);
  2488. return type;
  2489. }
  2490. }
  2491. /// <summary>
  2492. ///Represents the strongly named DataTable class.
  2493. ///</summary>
  2494. [global::System.Serializable()]
  2495. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2496. public partial class SchedulesDataTable : global::System.Data.TypedTableBase<SchedulesRow> {
  2497. private global::System.Data.DataColumn columnID;
  2498. private global::System.Data.DataColumn columnDate;
  2499. private global::System.Data.DataColumn columnTime;
  2500. private global::System.Data.DataColumn columnAircraftID;
  2501. private global::System.Data.DataColumn columnRouteID;
  2502. private global::System.Data.DataColumn columnEconomyPrice;
  2503. private global::System.Data.DataColumn columnConfirmed;
  2504. private global::System.Data.DataColumn columnFlightNumber;
  2505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2507. public SchedulesDataTable() {
  2508. this.TableName = "Schedules";
  2509. this.BeginInit();
  2510. this.InitClass();
  2511. this.EndInit();
  2512. }
  2513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2515. internal SchedulesDataTable(global::System.Data.DataTable table) {
  2516. this.TableName = table.TableName;
  2517. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2518. this.CaseSensitive = table.CaseSensitive;
  2519. }
  2520. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2521. this.Locale = table.Locale;
  2522. }
  2523. if ((table.Namespace != table.DataSet.Namespace)) {
  2524. this.Namespace = table.Namespace;
  2525. }
  2526. this.Prefix = table.Prefix;
  2527. this.MinimumCapacity = table.MinimumCapacity;
  2528. }
  2529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2531. protected SchedulesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2532. base(info, context) {
  2533. this.InitVars();
  2534. }
  2535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2537. public global::System.Data.DataColumn IDColumn {
  2538. get {
  2539. return this.columnID;
  2540. }
  2541. }
  2542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2544. public global::System.Data.DataColumn DateColumn {
  2545. get {
  2546. return this.columnDate;
  2547. }
  2548. }
  2549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2551. public global::System.Data.DataColumn TimeColumn {
  2552. get {
  2553. return this.columnTime;
  2554. }
  2555. }
  2556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2558. public global::System.Data.DataColumn AircraftIDColumn {
  2559. get {
  2560. return this.columnAircraftID;
  2561. }
  2562. }
  2563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2565. public global::System.Data.DataColumn RouteIDColumn {
  2566. get {
  2567. return this.columnRouteID;
  2568. }
  2569. }
  2570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2572. public global::System.Data.DataColumn EconomyPriceColumn {
  2573. get {
  2574. return this.columnEconomyPrice;
  2575. }
  2576. }
  2577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2579. public global::System.Data.DataColumn ConfirmedColumn {
  2580. get {
  2581. return this.columnConfirmed;
  2582. }
  2583. }
  2584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2586. public global::System.Data.DataColumn FlightNumberColumn {
  2587. get {
  2588. return this.columnFlightNumber;
  2589. }
  2590. }
  2591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2593. [global::System.ComponentModel.Browsable(false)]
  2594. public int Count {
  2595. get {
  2596. return this.Rows.Count;
  2597. }
  2598. }
  2599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2601. public SchedulesRow this[int index] {
  2602. get {
  2603. return ((SchedulesRow)(this.Rows[index]));
  2604. }
  2605. }
  2606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2607. public event SchedulesRowChangeEventHandler SchedulesRowChanging;
  2608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2609. public event SchedulesRowChangeEventHandler SchedulesRowChanged;
  2610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2611. public event SchedulesRowChangeEventHandler SchedulesRowDeleting;
  2612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2613. public event SchedulesRowChangeEventHandler SchedulesRowDeleted;
  2614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2616. public void AddSchedulesRow(SchedulesRow row) {
  2617. this.Rows.Add(row);
  2618. }
  2619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2621. public SchedulesRow AddSchedulesRow(System.DateTime Date, System.TimeSpan Time, AircraftsRow parentAircraftsRowByFK_Schedule_AirCraft, RoutesRow parentRoutesRowByFK_Schedule_Routes, decimal EconomyPrice, bool Confirmed, string FlightNumber) {
  2622. SchedulesRow rowSchedulesRow = ((SchedulesRow)(this.NewRow()));
  2623. object[] columnValuesArray = new object[] {
  2624. null,
  2625. Date,
  2626. Time,
  2627. null,
  2628. null,
  2629. EconomyPrice,
  2630. Confirmed,
  2631. FlightNumber};
  2632. if ((parentAircraftsRowByFK_Schedule_AirCraft != null)) {
  2633. columnValuesArray[3] = parentAircraftsRowByFK_Schedule_AirCraft[0];
  2634. }
  2635. if ((parentRoutesRowByFK_Schedule_Routes != null)) {
  2636. columnValuesArray[4] = parentRoutesRowByFK_Schedule_Routes[0];
  2637. }
  2638. rowSchedulesRow.ItemArray = columnValuesArray;
  2639. this.Rows.Add(rowSchedulesRow);
  2640. return rowSchedulesRow;
  2641. }
  2642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2644. public SchedulesRow FindByID(int ID) {
  2645. return ((SchedulesRow)(this.Rows.Find(new object[] {
  2646. ID})));
  2647. }
  2648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2650. public override global::System.Data.DataTable Clone() {
  2651. SchedulesDataTable cln = ((SchedulesDataTable)(base.Clone()));
  2652. cln.InitVars();
  2653. return cln;
  2654. }
  2655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2657. protected override global::System.Data.DataTable CreateInstance() {
  2658. return new SchedulesDataTable();
  2659. }
  2660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2662. internal void InitVars() {
  2663. this.columnID = base.Columns["ID"];
  2664. this.columnDate = base.Columns["Date"];
  2665. this.columnTime = base.Columns["Time"];
  2666. this.columnAircraftID = base.Columns["AircraftID"];
  2667. this.columnRouteID = base.Columns["RouteID"];
  2668. this.columnEconomyPrice = base.Columns["EconomyPrice"];
  2669. this.columnConfirmed = base.Columns["Confirmed"];
  2670. this.columnFlightNumber = base.Columns["FlightNumber"];
  2671. }
  2672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2674. private void InitClass() {
  2675. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2676. base.Columns.Add(this.columnID);
  2677. this.columnDate = new global::System.Data.DataColumn("Date", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2678. base.Columns.Add(this.columnDate);
  2679. this.columnTime = new global::System.Data.DataColumn("Time", typeof(global::System.TimeSpan), null, global::System.Data.MappingType.Element);
  2680. base.Columns.Add(this.columnTime);
  2681. this.columnAircraftID = new global::System.Data.DataColumn("AircraftID", typeof(int), null, global::System.Data.MappingType.Element);
  2682. base.Columns.Add(this.columnAircraftID);
  2683. this.columnRouteID = new global::System.Data.DataColumn("RouteID", typeof(int), null, global::System.Data.MappingType.Element);
  2684. base.Columns.Add(this.columnRouteID);
  2685. this.columnEconomyPrice = new global::System.Data.DataColumn("EconomyPrice", typeof(decimal), null, global::System.Data.MappingType.Element);
  2686. base.Columns.Add(this.columnEconomyPrice);
  2687. this.columnConfirmed = new global::System.Data.DataColumn("Confirmed", typeof(bool), null, global::System.Data.MappingType.Element);
  2688. base.Columns.Add(this.columnConfirmed);
  2689. this.columnFlightNumber = new global::System.Data.DataColumn("FlightNumber", typeof(string), null, global::System.Data.MappingType.Element);
  2690. base.Columns.Add(this.columnFlightNumber);
  2691. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2692. this.columnID}, true));
  2693. this.columnID.AutoIncrement = true;
  2694. this.columnID.AutoIncrementSeed = -1;
  2695. this.columnID.AutoIncrementStep = -1;
  2696. this.columnID.AllowDBNull = false;
  2697. this.columnID.ReadOnly = true;
  2698. this.columnID.Unique = true;
  2699. this.columnDate.AllowDBNull = false;
  2700. this.columnTime.AllowDBNull = false;
  2701. this.columnAircraftID.AllowDBNull = false;
  2702. this.columnRouteID.AllowDBNull = false;
  2703. this.columnEconomyPrice.AllowDBNull = false;
  2704. this.columnConfirmed.AllowDBNull = false;
  2705. this.columnFlightNumber.MaxLength = 10;
  2706. }
  2707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2709. public SchedulesRow NewSchedulesRow() {
  2710. return ((SchedulesRow)(this.NewRow()));
  2711. }
  2712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2714. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2715. return new SchedulesRow(builder);
  2716. }
  2717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2719. protected override global::System.Type GetRowType() {
  2720. return typeof(SchedulesRow);
  2721. }
  2722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2724. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2725. base.OnRowChanged(e);
  2726. if ((this.SchedulesRowChanged != null)) {
  2727. this.SchedulesRowChanged(this, new SchedulesRowChangeEvent(((SchedulesRow)(e.Row)), e.Action));
  2728. }
  2729. }
  2730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2732. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2733. base.OnRowChanging(e);
  2734. if ((this.SchedulesRowChanging != null)) {
  2735. this.SchedulesRowChanging(this, new SchedulesRowChangeEvent(((SchedulesRow)(e.Row)), e.Action));
  2736. }
  2737. }
  2738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2740. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2741. base.OnRowDeleted(e);
  2742. if ((this.SchedulesRowDeleted != null)) {
  2743. this.SchedulesRowDeleted(this, new SchedulesRowChangeEvent(((SchedulesRow)(e.Row)), e.Action));
  2744. }
  2745. }
  2746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2748. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2749. base.OnRowDeleting(e);
  2750. if ((this.SchedulesRowDeleting != null)) {
  2751. this.SchedulesRowDeleting(this, new SchedulesRowChangeEvent(((SchedulesRow)(e.Row)), e.Action));
  2752. }
  2753. }
  2754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2756. public void RemoveSchedulesRow(SchedulesRow row) {
  2757. this.Rows.Remove(row);
  2758. }
  2759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2761. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2762. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2763. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2764. Session3_4DataSet ds = new Session3_4DataSet();
  2765. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2766. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2767. any1.MinOccurs = new decimal(0);
  2768. any1.MaxOccurs = decimal.MaxValue;
  2769. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2770. sequence.Items.Add(any1);
  2771. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2772. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2773. any2.MinOccurs = new decimal(1);
  2774. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2775. sequence.Items.Add(any2);
  2776. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2777. attribute1.Name = "namespace";
  2778. attribute1.FixedValue = ds.Namespace;
  2779. type.Attributes.Add(attribute1);
  2780. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2781. attribute2.Name = "tableTypeName";
  2782. attribute2.FixedValue = "SchedulesDataTable";
  2783. type.Attributes.Add(attribute2);
  2784. type.Particle = sequence;
  2785. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2786. if (xs.Contains(dsSchema.TargetNamespace)) {
  2787. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2788. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2789. try {
  2790. global::System.Xml.Schema.XmlSchema schema = null;
  2791. dsSchema.Write(s1);
  2792. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2793. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2794. s2.SetLength(0);
  2795. schema.Write(s2);
  2796. if ((s1.Length == s2.Length)) {
  2797. s1.Position = 0;
  2798. s2.Position = 0;
  2799. for (; ((s1.Position != s1.Length)
  2800. && (s1.ReadByte() == s2.ReadByte())); ) {
  2801. ;
  2802. }
  2803. if ((s1.Position == s1.Length)) {
  2804. return type;
  2805. }
  2806. }
  2807. }
  2808. }
  2809. finally {
  2810. if ((s1 != null)) {
  2811. s1.Close();
  2812. }
  2813. if ((s2 != null)) {
  2814. s2.Close();
  2815. }
  2816. }
  2817. }
  2818. xs.Add(dsSchema);
  2819. return type;
  2820. }
  2821. }
  2822. /// <summary>
  2823. ///Represents the strongly named DataTable class.
  2824. ///</summary>
  2825. [global::System.Serializable()]
  2826. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2827. public partial class TicketsDataTable : global::System.Data.TypedTableBase<TicketsRow> {
  2828. private global::System.Data.DataColumn columnID;
  2829. private global::System.Data.DataColumn columnUserID;
  2830. private global::System.Data.DataColumn columnScheduleID;
  2831. private global::System.Data.DataColumn columnCabinTypeID;
  2832. private global::System.Data.DataColumn columnFirstname;
  2833. private global::System.Data.DataColumn columnLastname;
  2834. private global::System.Data.DataColumn columnEmail;
  2835. private global::System.Data.DataColumn columnPhone;
  2836. private global::System.Data.DataColumn columnPassportNumber;
  2837. private global::System.Data.DataColumn columnPassportCountryID;
  2838. private global::System.Data.DataColumn columnBookingReference;
  2839. private global::System.Data.DataColumn columnConfirmed;
  2840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2842. public TicketsDataTable() {
  2843. this.TableName = "Tickets";
  2844. this.BeginInit();
  2845. this.InitClass();
  2846. this.EndInit();
  2847. }
  2848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2850. internal TicketsDataTable(global::System.Data.DataTable table) {
  2851. this.TableName = table.TableName;
  2852. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2853. this.CaseSensitive = table.CaseSensitive;
  2854. }
  2855. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2856. this.Locale = table.Locale;
  2857. }
  2858. if ((table.Namespace != table.DataSet.Namespace)) {
  2859. this.Namespace = table.Namespace;
  2860. }
  2861. this.Prefix = table.Prefix;
  2862. this.MinimumCapacity = table.MinimumCapacity;
  2863. }
  2864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2866. protected TicketsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2867. base(info, context) {
  2868. this.InitVars();
  2869. }
  2870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2872. public global::System.Data.DataColumn IDColumn {
  2873. get {
  2874. return this.columnID;
  2875. }
  2876. }
  2877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2879. public global::System.Data.DataColumn UserIDColumn {
  2880. get {
  2881. return this.columnUserID;
  2882. }
  2883. }
  2884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2886. public global::System.Data.DataColumn ScheduleIDColumn {
  2887. get {
  2888. return this.columnScheduleID;
  2889. }
  2890. }
  2891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2893. public global::System.Data.DataColumn CabinTypeIDColumn {
  2894. get {
  2895. return this.columnCabinTypeID;
  2896. }
  2897. }
  2898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2900. public global::System.Data.DataColumn FirstnameColumn {
  2901. get {
  2902. return this.columnFirstname;
  2903. }
  2904. }
  2905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2907. public global::System.Data.DataColumn LastnameColumn {
  2908. get {
  2909. return this.columnLastname;
  2910. }
  2911. }
  2912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2914. public global::System.Data.DataColumn EmailColumn {
  2915. get {
  2916. return this.columnEmail;
  2917. }
  2918. }
  2919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2921. public global::System.Data.DataColumn PhoneColumn {
  2922. get {
  2923. return this.columnPhone;
  2924. }
  2925. }
  2926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2928. public global::System.Data.DataColumn PassportNumberColumn {
  2929. get {
  2930. return this.columnPassportNumber;
  2931. }
  2932. }
  2933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2935. public global::System.Data.DataColumn PassportCountryIDColumn {
  2936. get {
  2937. return this.columnPassportCountryID;
  2938. }
  2939. }
  2940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2942. public global::System.Data.DataColumn BookingReferenceColumn {
  2943. get {
  2944. return this.columnBookingReference;
  2945. }
  2946. }
  2947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2949. public global::System.Data.DataColumn ConfirmedColumn {
  2950. get {
  2951. return this.columnConfirmed;
  2952. }
  2953. }
  2954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2956. [global::System.ComponentModel.Browsable(false)]
  2957. public int Count {
  2958. get {
  2959. return this.Rows.Count;
  2960. }
  2961. }
  2962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2964. public TicketsRow this[int index] {
  2965. get {
  2966. return ((TicketsRow)(this.Rows[index]));
  2967. }
  2968. }
  2969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2970. public event TicketsRowChangeEventHandler TicketsRowChanging;
  2971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2972. public event TicketsRowChangeEventHandler TicketsRowChanged;
  2973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2974. public event TicketsRowChangeEventHandler TicketsRowDeleting;
  2975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2976. public event TicketsRowChangeEventHandler TicketsRowDeleted;
  2977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2979. public void AddTicketsRow(TicketsRow row) {
  2980. this.Rows.Add(row);
  2981. }
  2982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2984. public TicketsRow AddTicketsRow(UsersRow parentUsersRowByFK_Ticket_User, SchedulesRow parentSchedulesRowByFK_Ticket_Schedule, CabinTypesRow parentCabinTypesRowByFK_Ticket_TravelClass, string Firstname, string Lastname, string Email, string Phone, string PassportNumber, int PassportCountryID, string BookingReference, bool Confirmed) {
  2985. TicketsRow rowTicketsRow = ((TicketsRow)(this.NewRow()));
  2986. object[] columnValuesArray = new object[] {
  2987. null,
  2988. null,
  2989. null,
  2990. null,
  2991. Firstname,
  2992. Lastname,
  2993. Email,
  2994. Phone,
  2995. PassportNumber,
  2996. PassportCountryID,
  2997. BookingReference,
  2998. Confirmed};
  2999. if ((parentUsersRowByFK_Ticket_User != null)) {
  3000. columnValuesArray[1] = parentUsersRowByFK_Ticket_User[0];
  3001. }
  3002. if ((parentSchedulesRowByFK_Ticket_Schedule != null)) {
  3003. columnValuesArray[2] = parentSchedulesRowByFK_Ticket_Schedule[0];
  3004. }
  3005. if ((parentCabinTypesRowByFK_Ticket_TravelClass != null)) {
  3006. columnValuesArray[3] = parentCabinTypesRowByFK_Ticket_TravelClass[0];
  3007. }
  3008. rowTicketsRow.ItemArray = columnValuesArray;
  3009. this.Rows.Add(rowTicketsRow);
  3010. return rowTicketsRow;
  3011. }
  3012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3014. public TicketsRow FindByID(int ID) {
  3015. return ((TicketsRow)(this.Rows.Find(new object[] {
  3016. ID})));
  3017. }
  3018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3020. public override global::System.Data.DataTable Clone() {
  3021. TicketsDataTable cln = ((TicketsDataTable)(base.Clone()));
  3022. cln.InitVars();
  3023. return cln;
  3024. }
  3025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3027. protected override global::System.Data.DataTable CreateInstance() {
  3028. return new TicketsDataTable();
  3029. }
  3030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3032. internal void InitVars() {
  3033. this.columnID = base.Columns["ID"];
  3034. this.columnUserID = base.Columns["UserID"];
  3035. this.columnScheduleID = base.Columns["ScheduleID"];
  3036. this.columnCabinTypeID = base.Columns["CabinTypeID"];
  3037. this.columnFirstname = base.Columns["Firstname"];
  3038. this.columnLastname = base.Columns["Lastname"];
  3039. this.columnEmail = base.Columns["Email"];
  3040. this.columnPhone = base.Columns["Phone"];
  3041. this.columnPassportNumber = base.Columns["PassportNumber"];
  3042. this.columnPassportCountryID = base.Columns["PassportCountryID"];
  3043. this.columnBookingReference = base.Columns["BookingReference"];
  3044. this.columnConfirmed = base.Columns["Confirmed"];
  3045. }
  3046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3048. private void InitClass() {
  3049. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3050. base.Columns.Add(this.columnID);
  3051. this.columnUserID = new global::System.Data.DataColumn("UserID", typeof(int), null, global::System.Data.MappingType.Element);
  3052. base.Columns.Add(this.columnUserID);
  3053. this.columnScheduleID = new global::System.Data.DataColumn("ScheduleID", typeof(int), null, global::System.Data.MappingType.Element);
  3054. base.Columns.Add(this.columnScheduleID);
  3055. this.columnCabinTypeID = new global::System.Data.DataColumn("CabinTypeID", typeof(int), null, global::System.Data.MappingType.Element);
  3056. base.Columns.Add(this.columnCabinTypeID);
  3057. this.columnFirstname = new global::System.Data.DataColumn("Firstname", typeof(string), null, global::System.Data.MappingType.Element);
  3058. base.Columns.Add(this.columnFirstname);
  3059. this.columnLastname = new global::System.Data.DataColumn("Lastname", typeof(string), null, global::System.Data.MappingType.Element);
  3060. base.Columns.Add(this.columnLastname);
  3061. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  3062. base.Columns.Add(this.columnEmail);
  3063. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  3064. base.Columns.Add(this.columnPhone);
  3065. this.columnPassportNumber = new global::System.Data.DataColumn("PassportNumber", typeof(string), null, global::System.Data.MappingType.Element);
  3066. base.Columns.Add(this.columnPassportNumber);
  3067. this.columnPassportCountryID = new global::System.Data.DataColumn("PassportCountryID", typeof(int), null, global::System.Data.MappingType.Element);
  3068. base.Columns.Add(this.columnPassportCountryID);
  3069. this.columnBookingReference = new global::System.Data.DataColumn("BookingReference", typeof(string), null, global::System.Data.MappingType.Element);
  3070. base.Columns.Add(this.columnBookingReference);
  3071. this.columnConfirmed = new global::System.Data.DataColumn("Confirmed", typeof(bool), null, global::System.Data.MappingType.Element);
  3072. base.Columns.Add(this.columnConfirmed);
  3073. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3074. this.columnID}, true));
  3075. this.columnID.AutoIncrement = true;
  3076. this.columnID.AutoIncrementSeed = -1;
  3077. this.columnID.AutoIncrementStep = -1;
  3078. this.columnID.AllowDBNull = false;
  3079. this.columnID.ReadOnly = true;
  3080. this.columnID.Unique = true;
  3081. this.columnUserID.AllowDBNull = false;
  3082. this.columnScheduleID.AllowDBNull = false;
  3083. this.columnCabinTypeID.AllowDBNull = false;
  3084. this.columnFirstname.AllowDBNull = false;
  3085. this.columnFirstname.MaxLength = 50;
  3086. this.columnLastname.AllowDBNull = false;
  3087. this.columnLastname.MaxLength = 50;
  3088. this.columnEmail.MaxLength = 50;
  3089. this.columnPhone.AllowDBNull = false;
  3090. this.columnPhone.MaxLength = 14;
  3091. this.columnPassportNumber.AllowDBNull = false;
  3092. this.columnPassportNumber.MaxLength = 9;
  3093. this.columnPassportCountryID.AllowDBNull = false;
  3094. this.columnBookingReference.AllowDBNull = false;
  3095. this.columnBookingReference.MaxLength = 6;
  3096. this.columnConfirmed.AllowDBNull = false;
  3097. }
  3098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3100. public TicketsRow NewTicketsRow() {
  3101. return ((TicketsRow)(this.NewRow()));
  3102. }
  3103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3105. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3106. return new TicketsRow(builder);
  3107. }
  3108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3110. protected override global::System.Type GetRowType() {
  3111. return typeof(TicketsRow);
  3112. }
  3113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3115. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3116. base.OnRowChanged(e);
  3117. if ((this.TicketsRowChanged != null)) {
  3118. this.TicketsRowChanged(this, new TicketsRowChangeEvent(((TicketsRow)(e.Row)), e.Action));
  3119. }
  3120. }
  3121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3123. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3124. base.OnRowChanging(e);
  3125. if ((this.TicketsRowChanging != null)) {
  3126. this.TicketsRowChanging(this, new TicketsRowChangeEvent(((TicketsRow)(e.Row)), e.Action));
  3127. }
  3128. }
  3129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3131. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3132. base.OnRowDeleted(e);
  3133. if ((this.TicketsRowDeleted != null)) {
  3134. this.TicketsRowDeleted(this, new TicketsRowChangeEvent(((TicketsRow)(e.Row)), e.Action));
  3135. }
  3136. }
  3137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3139. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3140. base.OnRowDeleting(e);
  3141. if ((this.TicketsRowDeleting != null)) {
  3142. this.TicketsRowDeleting(this, new TicketsRowChangeEvent(((TicketsRow)(e.Row)), e.Action));
  3143. }
  3144. }
  3145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3147. public void RemoveTicketsRow(TicketsRow row) {
  3148. this.Rows.Remove(row);
  3149. }
  3150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3152. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3153. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3154. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3155. Session3_4DataSet ds = new Session3_4DataSet();
  3156. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3157. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3158. any1.MinOccurs = new decimal(0);
  3159. any1.MaxOccurs = decimal.MaxValue;
  3160. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3161. sequence.Items.Add(any1);
  3162. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3163. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3164. any2.MinOccurs = new decimal(1);
  3165. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3166. sequence.Items.Add(any2);
  3167. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3168. attribute1.Name = "namespace";
  3169. attribute1.FixedValue = ds.Namespace;
  3170. type.Attributes.Add(attribute1);
  3171. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3172. attribute2.Name = "tableTypeName";
  3173. attribute2.FixedValue = "TicketsDataTable";
  3174. type.Attributes.Add(attribute2);
  3175. type.Particle = sequence;
  3176. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3177. if (xs.Contains(dsSchema.TargetNamespace)) {
  3178. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3179. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3180. try {
  3181. global::System.Xml.Schema.XmlSchema schema = null;
  3182. dsSchema.Write(s1);
  3183. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3184. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3185. s2.SetLength(0);
  3186. schema.Write(s2);
  3187. if ((s1.Length == s2.Length)) {
  3188. s1.Position = 0;
  3189. s2.Position = 0;
  3190. for (; ((s1.Position != s1.Length)
  3191. && (s1.ReadByte() == s2.ReadByte())); ) {
  3192. ;
  3193. }
  3194. if ((s1.Position == s1.Length)) {
  3195. return type;
  3196. }
  3197. }
  3198. }
  3199. }
  3200. finally {
  3201. if ((s1 != null)) {
  3202. s1.Close();
  3203. }
  3204. if ((s2 != null)) {
  3205. s2.Close();
  3206. }
  3207. }
  3208. }
  3209. xs.Add(dsSchema);
  3210. return type;
  3211. }
  3212. }
  3213. /// <summary>
  3214. ///Represents the strongly named DataTable class.
  3215. ///</summary>
  3216. [global::System.Serializable()]
  3217. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3218. public partial class UsersDataTable : global::System.Data.TypedTableBase<UsersRow> {
  3219. private global::System.Data.DataColumn columnID;
  3220. private global::System.Data.DataColumn columnRoleID;
  3221. private global::System.Data.DataColumn columnEmail;
  3222. private global::System.Data.DataColumn columnPassword;
  3223. private global::System.Data.DataColumn columnFirstName;
  3224. private global::System.Data.DataColumn columnLastName;
  3225. private global::System.Data.DataColumn columnOfficeID;
  3226. private global::System.Data.DataColumn columnBirthdate;
  3227. private global::System.Data.DataColumn columnActive;
  3228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3230. public UsersDataTable() {
  3231. this.TableName = "Users";
  3232. this.BeginInit();
  3233. this.InitClass();
  3234. this.EndInit();
  3235. }
  3236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3238. internal UsersDataTable(global::System.Data.DataTable table) {
  3239. this.TableName = table.TableName;
  3240. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3241. this.CaseSensitive = table.CaseSensitive;
  3242. }
  3243. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3244. this.Locale = table.Locale;
  3245. }
  3246. if ((table.Namespace != table.DataSet.Namespace)) {
  3247. this.Namespace = table.Namespace;
  3248. }
  3249. this.Prefix = table.Prefix;
  3250. this.MinimumCapacity = table.MinimumCapacity;
  3251. }
  3252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3254. protected UsersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3255. base(info, context) {
  3256. this.InitVars();
  3257. }
  3258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3260. public global::System.Data.DataColumn IDColumn {
  3261. get {
  3262. return this.columnID;
  3263. }
  3264. }
  3265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3267. public global::System.Data.DataColumn RoleIDColumn {
  3268. get {
  3269. return this.columnRoleID;
  3270. }
  3271. }
  3272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3274. public global::System.Data.DataColumn EmailColumn {
  3275. get {
  3276. return this.columnEmail;
  3277. }
  3278. }
  3279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3281. public global::System.Data.DataColumn PasswordColumn {
  3282. get {
  3283. return this.columnPassword;
  3284. }
  3285. }
  3286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3288. public global::System.Data.DataColumn FirstNameColumn {
  3289. get {
  3290. return this.columnFirstName;
  3291. }
  3292. }
  3293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3295. public global::System.Data.DataColumn LastNameColumn {
  3296. get {
  3297. return this.columnLastName;
  3298. }
  3299. }
  3300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3302. public global::System.Data.DataColumn OfficeIDColumn {
  3303. get {
  3304. return this.columnOfficeID;
  3305. }
  3306. }
  3307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3309. public global::System.Data.DataColumn BirthdateColumn {
  3310. get {
  3311. return this.columnBirthdate;
  3312. }
  3313. }
  3314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3316. public global::System.Data.DataColumn ActiveColumn {
  3317. get {
  3318. return this.columnActive;
  3319. }
  3320. }
  3321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3323. [global::System.ComponentModel.Browsable(false)]
  3324. public int Count {
  3325. get {
  3326. return this.Rows.Count;
  3327. }
  3328. }
  3329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3331. public UsersRow this[int index] {
  3332. get {
  3333. return ((UsersRow)(this.Rows[index]));
  3334. }
  3335. }
  3336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3337. public event UsersRowChangeEventHandler UsersRowChanging;
  3338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3339. public event UsersRowChangeEventHandler UsersRowChanged;
  3340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3341. public event UsersRowChangeEventHandler UsersRowDeleting;
  3342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3343. public event UsersRowChangeEventHandler UsersRowDeleted;
  3344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3346. public void AddUsersRow(UsersRow row) {
  3347. this.Rows.Add(row);
  3348. }
  3349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3351. public UsersRow AddUsersRow(RolesRow parentRolesRowByFK_Users_Roles, string Email, string Password, string FirstName, string LastName, OfficesRow parentOfficesRowByFK_Users_Offices, System.DateTime Birthdate, bool Active) {
  3352. UsersRow rowUsersRow = ((UsersRow)(this.NewRow()));
  3353. object[] columnValuesArray = new object[] {
  3354. null,
  3355. null,
  3356. Email,
  3357. Password,
  3358. FirstName,
  3359. LastName,
  3360. null,
  3361. Birthdate,
  3362. Active};
  3363. if ((parentRolesRowByFK_Users_Roles != null)) {
  3364. columnValuesArray[1] = parentRolesRowByFK_Users_Roles[0];
  3365. }
  3366. if ((parentOfficesRowByFK_Users_Offices != null)) {
  3367. columnValuesArray[6] = parentOfficesRowByFK_Users_Offices[0];
  3368. }
  3369. rowUsersRow.ItemArray = columnValuesArray;
  3370. this.Rows.Add(rowUsersRow);
  3371. return rowUsersRow;
  3372. }
  3373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3375. public UsersRow FindByID(int ID) {
  3376. return ((UsersRow)(this.Rows.Find(new object[] {
  3377. ID})));
  3378. }
  3379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3381. public override global::System.Data.DataTable Clone() {
  3382. UsersDataTable cln = ((UsersDataTable)(base.Clone()));
  3383. cln.InitVars();
  3384. return cln;
  3385. }
  3386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3388. protected override global::System.Data.DataTable CreateInstance() {
  3389. return new UsersDataTable();
  3390. }
  3391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3393. internal void InitVars() {
  3394. this.columnID = base.Columns["ID"];
  3395. this.columnRoleID = base.Columns["RoleID"];
  3396. this.columnEmail = base.Columns["Email"];
  3397. this.columnPassword = base.Columns["Password"];
  3398. this.columnFirstName = base.Columns["FirstName"];
  3399. this.columnLastName = base.Columns["LastName"];
  3400. this.columnOfficeID = base.Columns["OfficeID"];
  3401. this.columnBirthdate = base.Columns["Birthdate"];
  3402. this.columnActive = base.Columns["Active"];
  3403. }
  3404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3406. private void InitClass() {
  3407. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3408. base.Columns.Add(this.columnID);
  3409. this.columnRoleID = new global::System.Data.DataColumn("RoleID", typeof(int), null, global::System.Data.MappingType.Element);
  3410. base.Columns.Add(this.columnRoleID);
  3411. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  3412. base.Columns.Add(this.columnEmail);
  3413. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  3414. base.Columns.Add(this.columnPassword);
  3415. this.columnFirstName = new global::System.Data.DataColumn("FirstName", typeof(string), null, global::System.Data.MappingType.Element);
  3416. base.Columns.Add(this.columnFirstName);
  3417. this.columnLastName = new global::System.Data.DataColumn("LastName", typeof(string), null, global::System.Data.MappingType.Element);
  3418. base.Columns.Add(this.columnLastName);
  3419. this.columnOfficeID = new global::System.Data.DataColumn("OfficeID", typeof(int), null, global::System.Data.MappingType.Element);
  3420. base.Columns.Add(this.columnOfficeID);
  3421. this.columnBirthdate = new global::System.Data.DataColumn("Birthdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3422. base.Columns.Add(this.columnBirthdate);
  3423. this.columnActive = new global::System.Data.DataColumn("Active", typeof(bool), null, global::System.Data.MappingType.Element);
  3424. base.Columns.Add(this.columnActive);
  3425. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3426. this.columnID}, true));
  3427. this.columnID.AutoIncrement = true;
  3428. this.columnID.AutoIncrementSeed = -1;
  3429. this.columnID.AutoIncrementStep = -1;
  3430. this.columnID.AllowDBNull = false;
  3431. this.columnID.ReadOnly = true;
  3432. this.columnID.Unique = true;
  3433. this.columnRoleID.AllowDBNull = false;
  3434. this.columnEmail.AllowDBNull = false;
  3435. this.columnEmail.MaxLength = 150;
  3436. this.columnPassword.AllowDBNull = false;
  3437. this.columnPassword.MaxLength = 50;
  3438. this.columnFirstName.MaxLength = 50;
  3439. this.columnLastName.AllowDBNull = false;
  3440. this.columnLastName.MaxLength = 50;
  3441. }
  3442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3444. public UsersRow NewUsersRow() {
  3445. return ((UsersRow)(this.NewRow()));
  3446. }
  3447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3449. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3450. return new UsersRow(builder);
  3451. }
  3452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3454. protected override global::System.Type GetRowType() {
  3455. return typeof(UsersRow);
  3456. }
  3457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3459. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3460. base.OnRowChanged(e);
  3461. if ((this.UsersRowChanged != null)) {
  3462. this.UsersRowChanged(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  3463. }
  3464. }
  3465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3467. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3468. base.OnRowChanging(e);
  3469. if ((this.UsersRowChanging != null)) {
  3470. this.UsersRowChanging(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  3471. }
  3472. }
  3473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3475. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3476. base.OnRowDeleted(e);
  3477. if ((this.UsersRowDeleted != null)) {
  3478. this.UsersRowDeleted(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  3479. }
  3480. }
  3481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3483. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3484. base.OnRowDeleting(e);
  3485. if ((this.UsersRowDeleting != null)) {
  3486. this.UsersRowDeleting(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  3487. }
  3488. }
  3489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3491. public void RemoveUsersRow(UsersRow row) {
  3492. this.Rows.Remove(row);
  3493. }
  3494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3496. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3497. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3498. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3499. Session3_4DataSet ds = new Session3_4DataSet();
  3500. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3501. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3502. any1.MinOccurs = new decimal(0);
  3503. any1.MaxOccurs = decimal.MaxValue;
  3504. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3505. sequence.Items.Add(any1);
  3506. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3507. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3508. any2.MinOccurs = new decimal(1);
  3509. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3510. sequence.Items.Add(any2);
  3511. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3512. attribute1.Name = "namespace";
  3513. attribute1.FixedValue = ds.Namespace;
  3514. type.Attributes.Add(attribute1);
  3515. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3516. attribute2.Name = "tableTypeName";
  3517. attribute2.FixedValue = "UsersDataTable";
  3518. type.Attributes.Add(attribute2);
  3519. type.Particle = sequence;
  3520. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3521. if (xs.Contains(dsSchema.TargetNamespace)) {
  3522. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3523. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3524. try {
  3525. global::System.Xml.Schema.XmlSchema schema = null;
  3526. dsSchema.Write(s1);
  3527. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3528. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3529. s2.SetLength(0);
  3530. schema.Write(s2);
  3531. if ((s1.Length == s2.Length)) {
  3532. s1.Position = 0;
  3533. s2.Position = 0;
  3534. for (; ((s1.Position != s1.Length)
  3535. && (s1.ReadByte() == s2.ReadByte())); ) {
  3536. ;
  3537. }
  3538. if ((s1.Position == s1.Length)) {
  3539. return type;
  3540. }
  3541. }
  3542. }
  3543. }
  3544. finally {
  3545. if ((s1 != null)) {
  3546. s1.Close();
  3547. }
  3548. if ((s2 != null)) {
  3549. s2.Close();
  3550. }
  3551. }
  3552. }
  3553. xs.Add(dsSchema);
  3554. return type;
  3555. }
  3556. }
  3557. /// <summary>
  3558. ///Represents strongly named DataRow class.
  3559. ///</summary>
  3560. public partial class AircraftsRow : global::System.Data.DataRow {
  3561. private AircraftsDataTable tableAircrafts;
  3562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3564. internal AircraftsRow(global::System.Data.DataRowBuilder rb) :
  3565. base(rb) {
  3566. this.tableAircrafts = ((AircraftsDataTable)(this.Table));
  3567. }
  3568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3570. public int ID {
  3571. get {
  3572. return ((int)(this[this.tableAircrafts.IDColumn]));
  3573. }
  3574. set {
  3575. this[this.tableAircrafts.IDColumn] = value;
  3576. }
  3577. }
  3578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3580. public string Name {
  3581. get {
  3582. return ((string)(this[this.tableAircrafts.NameColumn]));
  3583. }
  3584. set {
  3585. this[this.tableAircrafts.NameColumn] = value;
  3586. }
  3587. }
  3588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3590. public string MakeModel {
  3591. get {
  3592. try {
  3593. return ((string)(this[this.tableAircrafts.MakeModelColumn]));
  3594. }
  3595. catch (global::System.InvalidCastException e) {
  3596. throw new global::System.Data.StrongTypingException("Значение для столбца \'MakeModel\' в таблице \'Aircrafts\' равно DBNull.", e);
  3597. }
  3598. }
  3599. set {
  3600. this[this.tableAircrafts.MakeModelColumn] = value;
  3601. }
  3602. }
  3603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3605. public int TotalSeats {
  3606. get {
  3607. return ((int)(this[this.tableAircrafts.TotalSeatsColumn]));
  3608. }
  3609. set {
  3610. this[this.tableAircrafts.TotalSeatsColumn] = value;
  3611. }
  3612. }
  3613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3615. public int EconomySeats {
  3616. get {
  3617. return ((int)(this[this.tableAircrafts.EconomySeatsColumn]));
  3618. }
  3619. set {
  3620. this[this.tableAircrafts.EconomySeatsColumn] = value;
  3621. }
  3622. }
  3623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3625. public int BusinessSeats {
  3626. get {
  3627. return ((int)(this[this.tableAircrafts.BusinessSeatsColumn]));
  3628. }
  3629. set {
  3630. this[this.tableAircrafts.BusinessSeatsColumn] = value;
  3631. }
  3632. }
  3633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3635. public bool IsMakeModelNull() {
  3636. return this.IsNull(this.tableAircrafts.MakeModelColumn);
  3637. }
  3638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3640. public void SetMakeModelNull() {
  3641. this[this.tableAircrafts.MakeModelColumn] = global::System.Convert.DBNull;
  3642. }
  3643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3645. public SchedulesRow[] GetSchedulesRows() {
  3646. if ((this.Table.ChildRelations["FK_Schedule_AirCraft"] == null)) {
  3647. return new SchedulesRow[0];
  3648. }
  3649. else {
  3650. return ((SchedulesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Schedule_AirCraft"])));
  3651. }
  3652. }
  3653. }
  3654. /// <summary>
  3655. ///Represents strongly named DataRow class.
  3656. ///</summary>
  3657. public partial class AirportsRow : global::System.Data.DataRow {
  3658. private AirportsDataTable tableAirports;
  3659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3661. internal AirportsRow(global::System.Data.DataRowBuilder rb) :
  3662. base(rb) {
  3663. this.tableAirports = ((AirportsDataTable)(this.Table));
  3664. }
  3665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3667. public int ID {
  3668. get {
  3669. return ((int)(this[this.tableAirports.IDColumn]));
  3670. }
  3671. set {
  3672. this[this.tableAirports.IDColumn] = value;
  3673. }
  3674. }
  3675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3677. public int CountryID {
  3678. get {
  3679. return ((int)(this[this.tableAirports.CountryIDColumn]));
  3680. }
  3681. set {
  3682. this[this.tableAirports.CountryIDColumn] = value;
  3683. }
  3684. }
  3685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3687. public string IATACode {
  3688. get {
  3689. return ((string)(this[this.tableAirports.IATACodeColumn]));
  3690. }
  3691. set {
  3692. this[this.tableAirports.IATACodeColumn] = value;
  3693. }
  3694. }
  3695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3697. public string Name {
  3698. get {
  3699. try {
  3700. return ((string)(this[this.tableAirports.NameColumn]));
  3701. }
  3702. catch (global::System.InvalidCastException e) {
  3703. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Airports\' равно DBNull.", e);
  3704. }
  3705. }
  3706. set {
  3707. this[this.tableAirports.NameColumn] = value;
  3708. }
  3709. }
  3710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3712. public CountriesRow CountriesRow {
  3713. get {
  3714. return ((CountriesRow)(this.GetParentRow(this.Table.ParentRelations["FK_AirPort_Country"])));
  3715. }
  3716. set {
  3717. this.SetParentRow(value, this.Table.ParentRelations["FK_AirPort_Country"]);
  3718. }
  3719. }
  3720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3722. public bool IsNameNull() {
  3723. return this.IsNull(this.tableAirports.NameColumn);
  3724. }
  3725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3727. public void SetNameNull() {
  3728. this[this.tableAirports.NameColumn] = global::System.Convert.DBNull;
  3729. }
  3730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3732. public RoutesRow[] GetRoutesRowsByFK_Routes_Airports2() {
  3733. if ((this.Table.ChildRelations["FK_Routes_Airports2"] == null)) {
  3734. return new RoutesRow[0];
  3735. }
  3736. else {
  3737. return ((RoutesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Routes_Airports2"])));
  3738. }
  3739. }
  3740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3742. public RoutesRow[] GetRoutesRowsByFK_Routes_Airports3() {
  3743. if ((this.Table.ChildRelations["FK_Routes_Airports3"] == null)) {
  3744. return new RoutesRow[0];
  3745. }
  3746. else {
  3747. return ((RoutesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Routes_Airports3"])));
  3748. }
  3749. }
  3750. }
  3751. /// <summary>
  3752. ///Represents strongly named DataRow class.
  3753. ///</summary>
  3754. public partial class CabinTypesRow : global::System.Data.DataRow {
  3755. private CabinTypesDataTable tableCabinTypes;
  3756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3758. internal CabinTypesRow(global::System.Data.DataRowBuilder rb) :
  3759. base(rb) {
  3760. this.tableCabinTypes = ((CabinTypesDataTable)(this.Table));
  3761. }
  3762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3764. public int ID {
  3765. get {
  3766. return ((int)(this[this.tableCabinTypes.IDColumn]));
  3767. }
  3768. set {
  3769. this[this.tableCabinTypes.IDColumn] = value;
  3770. }
  3771. }
  3772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3774. public string Name {
  3775. get {
  3776. return ((string)(this[this.tableCabinTypes.NameColumn]));
  3777. }
  3778. set {
  3779. this[this.tableCabinTypes.NameColumn] = value;
  3780. }
  3781. }
  3782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3784. public TicketsRow[] GetTicketsRows() {
  3785. if ((this.Table.ChildRelations["FK_Ticket_TravelClass"] == null)) {
  3786. return new TicketsRow[0];
  3787. }
  3788. else {
  3789. return ((TicketsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Ticket_TravelClass"])));
  3790. }
  3791. }
  3792. }
  3793. /// <summary>
  3794. ///Represents strongly named DataRow class.
  3795. ///</summary>
  3796. public partial class CountriesRow : global::System.Data.DataRow {
  3797. private CountriesDataTable tableCountries;
  3798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3800. internal CountriesRow(global::System.Data.DataRowBuilder rb) :
  3801. base(rb) {
  3802. this.tableCountries = ((CountriesDataTable)(this.Table));
  3803. }
  3804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3806. public int ID {
  3807. get {
  3808. return ((int)(this[this.tableCountries.IDColumn]));
  3809. }
  3810. set {
  3811. this[this.tableCountries.IDColumn] = value;
  3812. }
  3813. }
  3814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3816. public string Name {
  3817. get {
  3818. return ((string)(this[this.tableCountries.NameColumn]));
  3819. }
  3820. set {
  3821. this[this.tableCountries.NameColumn] = value;
  3822. }
  3823. }
  3824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3826. public AirportsRow[] GetAirportsRows() {
  3827. if ((this.Table.ChildRelations["FK_AirPort_Country"] == null)) {
  3828. return new AirportsRow[0];
  3829. }
  3830. else {
  3831. return ((AirportsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AirPort_Country"])));
  3832. }
  3833. }
  3834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3836. public OfficesRow[] GetOfficesRows() {
  3837. if ((this.Table.ChildRelations["FK_Office_Country"] == null)) {
  3838. return new OfficesRow[0];
  3839. }
  3840. else {
  3841. return ((OfficesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Office_Country"])));
  3842. }
  3843. }
  3844. }
  3845. /// <summary>
  3846. ///Represents strongly named DataRow class.
  3847. ///</summary>
  3848. public partial class OfficesRow : global::System.Data.DataRow {
  3849. private OfficesDataTable tableOffices;
  3850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3852. internal OfficesRow(global::System.Data.DataRowBuilder rb) :
  3853. base(rb) {
  3854. this.tableOffices = ((OfficesDataTable)(this.Table));
  3855. }
  3856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3858. public int ID {
  3859. get {
  3860. return ((int)(this[this.tableOffices.IDColumn]));
  3861. }
  3862. set {
  3863. this[this.tableOffices.IDColumn] = value;
  3864. }
  3865. }
  3866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3868. public int CountryID {
  3869. get {
  3870. return ((int)(this[this.tableOffices.CountryIDColumn]));
  3871. }
  3872. set {
  3873. this[this.tableOffices.CountryIDColumn] = value;
  3874. }
  3875. }
  3876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3878. public string Title {
  3879. get {
  3880. return ((string)(this[this.tableOffices.TitleColumn]));
  3881. }
  3882. set {
  3883. this[this.tableOffices.TitleColumn] = value;
  3884. }
  3885. }
  3886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3888. public string Phone {
  3889. get {
  3890. return ((string)(this[this.tableOffices.PhoneColumn]));
  3891. }
  3892. set {
  3893. this[this.tableOffices.PhoneColumn] = value;
  3894. }
  3895. }
  3896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3898. public string Contact {
  3899. get {
  3900. return ((string)(this[this.tableOffices.ContactColumn]));
  3901. }
  3902. set {
  3903. this[this.tableOffices.ContactColumn] = value;
  3904. }
  3905. }
  3906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3908. public CountriesRow CountriesRow {
  3909. get {
  3910. return ((CountriesRow)(this.GetParentRow(this.Table.ParentRelations["FK_Office_Country"])));
  3911. }
  3912. set {
  3913. this.SetParentRow(value, this.Table.ParentRelations["FK_Office_Country"]);
  3914. }
  3915. }
  3916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3918. public UsersRow[] GetUsersRows() {
  3919. if ((this.Table.ChildRelations["FK_Users_Offices"] == null)) {
  3920. return new UsersRow[0];
  3921. }
  3922. else {
  3923. return ((UsersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Users_Offices"])));
  3924. }
  3925. }
  3926. }
  3927. /// <summary>
  3928. ///Represents strongly named DataRow class.
  3929. ///</summary>
  3930. public partial class RolesRow : global::System.Data.DataRow {
  3931. private RolesDataTable tableRoles;
  3932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3934. internal RolesRow(global::System.Data.DataRowBuilder rb) :
  3935. base(rb) {
  3936. this.tableRoles = ((RolesDataTable)(this.Table));
  3937. }
  3938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3940. public int ID {
  3941. get {
  3942. return ((int)(this[this.tableRoles.IDColumn]));
  3943. }
  3944. set {
  3945. this[this.tableRoles.IDColumn] = value;
  3946. }
  3947. }
  3948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3950. public string Title {
  3951. get {
  3952. return ((string)(this[this.tableRoles.TitleColumn]));
  3953. }
  3954. set {
  3955. this[this.tableRoles.TitleColumn] = value;
  3956. }
  3957. }
  3958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3960. public UsersRow[] GetUsersRows() {
  3961. if ((this.Table.ChildRelations["FK_Users_Roles"] == null)) {
  3962. return new UsersRow[0];
  3963. }
  3964. else {
  3965. return ((UsersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Users_Roles"])));
  3966. }
  3967. }
  3968. }
  3969. /// <summary>
  3970. ///Represents strongly named DataRow class.
  3971. ///</summary>
  3972. public partial class RoutesRow : global::System.Data.DataRow {
  3973. private RoutesDataTable tableRoutes;
  3974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3976. internal RoutesRow(global::System.Data.DataRowBuilder rb) :
  3977. base(rb) {
  3978. this.tableRoutes = ((RoutesDataTable)(this.Table));
  3979. }
  3980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3982. public int ID {
  3983. get {
  3984. return ((int)(this[this.tableRoutes.IDColumn]));
  3985. }
  3986. set {
  3987. this[this.tableRoutes.IDColumn] = value;
  3988. }
  3989. }
  3990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3992. public int DepartureAirportID {
  3993. get {
  3994. return ((int)(this[this.tableRoutes.DepartureAirportIDColumn]));
  3995. }
  3996. set {
  3997. this[this.tableRoutes.DepartureAirportIDColumn] = value;
  3998. }
  3999. }
  4000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4002. public int ArrivalAirportID {
  4003. get {
  4004. return ((int)(this[this.tableRoutes.ArrivalAirportIDColumn]));
  4005. }
  4006. set {
  4007. this[this.tableRoutes.ArrivalAirportIDColumn] = value;
  4008. }
  4009. }
  4010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4012. public int Distance {
  4013. get {
  4014. return ((int)(this[this.tableRoutes.DistanceColumn]));
  4015. }
  4016. set {
  4017. this[this.tableRoutes.DistanceColumn] = value;
  4018. }
  4019. }
  4020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4022. public int FlightTime {
  4023. get {
  4024. return ((int)(this[this.tableRoutes.FlightTimeColumn]));
  4025. }
  4026. set {
  4027. this[this.tableRoutes.FlightTimeColumn] = value;
  4028. }
  4029. }
  4030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4032. public AirportsRow AirportsRowByFK_Routes_Airports2 {
  4033. get {
  4034. return ((AirportsRow)(this.GetParentRow(this.Table.ParentRelations["FK_Routes_Airports2"])));
  4035. }
  4036. set {
  4037. this.SetParentRow(value, this.Table.ParentRelations["FK_Routes_Airports2"]);
  4038. }
  4039. }
  4040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4042. public AirportsRow AirportsRowByFK_Routes_Airports3 {
  4043. get {
  4044. return ((AirportsRow)(this.GetParentRow(this.Table.ParentRelations["FK_Routes_Airports3"])));
  4045. }
  4046. set {
  4047. this.SetParentRow(value, this.Table.ParentRelations["FK_Routes_Airports3"]);
  4048. }
  4049. }
  4050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4052. public SchedulesRow[] GetSchedulesRows() {
  4053. if ((this.Table.ChildRelations["FK_Schedule_Routes"] == null)) {
  4054. return new SchedulesRow[0];
  4055. }
  4056. else {
  4057. return ((SchedulesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Schedule_Routes"])));
  4058. }
  4059. }
  4060. }
  4061. /// <summary>
  4062. ///Represents strongly named DataRow class.
  4063. ///</summary>
  4064. public partial class SchedulesRow : global::System.Data.DataRow {
  4065. private SchedulesDataTable tableSchedules;
  4066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4068. internal SchedulesRow(global::System.Data.DataRowBuilder rb) :
  4069. base(rb) {
  4070. this.tableSchedules = ((SchedulesDataTable)(this.Table));
  4071. }
  4072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4074. public int ID {
  4075. get {
  4076. return ((int)(this[this.tableSchedules.IDColumn]));
  4077. }
  4078. set {
  4079. this[this.tableSchedules.IDColumn] = value;
  4080. }
  4081. }
  4082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4084. public System.DateTime Date {
  4085. get {
  4086. return ((global::System.DateTime)(this[this.tableSchedules.DateColumn]));
  4087. }
  4088. set {
  4089. this[this.tableSchedules.DateColumn] = value;
  4090. }
  4091. }
  4092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4094. public System.TimeSpan Time {
  4095. get {
  4096. return ((global::System.TimeSpan)(this[this.tableSchedules.TimeColumn]));
  4097. }
  4098. set {
  4099. this[this.tableSchedules.TimeColumn] = value;
  4100. }
  4101. }
  4102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4104. public int AircraftID {
  4105. get {
  4106. return ((int)(this[this.tableSchedules.AircraftIDColumn]));
  4107. }
  4108. set {
  4109. this[this.tableSchedules.AircraftIDColumn] = value;
  4110. }
  4111. }
  4112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4114. public int RouteID {
  4115. get {
  4116. return ((int)(this[this.tableSchedules.RouteIDColumn]));
  4117. }
  4118. set {
  4119. this[this.tableSchedules.RouteIDColumn] = value;
  4120. }
  4121. }
  4122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4124. public decimal EconomyPrice {
  4125. get {
  4126. return ((decimal)(this[this.tableSchedules.EconomyPriceColumn]));
  4127. }
  4128. set {
  4129. this[this.tableSchedules.EconomyPriceColumn] = value;
  4130. }
  4131. }
  4132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4134. public bool Confirmed {
  4135. get {
  4136. return ((bool)(this[this.tableSchedules.ConfirmedColumn]));
  4137. }
  4138. set {
  4139. this[this.tableSchedules.ConfirmedColumn] = value;
  4140. }
  4141. }
  4142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4144. public string FlightNumber {
  4145. get {
  4146. try {
  4147. return ((string)(this[this.tableSchedules.FlightNumberColumn]));
  4148. }
  4149. catch (global::System.InvalidCastException e) {
  4150. throw new global::System.Data.StrongTypingException("Значение для столбца \'FlightNumber\' в таблице \'Schedules\' равно DBNull.", e);
  4151. }
  4152. }
  4153. set {
  4154. this[this.tableSchedules.FlightNumberColumn] = value;
  4155. }
  4156. }
  4157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4159. public AircraftsRow AircraftsRow {
  4160. get {
  4161. return ((AircraftsRow)(this.GetParentRow(this.Table.ParentRelations["FK_Schedule_AirCraft"])));
  4162. }
  4163. set {
  4164. this.SetParentRow(value, this.Table.ParentRelations["FK_Schedule_AirCraft"]);
  4165. }
  4166. }
  4167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4169. public RoutesRow RoutesRow {
  4170. get {
  4171. return ((RoutesRow)(this.GetParentRow(this.Table.ParentRelations["FK_Schedule_Routes"])));
  4172. }
  4173. set {
  4174. this.SetParentRow(value, this.Table.ParentRelations["FK_Schedule_Routes"]);
  4175. }
  4176. }
  4177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4179. public bool IsFlightNumberNull() {
  4180. return this.IsNull(this.tableSchedules.FlightNumberColumn);
  4181. }
  4182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4184. public void SetFlightNumberNull() {
  4185. this[this.tableSchedules.FlightNumberColumn] = global::System.Convert.DBNull;
  4186. }
  4187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4189. public TicketsRow[] GetTicketsRows() {
  4190. if ((this.Table.ChildRelations["FK_Ticket_Schedule"] == null)) {
  4191. return new TicketsRow[0];
  4192. }
  4193. else {
  4194. return ((TicketsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Ticket_Schedule"])));
  4195. }
  4196. }
  4197. }
  4198. /// <summary>
  4199. ///Represents strongly named DataRow class.
  4200. ///</summary>
  4201. public partial class TicketsRow : global::System.Data.DataRow {
  4202. private TicketsDataTable tableTickets;
  4203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4205. internal TicketsRow(global::System.Data.DataRowBuilder rb) :
  4206. base(rb) {
  4207. this.tableTickets = ((TicketsDataTable)(this.Table));
  4208. }
  4209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4211. public int ID {
  4212. get {
  4213. return ((int)(this[this.tableTickets.IDColumn]));
  4214. }
  4215. set {
  4216. this[this.tableTickets.IDColumn] = value;
  4217. }
  4218. }
  4219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4221. public int UserID {
  4222. get {
  4223. return ((int)(this[this.tableTickets.UserIDColumn]));
  4224. }
  4225. set {
  4226. this[this.tableTickets.UserIDColumn] = value;
  4227. }
  4228. }
  4229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4231. public int ScheduleID {
  4232. get {
  4233. return ((int)(this[this.tableTickets.ScheduleIDColumn]));
  4234. }
  4235. set {
  4236. this[this.tableTickets.ScheduleIDColumn] = value;
  4237. }
  4238. }
  4239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4241. public int CabinTypeID {
  4242. get {
  4243. return ((int)(this[this.tableTickets.CabinTypeIDColumn]));
  4244. }
  4245. set {
  4246. this[this.tableTickets.CabinTypeIDColumn] = value;
  4247. }
  4248. }
  4249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4251. public string Firstname {
  4252. get {
  4253. return ((string)(this[this.tableTickets.FirstnameColumn]));
  4254. }
  4255. set {
  4256. this[this.tableTickets.FirstnameColumn] = value;
  4257. }
  4258. }
  4259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4261. public string Lastname {
  4262. get {
  4263. return ((string)(this[this.tableTickets.LastnameColumn]));
  4264. }
  4265. set {
  4266. this[this.tableTickets.LastnameColumn] = value;
  4267. }
  4268. }
  4269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4271. public string Email {
  4272. get {
  4273. try {
  4274. return ((string)(this[this.tableTickets.EmailColumn]));
  4275. }
  4276. catch (global::System.InvalidCastException e) {
  4277. throw new global::System.Data.StrongTypingException("Значение для столбца \'Email\' в таблице \'Tickets\' равно DBNull.", e);
  4278. }
  4279. }
  4280. set {
  4281. this[this.tableTickets.EmailColumn] = value;
  4282. }
  4283. }
  4284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4286. public string Phone {
  4287. get {
  4288. return ((string)(this[this.tableTickets.PhoneColumn]));
  4289. }
  4290. set {
  4291. this[this.tableTickets.PhoneColumn] = value;
  4292. }
  4293. }
  4294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4296. public string PassportNumber {
  4297. get {
  4298. return ((string)(this[this.tableTickets.PassportNumberColumn]));
  4299. }
  4300. set {
  4301. this[this.tableTickets.PassportNumberColumn] = value;
  4302. }
  4303. }
  4304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4306. public int PassportCountryID {
  4307. get {
  4308. return ((int)(this[this.tableTickets.PassportCountryIDColumn]));
  4309. }
  4310. set {
  4311. this[this.tableTickets.PassportCountryIDColumn] = value;
  4312. }
  4313. }
  4314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4316. public string BookingReference {
  4317. get {
  4318. return ((string)(this[this.tableTickets.BookingReferenceColumn]));
  4319. }
  4320. set {
  4321. this[this.tableTickets.BookingReferenceColumn] = value;
  4322. }
  4323. }
  4324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4326. public bool Confirmed {
  4327. get {
  4328. return ((bool)(this[this.tableTickets.ConfirmedColumn]));
  4329. }
  4330. set {
  4331. this[this.tableTickets.ConfirmedColumn] = value;
  4332. }
  4333. }
  4334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4336. public SchedulesRow SchedulesRow {
  4337. get {
  4338. return ((SchedulesRow)(this.GetParentRow(this.Table.ParentRelations["FK_Ticket_Schedule"])));
  4339. }
  4340. set {
  4341. this.SetParentRow(value, this.Table.ParentRelations["FK_Ticket_Schedule"]);
  4342. }
  4343. }
  4344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4346. public CabinTypesRow CabinTypesRow {
  4347. get {
  4348. return ((CabinTypesRow)(this.GetParentRow(this.Table.ParentRelations["FK_Ticket_TravelClass"])));
  4349. }
  4350. set {
  4351. this.SetParentRow(value, this.Table.ParentRelations["FK_Ticket_TravelClass"]);
  4352. }
  4353. }
  4354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4356. public UsersRow UsersRow {
  4357. get {
  4358. return ((UsersRow)(this.GetParentRow(this.Table.ParentRelations["FK_Ticket_User"])));
  4359. }
  4360. set {
  4361. this.SetParentRow(value, this.Table.ParentRelations["FK_Ticket_User"]);
  4362. }
  4363. }
  4364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4366. public bool IsEmailNull() {
  4367. return this.IsNull(this.tableTickets.EmailColumn);
  4368. }
  4369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4371. public void SetEmailNull() {
  4372. this[this.tableTickets.EmailColumn] = global::System.Convert.DBNull;
  4373. }
  4374. }
  4375. /// <summary>
  4376. ///Represents strongly named DataRow class.
  4377. ///</summary>
  4378. public partial class UsersRow : global::System.Data.DataRow {
  4379. private UsersDataTable tableUsers;
  4380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4382. internal UsersRow(global::System.Data.DataRowBuilder rb) :
  4383. base(rb) {
  4384. this.tableUsers = ((UsersDataTable)(this.Table));
  4385. }
  4386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4388. public int ID {
  4389. get {
  4390. return ((int)(this[this.tableUsers.IDColumn]));
  4391. }
  4392. set {
  4393. this[this.tableUsers.IDColumn] = value;
  4394. }
  4395. }
  4396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4398. public int RoleID {
  4399. get {
  4400. return ((int)(this[this.tableUsers.RoleIDColumn]));
  4401. }
  4402. set {
  4403. this[this.tableUsers.RoleIDColumn] = value;
  4404. }
  4405. }
  4406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4408. public string Email {
  4409. get {
  4410. return ((string)(this[this.tableUsers.EmailColumn]));
  4411. }
  4412. set {
  4413. this[this.tableUsers.EmailColumn] = value;
  4414. }
  4415. }
  4416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4418. public string Password {
  4419. get {
  4420. return ((string)(this[this.tableUsers.PasswordColumn]));
  4421. }
  4422. set {
  4423. this[this.tableUsers.PasswordColumn] = value;
  4424. }
  4425. }
  4426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4428. public string FirstName {
  4429. get {
  4430. try {
  4431. return ((string)(this[this.tableUsers.FirstNameColumn]));
  4432. }
  4433. catch (global::System.InvalidCastException e) {
  4434. throw new global::System.Data.StrongTypingException("Значение для столбца \'FirstName\' в таблице \'Users\' равно DBNull.", e);
  4435. }
  4436. }
  4437. set {
  4438. this[this.tableUsers.FirstNameColumn] = value;
  4439. }
  4440. }
  4441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4443. public string LastName {
  4444. get {
  4445. return ((string)(this[this.tableUsers.LastNameColumn]));
  4446. }
  4447. set {
  4448. this[this.tableUsers.LastNameColumn] = value;
  4449. }
  4450. }
  4451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4453. public int OfficeID {
  4454. get {
  4455. try {
  4456. return ((int)(this[this.tableUsers.OfficeIDColumn]));
  4457. }
  4458. catch (global::System.InvalidCastException e) {
  4459. throw new global::System.Data.StrongTypingException("Значение для столбца \'OfficeID\' в таблице \'Users\' равно DBNull.", e);
  4460. }
  4461. }
  4462. set {
  4463. this[this.tableUsers.OfficeIDColumn] = value;
  4464. }
  4465. }
  4466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4468. public System.DateTime Birthdate {
  4469. get {
  4470. try {
  4471. return ((global::System.DateTime)(this[this.tableUsers.BirthdateColumn]));
  4472. }
  4473. catch (global::System.InvalidCastException e) {
  4474. throw new global::System.Data.StrongTypingException("Значение для столбца \'Birthdate\' в таблице \'Users\' равно DBNull.", e);
  4475. }
  4476. }
  4477. set {
  4478. this[this.tableUsers.BirthdateColumn] = value;
  4479. }
  4480. }
  4481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4483. public bool Active {
  4484. get {
  4485. try {
  4486. return ((bool)(this[this.tableUsers.ActiveColumn]));
  4487. }
  4488. catch (global::System.InvalidCastException e) {
  4489. throw new global::System.Data.StrongTypingException("Значение для столбца \'Active\' в таблице \'Users\' равно DBNull.", e);
  4490. }
  4491. }
  4492. set {
  4493. this[this.tableUsers.ActiveColumn] = value;
  4494. }
  4495. }
  4496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4498. public OfficesRow OfficesRow {
  4499. get {
  4500. return ((OfficesRow)(this.GetParentRow(this.Table.ParentRelations["FK_Users_Offices"])));
  4501. }
  4502. set {
  4503. this.SetParentRow(value, this.Table.ParentRelations["FK_Users_Offices"]);
  4504. }
  4505. }
  4506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4508. public RolesRow RolesRow {
  4509. get {
  4510. return ((RolesRow)(this.GetParentRow(this.Table.ParentRelations["FK_Users_Roles"])));
  4511. }
  4512. set {
  4513. this.SetParentRow(value, this.Table.ParentRelations["FK_Users_Roles"]);
  4514. }
  4515. }
  4516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4518. public bool IsFirstNameNull() {
  4519. return this.IsNull(this.tableUsers.FirstNameColumn);
  4520. }
  4521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4523. public void SetFirstNameNull() {
  4524. this[this.tableUsers.FirstNameColumn] = global::System.Convert.DBNull;
  4525. }
  4526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4528. public bool IsOfficeIDNull() {
  4529. return this.IsNull(this.tableUsers.OfficeIDColumn);
  4530. }
  4531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4533. public void SetOfficeIDNull() {
  4534. this[this.tableUsers.OfficeIDColumn] = global::System.Convert.DBNull;
  4535. }
  4536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4538. public bool IsBirthdateNull() {
  4539. return this.IsNull(this.tableUsers.BirthdateColumn);
  4540. }
  4541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4543. public void SetBirthdateNull() {
  4544. this[this.tableUsers.BirthdateColumn] = global::System.Convert.DBNull;
  4545. }
  4546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4548. public bool IsActiveNull() {
  4549. return this.IsNull(this.tableUsers.ActiveColumn);
  4550. }
  4551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4553. public void SetActiveNull() {
  4554. this[this.tableUsers.ActiveColumn] = global::System.Convert.DBNull;
  4555. }
  4556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4558. public TicketsRow[] GetTicketsRows() {
  4559. if ((this.Table.ChildRelations["FK_Ticket_User"] == null)) {
  4560. return new TicketsRow[0];
  4561. }
  4562. else {
  4563. return ((TicketsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Ticket_User"])));
  4564. }
  4565. }
  4566. }
  4567. /// <summary>
  4568. ///Row event argument class
  4569. ///</summary>
  4570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4571. public class AircraftsRowChangeEvent : global::System.EventArgs {
  4572. private AircraftsRow eventRow;
  4573. private global::System.Data.DataRowAction eventAction;
  4574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4576. public AircraftsRowChangeEvent(AircraftsRow row, global::System.Data.DataRowAction action) {
  4577. this.eventRow = row;
  4578. this.eventAction = action;
  4579. }
  4580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4582. public AircraftsRow Row {
  4583. get {
  4584. return this.eventRow;
  4585. }
  4586. }
  4587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4589. public global::System.Data.DataRowAction Action {
  4590. get {
  4591. return this.eventAction;
  4592. }
  4593. }
  4594. }
  4595. /// <summary>
  4596. ///Row event argument class
  4597. ///</summary>
  4598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4599. public class AirportsRowChangeEvent : global::System.EventArgs {
  4600. private AirportsRow eventRow;
  4601. private global::System.Data.DataRowAction eventAction;
  4602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4604. public AirportsRowChangeEvent(AirportsRow row, global::System.Data.DataRowAction action) {
  4605. this.eventRow = row;
  4606. this.eventAction = action;
  4607. }
  4608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4610. public AirportsRow Row {
  4611. get {
  4612. return this.eventRow;
  4613. }
  4614. }
  4615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4617. public global::System.Data.DataRowAction Action {
  4618. get {
  4619. return this.eventAction;
  4620. }
  4621. }
  4622. }
  4623. /// <summary>
  4624. ///Row event argument class
  4625. ///</summary>
  4626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4627. public class CabinTypesRowChangeEvent : global::System.EventArgs {
  4628. private CabinTypesRow eventRow;
  4629. private global::System.Data.DataRowAction eventAction;
  4630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4632. public CabinTypesRowChangeEvent(CabinTypesRow row, global::System.Data.DataRowAction action) {
  4633. this.eventRow = row;
  4634. this.eventAction = action;
  4635. }
  4636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4638. public CabinTypesRow Row {
  4639. get {
  4640. return this.eventRow;
  4641. }
  4642. }
  4643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4645. public global::System.Data.DataRowAction Action {
  4646. get {
  4647. return this.eventAction;
  4648. }
  4649. }
  4650. }
  4651. /// <summary>
  4652. ///Row event argument class
  4653. ///</summary>
  4654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4655. public class CountriesRowChangeEvent : global::System.EventArgs {
  4656. private CountriesRow eventRow;
  4657. private global::System.Data.DataRowAction eventAction;
  4658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4660. public CountriesRowChangeEvent(CountriesRow row, global::System.Data.DataRowAction action) {
  4661. this.eventRow = row;
  4662. this.eventAction = action;
  4663. }
  4664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4666. public CountriesRow Row {
  4667. get {
  4668. return this.eventRow;
  4669. }
  4670. }
  4671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4673. public global::System.Data.DataRowAction Action {
  4674. get {
  4675. return this.eventAction;
  4676. }
  4677. }
  4678. }
  4679. /// <summary>
  4680. ///Row event argument class
  4681. ///</summary>
  4682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4683. public class OfficesRowChangeEvent : global::System.EventArgs {
  4684. private OfficesRow eventRow;
  4685. private global::System.Data.DataRowAction eventAction;
  4686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4688. public OfficesRowChangeEvent(OfficesRow row, global::System.Data.DataRowAction action) {
  4689. this.eventRow = row;
  4690. this.eventAction = action;
  4691. }
  4692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4694. public OfficesRow Row {
  4695. get {
  4696. return this.eventRow;
  4697. }
  4698. }
  4699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4701. public global::System.Data.DataRowAction Action {
  4702. get {
  4703. return this.eventAction;
  4704. }
  4705. }
  4706. }
  4707. /// <summary>
  4708. ///Row event argument class
  4709. ///</summary>
  4710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4711. public class RolesRowChangeEvent : global::System.EventArgs {
  4712. private RolesRow eventRow;
  4713. private global::System.Data.DataRowAction eventAction;
  4714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4716. public RolesRowChangeEvent(RolesRow row, global::System.Data.DataRowAction action) {
  4717. this.eventRow = row;
  4718. this.eventAction = action;
  4719. }
  4720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4722. public RolesRow Row {
  4723. get {
  4724. return this.eventRow;
  4725. }
  4726. }
  4727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4729. public global::System.Data.DataRowAction Action {
  4730. get {
  4731. return this.eventAction;
  4732. }
  4733. }
  4734. }
  4735. /// <summary>
  4736. ///Row event argument class
  4737. ///</summary>
  4738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4739. public class RoutesRowChangeEvent : global::System.EventArgs {
  4740. private RoutesRow eventRow;
  4741. private global::System.Data.DataRowAction eventAction;
  4742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4744. public RoutesRowChangeEvent(RoutesRow row, global::System.Data.DataRowAction action) {
  4745. this.eventRow = row;
  4746. this.eventAction = action;
  4747. }
  4748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4750. public RoutesRow Row {
  4751. get {
  4752. return this.eventRow;
  4753. }
  4754. }
  4755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4757. public global::System.Data.DataRowAction Action {
  4758. get {
  4759. return this.eventAction;
  4760. }
  4761. }
  4762. }
  4763. /// <summary>
  4764. ///Row event argument class
  4765. ///</summary>
  4766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4767. public class SchedulesRowChangeEvent : global::System.EventArgs {
  4768. private SchedulesRow eventRow;
  4769. private global::System.Data.DataRowAction eventAction;
  4770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4772. public SchedulesRowChangeEvent(SchedulesRow row, global::System.Data.DataRowAction action) {
  4773. this.eventRow = row;
  4774. this.eventAction = action;
  4775. }
  4776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4778. public SchedulesRow Row {
  4779. get {
  4780. return this.eventRow;
  4781. }
  4782. }
  4783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4785. public global::System.Data.DataRowAction Action {
  4786. get {
  4787. return this.eventAction;
  4788. }
  4789. }
  4790. }
  4791. /// <summary>
  4792. ///Row event argument class
  4793. ///</summary>
  4794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4795. public class TicketsRowChangeEvent : global::System.EventArgs {
  4796. private TicketsRow eventRow;
  4797. private global::System.Data.DataRowAction eventAction;
  4798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4800. public TicketsRowChangeEvent(TicketsRow row, global::System.Data.DataRowAction action) {
  4801. this.eventRow = row;
  4802. this.eventAction = action;
  4803. }
  4804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4806. public TicketsRow Row {
  4807. get {
  4808. return this.eventRow;
  4809. }
  4810. }
  4811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4813. public global::System.Data.DataRowAction Action {
  4814. get {
  4815. return this.eventAction;
  4816. }
  4817. }
  4818. }
  4819. /// <summary>
  4820. ///Row event argument class
  4821. ///</summary>
  4822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4823. public class UsersRowChangeEvent : global::System.EventArgs {
  4824. private UsersRow eventRow;
  4825. private global::System.Data.DataRowAction eventAction;
  4826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4828. public UsersRowChangeEvent(UsersRow row, global::System.Data.DataRowAction action) {
  4829. this.eventRow = row;
  4830. this.eventAction = action;
  4831. }
  4832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4834. public UsersRow Row {
  4835. get {
  4836. return this.eventRow;
  4837. }
  4838. }
  4839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4841. public global::System.Data.DataRowAction Action {
  4842. get {
  4843. return this.eventAction;
  4844. }
  4845. }
  4846. }
  4847. }
  4848. }
  4849. namespace Session_4.Session3_4DataSetTableAdapters {
  4850. /// <summary>
  4851. ///Represents the connection and commands used to retrieve and save data.
  4852. ///</summary>
  4853. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4854. [global::System.ComponentModel.ToolboxItem(true)]
  4855. [global::System.ComponentModel.DataObjectAttribute(true)]
  4856. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4857. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4858. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4859. public partial class AircraftsTableAdapter : global::System.ComponentModel.Component {
  4860. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4861. private global::System.Data.SqlClient.SqlConnection _connection;
  4862. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4863. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4864. private bool _clearBeforeFill;
  4865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4867. public AircraftsTableAdapter() {
  4868. this.ClearBeforeFill = true;
  4869. }
  4870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4872. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4873. get {
  4874. if ((this._adapter == null)) {
  4875. this.InitAdapter();
  4876. }
  4877. return this._adapter;
  4878. }
  4879. }
  4880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4882. internal global::System.Data.SqlClient.SqlConnection Connection {
  4883. get {
  4884. if ((this._connection == null)) {
  4885. this.InitConnection();
  4886. }
  4887. return this._connection;
  4888. }
  4889. set {
  4890. this._connection = value;
  4891. if ((this.Adapter.InsertCommand != null)) {
  4892. this.Adapter.InsertCommand.Connection = value;
  4893. }
  4894. if ((this.Adapter.DeleteCommand != null)) {
  4895. this.Adapter.DeleteCommand.Connection = value;
  4896. }
  4897. if ((this.Adapter.UpdateCommand != null)) {
  4898. this.Adapter.UpdateCommand.Connection = value;
  4899. }
  4900. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4901. if ((this.CommandCollection[i] != null)) {
  4902. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4903. }
  4904. }
  4905. }
  4906. }
  4907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4909. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4910. get {
  4911. return this._transaction;
  4912. }
  4913. set {
  4914. this._transaction = value;
  4915. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4916. this.CommandCollection[i].Transaction = this._transaction;
  4917. }
  4918. if (((this.Adapter != null)
  4919. && (this.Adapter.DeleteCommand != null))) {
  4920. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4921. }
  4922. if (((this.Adapter != null)
  4923. && (this.Adapter.InsertCommand != null))) {
  4924. this.Adapter.InsertCommand.Transaction = this._transaction;
  4925. }
  4926. if (((this.Adapter != null)
  4927. && (this.Adapter.UpdateCommand != null))) {
  4928. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4929. }
  4930. }
  4931. }
  4932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4934. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4935. get {
  4936. if ((this._commandCollection == null)) {
  4937. this.InitCommandCollection();
  4938. }
  4939. return this._commandCollection;
  4940. }
  4941. }
  4942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4944. public bool ClearBeforeFill {
  4945. get {
  4946. return this._clearBeforeFill;
  4947. }
  4948. set {
  4949. this._clearBeforeFill = value;
  4950. }
  4951. }
  4952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4954. private void InitAdapter() {
  4955. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4956. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4957. tableMapping.SourceTable = "Table";
  4958. tableMapping.DataSetTable = "Aircrafts";
  4959. tableMapping.ColumnMappings.Add("ID", "ID");
  4960. tableMapping.ColumnMappings.Add("Name", "Name");
  4961. tableMapping.ColumnMappings.Add("MakeModel", "MakeModel");
  4962. tableMapping.ColumnMappings.Add("TotalSeats", "TotalSeats");
  4963. tableMapping.ColumnMappings.Add("EconomySeats", "EconomySeats");
  4964. tableMapping.ColumnMappings.Add("BusinessSeats", "BusinessSeats");
  4965. this._adapter.TableMappings.Add(tableMapping);
  4966. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4967. this._adapter.DeleteCommand.Connection = this.Connection;
  4968. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Aircrafts] WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ((@IsNull_MakeModel = 1 AND [MakeModel] IS NULL) OR ([MakeModel] = @Original_MakeModel)) AND ([TotalSeats] = @Original_TotalSeats) AND ([EconomySeats] = @Original_EconomySeats) AND ([BusinessSeats] = @Original_BusinessSeats))";
  4969. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4970. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4971. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4972. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MakeModel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MakeModel", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4973. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MakeModel", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MakeModel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4974. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TotalSeats", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotalSeats", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4975. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EconomySeats", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EconomySeats", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4976. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BusinessSeats", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BusinessSeats", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4977. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4978. this._adapter.InsertCommand.Connection = this.Connection;
  4979. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Aircrafts] ([ID], [Name], [MakeModel], [TotalSeats], [EconomySeats], [BusinessSeats]) VALUES (@ID, @Name, @MakeModel, @TotalSeats, @EconomySeats, @BusinessSeats);
  4980. SELECT ID, Name, MakeModel, TotalSeats, EconomySeats, BusinessSeats FROM Aircrafts WHERE (ID = @ID)";
  4981. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4982. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4983. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4984. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MakeModel", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MakeModel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4985. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotalSeats", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotalSeats", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4986. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EconomySeats", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EconomySeats", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4987. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BusinessSeats", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BusinessSeats", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4988. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4989. this._adapter.UpdateCommand.Connection = this.Connection;
  4990. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Aircrafts] SET [ID] = @ID, [Name] = @Name, [MakeModel] = @MakeModel, [TotalSeats] = @TotalSeats, [EconomySeats] = @EconomySeats, [BusinessSeats] = @BusinessSeats WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ((@IsNull_MakeModel = 1 AND [MakeModel] IS NULL) OR ([MakeModel] = @Original_MakeModel)) AND ([TotalSeats] = @Original_TotalSeats) AND ([EconomySeats] = @Original_EconomySeats) AND ([BusinessSeats] = @Original_BusinessSeats));
  4991. SELECT ID, Name, MakeModel, TotalSeats, EconomySeats, BusinessSeats FROM Aircrafts WHERE (ID = @ID)";
  4992. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4993. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4994. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4995. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MakeModel", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MakeModel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4996. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotalSeats", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotalSeats", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4997. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EconomySeats", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EconomySeats", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4998. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BusinessSeats", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BusinessSeats", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4999. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5000. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5001. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MakeModel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MakeModel", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5002. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MakeModel", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MakeModel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5003. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TotalSeats", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotalSeats", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5004. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EconomySeats", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EconomySeats", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5005. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BusinessSeats", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BusinessSeats", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5006. }
  5007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5009. private void InitConnection() {
  5010. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5011. this._connection.ConnectionString = global::Session_4.Properties.Settings.Default.Session3_4ConnectionString;
  5012. }
  5013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5015. private void InitCommandCollection() {
  5016. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5017. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5018. this._commandCollection[0].Connection = this.Connection;
  5019. this._commandCollection[0].CommandText = "SELECT ID, Name, MakeModel, TotalSeats, EconomySeats, BusinessSeats FROM dbo.Airc" +
  5020. "rafts";
  5021. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5022. }
  5023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5025. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5026. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5027. public virtual int Fill(Session3_4DataSet.AircraftsDataTable dataTable) {
  5028. this.Adapter.SelectCommand = this.CommandCollection[0];
  5029. if ((this.ClearBeforeFill == true)) {
  5030. dataTable.Clear();
  5031. }
  5032. int returnValue = this.Adapter.Fill(dataTable);
  5033. return returnValue;
  5034. }
  5035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5037. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5038. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5039. public virtual Session3_4DataSet.AircraftsDataTable GetData() {
  5040. this.Adapter.SelectCommand = this.CommandCollection[0];
  5041. Session3_4DataSet.AircraftsDataTable dataTable = new Session3_4DataSet.AircraftsDataTable();
  5042. this.Adapter.Fill(dataTable);
  5043. return dataTable;
  5044. }
  5045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5047. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5048. public virtual int Update(Session3_4DataSet.AircraftsDataTable dataTable) {
  5049. return this.Adapter.Update(dataTable);
  5050. }
  5051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5053. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5054. public virtual int Update(Session3_4DataSet dataSet) {
  5055. return this.Adapter.Update(dataSet, "Aircrafts");
  5056. }
  5057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5059. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5060. public virtual int Update(global::System.Data.DataRow dataRow) {
  5061. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5062. dataRow});
  5063. }
  5064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5066. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5067. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5068. return this.Adapter.Update(dataRows);
  5069. }
  5070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5072. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5073. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5074. public virtual int Delete(int Original_ID, string Original_Name, string Original_MakeModel, int Original_TotalSeats, int Original_EconomySeats, int Original_BusinessSeats) {
  5075. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  5076. if ((Original_Name == null)) {
  5077. throw new global::System.ArgumentNullException("Original_Name");
  5078. }
  5079. else {
  5080. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  5081. }
  5082. if ((Original_MakeModel == null)) {
  5083. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  5084. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  5085. }
  5086. else {
  5087. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  5088. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_MakeModel));
  5089. }
  5090. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_TotalSeats));
  5091. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_EconomySeats));
  5092. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_BusinessSeats));
  5093. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5094. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5095. != global::System.Data.ConnectionState.Open)) {
  5096. this.Adapter.DeleteCommand.Connection.Open();
  5097. }
  5098. try {
  5099. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5100. return returnValue;
  5101. }
  5102. finally {
  5103. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5104. this.Adapter.DeleteCommand.Connection.Close();
  5105. }
  5106. }
  5107. }
  5108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5110. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5111. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5112. public virtual int Insert(int ID, string Name, string MakeModel, int TotalSeats, int EconomySeats, int BusinessSeats) {
  5113. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
  5114. if ((Name == null)) {
  5115. throw new global::System.ArgumentNullException("Name");
  5116. }
  5117. else {
  5118. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  5119. }
  5120. if ((MakeModel == null)) {
  5121. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5122. }
  5123. else {
  5124. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(MakeModel));
  5125. }
  5126. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(TotalSeats));
  5127. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(EconomySeats));
  5128. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(BusinessSeats));
  5129. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5130. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5131. != global::System.Data.ConnectionState.Open)) {
  5132. this.Adapter.InsertCommand.Connection.Open();
  5133. }
  5134. try {
  5135. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5136. return returnValue;
  5137. }
  5138. finally {
  5139. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5140. this.Adapter.InsertCommand.Connection.Close();
  5141. }
  5142. }
  5143. }
  5144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5146. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5147. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5148. public virtual int Update(int ID, string Name, string MakeModel, int TotalSeats, int EconomySeats, int BusinessSeats, int Original_ID, string Original_Name, string Original_MakeModel, int Original_TotalSeats, int Original_EconomySeats, int Original_BusinessSeats) {
  5149. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
  5150. if ((Name == null)) {
  5151. throw new global::System.ArgumentNullException("Name");
  5152. }
  5153. else {
  5154. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  5155. }
  5156. if ((MakeModel == null)) {
  5157. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5158. }
  5159. else {
  5160. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(MakeModel));
  5161. }
  5162. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(TotalSeats));
  5163. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(EconomySeats));
  5164. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(BusinessSeats));
  5165. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  5166. if ((Original_Name == null)) {
  5167. throw new global::System.ArgumentNullException("Original_Name");
  5168. }
  5169. else {
  5170. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Name));
  5171. }
  5172. if ((Original_MakeModel == null)) {
  5173. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  5174. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5175. }
  5176. else {
  5177. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  5178. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_MakeModel));
  5179. }
  5180. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_TotalSeats));
  5181. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_EconomySeats));
  5182. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_BusinessSeats));
  5183. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5184. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5185. != global::System.Data.ConnectionState.Open)) {
  5186. this.Adapter.UpdateCommand.Connection.Open();
  5187. }
  5188. try {
  5189. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5190. return returnValue;
  5191. }
  5192. finally {
  5193. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5194. this.Adapter.UpdateCommand.Connection.Close();
  5195. }
  5196. }
  5197. }
  5198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5200. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5201. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5202. public virtual int Update(string Name, string MakeModel, int TotalSeats, int EconomySeats, int BusinessSeats, int Original_ID, string Original_Name, string Original_MakeModel, int Original_TotalSeats, int Original_EconomySeats, int Original_BusinessSeats) {
  5203. return this.Update(Original_ID, Name, MakeModel, TotalSeats, EconomySeats, BusinessSeats, Original_ID, Original_Name, Original_MakeModel, Original_TotalSeats, Original_EconomySeats, Original_BusinessSeats);
  5204. }
  5205. }
  5206. /// <summary>
  5207. ///Represents the connection and commands used to retrieve and save data.
  5208. ///</summary>
  5209. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5210. [global::System.ComponentModel.ToolboxItem(true)]
  5211. [global::System.ComponentModel.DataObjectAttribute(true)]
  5212. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5213. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5214. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5215. public partial class AirportsTableAdapter : global::System.ComponentModel.Component {
  5216. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5217. private global::System.Data.SqlClient.SqlConnection _connection;
  5218. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5219. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5220. private bool _clearBeforeFill;
  5221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5223. public AirportsTableAdapter() {
  5224. this.ClearBeforeFill = true;
  5225. }
  5226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5228. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5229. get {
  5230. if ((this._adapter == null)) {
  5231. this.InitAdapter();
  5232. }
  5233. return this._adapter;
  5234. }
  5235. }
  5236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5238. internal global::System.Data.SqlClient.SqlConnection Connection {
  5239. get {
  5240. if ((this._connection == null)) {
  5241. this.InitConnection();
  5242. }
  5243. return this._connection;
  5244. }
  5245. set {
  5246. this._connection = value;
  5247. if ((this.Adapter.InsertCommand != null)) {
  5248. this.Adapter.InsertCommand.Connection = value;
  5249. }
  5250. if ((this.Adapter.DeleteCommand != null)) {
  5251. this.Adapter.DeleteCommand.Connection = value;
  5252. }
  5253. if ((this.Adapter.UpdateCommand != null)) {
  5254. this.Adapter.UpdateCommand.Connection = value;
  5255. }
  5256. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5257. if ((this.CommandCollection[i] != null)) {
  5258. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5259. }
  5260. }
  5261. }
  5262. }
  5263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5265. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5266. get {
  5267. return this._transaction;
  5268. }
  5269. set {
  5270. this._transaction = value;
  5271. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5272. this.CommandCollection[i].Transaction = this._transaction;
  5273. }
  5274. if (((this.Adapter != null)
  5275. && (this.Adapter.DeleteCommand != null))) {
  5276. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5277. }
  5278. if (((this.Adapter != null)
  5279. && (this.Adapter.InsertCommand != null))) {
  5280. this.Adapter.InsertCommand.Transaction = this._transaction;
  5281. }
  5282. if (((this.Adapter != null)
  5283. && (this.Adapter.UpdateCommand != null))) {
  5284. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5285. }
  5286. }
  5287. }
  5288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5290. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5291. get {
  5292. if ((this._commandCollection == null)) {
  5293. this.InitCommandCollection();
  5294. }
  5295. return this._commandCollection;
  5296. }
  5297. }
  5298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5300. public bool ClearBeforeFill {
  5301. get {
  5302. return this._clearBeforeFill;
  5303. }
  5304. set {
  5305. this._clearBeforeFill = value;
  5306. }
  5307. }
  5308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5310. private void InitAdapter() {
  5311. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5312. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5313. tableMapping.SourceTable = "Table";
  5314. tableMapping.DataSetTable = "Airports";
  5315. tableMapping.ColumnMappings.Add("ID", "ID");
  5316. tableMapping.ColumnMappings.Add("CountryID", "CountryID");
  5317. tableMapping.ColumnMappings.Add("IATACode", "IATACode");
  5318. tableMapping.ColumnMappings.Add("Name", "Name");
  5319. this._adapter.TableMappings.Add(tableMapping);
  5320. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5321. this._adapter.DeleteCommand.Connection = this.Connection;
  5322. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Airports] WHERE (([ID] = @Original_ID) AND ([CountryID] = @Ori" +
  5323. "ginal_CountryID) AND ([IATACode] = @Original_IATACode) AND ((@IsNull_Name = 1 AN" +
  5324. "D [Name] IS NULL) OR ([Name] = @Original_Name)))";
  5325. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5326. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5327. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountryID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5328. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IATACode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IATACode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5329. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5330. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5331. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5332. this._adapter.InsertCommand.Connection = this.Connection;
  5333. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Airports] ([CountryID], [IATACode], [Name]) VALUES (@CountryID" +
  5334. ", @IATACode, @Name);\r\nSELECT ID, CountryID, IATACode, Name FROM Airports WHERE (" +
  5335. "ID = SCOPE_IDENTITY())";
  5336. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5337. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountryID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5338. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IATACode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IATACode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5339. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5340. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5341. this._adapter.UpdateCommand.Connection = this.Connection;
  5342. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Airports] SET [CountryID] = @CountryID, [IATACode] = @IATACode, [Name] = @Name WHERE (([ID] = @Original_ID) AND ([CountryID] = @Original_CountryID) AND ([IATACode] = @Original_IATACode) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)));
  5343. SELECT ID, CountryID, IATACode, Name FROM Airports WHERE (ID = @ID)";
  5344. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5345. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountryID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5346. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IATACode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IATACode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5347. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5348. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5349. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountryID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5350. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IATACode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IATACode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5351. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5352. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5353. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5354. }
  5355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5357. private void InitConnection() {
  5358. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5359. this._connection.ConnectionString = global::Session_4.Properties.Settings.Default.Session3_4ConnectionString;
  5360. }
  5361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5363. private void InitCommandCollection() {
  5364. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5365. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5366. this._commandCollection[0].Connection = this.Connection;
  5367. this._commandCollection[0].CommandText = "SELECT ID, CountryID, IATACode, Name FROM dbo.Airports";
  5368. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5369. }
  5370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5372. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5373. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5374. public virtual int Fill(Session3_4DataSet.AirportsDataTable dataTable) {
  5375. this.Adapter.SelectCommand = this.CommandCollection[0];
  5376. if ((this.ClearBeforeFill == true)) {
  5377. dataTable.Clear();
  5378. }
  5379. int returnValue = this.Adapter.Fill(dataTable);
  5380. return returnValue;
  5381. }
  5382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5384. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5385. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5386. public virtual Session3_4DataSet.AirportsDataTable GetData() {
  5387. this.Adapter.SelectCommand = this.CommandCollection[0];
  5388. Session3_4DataSet.AirportsDataTable dataTable = new Session3_4DataSet.AirportsDataTable();
  5389. this.Adapter.Fill(dataTable);
  5390. return dataTable;
  5391. }
  5392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5394. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5395. public virtual int Update(Session3_4DataSet.AirportsDataTable dataTable) {
  5396. return this.Adapter.Update(dataTable);
  5397. }
  5398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5400. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5401. public virtual int Update(Session3_4DataSet dataSet) {
  5402. return this.Adapter.Update(dataSet, "Airports");
  5403. }
  5404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5406. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5407. public virtual int Update(global::System.Data.DataRow dataRow) {
  5408. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5409. dataRow});
  5410. }
  5411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5413. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5414. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5415. return this.Adapter.Update(dataRows);
  5416. }
  5417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5419. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5420. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5421. public virtual int Delete(int Original_ID, int Original_CountryID, string Original_IATACode, string Original_Name) {
  5422. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  5423. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_CountryID));
  5424. if ((Original_IATACode == null)) {
  5425. throw new global::System.ArgumentNullException("Original_IATACode");
  5426. }
  5427. else {
  5428. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_IATACode));
  5429. }
  5430. if ((Original_Name == null)) {
  5431. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5432. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5433. }
  5434. else {
  5435. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5436. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Name));
  5437. }
  5438. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5439. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5440. != global::System.Data.ConnectionState.Open)) {
  5441. this.Adapter.DeleteCommand.Connection.Open();
  5442. }
  5443. try {
  5444. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5445. return returnValue;
  5446. }
  5447. finally {
  5448. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5449. this.Adapter.DeleteCommand.Connection.Close();
  5450. }
  5451. }
  5452. }
  5453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5455. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5456. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5457. public virtual int Insert(int CountryID, string IATACode, string Name) {
  5458. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(CountryID));
  5459. if ((IATACode == null)) {
  5460. throw new global::System.ArgumentNullException("IATACode");
  5461. }
  5462. else {
  5463. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(IATACode));
  5464. }
  5465. if ((Name == null)) {
  5466. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5467. }
  5468. else {
  5469. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Name));
  5470. }
  5471. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5472. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5473. != global::System.Data.ConnectionState.Open)) {
  5474. this.Adapter.InsertCommand.Connection.Open();
  5475. }
  5476. try {
  5477. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5478. return returnValue;
  5479. }
  5480. finally {
  5481. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5482. this.Adapter.InsertCommand.Connection.Close();
  5483. }
  5484. }
  5485. }
  5486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5488. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5489. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5490. public virtual int Update(int CountryID, string IATACode, string Name, int Original_ID, int Original_CountryID, string Original_IATACode, string Original_Name, int ID) {
  5491. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(CountryID));
  5492. if ((IATACode == null)) {
  5493. throw new global::System.ArgumentNullException("IATACode");
  5494. }
  5495. else {
  5496. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(IATACode));
  5497. }
  5498. if ((Name == null)) {
  5499. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5500. }
  5501. else {
  5502. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Name));
  5503. }
  5504. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID));
  5505. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_CountryID));
  5506. if ((Original_IATACode == null)) {
  5507. throw new global::System.ArgumentNullException("Original_IATACode");
  5508. }
  5509. else {
  5510. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_IATACode));
  5511. }
  5512. if ((Original_Name == null)) {
  5513. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  5514. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  5515. }
  5516. else {
  5517. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  5518. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Name));
  5519. }
  5520. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(ID));
  5521. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5522. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5523. != global::System.Data.ConnectionState.Open)) {
  5524. this.Adapter.UpdateCommand.Connection.Open();
  5525. }
  5526. try {
  5527. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5528. return returnValue;
  5529. }
  5530. finally {
  5531. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5532. this.Adapter.UpdateCommand.Connection.Close();
  5533. }
  5534. }
  5535. }
  5536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5538. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5539. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5540. public virtual int Update(int CountryID, string IATACode, string Name, int Original_ID, int Original_CountryID, string Original_IATACode, string Original_Name) {
  5541. return this.Update(CountryID, IATACode, Name, Original_ID, Original_CountryID, Original_IATACode, Original_Name, Original_ID);
  5542. }
  5543. }
  5544. /// <summary>
  5545. ///Represents the connection and commands used to retrieve and save data.
  5546. ///</summary>
  5547. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5548. [global::System.ComponentModel.ToolboxItem(true)]
  5549. [global::System.ComponentModel.DataObjectAttribute(true)]
  5550. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5551. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5552. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5553. public partial class CabinTypesTableAdapter : global::System.ComponentModel.Component {
  5554. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5555. private global::System.Data.SqlClient.SqlConnection _connection;
  5556. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5557. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5558. private bool _clearBeforeFill;
  5559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5561. public CabinTypesTableAdapter() {
  5562. this.ClearBeforeFill = true;
  5563. }
  5564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5566. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5567. get {
  5568. if ((this._adapter == null)) {
  5569. this.InitAdapter();
  5570. }
  5571. return this._adapter;
  5572. }
  5573. }
  5574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5576. internal global::System.Data.SqlClient.SqlConnection Connection {
  5577. get {
  5578. if ((this._connection == null)) {
  5579. this.InitConnection();
  5580. }
  5581. return this._connection;
  5582. }
  5583. set {
  5584. this._connection = value;
  5585. if ((this.Adapter.InsertCommand != null)) {
  5586. this.Adapter.InsertCommand.Connection = value;
  5587. }
  5588. if ((this.Adapter.DeleteCommand != null)) {
  5589. this.Adapter.DeleteCommand.Connection = value;
  5590. }
  5591. if ((this.Adapter.UpdateCommand != null)) {
  5592. this.Adapter.UpdateCommand.Connection = value;
  5593. }
  5594. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5595. if ((this.CommandCollection[i] != null)) {
  5596. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5597. }
  5598. }
  5599. }
  5600. }
  5601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5603. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5604. get {
  5605. return this._transaction;
  5606. }
  5607. set {
  5608. this._transaction = value;
  5609. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5610. this.CommandCollection[i].Transaction = this._transaction;
  5611. }
  5612. if (((this.Adapter != null)
  5613. && (this.Adapter.DeleteCommand != null))) {
  5614. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5615. }
  5616. if (((this.Adapter != null)
  5617. && (this.Adapter.InsertCommand != null))) {
  5618. this.Adapter.InsertCommand.Transaction = this._transaction;
  5619. }
  5620. if (((this.Adapter != null)
  5621. && (this.Adapter.UpdateCommand != null))) {
  5622. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5623. }
  5624. }
  5625. }
  5626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5628. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5629. get {
  5630. if ((this._commandCollection == null)) {
  5631. this.InitCommandCollection();
  5632. }
  5633. return this._commandCollection;
  5634. }
  5635. }
  5636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5638. public bool ClearBeforeFill {
  5639. get {
  5640. return this._clearBeforeFill;
  5641. }
  5642. set {
  5643. this._clearBeforeFill = value;
  5644. }
  5645. }
  5646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5648. private void InitAdapter() {
  5649. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5650. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5651. tableMapping.SourceTable = "Table";
  5652. tableMapping.DataSetTable = "CabinTypes";
  5653. tableMapping.ColumnMappings.Add("ID", "ID");
  5654. tableMapping.ColumnMappings.Add("Name", "Name");
  5655. this._adapter.TableMappings.Add(tableMapping);
  5656. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5657. this._adapter.DeleteCommand.Connection = this.Connection;
  5658. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[CabinTypes] WHERE (([ID] = @Original_ID) AND ([Name] = @Origin" +
  5659. "al_Name))";
  5660. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5661. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5662. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5663. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5664. this._adapter.InsertCommand.Connection = this.Connection;
  5665. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[CabinTypes] ([Name]) VALUES (@Name);\r\nSELECT ID, Name FROM Cab" +
  5666. "inTypes WHERE (ID = SCOPE_IDENTITY())";
  5667. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5668. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5669. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5670. this._adapter.UpdateCommand.Connection = this.Connection;
  5671. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[CabinTypes] SET [Name] = @Name WHERE (([ID] = @Original_ID) AND ([N" +
  5672. "ame] = @Original_Name));\r\nSELECT ID, Name FROM CabinTypes WHERE (ID = @ID)";
  5673. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5674. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5675. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5676. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5677. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5678. }
  5679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5681. private void InitConnection() {
  5682. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5683. this._connection.ConnectionString = global::Session_4.Properties.Settings.Default.Session3_4ConnectionString;
  5684. }
  5685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5687. private void InitCommandCollection() {
  5688. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5689. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5690. this._commandCollection[0].Connection = this.Connection;
  5691. this._commandCollection[0].CommandText = "SELECT ID, Name FROM dbo.CabinTypes";
  5692. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5693. }
  5694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5696. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5697. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5698. public virtual int Fill(Session3_4DataSet.CabinTypesDataTable dataTable) {
  5699. this.Adapter.SelectCommand = this.CommandCollection[0];
  5700. if ((this.ClearBeforeFill == true)) {
  5701. dataTable.Clear();
  5702. }
  5703. int returnValue = this.Adapter.Fill(dataTable);
  5704. return returnValue;
  5705. }
  5706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5708. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5709. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5710. public virtual Session3_4DataSet.CabinTypesDataTable GetData() {
  5711. this.Adapter.SelectCommand = this.CommandCollection[0];
  5712. Session3_4DataSet.CabinTypesDataTable dataTable = new Session3_4DataSet.CabinTypesDataTable();
  5713. this.Adapter.Fill(dataTable);
  5714. return dataTable;
  5715. }
  5716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5718. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5719. public virtual int Update(Session3_4DataSet.CabinTypesDataTable dataTable) {
  5720. return this.Adapter.Update(dataTable);
  5721. }
  5722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5724. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5725. public virtual int Update(Session3_4DataSet dataSet) {
  5726. return this.Adapter.Update(dataSet, "CabinTypes");
  5727. }
  5728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5730. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5731. public virtual int Update(global::System.Data.DataRow dataRow) {
  5732. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5733. dataRow});
  5734. }
  5735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5737. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5738. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5739. return this.Adapter.Update(dataRows);
  5740. }
  5741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5743. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5744. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5745. public virtual int Delete(int Original_ID, string Original_Name) {
  5746. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  5747. if ((Original_Name == null)) {
  5748. throw new global::System.ArgumentNullException("Original_Name");
  5749. }
  5750. else {
  5751. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  5752. }
  5753. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5754. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5755. != global::System.Data.ConnectionState.Open)) {
  5756. this.Adapter.DeleteCommand.Connection.Open();
  5757. }
  5758. try {
  5759. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5760. return returnValue;
  5761. }
  5762. finally {
  5763. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5764. this.Adapter.DeleteCommand.Connection.Close();
  5765. }
  5766. }
  5767. }
  5768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5770. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5771. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5772. public virtual int Insert(string Name) {
  5773. if ((Name == null)) {
  5774. throw new global::System.ArgumentNullException("Name");
  5775. }
  5776. else {
  5777. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
  5778. }
  5779. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5780. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5781. != global::System.Data.ConnectionState.Open)) {
  5782. this.Adapter.InsertCommand.Connection.Open();
  5783. }
  5784. try {
  5785. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5786. return returnValue;
  5787. }
  5788. finally {
  5789. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5790. this.Adapter.InsertCommand.Connection.Close();
  5791. }
  5792. }
  5793. }
  5794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5796. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5797. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5798. public virtual int Update(string Name, int Original_ID, string Original_Name, int ID) {
  5799. if ((Name == null)) {
  5800. throw new global::System.ArgumentNullException("Name");
  5801. }
  5802. else {
  5803. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
  5804. }
  5805. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_ID));
  5806. if ((Original_Name == null)) {
  5807. throw new global::System.ArgumentNullException("Original_Name");
  5808. }
  5809. else {
  5810. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Name));
  5811. }
  5812. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ID));
  5813. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5814. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5815. != global::System.Data.ConnectionState.Open)) {
  5816. this.Adapter.UpdateCommand.Connection.Open();
  5817. }
  5818. try {
  5819. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5820. return returnValue;
  5821. }
  5822. finally {
  5823. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5824. this.Adapter.UpdateCommand.Connection.Close();
  5825. }
  5826. }
  5827. }
  5828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5830. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5831. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5832. public virtual int Update(string Name, int Original_ID, string Original_Name) {
  5833. return this.Update(Name, Original_ID, Original_Name, Original_ID);
  5834. }
  5835. }
  5836. /// <summary>
  5837. ///Represents the connection and commands used to retrieve and save data.
  5838. ///</summary>
  5839. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5840. [global::System.ComponentModel.ToolboxItem(true)]
  5841. [global::System.ComponentModel.DataObjectAttribute(true)]
  5842. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5843. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5844. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5845. public partial class CountriesTableAdapter : global::System.ComponentModel.Component {
  5846. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5847. private global::System.Data.SqlClient.SqlConnection _connection;
  5848. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5849. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5850. private bool _clearBeforeFill;
  5851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5853. public CountriesTableAdapter() {
  5854. this.ClearBeforeFill = true;
  5855. }
  5856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5858. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5859. get {
  5860. if ((this._adapter == null)) {
  5861. this.InitAdapter();
  5862. }
  5863. return this._adapter;
  5864. }
  5865. }
  5866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5868. internal global::System.Data.SqlClient.SqlConnection Connection {
  5869. get {
  5870. if ((this._connection == null)) {
  5871. this.InitConnection();
  5872. }
  5873. return this._connection;
  5874. }
  5875. set {
  5876. this._connection = value;
  5877. if ((this.Adapter.InsertCommand != null)) {
  5878. this.Adapter.InsertCommand.Connection = value;
  5879. }
  5880. if ((this.Adapter.DeleteCommand != null)) {
  5881. this.Adapter.DeleteCommand.Connection = value;
  5882. }
  5883. if ((this.Adapter.UpdateCommand != null)) {
  5884. this.Adapter.UpdateCommand.Connection = value;
  5885. }
  5886. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5887. if ((this.CommandCollection[i] != null)) {
  5888. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5889. }
  5890. }
  5891. }
  5892. }
  5893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5895. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5896. get {
  5897. return this._transaction;
  5898. }
  5899. set {
  5900. this._transaction = value;
  5901. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5902. this.CommandCollection[i].Transaction = this._transaction;
  5903. }
  5904. if (((this.Adapter != null)
  5905. && (this.Adapter.DeleteCommand != null))) {
  5906. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5907. }
  5908. if (((this.Adapter != null)
  5909. && (this.Adapter.InsertCommand != null))) {
  5910. this.Adapter.InsertCommand.Transaction = this._transaction;
  5911. }
  5912. if (((this.Adapter != null)
  5913. && (this.Adapter.UpdateCommand != null))) {
  5914. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5915. }
  5916. }
  5917. }
  5918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5920. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5921. get {
  5922. if ((this._commandCollection == null)) {
  5923. this.InitCommandCollection();
  5924. }
  5925. return this._commandCollection;
  5926. }
  5927. }
  5928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5930. public bool ClearBeforeFill {
  5931. get {
  5932. return this._clearBeforeFill;
  5933. }
  5934. set {
  5935. this._clearBeforeFill = value;
  5936. }
  5937. }
  5938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5940. private void InitAdapter() {
  5941. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5942. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5943. tableMapping.SourceTable = "Table";
  5944. tableMapping.DataSetTable = "Countries";
  5945. tableMapping.ColumnMappings.Add("ID", "ID");
  5946. tableMapping.ColumnMappings.Add("Name", "Name");
  5947. this._adapter.TableMappings.Add(tableMapping);
  5948. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5949. this._adapter.DeleteCommand.Connection = this.Connection;
  5950. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Countries] WHERE (([ID] = @Original_ID) AND ([Name] = @Origina" +
  5951. "l_Name))";
  5952. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5953. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5954. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5955. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5956. this._adapter.InsertCommand.Connection = this.Connection;
  5957. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Countries] ([Name]) VALUES (@Name);\r\nSELECT ID, Name FROM Coun" +
  5958. "tries WHERE (ID = SCOPE_IDENTITY())";
  5959. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5960. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5961. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5962. this._adapter.UpdateCommand.Connection = this.Connection;
  5963. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Countries] SET [Name] = @Name WHERE (([ID] = @Original_ID) AND ([Na" +
  5964. "me] = @Original_Name));\r\nSELECT ID, Name FROM Countries WHERE (ID = @ID)";
  5965. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5966. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5967. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5968. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5969. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5970. }
  5971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5973. private void InitConnection() {
  5974. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5975. this._connection.ConnectionString = global::Session_4.Properties.Settings.Default.Session3_4ConnectionString;
  5976. }
  5977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5979. private void InitCommandCollection() {
  5980. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5981. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5982. this._commandCollection[0].Connection = this.Connection;
  5983. this._commandCollection[0].CommandText = "SELECT ID, Name FROM dbo.Countries";
  5984. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5985. }
  5986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5988. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5989. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5990. public virtual int Fill(Session3_4DataSet.CountriesDataTable dataTable) {
  5991. this.Adapter.SelectCommand = this.CommandCollection[0];
  5992. if ((this.ClearBeforeFill == true)) {
  5993. dataTable.Clear();
  5994. }
  5995. int returnValue = this.Adapter.Fill(dataTable);
  5996. return returnValue;
  5997. }
  5998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6000. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6001. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6002. public virtual Session3_4DataSet.CountriesDataTable GetData() {
  6003. this.Adapter.SelectCommand = this.CommandCollection[0];
  6004. Session3_4DataSet.CountriesDataTable dataTable = new Session3_4DataSet.CountriesDataTable();
  6005. this.Adapter.Fill(dataTable);
  6006. return dataTable;
  6007. }
  6008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6010. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6011. public virtual int Update(Session3_4DataSet.CountriesDataTable dataTable) {
  6012. return this.Adapter.Update(dataTable);
  6013. }
  6014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6016. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6017. public virtual int Update(Session3_4DataSet dataSet) {
  6018. return this.Adapter.Update(dataSet, "Countries");
  6019. }
  6020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6022. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6023. public virtual int Update(global::System.Data.DataRow dataRow) {
  6024. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6025. dataRow});
  6026. }
  6027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6029. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6030. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6031. return this.Adapter.Update(dataRows);
  6032. }
  6033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6035. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6036. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6037. public virtual int Delete(int Original_ID, string Original_Name) {
  6038. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  6039. if ((Original_Name == null)) {
  6040. throw new global::System.ArgumentNullException("Original_Name");
  6041. }
  6042. else {
  6043. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  6044. }
  6045. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6046. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6047. != global::System.Data.ConnectionState.Open)) {
  6048. this.Adapter.DeleteCommand.Connection.Open();
  6049. }
  6050. try {
  6051. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6052. return returnValue;
  6053. }
  6054. finally {
  6055. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6056. this.Adapter.DeleteCommand.Connection.Close();
  6057. }
  6058. }
  6059. }
  6060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6062. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6063. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6064. public virtual int Insert(string Name) {
  6065. if ((Name == null)) {
  6066. throw new global::System.ArgumentNullException("Name");
  6067. }
  6068. else {
  6069. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
  6070. }
  6071. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6072. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6073. != global::System.Data.ConnectionState.Open)) {
  6074. this.Adapter.InsertCommand.Connection.Open();
  6075. }
  6076. try {
  6077. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6078. return returnValue;
  6079. }
  6080. finally {
  6081. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6082. this.Adapter.InsertCommand.Connection.Close();
  6083. }
  6084. }
  6085. }
  6086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6088. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6089. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6090. public virtual int Update(string Name, int Original_ID, string Original_Name, int ID) {
  6091. if ((Name == null)) {
  6092. throw new global::System.ArgumentNullException("Name");
  6093. }
  6094. else {
  6095. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
  6096. }
  6097. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_ID));
  6098. if ((Original_Name == null)) {
  6099. throw new global::System.ArgumentNullException("Original_Name");
  6100. }
  6101. else {
  6102. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Name));
  6103. }
  6104. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ID));
  6105. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6106. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6107. != global::System.Data.ConnectionState.Open)) {
  6108. this.Adapter.UpdateCommand.Connection.Open();
  6109. }
  6110. try {
  6111. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6112. return returnValue;
  6113. }
  6114. finally {
  6115. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6116. this.Adapter.UpdateCommand.Connection.Close();
  6117. }
  6118. }
  6119. }
  6120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6122. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6123. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6124. public virtual int Update(string Name, int Original_ID, string Original_Name) {
  6125. return this.Update(Name, Original_ID, Original_Name, Original_ID);
  6126. }
  6127. }
  6128. /// <summary>
  6129. ///Represents the connection and commands used to retrieve and save data.
  6130. ///</summary>
  6131. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6132. [global::System.ComponentModel.ToolboxItem(true)]
  6133. [global::System.ComponentModel.DataObjectAttribute(true)]
  6134. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6135. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6136. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6137. public partial class OfficesTableAdapter : global::System.ComponentModel.Component {
  6138. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6139. private global::System.Data.SqlClient.SqlConnection _connection;
  6140. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6141. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6142. private bool _clearBeforeFill;
  6143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6145. public OfficesTableAdapter() {
  6146. this.ClearBeforeFill = true;
  6147. }
  6148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6150. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6151. get {
  6152. if ((this._adapter == null)) {
  6153. this.InitAdapter();
  6154. }
  6155. return this._adapter;
  6156. }
  6157. }
  6158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6160. internal global::System.Data.SqlClient.SqlConnection Connection {
  6161. get {
  6162. if ((this._connection == null)) {
  6163. this.InitConnection();
  6164. }
  6165. return this._connection;
  6166. }
  6167. set {
  6168. this._connection = value;
  6169. if ((this.Adapter.InsertCommand != null)) {
  6170. this.Adapter.InsertCommand.Connection = value;
  6171. }
  6172. if ((this.Adapter.DeleteCommand != null)) {
  6173. this.Adapter.DeleteCommand.Connection = value;
  6174. }
  6175. if ((this.Adapter.UpdateCommand != null)) {
  6176. this.Adapter.UpdateCommand.Connection = value;
  6177. }
  6178. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6179. if ((this.CommandCollection[i] != null)) {
  6180. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6181. }
  6182. }
  6183. }
  6184. }
  6185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6187. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6188. get {
  6189. return this._transaction;
  6190. }
  6191. set {
  6192. this._transaction = value;
  6193. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6194. this.CommandCollection[i].Transaction = this._transaction;
  6195. }
  6196. if (((this.Adapter != null)
  6197. && (this.Adapter.DeleteCommand != null))) {
  6198. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6199. }
  6200. if (((this.Adapter != null)
  6201. && (this.Adapter.InsertCommand != null))) {
  6202. this.Adapter.InsertCommand.Transaction = this._transaction;
  6203. }
  6204. if (((this.Adapter != null)
  6205. && (this.Adapter.UpdateCommand != null))) {
  6206. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6207. }
  6208. }
  6209. }
  6210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6212. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6213. get {
  6214. if ((this._commandCollection == null)) {
  6215. this.InitCommandCollection();
  6216. }
  6217. return this._commandCollection;
  6218. }
  6219. }
  6220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6222. public bool ClearBeforeFill {
  6223. get {
  6224. return this._clearBeforeFill;
  6225. }
  6226. set {
  6227. this._clearBeforeFill = value;
  6228. }
  6229. }
  6230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6232. private void InitAdapter() {
  6233. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6234. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6235. tableMapping.SourceTable = "Table";
  6236. tableMapping.DataSetTable = "Offices";
  6237. tableMapping.ColumnMappings.Add("ID", "ID");
  6238. tableMapping.ColumnMappings.Add("CountryID", "CountryID");
  6239. tableMapping.ColumnMappings.Add("Title", "Title");
  6240. tableMapping.ColumnMappings.Add("Phone", "Phone");
  6241. tableMapping.ColumnMappings.Add("Contact", "Contact");
  6242. this._adapter.TableMappings.Add(tableMapping);
  6243. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6244. this._adapter.DeleteCommand.Connection = this.Connection;
  6245. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Offices] WHERE (([ID] = @Original_ID) AND ([CountryID] = @Orig" +
  6246. "inal_CountryID) AND ([Title] = @Original_Title) AND ([Phone] = @Original_Phone) " +
  6247. "AND ([Contact] = @Original_Contact))";
  6248. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6249. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6250. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountryID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6251. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6252. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6253. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Contact", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Contact", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6254. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6255. this._adapter.InsertCommand.Connection = this.Connection;
  6256. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Offices] ([CountryID], [Title], [Phone], [Contact]) VALUES (@C" +
  6257. "ountryID, @Title, @Phone, @Contact);\r\nSELECT ID, CountryID, Title, Phone, Contac" +
  6258. "t FROM Offices WHERE (ID = SCOPE_IDENTITY())";
  6259. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6260. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountryID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6261. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6262. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6263. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Contact", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Contact", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6264. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6265. this._adapter.UpdateCommand.Connection = this.Connection;
  6266. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Offices] SET [CountryID] = @CountryID, [Title] = @Title, [Phone] = @Phone, [Contact] = @Contact WHERE (([ID] = @Original_ID) AND ([CountryID] = @Original_CountryID) AND ([Title] = @Original_Title) AND ([Phone] = @Original_Phone) AND ([Contact] = @Original_Contact));
  6267. SELECT ID, CountryID, Title, Phone, Contact FROM Offices WHERE (ID = @ID)";
  6268. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6269. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountryID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6270. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6271. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6272. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Contact", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Contact", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6273. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6274. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountryID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6275. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6276. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6277. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Contact", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Contact", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6278. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6279. }
  6280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6282. private void InitConnection() {
  6283. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6284. this._connection.ConnectionString = global::Session_4.Properties.Settings.Default.Session3_4ConnectionString;
  6285. }
  6286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6288. private void InitCommandCollection() {
  6289. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6290. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6291. this._commandCollection[0].Connection = this.Connection;
  6292. this._commandCollection[0].CommandText = "SELECT ID, CountryID, Title, Phone, Contact FROM dbo.Offices";
  6293. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6294. }
  6295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6297. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6298. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6299. public virtual int Fill(Session3_4DataSet.OfficesDataTable dataTable) {
  6300. this.Adapter.SelectCommand = this.CommandCollection[0];
  6301. if ((this.ClearBeforeFill == true)) {
  6302. dataTable.Clear();
  6303. }
  6304. int returnValue = this.Adapter.Fill(dataTable);
  6305. return returnValue;
  6306. }
  6307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6309. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6310. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6311. public virtual Session3_4DataSet.OfficesDataTable GetData() {
  6312. this.Adapter.SelectCommand = this.CommandCollection[0];
  6313. Session3_4DataSet.OfficesDataTable dataTable = new Session3_4DataSet.OfficesDataTable();
  6314. this.Adapter.Fill(dataTable);
  6315. return dataTable;
  6316. }
  6317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6319. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6320. public virtual int Update(Session3_4DataSet.OfficesDataTable dataTable) {
  6321. return this.Adapter.Update(dataTable);
  6322. }
  6323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6325. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6326. public virtual int Update(Session3_4DataSet dataSet) {
  6327. return this.Adapter.Update(dataSet, "Offices");
  6328. }
  6329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6331. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6332. public virtual int Update(global::System.Data.DataRow dataRow) {
  6333. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6334. dataRow});
  6335. }
  6336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6338. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6339. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6340. return this.Adapter.Update(dataRows);
  6341. }
  6342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6344. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6345. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6346. public virtual int Delete(int Original_ID, int Original_CountryID, string Original_Title, string Original_Phone, string Original_Contact) {
  6347. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  6348. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_CountryID));
  6349. if ((Original_Title == null)) {
  6350. throw new global::System.ArgumentNullException("Original_Title");
  6351. }
  6352. else {
  6353. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
  6354. }
  6355. if ((Original_Phone == null)) {
  6356. throw new global::System.ArgumentNullException("Original_Phone");
  6357. }
  6358. else {
  6359. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Phone));
  6360. }
  6361. if ((Original_Contact == null)) {
  6362. throw new global::System.ArgumentNullException("Original_Contact");
  6363. }
  6364. else {
  6365. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Contact));
  6366. }
  6367. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6368. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6369. != global::System.Data.ConnectionState.Open)) {
  6370. this.Adapter.DeleteCommand.Connection.Open();
  6371. }
  6372. try {
  6373. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6374. return returnValue;
  6375. }
  6376. finally {
  6377. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6378. this.Adapter.DeleteCommand.Connection.Close();
  6379. }
  6380. }
  6381. }
  6382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6384. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6385. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6386. public virtual int Insert(int CountryID, string Title, string Phone, string Contact) {
  6387. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(CountryID));
  6388. if ((Title == null)) {
  6389. throw new global::System.ArgumentNullException("Title");
  6390. }
  6391. else {
  6392. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Title));
  6393. }
  6394. if ((Phone == null)) {
  6395. throw new global::System.ArgumentNullException("Phone");
  6396. }
  6397. else {
  6398. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Phone));
  6399. }
  6400. if ((Contact == null)) {
  6401. throw new global::System.ArgumentNullException("Contact");
  6402. }
  6403. else {
  6404. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Contact));
  6405. }
  6406. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6407. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6408. != global::System.Data.ConnectionState.Open)) {
  6409. this.Adapter.InsertCommand.Connection.Open();
  6410. }
  6411. try {
  6412. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6413. return returnValue;
  6414. }
  6415. finally {
  6416. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6417. this.Adapter.InsertCommand.Connection.Close();
  6418. }
  6419. }
  6420. }
  6421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6423. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6424. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6425. public virtual int Update(int CountryID, string Title, string Phone, string Contact, int Original_ID, int Original_CountryID, string Original_Title, string Original_Phone, string Original_Contact, int ID) {
  6426. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(CountryID));
  6427. if ((Title == null)) {
  6428. throw new global::System.ArgumentNullException("Title");
  6429. }
  6430. else {
  6431. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Title));
  6432. }
  6433. if ((Phone == null)) {
  6434. throw new global::System.ArgumentNullException("Phone");
  6435. }
  6436. else {
  6437. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Phone));
  6438. }
  6439. if ((Contact == null)) {
  6440. throw new global::System.ArgumentNullException("Contact");
  6441. }
  6442. else {
  6443. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Contact));
  6444. }
  6445. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  6446. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_CountryID));
  6447. if ((Original_Title == null)) {
  6448. throw new global::System.ArgumentNullException("Original_Title");
  6449. }
  6450. else {
  6451. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Title));
  6452. }
  6453. if ((Original_Phone == null)) {
  6454. throw new global::System.ArgumentNullException("Original_Phone");
  6455. }
  6456. else {
  6457. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Phone));
  6458. }
  6459. if ((Original_Contact == null)) {
  6460. throw new global::System.ArgumentNullException("Original_Contact");
  6461. }
  6462. else {
  6463. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Contact));
  6464. }
  6465. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(ID));
  6466. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6467. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6468. != global::System.Data.ConnectionState.Open)) {
  6469. this.Adapter.UpdateCommand.Connection.Open();
  6470. }
  6471. try {
  6472. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6473. return returnValue;
  6474. }
  6475. finally {
  6476. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6477. this.Adapter.UpdateCommand.Connection.Close();
  6478. }
  6479. }
  6480. }
  6481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6483. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6484. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6485. public virtual int Update(int CountryID, string Title, string Phone, string Contact, int Original_ID, int Original_CountryID, string Original_Title, string Original_Phone, string Original_Contact) {
  6486. return this.Update(CountryID, Title, Phone, Contact, Original_ID, Original_CountryID, Original_Title, Original_Phone, Original_Contact, Original_ID);
  6487. }
  6488. }
  6489. /// <summary>
  6490. ///Represents the connection and commands used to retrieve and save data.
  6491. ///</summary>
  6492. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6493. [global::System.ComponentModel.ToolboxItem(true)]
  6494. [global::System.ComponentModel.DataObjectAttribute(true)]
  6495. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6496. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6497. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6498. public partial class RolesTableAdapter : global::System.ComponentModel.Component {
  6499. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6500. private global::System.Data.SqlClient.SqlConnection _connection;
  6501. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6502. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6503. private bool _clearBeforeFill;
  6504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6506. public RolesTableAdapter() {
  6507. this.ClearBeforeFill = true;
  6508. }
  6509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6511. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6512. get {
  6513. if ((this._adapter == null)) {
  6514. this.InitAdapter();
  6515. }
  6516. return this._adapter;
  6517. }
  6518. }
  6519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6521. internal global::System.Data.SqlClient.SqlConnection Connection {
  6522. get {
  6523. if ((this._connection == null)) {
  6524. this.InitConnection();
  6525. }
  6526. return this._connection;
  6527. }
  6528. set {
  6529. this._connection = value;
  6530. if ((this.Adapter.InsertCommand != null)) {
  6531. this.Adapter.InsertCommand.Connection = value;
  6532. }
  6533. if ((this.Adapter.DeleteCommand != null)) {
  6534. this.Adapter.DeleteCommand.Connection = value;
  6535. }
  6536. if ((this.Adapter.UpdateCommand != null)) {
  6537. this.Adapter.UpdateCommand.Connection = value;
  6538. }
  6539. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6540. if ((this.CommandCollection[i] != null)) {
  6541. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6542. }
  6543. }
  6544. }
  6545. }
  6546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6548. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6549. get {
  6550. return this._transaction;
  6551. }
  6552. set {
  6553. this._transaction = value;
  6554. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6555. this.CommandCollection[i].Transaction = this._transaction;
  6556. }
  6557. if (((this.Adapter != null)
  6558. && (this.Adapter.DeleteCommand != null))) {
  6559. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6560. }
  6561. if (((this.Adapter != null)
  6562. && (this.Adapter.InsertCommand != null))) {
  6563. this.Adapter.InsertCommand.Transaction = this._transaction;
  6564. }
  6565. if (((this.Adapter != null)
  6566. && (this.Adapter.UpdateCommand != null))) {
  6567. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6568. }
  6569. }
  6570. }
  6571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6573. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6574. get {
  6575. if ((this._commandCollection == null)) {
  6576. this.InitCommandCollection();
  6577. }
  6578. return this._commandCollection;
  6579. }
  6580. }
  6581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6583. public bool ClearBeforeFill {
  6584. get {
  6585. return this._clearBeforeFill;
  6586. }
  6587. set {
  6588. this._clearBeforeFill = value;
  6589. }
  6590. }
  6591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6593. private void InitAdapter() {
  6594. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6595. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6596. tableMapping.SourceTable = "Table";
  6597. tableMapping.DataSetTable = "Roles";
  6598. tableMapping.ColumnMappings.Add("ID", "ID");
  6599. tableMapping.ColumnMappings.Add("Title", "Title");
  6600. this._adapter.TableMappings.Add(tableMapping);
  6601. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6602. this._adapter.DeleteCommand.Connection = this.Connection;
  6603. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Roles] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_T" +
  6604. "itle))";
  6605. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6606. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6607. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6608. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6609. this._adapter.InsertCommand.Connection = this.Connection;
  6610. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Roles] ([ID], [Title]) VALUES (@ID, @Title);\r\nSELECT ID, Title" +
  6611. " FROM Roles WHERE (ID = @ID)";
  6612. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6613. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6614. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6615. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6616. this._adapter.UpdateCommand.Connection = this.Connection;
  6617. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Roles] SET [ID] = @ID, [Title] = @Title WHERE (([ID] = @Original_ID" +
  6618. ") AND ([Title] = @Original_Title));\r\nSELECT ID, Title FROM Roles WHERE (ID = @ID" +
  6619. ")";
  6620. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6621. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6622. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6623. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6624. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6625. }
  6626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6628. private void InitConnection() {
  6629. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6630. this._connection.ConnectionString = global::Session_4.Properties.Settings.Default.Session3_4ConnectionString;
  6631. }
  6632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6634. private void InitCommandCollection() {
  6635. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6636. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6637. this._commandCollection[0].Connection = this.Connection;
  6638. this._commandCollection[0].CommandText = "SELECT ID, Title FROM dbo.Roles";
  6639. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6640. }
  6641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6643. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6644. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6645. public virtual int Fill(Session3_4DataSet.RolesDataTable dataTable) {
  6646. this.Adapter.SelectCommand = this.CommandCollection[0];
  6647. if ((this.ClearBeforeFill == true)) {
  6648. dataTable.Clear();
  6649. }
  6650. int returnValue = this.Adapter.Fill(dataTable);
  6651. return returnValue;
  6652. }
  6653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6655. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6656. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6657. public virtual Session3_4DataSet.RolesDataTable GetData() {
  6658. this.Adapter.SelectCommand = this.CommandCollection[0];
  6659. Session3_4DataSet.RolesDataTable dataTable = new Session3_4DataSet.RolesDataTable();
  6660. this.Adapter.Fill(dataTable);
  6661. return dataTable;
  6662. }
  6663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6665. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6666. public virtual int Update(Session3_4DataSet.RolesDataTable dataTable) {
  6667. return this.Adapter.Update(dataTable);
  6668. }
  6669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6671. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6672. public virtual int Update(Session3_4DataSet dataSet) {
  6673. return this.Adapter.Update(dataSet, "Roles");
  6674. }
  6675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6677. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6678. public virtual int Update(global::System.Data.DataRow dataRow) {
  6679. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6680. dataRow});
  6681. }
  6682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6684. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6685. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6686. return this.Adapter.Update(dataRows);
  6687. }
  6688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6690. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6691. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6692. public virtual int Delete(int Original_ID, string Original_Title) {
  6693. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  6694. if ((Original_Title == null)) {
  6695. throw new global::System.ArgumentNullException("Original_Title");
  6696. }
  6697. else {
  6698. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  6699. }
  6700. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6701. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6702. != global::System.Data.ConnectionState.Open)) {
  6703. this.Adapter.DeleteCommand.Connection.Open();
  6704. }
  6705. try {
  6706. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6707. return returnValue;
  6708. }
  6709. finally {
  6710. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6711. this.Adapter.DeleteCommand.Connection.Close();
  6712. }
  6713. }
  6714. }
  6715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6717. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6718. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6719. public virtual int Insert(int ID, string Title) {
  6720. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
  6721. if ((Title == null)) {
  6722. throw new global::System.ArgumentNullException("Title");
  6723. }
  6724. else {
  6725. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Title));
  6726. }
  6727. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6728. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6729. != global::System.Data.ConnectionState.Open)) {
  6730. this.Adapter.InsertCommand.Connection.Open();
  6731. }
  6732. try {
  6733. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6734. return returnValue;
  6735. }
  6736. finally {
  6737. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6738. this.Adapter.InsertCommand.Connection.Close();
  6739. }
  6740. }
  6741. }
  6742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6744. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6745. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6746. public virtual int Update(int ID, string Title, int Original_ID, string Original_Title) {
  6747. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
  6748. if ((Title == null)) {
  6749. throw new global::System.ArgumentNullException("Title");
  6750. }
  6751. else {
  6752. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Title));
  6753. }
  6754. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  6755. if ((Original_Title == null)) {
  6756. throw new global::System.ArgumentNullException("Original_Title");
  6757. }
  6758. else {
  6759. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  6760. }
  6761. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6762. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6763. != global::System.Data.ConnectionState.Open)) {
  6764. this.Adapter.UpdateCommand.Connection.Open();
  6765. }
  6766. try {
  6767. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6768. return returnValue;
  6769. }
  6770. finally {
  6771. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6772. this.Adapter.UpdateCommand.Connection.Close();
  6773. }
  6774. }
  6775. }
  6776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6778. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6779. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6780. public virtual int Update(string Title, int Original_ID, string Original_Title) {
  6781. return this.Update(Original_ID, Title, Original_ID, Original_Title);
  6782. }
  6783. }
  6784. /// <summary>
  6785. ///Represents the connection and commands used to retrieve and save data.
  6786. ///</summary>
  6787. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6788. [global::System.ComponentModel.ToolboxItem(true)]
  6789. [global::System.ComponentModel.DataObjectAttribute(true)]
  6790. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6791. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6792. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6793. public partial class RoutesTableAdapter : global::System.ComponentModel.Component {
  6794. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6795. private global::System.Data.SqlClient.SqlConnection _connection;
  6796. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6797. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6798. private bool _clearBeforeFill;
  6799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6801. public RoutesTableAdapter() {
  6802. this.ClearBeforeFill = true;
  6803. }
  6804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6806. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6807. get {
  6808. if ((this._adapter == null)) {
  6809. this.InitAdapter();
  6810. }
  6811. return this._adapter;
  6812. }
  6813. }
  6814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6816. internal global::System.Data.SqlClient.SqlConnection Connection {
  6817. get {
  6818. if ((this._connection == null)) {
  6819. this.InitConnection();
  6820. }
  6821. return this._connection;
  6822. }
  6823. set {
  6824. this._connection = value;
  6825. if ((this.Adapter.InsertCommand != null)) {
  6826. this.Adapter.InsertCommand.Connection = value;
  6827. }
  6828. if ((this.Adapter.DeleteCommand != null)) {
  6829. this.Adapter.DeleteCommand.Connection = value;
  6830. }
  6831. if ((this.Adapter.UpdateCommand != null)) {
  6832. this.Adapter.UpdateCommand.Connection = value;
  6833. }
  6834. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6835. if ((this.CommandCollection[i] != null)) {
  6836. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6837. }
  6838. }
  6839. }
  6840. }
  6841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6843. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6844. get {
  6845. return this._transaction;
  6846. }
  6847. set {
  6848. this._transaction = value;
  6849. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6850. this.CommandCollection[i].Transaction = this._transaction;
  6851. }
  6852. if (((this.Adapter != null)
  6853. && (this.Adapter.DeleteCommand != null))) {
  6854. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6855. }
  6856. if (((this.Adapter != null)
  6857. && (this.Adapter.InsertCommand != null))) {
  6858. this.Adapter.InsertCommand.Transaction = this._transaction;
  6859. }
  6860. if (((this.Adapter != null)
  6861. && (this.Adapter.UpdateCommand != null))) {
  6862. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6863. }
  6864. }
  6865. }
  6866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6868. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6869. get {
  6870. if ((this._commandCollection == null)) {
  6871. this.InitCommandCollection();
  6872. }
  6873. return this._commandCollection;
  6874. }
  6875. }
  6876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6878. public bool ClearBeforeFill {
  6879. get {
  6880. return this._clearBeforeFill;
  6881. }
  6882. set {
  6883. this._clearBeforeFill = value;
  6884. }
  6885. }
  6886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6888. private void InitAdapter() {
  6889. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6890. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6891. tableMapping.SourceTable = "Table";
  6892. tableMapping.DataSetTable = "Routes";
  6893. tableMapping.ColumnMappings.Add("ID", "ID");
  6894. tableMapping.ColumnMappings.Add("DepartureAirportID", "DepartureAirportID");
  6895. tableMapping.ColumnMappings.Add("ArrivalAirportID", "ArrivalAirportID");
  6896. tableMapping.ColumnMappings.Add("Distance", "Distance");
  6897. tableMapping.ColumnMappings.Add("FlightTime", "FlightTime");
  6898. this._adapter.TableMappings.Add(tableMapping);
  6899. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6900. this._adapter.DeleteCommand.Connection = this.Connection;
  6901. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Routes] WHERE (([ID] = @Original_ID) AND ([DepartureAirportID]" +
  6902. " = @Original_DepartureAirportID) AND ([ArrivalAirportID] = @Original_ArrivalAirp" +
  6903. "ortID) AND ([Distance] = @Original_Distance) AND ([FlightTime] = @Original_Fligh" +
  6904. "tTime))";
  6905. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6906. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6907. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DepartureAirportID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DepartureAirportID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6908. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ArrivalAirportID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ArrivalAirportID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6909. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Distance", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Distance", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6910. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FlightTime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FlightTime", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6911. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6912. this._adapter.InsertCommand.Connection = this.Connection;
  6913. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Routes] ([DepartureAirportID], [ArrivalAirportID], [Distance], [FlightTime]) VALUES (@DepartureAirportID, @ArrivalAirportID, @Distance, @FlightTime);
  6914. SELECT ID, DepartureAirportID, ArrivalAirportID, Distance, FlightTime FROM Routes WHERE (ID = SCOPE_IDENTITY())";
  6915. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6916. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DepartureAirportID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DepartureAirportID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6917. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ArrivalAirportID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ArrivalAirportID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6918. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Distance", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Distance", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6919. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FlightTime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FlightTime", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6920. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6921. this._adapter.UpdateCommand.Connection = this.Connection;
  6922. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Routes] SET [DepartureAirportID] = @DepartureAirportID, [ArrivalAirportID] = @ArrivalAirportID, [Distance] = @Distance, [FlightTime] = @FlightTime WHERE (([ID] = @Original_ID) AND ([DepartureAirportID] = @Original_DepartureAirportID) AND ([ArrivalAirportID] = @Original_ArrivalAirportID) AND ([Distance] = @Original_Distance) AND ([FlightTime] = @Original_FlightTime));
  6923. SELECT ID, DepartureAirportID, ArrivalAirportID, Distance, FlightTime FROM Routes WHERE (ID = @ID)";
  6924. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6925. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DepartureAirportID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DepartureAirportID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6926. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ArrivalAirportID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ArrivalAirportID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6927. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Distance", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Distance", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6928. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FlightTime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FlightTime", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6929. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6930. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DepartureAirportID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DepartureAirportID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6931. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ArrivalAirportID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ArrivalAirportID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6932. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Distance", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Distance", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6933. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FlightTime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FlightTime", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6934. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6935. }
  6936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6938. private void InitConnection() {
  6939. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6940. this._connection.ConnectionString = global::Session_4.Properties.Settings.Default.Session3_4ConnectionString;
  6941. }
  6942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6944. private void InitCommandCollection() {
  6945. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6946. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6947. this._commandCollection[0].Connection = this.Connection;
  6948. this._commandCollection[0].CommandText = "SELECT ID, DepartureAirportID, ArrivalAirportID, Distance, FlightTime FROM dbo.Ro" +
  6949. "utes";
  6950. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6951. }
  6952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6954. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6955. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6956. public virtual int Fill(Session3_4DataSet.RoutesDataTable dataTable) {
  6957. this.Adapter.SelectCommand = this.CommandCollection[0];
  6958. if ((this.ClearBeforeFill == true)) {
  6959. dataTable.Clear();
  6960. }
  6961. int returnValue = this.Adapter.Fill(dataTable);
  6962. return returnValue;
  6963. }
  6964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6966. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6967. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6968. public virtual Session3_4DataSet.RoutesDataTable GetData() {
  6969. this.Adapter.SelectCommand = this.CommandCollection[0];
  6970. Session3_4DataSet.RoutesDataTable dataTable = new Session3_4DataSet.RoutesDataTable();
  6971. this.Adapter.Fill(dataTable);
  6972. return dataTable;
  6973. }
  6974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6976. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6977. public virtual int Update(Session3_4DataSet.RoutesDataTable dataTable) {
  6978. return this.Adapter.Update(dataTable);
  6979. }
  6980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6982. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6983. public virtual int Update(Session3_4DataSet dataSet) {
  6984. return this.Adapter.Update(dataSet, "Routes");
  6985. }
  6986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6988. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6989. public virtual int Update(global::System.Data.DataRow dataRow) {
  6990. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6991. dataRow});
  6992. }
  6993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6995. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6996. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6997. return this.Adapter.Update(dataRows);
  6998. }
  6999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7001. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7002. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7003. public virtual int Delete(int Original_ID, int Original_DepartureAirportID, int Original_ArrivalAirportID, int Original_Distance, int Original_FlightTime) {
  7004. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7005. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_DepartureAirportID));
  7006. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ArrivalAirportID));
  7007. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Distance));
  7008. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_FlightTime));
  7009. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7010. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7011. != global::System.Data.ConnectionState.Open)) {
  7012. this.Adapter.DeleteCommand.Connection.Open();
  7013. }
  7014. try {
  7015. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7016. return returnValue;
  7017. }
  7018. finally {
  7019. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7020. this.Adapter.DeleteCommand.Connection.Close();
  7021. }
  7022. }
  7023. }
  7024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7026. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7027. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7028. public virtual int Insert(int DepartureAirportID, int ArrivalAirportID, int Distance, int FlightTime) {
  7029. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(DepartureAirportID));
  7030. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ArrivalAirportID));
  7031. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Distance));
  7032. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(FlightTime));
  7033. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7034. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7035. != global::System.Data.ConnectionState.Open)) {
  7036. this.Adapter.InsertCommand.Connection.Open();
  7037. }
  7038. try {
  7039. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7040. return returnValue;
  7041. }
  7042. finally {
  7043. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7044. this.Adapter.InsertCommand.Connection.Close();
  7045. }
  7046. }
  7047. }
  7048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7050. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7051. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7052. public virtual int Update(int DepartureAirportID, int ArrivalAirportID, int Distance, int FlightTime, int Original_ID, int Original_DepartureAirportID, int Original_ArrivalAirportID, int Original_Distance, int Original_FlightTime, int ID) {
  7053. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(DepartureAirportID));
  7054. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ArrivalAirportID));
  7055. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Distance));
  7056. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(FlightTime));
  7057. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  7058. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_DepartureAirportID));
  7059. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ArrivalAirportID));
  7060. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Distance));
  7061. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_FlightTime));
  7062. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(ID));
  7063. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7064. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7065. != global::System.Data.ConnectionState.Open)) {
  7066. this.Adapter.UpdateCommand.Connection.Open();
  7067. }
  7068. try {
  7069. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7070. return returnValue;
  7071. }
  7072. finally {
  7073. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7074. this.Adapter.UpdateCommand.Connection.Close();
  7075. }
  7076. }
  7077. }
  7078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7080. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7081. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7082. public virtual int Update(int DepartureAirportID, int ArrivalAirportID, int Distance, int FlightTime, int Original_ID, int Original_DepartureAirportID, int Original_ArrivalAirportID, int Original_Distance, int Original_FlightTime) {
  7083. return this.Update(DepartureAirportID, ArrivalAirportID, Distance, FlightTime, Original_ID, Original_DepartureAirportID, Original_ArrivalAirportID, Original_Distance, Original_FlightTime, Original_ID);
  7084. }
  7085. }
  7086. /// <summary>
  7087. ///Represents the connection and commands used to retrieve and save data.
  7088. ///</summary>
  7089. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7090. [global::System.ComponentModel.ToolboxItem(true)]
  7091. [global::System.ComponentModel.DataObjectAttribute(true)]
  7092. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7093. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7094. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7095. public partial class SchedulesTableAdapter : global::System.ComponentModel.Component {
  7096. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7097. private global::System.Data.SqlClient.SqlConnection _connection;
  7098. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7099. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7100. private bool _clearBeforeFill;
  7101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7103. public SchedulesTableAdapter() {
  7104. this.ClearBeforeFill = true;
  7105. }
  7106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7108. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7109. get {
  7110. if ((this._adapter == null)) {
  7111. this.InitAdapter();
  7112. }
  7113. return this._adapter;
  7114. }
  7115. }
  7116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7118. internal global::System.Data.SqlClient.SqlConnection Connection {
  7119. get {
  7120. if ((this._connection == null)) {
  7121. this.InitConnection();
  7122. }
  7123. return this._connection;
  7124. }
  7125. set {
  7126. this._connection = value;
  7127. if ((this.Adapter.InsertCommand != null)) {
  7128. this.Adapter.InsertCommand.Connection = value;
  7129. }
  7130. if ((this.Adapter.DeleteCommand != null)) {
  7131. this.Adapter.DeleteCommand.Connection = value;
  7132. }
  7133. if ((this.Adapter.UpdateCommand != null)) {
  7134. this.Adapter.UpdateCommand.Connection = value;
  7135. }
  7136. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7137. if ((this.CommandCollection[i] != null)) {
  7138. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7139. }
  7140. }
  7141. }
  7142. }
  7143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7145. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7146. get {
  7147. return this._transaction;
  7148. }
  7149. set {
  7150. this._transaction = value;
  7151. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7152. this.CommandCollection[i].Transaction = this._transaction;
  7153. }
  7154. if (((this.Adapter != null)
  7155. && (this.Adapter.DeleteCommand != null))) {
  7156. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7157. }
  7158. if (((this.Adapter != null)
  7159. && (this.Adapter.InsertCommand != null))) {
  7160. this.Adapter.InsertCommand.Transaction = this._transaction;
  7161. }
  7162. if (((this.Adapter != null)
  7163. && (this.Adapter.UpdateCommand != null))) {
  7164. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7165. }
  7166. }
  7167. }
  7168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7170. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7171. get {
  7172. if ((this._commandCollection == null)) {
  7173. this.InitCommandCollection();
  7174. }
  7175. return this._commandCollection;
  7176. }
  7177. }
  7178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7180. public bool ClearBeforeFill {
  7181. get {
  7182. return this._clearBeforeFill;
  7183. }
  7184. set {
  7185. this._clearBeforeFill = value;
  7186. }
  7187. }
  7188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7190. private void InitAdapter() {
  7191. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7192. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7193. tableMapping.SourceTable = "Table";
  7194. tableMapping.DataSetTable = "Schedules";
  7195. tableMapping.ColumnMappings.Add("ID", "ID");
  7196. tableMapping.ColumnMappings.Add("Date", "Date");
  7197. tableMapping.ColumnMappings.Add("Time", "Time");
  7198. tableMapping.ColumnMappings.Add("AircraftID", "AircraftID");
  7199. tableMapping.ColumnMappings.Add("RouteID", "RouteID");
  7200. tableMapping.ColumnMappings.Add("EconomyPrice", "EconomyPrice");
  7201. tableMapping.ColumnMappings.Add("Confirmed", "Confirmed");
  7202. tableMapping.ColumnMappings.Add("FlightNumber", "FlightNumber");
  7203. this._adapter.TableMappings.Add(tableMapping);
  7204. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7205. this._adapter.DeleteCommand.Connection = this.Connection;
  7206. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Schedules] WHERE (([ID] = @Original_ID) AND ([Date] = @Original_Date) AND ([Time] = @Original_Time) AND ([AircraftID] = @Original_AircraftID) AND ([RouteID] = @Original_RouteID) AND ([EconomyPrice] = @Original_EconomyPrice) AND ([Confirmed] = @Original_Confirmed) AND ((@IsNull_FlightNumber = 1 AND [FlightNumber] IS NULL) OR ([FlightNumber] = @Original_FlightNumber)))";
  7207. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7208. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7209. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Date", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7210. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Time", global::System.Data.SqlDbType.Time, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Time", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7211. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AircraftID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AircraftID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7212. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RouteID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RouteID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7213. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EconomyPrice", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EconomyPrice", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7214. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Confirmed", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Confirmed", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7215. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FlightNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FlightNumber", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7216. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FlightNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FlightNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7217. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7218. this._adapter.InsertCommand.Connection = this.Connection;
  7219. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Schedules] ([Date], [Time], [AircraftID], [RouteID], [EconomyPrice], [Confirmed], [FlightNumber]) VALUES (@Date, @Time, @AircraftID, @RouteID, @EconomyPrice, @Confirmed, @FlightNumber);
  7220. SELECT ID, Date, Time, AircraftID, RouteID, EconomyPrice, Confirmed, FlightNumber FROM Schedules WHERE (ID = SCOPE_IDENTITY())";
  7221. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7222. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Date", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7223. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Time", global::System.Data.SqlDbType.Time, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Time", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7224. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AircraftID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AircraftID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7225. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RouteID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RouteID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7226. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EconomyPrice", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EconomyPrice", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7227. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Confirmed", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Confirmed", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7228. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FlightNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FlightNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7229. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7230. this._adapter.UpdateCommand.Connection = this.Connection;
  7231. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Schedules] SET [Date] = @Date, [Time] = @Time, [AircraftID] = @AircraftID, [RouteID] = @RouteID, [EconomyPrice] = @EconomyPrice, [Confirmed] = @Confirmed, [FlightNumber] = @FlightNumber WHERE (([ID] = @Original_ID) AND ([Date] = @Original_Date) AND ([Time] = @Original_Time) AND ([AircraftID] = @Original_AircraftID) AND ([RouteID] = @Original_RouteID) AND ([EconomyPrice] = @Original_EconomyPrice) AND ([Confirmed] = @Original_Confirmed) AND ((@IsNull_FlightNumber = 1 AND [FlightNumber] IS NULL) OR ([FlightNumber] = @Original_FlightNumber)));
  7232. SELECT ID, Date, Time, AircraftID, RouteID, EconomyPrice, Confirmed, FlightNumber FROM Schedules WHERE (ID = @ID)";
  7233. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7234. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Date", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7235. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Time", global::System.Data.SqlDbType.Time, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Time", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7236. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AircraftID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AircraftID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7237. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RouteID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RouteID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7238. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EconomyPrice", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EconomyPrice", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7239. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Confirmed", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Confirmed", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7240. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FlightNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FlightNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7241. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7242. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Date", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7243. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Time", global::System.Data.SqlDbType.Time, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Time", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7244. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AircraftID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AircraftID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7245. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RouteID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RouteID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7246. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EconomyPrice", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EconomyPrice", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7247. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Confirmed", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Confirmed", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7248. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FlightNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FlightNumber", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7249. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FlightNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FlightNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7250. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7251. }
  7252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7254. private void InitConnection() {
  7255. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7256. this._connection.ConnectionString = global::Session_4.Properties.Settings.Default.Session3_4ConnectionString;
  7257. }
  7258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7260. private void InitCommandCollection() {
  7261. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7262. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7263. this._commandCollection[0].Connection = this.Connection;
  7264. this._commandCollection[0].CommandText = "SELECT ID, Date, Time, AircraftID, RouteID, EconomyPrice, Confirmed, FlightNumber" +
  7265. " FROM dbo.Schedules";
  7266. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7267. }
  7268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7270. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7271. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7272. public virtual int Fill(Session3_4DataSet.SchedulesDataTable dataTable) {
  7273. this.Adapter.SelectCommand = this.CommandCollection[0];
  7274. if ((this.ClearBeforeFill == true)) {
  7275. dataTable.Clear();
  7276. }
  7277. int returnValue = this.Adapter.Fill(dataTable);
  7278. return returnValue;
  7279. }
  7280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7282. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7283. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7284. public virtual Session3_4DataSet.SchedulesDataTable GetData() {
  7285. this.Adapter.SelectCommand = this.CommandCollection[0];
  7286. Session3_4DataSet.SchedulesDataTable dataTable = new Session3_4DataSet.SchedulesDataTable();
  7287. this.Adapter.Fill(dataTable);
  7288. return dataTable;
  7289. }
  7290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7292. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7293. public virtual int Update(Session3_4DataSet.SchedulesDataTable dataTable) {
  7294. return this.Adapter.Update(dataTable);
  7295. }
  7296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7298. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7299. public virtual int Update(Session3_4DataSet dataSet) {
  7300. return this.Adapter.Update(dataSet, "Schedules");
  7301. }
  7302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7304. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7305. public virtual int Update(global::System.Data.DataRow dataRow) {
  7306. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7307. dataRow});
  7308. }
  7309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7311. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7312. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7313. return this.Adapter.Update(dataRows);
  7314. }
  7315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7317. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7318. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7319. public virtual int Delete(int Original_ID, System.DateTime Original_Date, System.TimeSpan Original_Time, int Original_AircraftID, int Original_RouteID, decimal Original_EconomyPrice, bool Original_Confirmed, string Original_FlightNumber) {
  7320. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7321. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_Date));
  7322. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.TimeSpan)(Original_Time));
  7323. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_AircraftID));
  7324. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_RouteID));
  7325. this.Adapter.DeleteCommand.Parameters[5].Value = ((decimal)(Original_EconomyPrice));
  7326. this.Adapter.DeleteCommand.Parameters[6].Value = ((bool)(Original_Confirmed));
  7327. if ((Original_FlightNumber == null)) {
  7328. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  7329. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  7330. }
  7331. else {
  7332. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  7333. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_FlightNumber));
  7334. }
  7335. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7336. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7337. != global::System.Data.ConnectionState.Open)) {
  7338. this.Adapter.DeleteCommand.Connection.Open();
  7339. }
  7340. try {
  7341. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7342. return returnValue;
  7343. }
  7344. finally {
  7345. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7346. this.Adapter.DeleteCommand.Connection.Close();
  7347. }
  7348. }
  7349. }
  7350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7352. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7353. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7354. public virtual int Insert(System.DateTime Date, System.TimeSpan Time, int AircraftID, int RouteID, decimal EconomyPrice, bool Confirmed, string FlightNumber) {
  7355. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(Date));
  7356. this.Adapter.InsertCommand.Parameters[1].Value = ((System.TimeSpan)(Time));
  7357. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(AircraftID));
  7358. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(RouteID));
  7359. this.Adapter.InsertCommand.Parameters[4].Value = ((decimal)(EconomyPrice));
  7360. this.Adapter.InsertCommand.Parameters[5].Value = ((bool)(Confirmed));
  7361. if ((FlightNumber == null)) {
  7362. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  7363. }
  7364. else {
  7365. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(FlightNumber));
  7366. }
  7367. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7368. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7369. != global::System.Data.ConnectionState.Open)) {
  7370. this.Adapter.InsertCommand.Connection.Open();
  7371. }
  7372. try {
  7373. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7374. return returnValue;
  7375. }
  7376. finally {
  7377. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7378. this.Adapter.InsertCommand.Connection.Close();
  7379. }
  7380. }
  7381. }
  7382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7384. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7385. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7386. public virtual int Update(
  7387. System.DateTime Date,
  7388. System.TimeSpan Time,
  7389. int AircraftID,
  7390. int RouteID,
  7391. decimal EconomyPrice,
  7392. bool Confirmed,
  7393. string FlightNumber,
  7394. int Original_ID,
  7395. System.DateTime Original_Date,
  7396. System.TimeSpan Original_Time,
  7397. int Original_AircraftID,
  7398. int Original_RouteID,
  7399. decimal Original_EconomyPrice,
  7400. bool Original_Confirmed,
  7401. string Original_FlightNumber,
  7402. int ID) {
  7403. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(Date));
  7404. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.TimeSpan)(Time));
  7405. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(AircraftID));
  7406. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(RouteID));
  7407. this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(EconomyPrice));
  7408. this.Adapter.UpdateCommand.Parameters[5].Value = ((bool)(Confirmed));
  7409. if ((FlightNumber == null)) {
  7410. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7411. }
  7412. else {
  7413. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(FlightNumber));
  7414. }
  7415. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_ID));
  7416. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_Date));
  7417. this.Adapter.UpdateCommand.Parameters[9].Value = ((System.TimeSpan)(Original_Time));
  7418. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_AircraftID));
  7419. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_RouteID));
  7420. this.Adapter.UpdateCommand.Parameters[12].Value = ((decimal)(Original_EconomyPrice));
  7421. this.Adapter.UpdateCommand.Parameters[13].Value = ((bool)(Original_Confirmed));
  7422. if ((Original_FlightNumber == null)) {
  7423. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  7424. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  7425. }
  7426. else {
  7427. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  7428. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_FlightNumber));
  7429. }
  7430. this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(ID));
  7431. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7432. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7433. != global::System.Data.ConnectionState.Open)) {
  7434. this.Adapter.UpdateCommand.Connection.Open();
  7435. }
  7436. try {
  7437. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7438. return returnValue;
  7439. }
  7440. finally {
  7441. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7442. this.Adapter.UpdateCommand.Connection.Close();
  7443. }
  7444. }
  7445. }
  7446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7448. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7449. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7450. public virtual int Update(System.DateTime Date, System.TimeSpan Time, int AircraftID, int RouteID, decimal EconomyPrice, bool Confirmed, string FlightNumber, int Original_ID, System.DateTime Original_Date, System.TimeSpan Original_Time, int Original_AircraftID, int Original_RouteID, decimal Original_EconomyPrice, bool Original_Confirmed, string Original_FlightNumber) {
  7451. return this.Update(Date, Time, AircraftID, RouteID, EconomyPrice, Confirmed, FlightNumber, Original_ID, Original_Date, Original_Time, Original_AircraftID, Original_RouteID, Original_EconomyPrice, Original_Confirmed, Original_FlightNumber, Original_ID);
  7452. }
  7453. }
  7454. /// <summary>
  7455. ///Represents the connection and commands used to retrieve and save data.
  7456. ///</summary>
  7457. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7458. [global::System.ComponentModel.ToolboxItem(true)]
  7459. [global::System.ComponentModel.DataObjectAttribute(true)]
  7460. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7461. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7462. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7463. public partial class TicketsTableAdapter : global::System.ComponentModel.Component {
  7464. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7465. private global::System.Data.SqlClient.SqlConnection _connection;
  7466. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7467. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7468. private bool _clearBeforeFill;
  7469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7471. public TicketsTableAdapter() {
  7472. this.ClearBeforeFill = true;
  7473. }
  7474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7476. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7477. get {
  7478. if ((this._adapter == null)) {
  7479. this.InitAdapter();
  7480. }
  7481. return this._adapter;
  7482. }
  7483. }
  7484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7486. internal global::System.Data.SqlClient.SqlConnection Connection {
  7487. get {
  7488. if ((this._connection == null)) {
  7489. this.InitConnection();
  7490. }
  7491. return this._connection;
  7492. }
  7493. set {
  7494. this._connection = value;
  7495. if ((this.Adapter.InsertCommand != null)) {
  7496. this.Adapter.InsertCommand.Connection = value;
  7497. }
  7498. if ((this.Adapter.DeleteCommand != null)) {
  7499. this.Adapter.DeleteCommand.Connection = value;
  7500. }
  7501. if ((this.Adapter.UpdateCommand != null)) {
  7502. this.Adapter.UpdateCommand.Connection = value;
  7503. }
  7504. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7505. if ((this.CommandCollection[i] != null)) {
  7506. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7507. }
  7508. }
  7509. }
  7510. }
  7511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7513. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7514. get {
  7515. return this._transaction;
  7516. }
  7517. set {
  7518. this._transaction = value;
  7519. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7520. this.CommandCollection[i].Transaction = this._transaction;
  7521. }
  7522. if (((this.Adapter != null)
  7523. && (this.Adapter.DeleteCommand != null))) {
  7524. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7525. }
  7526. if (((this.Adapter != null)
  7527. && (this.Adapter.InsertCommand != null))) {
  7528. this.Adapter.InsertCommand.Transaction = this._transaction;
  7529. }
  7530. if (((this.Adapter != null)
  7531. && (this.Adapter.UpdateCommand != null))) {
  7532. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7533. }
  7534. }
  7535. }
  7536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7538. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7539. get {
  7540. if ((this._commandCollection == null)) {
  7541. this.InitCommandCollection();
  7542. }
  7543. return this._commandCollection;
  7544. }
  7545. }
  7546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7548. public bool ClearBeforeFill {
  7549. get {
  7550. return this._clearBeforeFill;
  7551. }
  7552. set {
  7553. this._clearBeforeFill = value;
  7554. }
  7555. }
  7556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7558. private void InitAdapter() {
  7559. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7560. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7561. tableMapping.SourceTable = "Table";
  7562. tableMapping.DataSetTable = "Tickets";
  7563. tableMapping.ColumnMappings.Add("ID", "ID");
  7564. tableMapping.ColumnMappings.Add("UserID", "UserID");
  7565. tableMapping.ColumnMappings.Add("ScheduleID", "ScheduleID");
  7566. tableMapping.ColumnMappings.Add("CabinTypeID", "CabinTypeID");
  7567. tableMapping.ColumnMappings.Add("Firstname", "Firstname");
  7568. tableMapping.ColumnMappings.Add("Lastname", "Lastname");
  7569. tableMapping.ColumnMappings.Add("Email", "Email");
  7570. tableMapping.ColumnMappings.Add("Phone", "Phone");
  7571. tableMapping.ColumnMappings.Add("PassportNumber", "PassportNumber");
  7572. tableMapping.ColumnMappings.Add("PassportCountryID", "PassportCountryID");
  7573. tableMapping.ColumnMappings.Add("BookingReference", "BookingReference");
  7574. tableMapping.ColumnMappings.Add("Confirmed", "Confirmed");
  7575. this._adapter.TableMappings.Add(tableMapping);
  7576. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7577. this._adapter.DeleteCommand.Connection = this.Connection;
  7578. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Tickets] WHERE (([ID] = @Original_ID) AND ([UserID] = @Original_UserID) AND ([ScheduleID] = @Original_ScheduleID) AND ([CabinTypeID] = @Original_CabinTypeID) AND ([Firstname] = @Original_Firstname) AND ([Lastname] = @Original_Lastname) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ([PassportNumber] = @Original_PassportNumber) AND ([PassportCountryID] = @Original_PassportCountryID) AND ([BookingReference] = @Original_BookingReference) AND ([Confirmed] = @Original_Confirmed))";
  7579. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7580. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7581. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7582. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ScheduleID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ScheduleID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7583. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CabinTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CabinTypeID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7584. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7585. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7586. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7587. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7588. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7589. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7590. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportCountryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportCountryID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7591. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BookingReference", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BookingReference", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7592. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Confirmed", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Confirmed", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7593. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7594. this._adapter.InsertCommand.Connection = this.Connection;
  7595. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Tickets] ([UserID], [ScheduleID], [CabinTypeID], [Firstname], [Lastname], [Email], [Phone], [PassportNumber], [PassportCountryID], [BookingReference], [Confirmed]) VALUES (@UserID, @ScheduleID, @CabinTypeID, @Firstname, @Lastname, @Email, @Phone, @PassportNumber, @PassportCountryID, @BookingReference, @Confirmed);
  7596. SELECT ID, UserID, ScheduleID, CabinTypeID, Firstname, Lastname, Email, Phone, PassportNumber, PassportCountryID, BookingReference, Confirmed FROM Tickets WHERE (ID = SCOPE_IDENTITY())";
  7597. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7598. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7599. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ScheduleID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ScheduleID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7600. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CabinTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CabinTypeID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7601. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7602. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7603. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7604. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7605. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7606. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportCountryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportCountryID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7607. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BookingReference", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BookingReference", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7608. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Confirmed", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Confirmed", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7609. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7610. this._adapter.UpdateCommand.Connection = this.Connection;
  7611. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Tickets] SET [UserID] = @UserID, [ScheduleID] = @ScheduleID, [CabinTypeID] = @CabinTypeID, [Firstname] = @Firstname, [Lastname] = @Lastname, [Email] = @Email, [Phone] = @Phone, [PassportNumber] = @PassportNumber, [PassportCountryID] = @PassportCountryID, [BookingReference] = @BookingReference, [Confirmed] = @Confirmed WHERE (([ID] = @Original_ID) AND ([UserID] = @Original_UserID) AND ([ScheduleID] = @Original_ScheduleID) AND ([CabinTypeID] = @Original_CabinTypeID) AND ([Firstname] = @Original_Firstname) AND ([Lastname] = @Original_Lastname) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ([PassportNumber] = @Original_PassportNumber) AND ([PassportCountryID] = @Original_PassportCountryID) AND ([BookingReference] = @Original_BookingReference) AND ([Confirmed] = @Original_Confirmed));
  7612. SELECT ID, UserID, ScheduleID, CabinTypeID, Firstname, Lastname, Email, Phone, PassportNumber, PassportCountryID, BookingReference, Confirmed FROM Tickets WHERE (ID = @ID)";
  7613. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7614. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7615. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ScheduleID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ScheduleID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7616. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CabinTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CabinTypeID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7617. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7618. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7619. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7620. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7621. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7622. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportCountryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportCountryID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7623. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BookingReference", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BookingReference", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7624. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Confirmed", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Confirmed", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7625. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7626. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7627. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ScheduleID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ScheduleID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7628. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CabinTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CabinTypeID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7629. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7630. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7631. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7632. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7633. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7634. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7635. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportCountryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportCountryID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7636. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BookingReference", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BookingReference", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7637. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Confirmed", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Confirmed", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7638. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7639. }
  7640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7642. private void InitConnection() {
  7643. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7644. this._connection.ConnectionString = global::Session_4.Properties.Settings.Default.Session3_4ConnectionString;
  7645. }
  7646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7648. private void InitCommandCollection() {
  7649. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7650. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7651. this._commandCollection[0].Connection = this.Connection;
  7652. this._commandCollection[0].CommandText = "SELECT ID, UserID, ScheduleID, CabinTypeID, Firstname, Lastname, Email, Phone, Pa" +
  7653. "ssportNumber, PassportCountryID, BookingReference, Confirmed FROM dbo.Tickets";
  7654. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7655. }
  7656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7658. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7659. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7660. public virtual int Fill(Session3_4DataSet.TicketsDataTable dataTable) {
  7661. this.Adapter.SelectCommand = this.CommandCollection[0];
  7662. if ((this.ClearBeforeFill == true)) {
  7663. dataTable.Clear();
  7664. }
  7665. int returnValue = this.Adapter.Fill(dataTable);
  7666. return returnValue;
  7667. }
  7668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7670. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7671. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7672. public virtual Session3_4DataSet.TicketsDataTable GetData() {
  7673. this.Adapter.SelectCommand = this.CommandCollection[0];
  7674. Session3_4DataSet.TicketsDataTable dataTable = new Session3_4DataSet.TicketsDataTable();
  7675. this.Adapter.Fill(dataTable);
  7676. return dataTable;
  7677. }
  7678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7680. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7681. public virtual int Update(Session3_4DataSet.TicketsDataTable dataTable) {
  7682. return this.Adapter.Update(dataTable);
  7683. }
  7684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7686. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7687. public virtual int Update(Session3_4DataSet dataSet) {
  7688. return this.Adapter.Update(dataSet, "Tickets");
  7689. }
  7690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7692. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7693. public virtual int Update(global::System.Data.DataRow dataRow) {
  7694. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7695. dataRow});
  7696. }
  7697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7699. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7700. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7701. return this.Adapter.Update(dataRows);
  7702. }
  7703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7705. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7706. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7707. public virtual int Delete(int Original_ID, int Original_UserID, int Original_ScheduleID, int Original_CabinTypeID, string Original_Firstname, string Original_Lastname, string Original_Email, string Original_Phone, string Original_PassportNumber, int Original_PassportCountryID, string Original_BookingReference, bool Original_Confirmed) {
  7708. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7709. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_UserID));
  7710. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ScheduleID));
  7711. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_CabinTypeID));
  7712. if ((Original_Firstname == null)) {
  7713. throw new global::System.ArgumentNullException("Original_Firstname");
  7714. }
  7715. else {
  7716. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Firstname));
  7717. }
  7718. if ((Original_Lastname == null)) {
  7719. throw new global::System.ArgumentNullException("Original_Lastname");
  7720. }
  7721. else {
  7722. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Lastname));
  7723. }
  7724. if ((Original_Email == null)) {
  7725. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  7726. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  7727. }
  7728. else {
  7729. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  7730. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Email));
  7731. }
  7732. if ((Original_Phone == null)) {
  7733. throw new global::System.ArgumentNullException("Original_Phone");
  7734. }
  7735. else {
  7736. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Phone));
  7737. }
  7738. if ((Original_PassportNumber == null)) {
  7739. throw new global::System.ArgumentNullException("Original_PassportNumber");
  7740. }
  7741. else {
  7742. this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_PassportNumber));
  7743. }
  7744. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_PassportCountryID));
  7745. if ((Original_BookingReference == null)) {
  7746. throw new global::System.ArgumentNullException("Original_BookingReference");
  7747. }
  7748. else {
  7749. this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_BookingReference));
  7750. }
  7751. this.Adapter.DeleteCommand.Parameters[12].Value = ((bool)(Original_Confirmed));
  7752. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7753. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7754. != global::System.Data.ConnectionState.Open)) {
  7755. this.Adapter.DeleteCommand.Connection.Open();
  7756. }
  7757. try {
  7758. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7759. return returnValue;
  7760. }
  7761. finally {
  7762. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7763. this.Adapter.DeleteCommand.Connection.Close();
  7764. }
  7765. }
  7766. }
  7767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7769. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7770. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7771. public virtual int Insert(int UserID, int ScheduleID, int CabinTypeID, string Firstname, string Lastname, string Email, string Phone, string PassportNumber, int PassportCountryID, string BookingReference, bool Confirmed) {
  7772. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(UserID));
  7773. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ScheduleID));
  7774. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(CabinTypeID));
  7775. if ((Firstname == null)) {
  7776. throw new global::System.ArgumentNullException("Firstname");
  7777. }
  7778. else {
  7779. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Firstname));
  7780. }
  7781. if ((Lastname == null)) {
  7782. throw new global::System.ArgumentNullException("Lastname");
  7783. }
  7784. else {
  7785. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Lastname));
  7786. }
  7787. if ((Email == null)) {
  7788. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  7789. }
  7790. else {
  7791. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Email));
  7792. }
  7793. if ((Phone == null)) {
  7794. throw new global::System.ArgumentNullException("Phone");
  7795. }
  7796. else {
  7797. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  7798. }
  7799. if ((PassportNumber == null)) {
  7800. throw new global::System.ArgumentNullException("PassportNumber");
  7801. }
  7802. else {
  7803. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(PassportNumber));
  7804. }
  7805. this.Adapter.InsertCommand.Parameters[8].Value = ((int)(PassportCountryID));
  7806. if ((BookingReference == null)) {
  7807. throw new global::System.ArgumentNullException("BookingReference");
  7808. }
  7809. else {
  7810. this.Adapter.InsertCommand.Parameters[9].Value = ((string)(BookingReference));
  7811. }
  7812. this.Adapter.InsertCommand.Parameters[10].Value = ((bool)(Confirmed));
  7813. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7814. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7815. != global::System.Data.ConnectionState.Open)) {
  7816. this.Adapter.InsertCommand.Connection.Open();
  7817. }
  7818. try {
  7819. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7820. return returnValue;
  7821. }
  7822. finally {
  7823. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7824. this.Adapter.InsertCommand.Connection.Close();
  7825. }
  7826. }
  7827. }
  7828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7830. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7831. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7832. public virtual int Update(
  7833. int UserID,
  7834. int ScheduleID,
  7835. int CabinTypeID,
  7836. string Firstname,
  7837. string Lastname,
  7838. string Email,
  7839. string Phone,
  7840. string PassportNumber,
  7841. int PassportCountryID,
  7842. string BookingReference,
  7843. bool Confirmed,
  7844. int Original_ID,
  7845. int Original_UserID,
  7846. int Original_ScheduleID,
  7847. int Original_CabinTypeID,
  7848. string Original_Firstname,
  7849. string Original_Lastname,
  7850. string Original_Email,
  7851. string Original_Phone,
  7852. string Original_PassportNumber,
  7853. int Original_PassportCountryID,
  7854. string Original_BookingReference,
  7855. bool Original_Confirmed,
  7856. int ID) {
  7857. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(UserID));
  7858. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ScheduleID));
  7859. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(CabinTypeID));
  7860. if ((Firstname == null)) {
  7861. throw new global::System.ArgumentNullException("Firstname");
  7862. }
  7863. else {
  7864. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Firstname));
  7865. }
  7866. if ((Lastname == null)) {
  7867. throw new global::System.ArgumentNullException("Lastname");
  7868. }
  7869. else {
  7870. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Lastname));
  7871. }
  7872. if ((Email == null)) {
  7873. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7874. }
  7875. else {
  7876. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Email));
  7877. }
  7878. if ((Phone == null)) {
  7879. throw new global::System.ArgumentNullException("Phone");
  7880. }
  7881. else {
  7882. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  7883. }
  7884. if ((PassportNumber == null)) {
  7885. throw new global::System.ArgumentNullException("PassportNumber");
  7886. }
  7887. else {
  7888. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(PassportNumber));
  7889. }
  7890. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(PassportCountryID));
  7891. if ((BookingReference == null)) {
  7892. throw new global::System.ArgumentNullException("BookingReference");
  7893. }
  7894. else {
  7895. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(BookingReference));
  7896. }
  7897. this.Adapter.UpdateCommand.Parameters[10].Value = ((bool)(Confirmed));
  7898. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_ID));
  7899. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_UserID));
  7900. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_ScheduleID));
  7901. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_CabinTypeID));
  7902. if ((Original_Firstname == null)) {
  7903. throw new global::System.ArgumentNullException("Original_Firstname");
  7904. }
  7905. else {
  7906. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Firstname));
  7907. }
  7908. if ((Original_Lastname == null)) {
  7909. throw new global::System.ArgumentNullException("Original_Lastname");
  7910. }
  7911. else {
  7912. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Lastname));
  7913. }
  7914. if ((Original_Email == null)) {
  7915. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  7916. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  7917. }
  7918. else {
  7919. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  7920. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Email));
  7921. }
  7922. if ((Original_Phone == null)) {
  7923. throw new global::System.ArgumentNullException("Original_Phone");
  7924. }
  7925. else {
  7926. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Phone));
  7927. }
  7928. if ((Original_PassportNumber == null)) {
  7929. throw new global::System.ArgumentNullException("Original_PassportNumber");
  7930. }
  7931. else {
  7932. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_PassportNumber));
  7933. }
  7934. this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_PassportCountryID));
  7935. if ((Original_BookingReference == null)) {
  7936. throw new global::System.ArgumentNullException("Original_BookingReference");
  7937. }
  7938. else {
  7939. this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_BookingReference));
  7940. }
  7941. this.Adapter.UpdateCommand.Parameters[23].Value = ((bool)(Original_Confirmed));
  7942. this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(ID));
  7943. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7944. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7945. != global::System.Data.ConnectionState.Open)) {
  7946. this.Adapter.UpdateCommand.Connection.Open();
  7947. }
  7948. try {
  7949. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7950. return returnValue;
  7951. }
  7952. finally {
  7953. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7954. this.Adapter.UpdateCommand.Connection.Close();
  7955. }
  7956. }
  7957. }
  7958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7960. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7961. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7962. public virtual int Update(
  7963. int UserID,
  7964. int ScheduleID,
  7965. int CabinTypeID,
  7966. string Firstname,
  7967. string Lastname,
  7968. string Email,
  7969. string Phone,
  7970. string PassportNumber,
  7971. int PassportCountryID,
  7972. string BookingReference,
  7973. bool Confirmed,
  7974. int Original_ID,
  7975. int Original_UserID,
  7976. int Original_ScheduleID,
  7977. int Original_CabinTypeID,
  7978. string Original_Firstname,
  7979. string Original_Lastname,
  7980. string Original_Email,
  7981. string Original_Phone,
  7982. string Original_PassportNumber,
  7983. int Original_PassportCountryID,
  7984. string Original_BookingReference,
  7985. bool Original_Confirmed) {
  7986. return this.Update(UserID, ScheduleID, CabinTypeID, Firstname, Lastname, Email, Phone, PassportNumber, PassportCountryID, BookingReference, Confirmed, Original_ID, Original_UserID, Original_ScheduleID, Original_CabinTypeID, Original_Firstname, Original_Lastname, Original_Email, Original_Phone, Original_PassportNumber, Original_PassportCountryID, Original_BookingReference, Original_Confirmed, Original_ID);
  7987. }
  7988. }
  7989. /// <summary>
  7990. ///Represents the connection and commands used to retrieve and save data.
  7991. ///</summary>
  7992. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7993. [global::System.ComponentModel.ToolboxItem(true)]
  7994. [global::System.ComponentModel.DataObjectAttribute(true)]
  7995. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7996. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7997. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7998. public partial class UsersTableAdapter : global::System.ComponentModel.Component {
  7999. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8000. private global::System.Data.SqlClient.SqlConnection _connection;
  8001. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8002. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8003. private bool _clearBeforeFill;
  8004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8006. public UsersTableAdapter() {
  8007. this.ClearBeforeFill = true;
  8008. }
  8009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8011. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8012. get {
  8013. if ((this._adapter == null)) {
  8014. this.InitAdapter();
  8015. }
  8016. return this._adapter;
  8017. }
  8018. }
  8019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8021. internal global::System.Data.SqlClient.SqlConnection Connection {
  8022. get {
  8023. if ((this._connection == null)) {
  8024. this.InitConnection();
  8025. }
  8026. return this._connection;
  8027. }
  8028. set {
  8029. this._connection = value;
  8030. if ((this.Adapter.InsertCommand != null)) {
  8031. this.Adapter.InsertCommand.Connection = value;
  8032. }
  8033. if ((this.Adapter.DeleteCommand != null)) {
  8034. this.Adapter.DeleteCommand.Connection = value;
  8035. }
  8036. if ((this.Adapter.UpdateCommand != null)) {
  8037. this.Adapter.UpdateCommand.Connection = value;
  8038. }
  8039. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8040. if ((this.CommandCollection[i] != null)) {
  8041. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8042. }
  8043. }
  8044. }
  8045. }
  8046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8048. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8049. get {
  8050. return this._transaction;
  8051. }
  8052. set {
  8053. this._transaction = value;
  8054. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8055. this.CommandCollection[i].Transaction = this._transaction;
  8056. }
  8057. if (((this.Adapter != null)
  8058. && (this.Adapter.DeleteCommand != null))) {
  8059. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8060. }
  8061. if (((this.Adapter != null)
  8062. && (this.Adapter.InsertCommand != null))) {
  8063. this.Adapter.InsertCommand.Transaction = this._transaction;
  8064. }
  8065. if (((this.Adapter != null)
  8066. && (this.Adapter.UpdateCommand != null))) {
  8067. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8068. }
  8069. }
  8070. }
  8071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8073. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8074. get {
  8075. if ((this._commandCollection == null)) {
  8076. this.InitCommandCollection();
  8077. }
  8078. return this._commandCollection;
  8079. }
  8080. }
  8081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8083. public bool ClearBeforeFill {
  8084. get {
  8085. return this._clearBeforeFill;
  8086. }
  8087. set {
  8088. this._clearBeforeFill = value;
  8089. }
  8090. }
  8091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8093. private void InitAdapter() {
  8094. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8095. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8096. tableMapping.SourceTable = "Table";
  8097. tableMapping.DataSetTable = "Users";
  8098. tableMapping.ColumnMappings.Add("ID", "ID");
  8099. tableMapping.ColumnMappings.Add("RoleID", "RoleID");
  8100. tableMapping.ColumnMappings.Add("Email", "Email");
  8101. tableMapping.ColumnMappings.Add("Password", "Password");
  8102. tableMapping.ColumnMappings.Add("FirstName", "FirstName");
  8103. tableMapping.ColumnMappings.Add("LastName", "LastName");
  8104. tableMapping.ColumnMappings.Add("OfficeID", "OfficeID");
  8105. tableMapping.ColumnMappings.Add("Birthdate", "Birthdate");
  8106. tableMapping.ColumnMappings.Add("Active", "Active");
  8107. this._adapter.TableMappings.Add(tableMapping);
  8108. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8109. this._adapter.DeleteCommand.Connection = this.Connection;
  8110. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Users] WHERE (([ID] = @Original_ID) AND ([RoleID] = @Original_RoleID) AND ([Email] = @Original_Email) AND ([Password] = @Original_Password) AND ((@IsNull_FirstName = 1 AND [FirstName] IS NULL) OR ([FirstName] = @Original_FirstName)) AND ([LastName] = @Original_LastName) AND ((@IsNull_OfficeID = 1 AND [OfficeID] IS NULL) OR ([OfficeID] = @Original_OfficeID)) AND ((@IsNull_Birthdate = 1 AND [Birthdate] IS NULL) OR ([Birthdate] = @Original_Birthdate)) AND ((@IsNull_Active = 1 AND [Active] IS NULL) OR ([Active] = @Original_Active)))";
  8111. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8112. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8113. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RoleID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8114. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8115. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8116. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FirstName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8117. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8118. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8119. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OfficeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OfficeID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8120. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OfficeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OfficeID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8121. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Birthdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8122. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Birthdate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8123. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Active", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8124. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8125. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8126. this._adapter.InsertCommand.Connection = this.Connection;
  8127. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Users] ([RoleID], [Email], [Password], [FirstName], [LastName], [OfficeID], [Birthdate], [Active]) VALUES (@RoleID, @Email, @Password, @FirstName, @LastName, @OfficeID, @Birthdate, @Active);
  8128. SELECT ID, RoleID, Email, Password, FirstName, LastName, OfficeID, Birthdate, Active FROM Users WHERE (ID = SCOPE_IDENTITY())";
  8129. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8130. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RoleID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8131. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8132. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8133. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8134. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8135. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OfficeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OfficeID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8136. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Birthdate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8137. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8138. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8139. this._adapter.UpdateCommand.Connection = this.Connection;
  8140. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Users] SET [RoleID] = @RoleID, [Email] = @Email, [Password] = @Password, [FirstName] = @FirstName, [LastName] = @LastName, [OfficeID] = @OfficeID, [Birthdate] = @Birthdate, [Active] = @Active WHERE (([ID] = @Original_ID) AND ([RoleID] = @Original_RoleID) AND ([Email] = @Original_Email) AND ([Password] = @Original_Password) AND ((@IsNull_FirstName = 1 AND [FirstName] IS NULL) OR ([FirstName] = @Original_FirstName)) AND ([LastName] = @Original_LastName) AND ((@IsNull_OfficeID = 1 AND [OfficeID] IS NULL) OR ([OfficeID] = @Original_OfficeID)) AND ((@IsNull_Birthdate = 1 AND [Birthdate] IS NULL) OR ([Birthdate] = @Original_Birthdate)) AND ((@IsNull_Active = 1 AND [Active] IS NULL) OR ([Active] = @Original_Active)));
  8141. SELECT ID, RoleID, Email, Password, FirstName, LastName, OfficeID, Birthdate, Active FROM Users WHERE (ID = @ID)";
  8142. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8143. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RoleID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8144. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8145. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8146. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8147. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8148. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OfficeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OfficeID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8149. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Birthdate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8150. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8151. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8152. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RoleID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8153. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8154. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8155. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FirstName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8156. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8157. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8158. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OfficeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OfficeID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8159. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OfficeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OfficeID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8160. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Birthdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8161. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Birthdate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8162. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Active", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8163. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8164. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8165. }
  8166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8168. private void InitConnection() {
  8169. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8170. this._connection.ConnectionString = global::Session_4.Properties.Settings.Default.Session3_4ConnectionString;
  8171. }
  8172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8174. private void InitCommandCollection() {
  8175. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8176. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8177. this._commandCollection[0].Connection = this.Connection;
  8178. this._commandCollection[0].CommandText = "SELECT ID, RoleID, Email, Password, FirstName, LastName, OfficeID, Birthdate, Act" +
  8179. "ive FROM dbo.Users";
  8180. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8181. }
  8182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8184. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8185. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8186. public virtual int Fill(Session3_4DataSet.UsersDataTable dataTable) {
  8187. this.Adapter.SelectCommand = this.CommandCollection[0];
  8188. if ((this.ClearBeforeFill == true)) {
  8189. dataTable.Clear();
  8190. }
  8191. int returnValue = this.Adapter.Fill(dataTable);
  8192. return returnValue;
  8193. }
  8194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8196. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8197. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8198. public virtual Session3_4DataSet.UsersDataTable GetData() {
  8199. this.Adapter.SelectCommand = this.CommandCollection[0];
  8200. Session3_4DataSet.UsersDataTable dataTable = new Session3_4DataSet.UsersDataTable();
  8201. this.Adapter.Fill(dataTable);
  8202. return dataTable;
  8203. }
  8204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8206. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8207. public virtual int Update(Session3_4DataSet.UsersDataTable dataTable) {
  8208. return this.Adapter.Update(dataTable);
  8209. }
  8210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8212. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8213. public virtual int Update(Session3_4DataSet dataSet) {
  8214. return this.Adapter.Update(dataSet, "Users");
  8215. }
  8216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8218. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8219. public virtual int Update(global::System.Data.DataRow dataRow) {
  8220. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8221. dataRow});
  8222. }
  8223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8225. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8226. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8227. return this.Adapter.Update(dataRows);
  8228. }
  8229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8231. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8232. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8233. public virtual int Delete(int Original_ID, int Original_RoleID, string Original_Email, string Original_Password, string Original_FirstName, string Original_LastName, global::System.Nullable<int> Original_OfficeID, global::System.Nullable<global::System.DateTime> Original_Birthdate, global::System.Nullable<bool> Original_Active) {
  8234. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8235. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_RoleID));
  8236. if ((Original_Email == null)) {
  8237. throw new global::System.ArgumentNullException("Original_Email");
  8238. }
  8239. else {
  8240. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Email));
  8241. }
  8242. if ((Original_Password == null)) {
  8243. throw new global::System.ArgumentNullException("Original_Password");
  8244. }
  8245. else {
  8246. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Password));
  8247. }
  8248. if ((Original_FirstName == null)) {
  8249. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  8250. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  8251. }
  8252. else {
  8253. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  8254. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_FirstName));
  8255. }
  8256. if ((Original_LastName == null)) {
  8257. throw new global::System.ArgumentNullException("Original_LastName");
  8258. }
  8259. else {
  8260. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_LastName));
  8261. }
  8262. if ((Original_OfficeID.HasValue == true)) {
  8263. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  8264. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_OfficeID.Value));
  8265. }
  8266. else {
  8267. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  8268. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  8269. }
  8270. if ((Original_Birthdate.HasValue == true)) {
  8271. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  8272. this.Adapter.DeleteCommand.Parameters[10].Value = ((System.DateTime)(Original_Birthdate.Value));
  8273. }
  8274. else {
  8275. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  8276. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  8277. }
  8278. if ((Original_Active.HasValue == true)) {
  8279. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  8280. this.Adapter.DeleteCommand.Parameters[12].Value = ((bool)(Original_Active.Value));
  8281. }
  8282. else {
  8283. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  8284. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  8285. }
  8286. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8287. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8288. != global::System.Data.ConnectionState.Open)) {
  8289. this.Adapter.DeleteCommand.Connection.Open();
  8290. }
  8291. try {
  8292. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8293. return returnValue;
  8294. }
  8295. finally {
  8296. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8297. this.Adapter.DeleteCommand.Connection.Close();
  8298. }
  8299. }
  8300. }
  8301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8303. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8304. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8305. public virtual int Insert(int RoleID, string Email, string Password, string FirstName, string LastName, global::System.Nullable<int> OfficeID, global::System.Nullable<global::System.DateTime> Birthdate, global::System.Nullable<bool> Active) {
  8306. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(RoleID));
  8307. if ((Email == null)) {
  8308. throw new global::System.ArgumentNullException("Email");
  8309. }
  8310. else {
  8311. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Email));
  8312. }
  8313. if ((Password == null)) {
  8314. throw new global::System.ArgumentNullException("Password");
  8315. }
  8316. else {
  8317. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Password));
  8318. }
  8319. if ((FirstName == null)) {
  8320. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8321. }
  8322. else {
  8323. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(FirstName));
  8324. }
  8325. if ((LastName == null)) {
  8326. throw new global::System.ArgumentNullException("LastName");
  8327. }
  8328. else {
  8329. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(LastName));
  8330. }
  8331. if ((OfficeID.HasValue == true)) {
  8332. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(OfficeID.Value));
  8333. }
  8334. else {
  8335. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  8336. }
  8337. if ((Birthdate.HasValue == true)) {
  8338. this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(Birthdate.Value));
  8339. }
  8340. else {
  8341. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  8342. }
  8343. if ((Active.HasValue == true)) {
  8344. this.Adapter.InsertCommand.Parameters[7].Value = ((bool)(Active.Value));
  8345. }
  8346. else {
  8347. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  8348. }
  8349. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8350. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8351. != global::System.Data.ConnectionState.Open)) {
  8352. this.Adapter.InsertCommand.Connection.Open();
  8353. }
  8354. try {
  8355. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8356. return returnValue;
  8357. }
  8358. finally {
  8359. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8360. this.Adapter.InsertCommand.Connection.Close();
  8361. }
  8362. }
  8363. }
  8364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8366. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8367. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8368. public virtual int Update(
  8369. int RoleID,
  8370. string Email,
  8371. string Password,
  8372. string FirstName,
  8373. string LastName,
  8374. global::System.Nullable<int> OfficeID,
  8375. global::System.Nullable<global::System.DateTime> Birthdate,
  8376. global::System.Nullable<bool> Active,
  8377. int Original_ID,
  8378. int Original_RoleID,
  8379. string Original_Email,
  8380. string Original_Password,
  8381. string Original_FirstName,
  8382. string Original_LastName,
  8383. global::System.Nullable<int> Original_OfficeID,
  8384. global::System.Nullable<global::System.DateTime> Original_Birthdate,
  8385. global::System.Nullable<bool> Original_Active,
  8386. int ID) {
  8387. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(RoleID));
  8388. if ((Email == null)) {
  8389. throw new global::System.ArgumentNullException("Email");
  8390. }
  8391. else {
  8392. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Email));
  8393. }
  8394. if ((Password == null)) {
  8395. throw new global::System.ArgumentNullException("Password");
  8396. }
  8397. else {
  8398. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Password));
  8399. }
  8400. if ((FirstName == null)) {
  8401. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8402. }
  8403. else {
  8404. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(FirstName));
  8405. }
  8406. if ((LastName == null)) {
  8407. throw new global::System.ArgumentNullException("LastName");
  8408. }
  8409. else {
  8410. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(LastName));
  8411. }
  8412. if ((OfficeID.HasValue == true)) {
  8413. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(OfficeID.Value));
  8414. }
  8415. else {
  8416. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8417. }
  8418. if ((Birthdate.HasValue == true)) {
  8419. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Birthdate.Value));
  8420. }
  8421. else {
  8422. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8423. }
  8424. if ((Active.HasValue == true)) {
  8425. this.Adapter.UpdateCommand.Parameters[7].Value = ((bool)(Active.Value));
  8426. }
  8427. else {
  8428. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  8429. }
  8430. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_ID));
  8431. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_RoleID));
  8432. if ((Original_Email == null)) {
  8433. throw new global::System.ArgumentNullException("Original_Email");
  8434. }
  8435. else {
  8436. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Email));
  8437. }
  8438. if ((Original_Password == null)) {
  8439. throw new global::System.ArgumentNullException("Original_Password");
  8440. }
  8441. else {
  8442. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Password));
  8443. }
  8444. if ((Original_FirstName == null)) {
  8445. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  8446. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  8447. }
  8448. else {
  8449. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  8450. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_FirstName));
  8451. }
  8452. if ((Original_LastName == null)) {
  8453. throw new global::System.ArgumentNullException("Original_LastName");
  8454. }
  8455. else {
  8456. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_LastName));
  8457. }
  8458. if ((Original_OfficeID.HasValue == true)) {
  8459. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  8460. this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_OfficeID.Value));
  8461. }
  8462. else {
  8463. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  8464. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  8465. }
  8466. if ((Original_Birthdate.HasValue == true)) {
  8467. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  8468. this.Adapter.UpdateCommand.Parameters[18].Value = ((System.DateTime)(Original_Birthdate.Value));
  8469. }
  8470. else {
  8471. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  8472. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  8473. }
  8474. if ((Original_Active.HasValue == true)) {
  8475. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
  8476. this.Adapter.UpdateCommand.Parameters[20].Value = ((bool)(Original_Active.Value));
  8477. }
  8478. else {
  8479. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
  8480. this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
  8481. }
  8482. this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(ID));
  8483. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8484. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8485. != global::System.Data.ConnectionState.Open)) {
  8486. this.Adapter.UpdateCommand.Connection.Open();
  8487. }
  8488. try {
  8489. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8490. return returnValue;
  8491. }
  8492. finally {
  8493. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8494. this.Adapter.UpdateCommand.Connection.Close();
  8495. }
  8496. }
  8497. }
  8498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8500. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8501. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8502. public virtual int Update(
  8503. int RoleID,
  8504. string Email,
  8505. string Password,
  8506. string FirstName,
  8507. string LastName,
  8508. global::System.Nullable<int> OfficeID,
  8509. global::System.Nullable<global::System.DateTime> Birthdate,
  8510. global::System.Nullable<bool> Active,
  8511. int Original_ID,
  8512. int Original_RoleID,
  8513. string Original_Email,
  8514. string Original_Password,
  8515. string Original_FirstName,
  8516. string Original_LastName,
  8517. global::System.Nullable<int> Original_OfficeID,
  8518. global::System.Nullable<global::System.DateTime> Original_Birthdate,
  8519. global::System.Nullable<bool> Original_Active) {
  8520. return this.Update(RoleID, Email, Password, FirstName, LastName, OfficeID, Birthdate, Active, Original_ID, Original_RoleID, Original_Email, Original_Password, Original_FirstName, Original_LastName, Original_OfficeID, Original_Birthdate, Original_Active, Original_ID);
  8521. }
  8522. }
  8523. /// <summary>
  8524. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  8525. ///</summary>
  8526. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8527. [global::System.ComponentModel.ToolboxItem(true)]
  8528. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  8529. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8530. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  8531. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  8532. private UpdateOrderOption _updateOrder;
  8533. private AircraftsTableAdapter _aircraftsTableAdapter;
  8534. private AirportsTableAdapter _airportsTableAdapter;
  8535. private CabinTypesTableAdapter _cabinTypesTableAdapter;
  8536. private CountriesTableAdapter _countriesTableAdapter;
  8537. private OfficesTableAdapter _officesTableAdapter;
  8538. private RolesTableAdapter _rolesTableAdapter;
  8539. private RoutesTableAdapter _routesTableAdapter;
  8540. private SchedulesTableAdapter _schedulesTableAdapter;
  8541. private TicketsTableAdapter _ticketsTableAdapter;
  8542. private UsersTableAdapter _usersTableAdapter;
  8543. private bool _backupDataSetBeforeUpdate;
  8544. private global::System.Data.IDbConnection _connection;
  8545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8547. public UpdateOrderOption UpdateOrder {
  8548. get {
  8549. return this._updateOrder;
  8550. }
  8551. set {
  8552. this._updateOrder = value;
  8553. }
  8554. }
  8555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8557. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8558. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8559. "a", "System.Drawing.Design.UITypeEditor")]
  8560. public AircraftsTableAdapter AircraftsTableAdapter {
  8561. get {
  8562. return this._aircraftsTableAdapter;
  8563. }
  8564. set {
  8565. this._aircraftsTableAdapter = value;
  8566. }
  8567. }
  8568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8570. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8571. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8572. "a", "System.Drawing.Design.UITypeEditor")]
  8573. public AirportsTableAdapter AirportsTableAdapter {
  8574. get {
  8575. return this._airportsTableAdapter;
  8576. }
  8577. set {
  8578. this._airportsTableAdapter = value;
  8579. }
  8580. }
  8581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8583. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8584. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8585. "a", "System.Drawing.Design.UITypeEditor")]
  8586. public CabinTypesTableAdapter CabinTypesTableAdapter {
  8587. get {
  8588. return this._cabinTypesTableAdapter;
  8589. }
  8590. set {
  8591. this._cabinTypesTableAdapter = value;
  8592. }
  8593. }
  8594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8596. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8597. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8598. "a", "System.Drawing.Design.UITypeEditor")]
  8599. public CountriesTableAdapter CountriesTableAdapter {
  8600. get {
  8601. return this._countriesTableAdapter;
  8602. }
  8603. set {
  8604. this._countriesTableAdapter = value;
  8605. }
  8606. }
  8607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8609. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8610. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8611. "a", "System.Drawing.Design.UITypeEditor")]
  8612. public OfficesTableAdapter OfficesTableAdapter {
  8613. get {
  8614. return this._officesTableAdapter;
  8615. }
  8616. set {
  8617. this._officesTableAdapter = value;
  8618. }
  8619. }
  8620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8622. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8623. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8624. "a", "System.Drawing.Design.UITypeEditor")]
  8625. public RolesTableAdapter RolesTableAdapter {
  8626. get {
  8627. return this._rolesTableAdapter;
  8628. }
  8629. set {
  8630. this._rolesTableAdapter = value;
  8631. }
  8632. }
  8633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8635. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8636. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8637. "a", "System.Drawing.Design.UITypeEditor")]
  8638. public RoutesTableAdapter RoutesTableAdapter {
  8639. get {
  8640. return this._routesTableAdapter;
  8641. }
  8642. set {
  8643. this._routesTableAdapter = value;
  8644. }
  8645. }
  8646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8648. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8649. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8650. "a", "System.Drawing.Design.UITypeEditor")]
  8651. public SchedulesTableAdapter SchedulesTableAdapter {
  8652. get {
  8653. return this._schedulesTableAdapter;
  8654. }
  8655. set {
  8656. this._schedulesTableAdapter = value;
  8657. }
  8658. }
  8659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8661. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8662. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8663. "a", "System.Drawing.Design.UITypeEditor")]
  8664. public TicketsTableAdapter TicketsTableAdapter {
  8665. get {
  8666. return this._ticketsTableAdapter;
  8667. }
  8668. set {
  8669. this._ticketsTableAdapter = value;
  8670. }
  8671. }
  8672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8674. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8675. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8676. "a", "System.Drawing.Design.UITypeEditor")]
  8677. public UsersTableAdapter UsersTableAdapter {
  8678. get {
  8679. return this._usersTableAdapter;
  8680. }
  8681. set {
  8682. this._usersTableAdapter = value;
  8683. }
  8684. }
  8685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8687. public bool BackupDataSetBeforeUpdate {
  8688. get {
  8689. return this._backupDataSetBeforeUpdate;
  8690. }
  8691. set {
  8692. this._backupDataSetBeforeUpdate = value;
  8693. }
  8694. }
  8695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8697. [global::System.ComponentModel.Browsable(false)]
  8698. public global::System.Data.IDbConnection Connection {
  8699. get {
  8700. if ((this._connection != null)) {
  8701. return this._connection;
  8702. }
  8703. if (((this._aircraftsTableAdapter != null)
  8704. && (this._aircraftsTableAdapter.Connection != null))) {
  8705. return this._aircraftsTableAdapter.Connection;
  8706. }
  8707. if (((this._airportsTableAdapter != null)
  8708. && (this._airportsTableAdapter.Connection != null))) {
  8709. return this._airportsTableAdapter.Connection;
  8710. }
  8711. if (((this._cabinTypesTableAdapter != null)
  8712. && (this._cabinTypesTableAdapter.Connection != null))) {
  8713. return this._cabinTypesTableAdapter.Connection;
  8714. }
  8715. if (((this._countriesTableAdapter != null)
  8716. && (this._countriesTableAdapter.Connection != null))) {
  8717. return this._countriesTableAdapter.Connection;
  8718. }
  8719. if (((this._officesTableAdapter != null)
  8720. && (this._officesTableAdapter.Connection != null))) {
  8721. return this._officesTableAdapter.Connection;
  8722. }
  8723. if (((this._rolesTableAdapter != null)
  8724. && (this._rolesTableAdapter.Connection != null))) {
  8725. return this._rolesTableAdapter.Connection;
  8726. }
  8727. if (((this._routesTableAdapter != null)
  8728. && (this._routesTableAdapter.Connection != null))) {
  8729. return this._routesTableAdapter.Connection;
  8730. }
  8731. if (((this._schedulesTableAdapter != null)
  8732. && (this._schedulesTableAdapter.Connection != null))) {
  8733. return this._schedulesTableAdapter.Connection;
  8734. }
  8735. if (((this._ticketsTableAdapter != null)
  8736. && (this._ticketsTableAdapter.Connection != null))) {
  8737. return this._ticketsTableAdapter.Connection;
  8738. }
  8739. if (((this._usersTableAdapter != null)
  8740. && (this._usersTableAdapter.Connection != null))) {
  8741. return this._usersTableAdapter.Connection;
  8742. }
  8743. return null;
  8744. }
  8745. set {
  8746. this._connection = value;
  8747. }
  8748. }
  8749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8751. [global::System.ComponentModel.Browsable(false)]
  8752. public int TableAdapterInstanceCount {
  8753. get {
  8754. int count = 0;
  8755. if ((this._aircraftsTableAdapter != null)) {
  8756. count = (count + 1);
  8757. }
  8758. if ((this._airportsTableAdapter != null)) {
  8759. count = (count + 1);
  8760. }
  8761. if ((this._cabinTypesTableAdapter != null)) {
  8762. count = (count + 1);
  8763. }
  8764. if ((this._countriesTableAdapter != null)) {
  8765. count = (count + 1);
  8766. }
  8767. if ((this._officesTableAdapter != null)) {
  8768. count = (count + 1);
  8769. }
  8770. if ((this._rolesTableAdapter != null)) {
  8771. count = (count + 1);
  8772. }
  8773. if ((this._routesTableAdapter != null)) {
  8774. count = (count + 1);
  8775. }
  8776. if ((this._schedulesTableAdapter != null)) {
  8777. count = (count + 1);
  8778. }
  8779. if ((this._ticketsTableAdapter != null)) {
  8780. count = (count + 1);
  8781. }
  8782. if ((this._usersTableAdapter != null)) {
  8783. count = (count + 1);
  8784. }
  8785. return count;
  8786. }
  8787. }
  8788. /// <summary>
  8789. ///Update rows in top-down order.
  8790. ///</summary>
  8791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8793. private int UpdateUpdatedRows(Session3_4DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  8794. int result = 0;
  8795. if ((this._countriesTableAdapter != null)) {
  8796. global::System.Data.DataRow[] updatedRows = dataSet.Countries.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8797. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8798. if (((updatedRows != null)
  8799. && (0 < updatedRows.Length))) {
  8800. result = (result + this._countriesTableAdapter.Update(updatedRows));
  8801. allChangedRows.AddRange(updatedRows);
  8802. }
  8803. }
  8804. if ((this._airportsTableAdapter != null)) {
  8805. global::System.Data.DataRow[] updatedRows = dataSet.Airports.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8806. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8807. if (((updatedRows != null)
  8808. && (0 < updatedRows.Length))) {
  8809. result = (result + this._airportsTableAdapter.Update(updatedRows));
  8810. allChangedRows.AddRange(updatedRows);
  8811. }
  8812. }
  8813. if ((this._aircraftsTableAdapter != null)) {
  8814. global::System.Data.DataRow[] updatedRows = dataSet.Aircrafts.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8815. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8816. if (((updatedRows != null)
  8817. && (0 < updatedRows.Length))) {
  8818. result = (result + this._aircraftsTableAdapter.Update(updatedRows));
  8819. allChangedRows.AddRange(updatedRows);
  8820. }
  8821. }
  8822. if ((this._officesTableAdapter != null)) {
  8823. global::System.Data.DataRow[] updatedRows = dataSet.Offices.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8824. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8825. if (((updatedRows != null)
  8826. && (0 < updatedRows.Length))) {
  8827. result = (result + this._officesTableAdapter.Update(updatedRows));
  8828. allChangedRows.AddRange(updatedRows);
  8829. }
  8830. }
  8831. if ((this._rolesTableAdapter != null)) {
  8832. global::System.Data.DataRow[] updatedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8833. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8834. if (((updatedRows != null)
  8835. && (0 < updatedRows.Length))) {
  8836. result = (result + this._rolesTableAdapter.Update(updatedRows));
  8837. allChangedRows.AddRange(updatedRows);
  8838. }
  8839. }
  8840. if ((this._routesTableAdapter != null)) {
  8841. global::System.Data.DataRow[] updatedRows = dataSet.Routes.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8842. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8843. if (((updatedRows != null)
  8844. && (0 < updatedRows.Length))) {
  8845. result = (result + this._routesTableAdapter.Update(updatedRows));
  8846. allChangedRows.AddRange(updatedRows);
  8847. }
  8848. }
  8849. if ((this._cabinTypesTableAdapter != null)) {
  8850. global::System.Data.DataRow[] updatedRows = dataSet.CabinTypes.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8851. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8852. if (((updatedRows != null)
  8853. && (0 < updatedRows.Length))) {
  8854. result = (result + this._cabinTypesTableAdapter.Update(updatedRows));
  8855. allChangedRows.AddRange(updatedRows);
  8856. }
  8857. }
  8858. if ((this._schedulesTableAdapter != null)) {
  8859. global::System.Data.DataRow[] updatedRows = dataSet.Schedules.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8860. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8861. if (((updatedRows != null)
  8862. && (0 < updatedRows.Length))) {
  8863. result = (result + this._schedulesTableAdapter.Update(updatedRows));
  8864. allChangedRows.AddRange(updatedRows);
  8865. }
  8866. }
  8867. if ((this._usersTableAdapter != null)) {
  8868. global::System.Data.DataRow[] updatedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8869. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8870. if (((updatedRows != null)
  8871. && (0 < updatedRows.Length))) {
  8872. result = (result + this._usersTableAdapter.Update(updatedRows));
  8873. allChangedRows.AddRange(updatedRows);
  8874. }
  8875. }
  8876. if ((this._ticketsTableAdapter != null)) {
  8877. global::System.Data.DataRow[] updatedRows = dataSet.Tickets.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8878. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8879. if (((updatedRows != null)
  8880. && (0 < updatedRows.Length))) {
  8881. result = (result + this._ticketsTableAdapter.Update(updatedRows));
  8882. allChangedRows.AddRange(updatedRows);
  8883. }
  8884. }
  8885. return result;
  8886. }
  8887. /// <summary>
  8888. ///Insert rows in top-down order.
  8889. ///</summary>
  8890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8892. private int UpdateInsertedRows(Session3_4DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  8893. int result = 0;
  8894. if ((this._countriesTableAdapter != null)) {
  8895. global::System.Data.DataRow[] addedRows = dataSet.Countries.Select(null, null, global::System.Data.DataViewRowState.Added);
  8896. if (((addedRows != null)
  8897. && (0 < addedRows.Length))) {
  8898. result = (result + this._countriesTableAdapter.Update(addedRows));
  8899. allAddedRows.AddRange(addedRows);
  8900. }
  8901. }
  8902. if ((this._airportsTableAdapter != null)) {
  8903. global::System.Data.DataRow[] addedRows = dataSet.Airports.Select(null, null, global::System.Data.DataViewRowState.Added);
  8904. if (((addedRows != null)
  8905. && (0 < addedRows.Length))) {
  8906. result = (result + this._airportsTableAdapter.Update(addedRows));
  8907. allAddedRows.AddRange(addedRows);
  8908. }
  8909. }
  8910. if ((this._aircraftsTableAdapter != null)) {
  8911. global::System.Data.DataRow[] addedRows = dataSet.Aircrafts.Select(null, null, global::System.Data.DataViewRowState.Added);
  8912. if (((addedRows != null)
  8913. && (0 < addedRows.Length))) {
  8914. result = (result + this._aircraftsTableAdapter.Update(addedRows));
  8915. allAddedRows.AddRange(addedRows);
  8916. }
  8917. }
  8918. if ((this._officesTableAdapter != null)) {
  8919. global::System.Data.DataRow[] addedRows = dataSet.Offices.Select(null, null, global::System.Data.DataViewRowState.Added);
  8920. if (((addedRows != null)
  8921. && (0 < addedRows.Length))) {
  8922. result = (result + this._officesTableAdapter.Update(addedRows));
  8923. allAddedRows.AddRange(addedRows);
  8924. }
  8925. }
  8926. if ((this._rolesTableAdapter != null)) {
  8927. global::System.Data.DataRow[] addedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.Added);
  8928. if (((addedRows != null)
  8929. && (0 < addedRows.Length))) {
  8930. result = (result + this._rolesTableAdapter.Update(addedRows));
  8931. allAddedRows.AddRange(addedRows);
  8932. }
  8933. }
  8934. if ((this._routesTableAdapter != null)) {
  8935. global::System.Data.DataRow[] addedRows = dataSet.Routes.Select(null, null, global::System.Data.DataViewRowState.Added);
  8936. if (((addedRows != null)
  8937. && (0 < addedRows.Length))) {
  8938. result = (result + this._routesTableAdapter.Update(addedRows));
  8939. allAddedRows.AddRange(addedRows);
  8940. }
  8941. }
  8942. if ((this._cabinTypesTableAdapter != null)) {
  8943. global::System.Data.DataRow[] addedRows = dataSet.CabinTypes.Select(null, null, global::System.Data.DataViewRowState.Added);
  8944. if (((addedRows != null)
  8945. && (0 < addedRows.Length))) {
  8946. result = (result + this._cabinTypesTableAdapter.Update(addedRows));
  8947. allAddedRows.AddRange(addedRows);
  8948. }
  8949. }
  8950. if ((this._schedulesTableAdapter != null)) {
  8951. global::System.Data.DataRow[] addedRows = dataSet.Schedules.Select(null, null, global::System.Data.DataViewRowState.Added);
  8952. if (((addedRows != null)
  8953. && (0 < addedRows.Length))) {
  8954. result = (result + this._schedulesTableAdapter.Update(addedRows));
  8955. allAddedRows.AddRange(addedRows);
  8956. }
  8957. }
  8958. if ((this._usersTableAdapter != null)) {
  8959. global::System.Data.DataRow[] addedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Added);
  8960. if (((addedRows != null)
  8961. && (0 < addedRows.Length))) {
  8962. result = (result + this._usersTableAdapter.Update(addedRows));
  8963. allAddedRows.AddRange(addedRows);
  8964. }
  8965. }
  8966. if ((this._ticketsTableAdapter != null)) {
  8967. global::System.Data.DataRow[] addedRows = dataSet.Tickets.Select(null, null, global::System.Data.DataViewRowState.Added);
  8968. if (((addedRows != null)
  8969. && (0 < addedRows.Length))) {
  8970. result = (result + this._ticketsTableAdapter.Update(addedRows));
  8971. allAddedRows.AddRange(addedRows);
  8972. }
  8973. }
  8974. return result;
  8975. }
  8976. /// <summary>
  8977. ///Delete rows in bottom-up order.
  8978. ///</summary>
  8979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8981. private int UpdateDeletedRows(Session3_4DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  8982. int result = 0;
  8983. if ((this._ticketsTableAdapter != null)) {
  8984. global::System.Data.DataRow[] deletedRows = dataSet.Tickets.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8985. if (((deletedRows != null)
  8986. && (0 < deletedRows.Length))) {
  8987. result = (result + this._ticketsTableAdapter.Update(deletedRows));
  8988. allChangedRows.AddRange(deletedRows);
  8989. }
  8990. }
  8991. if ((this._usersTableAdapter != null)) {
  8992. global::System.Data.DataRow[] deletedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8993. if (((deletedRows != null)
  8994. && (0 < deletedRows.Length))) {
  8995. result = (result + this._usersTableAdapter.Update(deletedRows));
  8996. allChangedRows.AddRange(deletedRows);
  8997. }
  8998. }
  8999. if ((this._schedulesTableAdapter != null)) {
  9000. global::System.Data.DataRow[] deletedRows = dataSet.Schedules.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9001. if (((deletedRows != null)
  9002. && (0 < deletedRows.Length))) {
  9003. result = (result + this._schedulesTableAdapter.Update(deletedRows));
  9004. allChangedRows.AddRange(deletedRows);
  9005. }
  9006. }
  9007. if ((this._cabinTypesTableAdapter != null)) {
  9008. global::System.Data.DataRow[] deletedRows = dataSet.CabinTypes.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9009. if (((deletedRows != null)
  9010. && (0 < deletedRows.Length))) {
  9011. result = (result + this._cabinTypesTableAdapter.Update(deletedRows));
  9012. allChangedRows.AddRange(deletedRows);
  9013. }
  9014. }
  9015. if ((this._routesTableAdapter != null)) {
  9016. global::System.Data.DataRow[] deletedRows = dataSet.Routes.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9017. if (((deletedRows != null)
  9018. && (0 < deletedRows.Length))) {
  9019. result = (result + this._routesTableAdapter.Update(deletedRows));
  9020. allChangedRows.AddRange(deletedRows);
  9021. }
  9022. }
  9023. if ((this._rolesTableAdapter != null)) {
  9024. global::System.Data.DataRow[] deletedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9025. if (((deletedRows != null)
  9026. && (0 < deletedRows.Length))) {
  9027. result = (result + this._rolesTableAdapter.Update(deletedRows));
  9028. allChangedRows.AddRange(deletedRows);
  9029. }
  9030. }
  9031. if ((this._officesTableAdapter != null)) {
  9032. global::System.Data.DataRow[] deletedRows = dataSet.Offices.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9033. if (((deletedRows != null)
  9034. && (0 < deletedRows.Length))) {
  9035. result = (result + this._officesTableAdapter.Update(deletedRows));
  9036. allChangedRows.AddRange(deletedRows);
  9037. }
  9038. }
  9039. if ((this._aircraftsTableAdapter != null)) {
  9040. global::System.Data.DataRow[] deletedRows = dataSet.Aircrafts.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9041. if (((deletedRows != null)
  9042. && (0 < deletedRows.Length))) {
  9043. result = (result + this._aircraftsTableAdapter.Update(deletedRows));
  9044. allChangedRows.AddRange(deletedRows);
  9045. }
  9046. }
  9047. if ((this._airportsTableAdapter != null)) {
  9048. global::System.Data.DataRow[] deletedRows = dataSet.Airports.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9049. if (((deletedRows != null)
  9050. && (0 < deletedRows.Length))) {
  9051. result = (result + this._airportsTableAdapter.Update(deletedRows));
  9052. allChangedRows.AddRange(deletedRows);
  9053. }
  9054. }
  9055. if ((this._countriesTableAdapter != null)) {
  9056. global::System.Data.DataRow[] deletedRows = dataSet.Countries.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9057. if (((deletedRows != null)
  9058. && (0 < deletedRows.Length))) {
  9059. result = (result + this._countriesTableAdapter.Update(deletedRows));
  9060. allChangedRows.AddRange(deletedRows);
  9061. }
  9062. }
  9063. return result;
  9064. }
  9065. /// <summary>
  9066. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  9067. ///</summary>
  9068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9070. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  9071. if (((updatedRows == null)
  9072. || (updatedRows.Length < 1))) {
  9073. return updatedRows;
  9074. }
  9075. if (((allAddedRows == null)
  9076. || (allAddedRows.Count < 1))) {
  9077. return updatedRows;
  9078. }
  9079. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  9080. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  9081. global::System.Data.DataRow row = updatedRows[i];
  9082. if ((allAddedRows.Contains(row) == false)) {
  9083. realUpdatedRows.Add(row);
  9084. }
  9085. }
  9086. return realUpdatedRows.ToArray();
  9087. }
  9088. /// <summary>
  9089. ///Update all changes to the dataset.
  9090. ///</summary>
  9091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9093. public virtual int UpdateAll(Session3_4DataSet dataSet) {
  9094. if ((dataSet == null)) {
  9095. throw new global::System.ArgumentNullException("dataSet");
  9096. }
  9097. if ((dataSet.HasChanges() == false)) {
  9098. return 0;
  9099. }
  9100. if (((this._aircraftsTableAdapter != null)
  9101. && (this.MatchTableAdapterConnection(this._aircraftsTableAdapter.Connection) == false))) {
  9102. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9103. "r, должны использовать одинаковую строку подключения.");
  9104. }
  9105. if (((this._airportsTableAdapter != null)
  9106. && (this.MatchTableAdapterConnection(this._airportsTableAdapter.Connection) == false))) {
  9107. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9108. "r, должны использовать одинаковую строку подключения.");
  9109. }
  9110. if (((this._cabinTypesTableAdapter != null)
  9111. && (this.MatchTableAdapterConnection(this._cabinTypesTableAdapter.Connection) == false))) {
  9112. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9113. "r, должны использовать одинаковую строку подключения.");
  9114. }
  9115. if (((this._countriesTableAdapter != null)
  9116. && (this.MatchTableAdapterConnection(this._countriesTableAdapter.Connection) == false))) {
  9117. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9118. "r, должны использовать одинаковую строку подключения.");
  9119. }
  9120. if (((this._officesTableAdapter != null)
  9121. && (this.MatchTableAdapterConnection(this._officesTableAdapter.Connection) == false))) {
  9122. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9123. "r, должны использовать одинаковую строку подключения.");
  9124. }
  9125. if (((this._rolesTableAdapter != null)
  9126. && (this.MatchTableAdapterConnection(this._rolesTableAdapter.Connection) == false))) {
  9127. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9128. "r, должны использовать одинаковую строку подключения.");
  9129. }
  9130. if (((this._routesTableAdapter != null)
  9131. && (this.MatchTableAdapterConnection(this._routesTableAdapter.Connection) == false))) {
  9132. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9133. "r, должны использовать одинаковую строку подключения.");
  9134. }
  9135. if (((this._schedulesTableAdapter != null)
  9136. && (this.MatchTableAdapterConnection(this._schedulesTableAdapter.Connection) == false))) {
  9137. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9138. "r, должны использовать одинаковую строку подключения.");
  9139. }
  9140. if (((this._ticketsTableAdapter != null)
  9141. && (this.MatchTableAdapterConnection(this._ticketsTableAdapter.Connection) == false))) {
  9142. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9143. "r, должны использовать одинаковую строку подключения.");
  9144. }
  9145. if (((this._usersTableAdapter != null)
  9146. && (this.MatchTableAdapterConnection(this._usersTableAdapter.Connection) == false))) {
  9147. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9148. "r, должны использовать одинаковую строку подключения.");
  9149. }
  9150. global::System.Data.IDbConnection workConnection = this.Connection;
  9151. if ((workConnection == null)) {
  9152. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  9153. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  9154. }
  9155. bool workConnOpened = false;
  9156. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  9157. == global::System.Data.ConnectionState.Broken)) {
  9158. workConnection.Close();
  9159. }
  9160. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  9161. workConnection.Open();
  9162. workConnOpened = true;
  9163. }
  9164. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  9165. if ((workTransaction == null)) {
  9166. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  9167. "и или текущее состояние не позволяет начать транзакцию.");
  9168. }
  9169. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  9170. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  9171. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  9172. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  9173. int result = 0;
  9174. global::System.Data.DataSet backupDataSet = null;
  9175. if (this.BackupDataSetBeforeUpdate) {
  9176. backupDataSet = new global::System.Data.DataSet();
  9177. backupDataSet.Merge(dataSet);
  9178. }
  9179. try {
  9180. // ---- Prepare for update -----------
  9181. //
  9182. if ((this._aircraftsTableAdapter != null)) {
  9183. revertConnections.Add(this._aircraftsTableAdapter, this._aircraftsTableAdapter.Connection);
  9184. this._aircraftsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9185. this._aircraftsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9186. if (this._aircraftsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9187. this._aircraftsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9188. adaptersWithAcceptChangesDuringUpdate.Add(this._aircraftsTableAdapter.Adapter);
  9189. }
  9190. }
  9191. if ((this._airportsTableAdapter != null)) {
  9192. revertConnections.Add(this._airportsTableAdapter, this._airportsTableAdapter.Connection);
  9193. this._airportsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9194. this._airportsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9195. if (this._airportsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9196. this._airportsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9197. adaptersWithAcceptChangesDuringUpdate.Add(this._airportsTableAdapter.Adapter);
  9198. }
  9199. }
  9200. if ((this._cabinTypesTableAdapter != null)) {
  9201. revertConnections.Add(this._cabinTypesTableAdapter, this._cabinTypesTableAdapter.Connection);
  9202. this._cabinTypesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9203. this._cabinTypesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9204. if (this._cabinTypesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9205. this._cabinTypesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9206. adaptersWithAcceptChangesDuringUpdate.Add(this._cabinTypesTableAdapter.Adapter);
  9207. }
  9208. }
  9209. if ((this._countriesTableAdapter != null)) {
  9210. revertConnections.Add(this._countriesTableAdapter, this._countriesTableAdapter.Connection);
  9211. this._countriesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9212. this._countriesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9213. if (this._countriesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9214. this._countriesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9215. adaptersWithAcceptChangesDuringUpdate.Add(this._countriesTableAdapter.Adapter);
  9216. }
  9217. }
  9218. if ((this._officesTableAdapter != null)) {
  9219. revertConnections.Add(this._officesTableAdapter, this._officesTableAdapter.Connection);
  9220. this._officesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9221. this._officesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9222. if (this._officesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9223. this._officesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9224. adaptersWithAcceptChangesDuringUpdate.Add(this._officesTableAdapter.Adapter);
  9225. }
  9226. }
  9227. if ((this._rolesTableAdapter != null)) {
  9228. revertConnections.Add(this._rolesTableAdapter, this._rolesTableAdapter.Connection);
  9229. this._rolesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9230. this._rolesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9231. if (this._rolesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9232. this._rolesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9233. adaptersWithAcceptChangesDuringUpdate.Add(this._rolesTableAdapter.Adapter);
  9234. }
  9235. }
  9236. if ((this._routesTableAdapter != null)) {
  9237. revertConnections.Add(this._routesTableAdapter, this._routesTableAdapter.Connection);
  9238. this._routesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9239. this._routesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9240. if (this._routesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9241. this._routesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9242. adaptersWithAcceptChangesDuringUpdate.Add(this._routesTableAdapter.Adapter);
  9243. }
  9244. }
  9245. if ((this._schedulesTableAdapter != null)) {
  9246. revertConnections.Add(this._schedulesTableAdapter, this._schedulesTableAdapter.Connection);
  9247. this._schedulesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9248. this._schedulesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9249. if (this._schedulesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9250. this._schedulesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9251. adaptersWithAcceptChangesDuringUpdate.Add(this._schedulesTableAdapter.Adapter);
  9252. }
  9253. }
  9254. if ((this._ticketsTableAdapter != null)) {
  9255. revertConnections.Add(this._ticketsTableAdapter, this._ticketsTableAdapter.Connection);
  9256. this._ticketsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9257. this._ticketsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9258. if (this._ticketsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9259. this._ticketsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9260. adaptersWithAcceptChangesDuringUpdate.Add(this._ticketsTableAdapter.Adapter);
  9261. }
  9262. }
  9263. if ((this._usersTableAdapter != null)) {
  9264. revertConnections.Add(this._usersTableAdapter, this._usersTableAdapter.Connection);
  9265. this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9266. this._usersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9267. if (this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9268. this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9269. adaptersWithAcceptChangesDuringUpdate.Add(this._usersTableAdapter.Adapter);
  9270. }
  9271. }
  9272. //
  9273. //---- Perform updates -----------
  9274. //
  9275. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  9276. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  9277. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  9278. }
  9279. else {
  9280. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  9281. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  9282. }
  9283. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  9284. //
  9285. //---- Commit updates -----------
  9286. //
  9287. workTransaction.Commit();
  9288. if ((0 < allAddedRows.Count)) {
  9289. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  9290. allAddedRows.CopyTo(rows);
  9291. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  9292. global::System.Data.DataRow row = rows[i];
  9293. row.AcceptChanges();
  9294. }
  9295. }
  9296. if ((0 < allChangedRows.Count)) {
  9297. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  9298. allChangedRows.CopyTo(rows);
  9299. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  9300. global::System.Data.DataRow row = rows[i];
  9301. row.AcceptChanges();
  9302. }
  9303. }
  9304. }
  9305. catch (global::System.Exception ex) {
  9306. workTransaction.Rollback();
  9307. // ---- Restore the dataset -----------
  9308. if (this.BackupDataSetBeforeUpdate) {
  9309. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  9310. dataSet.Clear();
  9311. dataSet.Merge(backupDataSet);
  9312. }
  9313. else {
  9314. if ((0 < allAddedRows.Count)) {
  9315. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  9316. allAddedRows.CopyTo(rows);
  9317. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  9318. global::System.Data.DataRow row = rows[i];
  9319. row.AcceptChanges();
  9320. row.SetAdded();
  9321. }
  9322. }
  9323. }
  9324. throw ex;
  9325. }
  9326. finally {
  9327. if (workConnOpened) {
  9328. workConnection.Close();
  9329. }
  9330. if ((this._aircraftsTableAdapter != null)) {
  9331. this._aircraftsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._aircraftsTableAdapter]));
  9332. this._aircraftsTableAdapter.Transaction = null;
  9333. }
  9334. if ((this._airportsTableAdapter != null)) {
  9335. this._airportsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._airportsTableAdapter]));
  9336. this._airportsTableAdapter.Transaction = null;
  9337. }
  9338. if ((this._cabinTypesTableAdapter != null)) {
  9339. this._cabinTypesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._cabinTypesTableAdapter]));
  9340. this._cabinTypesTableAdapter.Transaction = null;
  9341. }
  9342. if ((this._countriesTableAdapter != null)) {
  9343. this._countriesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._countriesTableAdapter]));
  9344. this._countriesTableAdapter.Transaction = null;
  9345. }
  9346. if ((this._officesTableAdapter != null)) {
  9347. this._officesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._officesTableAdapter]));
  9348. this._officesTableAdapter.Transaction = null;
  9349. }
  9350. if ((this._rolesTableAdapter != null)) {
  9351. this._rolesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._rolesTableAdapter]));
  9352. this._rolesTableAdapter.Transaction = null;
  9353. }
  9354. if ((this._routesTableAdapter != null)) {
  9355. this._routesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._routesTableAdapter]));
  9356. this._routesTableAdapter.Transaction = null;
  9357. }
  9358. if ((this._schedulesTableAdapter != null)) {
  9359. this._schedulesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._schedulesTableAdapter]));
  9360. this._schedulesTableAdapter.Transaction = null;
  9361. }
  9362. if ((this._ticketsTableAdapter != null)) {
  9363. this._ticketsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._ticketsTableAdapter]));
  9364. this._ticketsTableAdapter.Transaction = null;
  9365. }
  9366. if ((this._usersTableAdapter != null)) {
  9367. this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._usersTableAdapter]));
  9368. this._usersTableAdapter.Transaction = null;
  9369. }
  9370. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  9371. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  9372. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  9373. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  9374. global::System.Data.Common.DataAdapter adapter = adapters[i];
  9375. adapter.AcceptChangesDuringUpdate = true;
  9376. }
  9377. }
  9378. }
  9379. return result;
  9380. }
  9381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9383. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  9384. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  9385. }
  9386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9388. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  9389. if ((this._connection != null)) {
  9390. return true;
  9391. }
  9392. if (((this.Connection == null)
  9393. || (inputConnection == null))) {
  9394. return true;
  9395. }
  9396. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  9397. return true;
  9398. }
  9399. return false;
  9400. }
  9401. /// <summary>
  9402. ///Update Order Option
  9403. ///</summary>
  9404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9405. public enum UpdateOrderOption {
  9406. InsertUpdateDelete = 0,
  9407. UpdateInsertDelete = 1,
  9408. }
  9409. /// <summary>
  9410. ///Used to sort self-referenced table's rows
  9411. ///</summary>
  9412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9413. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  9414. private global::System.Data.DataRelation _relation;
  9415. private int _childFirst;
  9416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9418. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  9419. this._relation = relation;
  9420. if (childFirst) {
  9421. this._childFirst = -1;
  9422. }
  9423. else {
  9424. this._childFirst = 1;
  9425. }
  9426. }
  9427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9429. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  9430. global::System.Diagnostics.Debug.Assert((row != null));
  9431. global::System.Data.DataRow root = row;
  9432. distance = 0;
  9433. global::System.Collections.Generic.IDictionary<global::System.Data.DataRow, global::System.Data.DataRow> traversedRows = new global::System.Collections.Generic.Dictionary<global::System.Data.DataRow, global::System.Data.DataRow>();
  9434. traversedRows[row] = row;
  9435. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  9436. for (
  9437. ; ((parent != null)
  9438. && (traversedRows.ContainsKey(parent) == false));
  9439. ) {
  9440. distance = (distance + 1);
  9441. root = parent;
  9442. traversedRows[parent] = parent;
  9443. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  9444. }
  9445. if ((distance == 0)) {
  9446. traversedRows.Clear();
  9447. traversedRows[row] = row;
  9448. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  9449. for (
  9450. ; ((parent != null)
  9451. && (traversedRows.ContainsKey(parent) == false));
  9452. ) {
  9453. distance = (distance + 1);
  9454. root = parent;
  9455. traversedRows[parent] = parent;
  9456. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  9457. }
  9458. }
  9459. return root;
  9460. }
  9461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9463. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  9464. if (object.ReferenceEquals(row1, row2)) {
  9465. return 0;
  9466. }
  9467. if ((row1 == null)) {
  9468. return -1;
  9469. }
  9470. if ((row2 == null)) {
  9471. return 1;
  9472. }
  9473. int distance1 = 0;
  9474. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  9475. int distance2 = 0;
  9476. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  9477. if (object.ReferenceEquals(root1, root2)) {
  9478. return (this._childFirst * distance1.CompareTo(distance2));
  9479. }
  9480. else {
  9481. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  9482. && (root2.Table != null)));
  9483. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  9484. return -1;
  9485. }
  9486. else {
  9487. return 1;
  9488. }
  9489. }
  9490. }
  9491. }
  9492. }
  9493. }
  9494. #pragma warning restore 1591