Avtodrive_02DataSet.Designer.cs 423 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Avtoprok {
  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("Avtodrive_02DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class Avtodrive_02DataSet : global::System.Data.DataSet {
  22. private CarDataTable tableCar;
  23. private ClientDataTable tableClient;
  24. private Order_DataTable tableOrder_;
  25. private Task1DataTable tableTask1;
  26. private Task2DataTable tableTask2;
  27. private Task3DataTable tableTask3;
  28. private Task4DataTable tableTask4;
  29. private Task5DataTable tableTask5;
  30. private global::System.Data.DataRelation relationFK_Order__Car;
  31. private global::System.Data.DataRelation relationFK_Order__Client;
  32. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  33. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  34. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  35. public Avtodrive_02DataSet() {
  36. this.BeginInit();
  37. this.InitClass();
  38. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  39. base.Tables.CollectionChanged += schemaChangedHandler;
  40. base.Relations.CollectionChanged += schemaChangedHandler;
  41. this.EndInit();
  42. }
  43. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  44. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  45. protected Avtodrive_02DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  46. base(info, context, false) {
  47. if ((this.IsBinarySerialized(info, context) == true)) {
  48. this.InitVars(false);
  49. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  50. this.Tables.CollectionChanged += schemaChangedHandler1;
  51. this.Relations.CollectionChanged += schemaChangedHandler1;
  52. return;
  53. }
  54. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  55. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  56. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  57. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  58. if ((ds.Tables["Car"] != null)) {
  59. base.Tables.Add(new CarDataTable(ds.Tables["Car"]));
  60. }
  61. if ((ds.Tables["Client"] != null)) {
  62. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  63. }
  64. if ((ds.Tables["Order_"] != null)) {
  65. base.Tables.Add(new Order_DataTable(ds.Tables["Order_"]));
  66. }
  67. if ((ds.Tables["Task1"] != null)) {
  68. base.Tables.Add(new Task1DataTable(ds.Tables["Task1"]));
  69. }
  70. if ((ds.Tables["Task2"] != null)) {
  71. base.Tables.Add(new Task2DataTable(ds.Tables["Task2"]));
  72. }
  73. if ((ds.Tables["Task3"] != null)) {
  74. base.Tables.Add(new Task3DataTable(ds.Tables["Task3"]));
  75. }
  76. if ((ds.Tables["Task4"] != null)) {
  77. base.Tables.Add(new Task4DataTable(ds.Tables["Task4"]));
  78. }
  79. if ((ds.Tables["Task5"] != null)) {
  80. base.Tables.Add(new Task5DataTable(ds.Tables["Task5"]));
  81. }
  82. this.DataSetName = ds.DataSetName;
  83. this.Prefix = ds.Prefix;
  84. this.Namespace = ds.Namespace;
  85. this.Locale = ds.Locale;
  86. this.CaseSensitive = ds.CaseSensitive;
  87. this.EnforceConstraints = ds.EnforceConstraints;
  88. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  89. this.InitVars();
  90. }
  91. else {
  92. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  93. }
  94. this.GetSerializationData(info, context);
  95. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  96. base.Tables.CollectionChanged += schemaChangedHandler;
  97. this.Relations.CollectionChanged += schemaChangedHandler;
  98. }
  99. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  101. [global::System.ComponentModel.Browsable(false)]
  102. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  103. public CarDataTable Car {
  104. get {
  105. return this.tableCar;
  106. }
  107. }
  108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  110. [global::System.ComponentModel.Browsable(false)]
  111. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  112. public ClientDataTable Client {
  113. get {
  114. return this.tableClient;
  115. }
  116. }
  117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  119. [global::System.ComponentModel.Browsable(false)]
  120. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  121. public Order_DataTable Order_ {
  122. get {
  123. return this.tableOrder_;
  124. }
  125. }
  126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  128. [global::System.ComponentModel.Browsable(false)]
  129. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  130. public Task1DataTable Task1 {
  131. get {
  132. return this.tableTask1;
  133. }
  134. }
  135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  137. [global::System.ComponentModel.Browsable(false)]
  138. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  139. public Task2DataTable Task2 {
  140. get {
  141. return this.tableTask2;
  142. }
  143. }
  144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  146. [global::System.ComponentModel.Browsable(false)]
  147. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  148. public Task3DataTable Task3 {
  149. get {
  150. return this.tableTask3;
  151. }
  152. }
  153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  155. [global::System.ComponentModel.Browsable(false)]
  156. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  157. public Task4DataTable Task4 {
  158. get {
  159. return this.tableTask4;
  160. }
  161. }
  162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  164. [global::System.ComponentModel.Browsable(false)]
  165. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  166. public Task5DataTable Task5 {
  167. get {
  168. return this.tableTask5;
  169. }
  170. }
  171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  173. [global::System.ComponentModel.BrowsableAttribute(true)]
  174. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  175. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  176. get {
  177. return this._schemaSerializationMode;
  178. }
  179. set {
  180. this._schemaSerializationMode = value;
  181. }
  182. }
  183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  185. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  186. public new global::System.Data.DataTableCollection Tables {
  187. get {
  188. return base.Tables;
  189. }
  190. }
  191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  193. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  194. public new global::System.Data.DataRelationCollection Relations {
  195. get {
  196. return base.Relations;
  197. }
  198. }
  199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  201. protected override void InitializeDerivedDataSet() {
  202. this.BeginInit();
  203. this.InitClass();
  204. this.EndInit();
  205. }
  206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  208. public override global::System.Data.DataSet Clone() {
  209. Avtodrive_02DataSet cln = ((Avtodrive_02DataSet)(base.Clone()));
  210. cln.InitVars();
  211. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  212. return cln;
  213. }
  214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  216. protected override bool ShouldSerializeTables() {
  217. return false;
  218. }
  219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  221. protected override bool ShouldSerializeRelations() {
  222. return false;
  223. }
  224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  226. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  227. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  228. this.Reset();
  229. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  230. ds.ReadXml(reader);
  231. if ((ds.Tables["Car"] != null)) {
  232. base.Tables.Add(new CarDataTable(ds.Tables["Car"]));
  233. }
  234. if ((ds.Tables["Client"] != null)) {
  235. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  236. }
  237. if ((ds.Tables["Order_"] != null)) {
  238. base.Tables.Add(new Order_DataTable(ds.Tables["Order_"]));
  239. }
  240. if ((ds.Tables["Task1"] != null)) {
  241. base.Tables.Add(new Task1DataTable(ds.Tables["Task1"]));
  242. }
  243. if ((ds.Tables["Task2"] != null)) {
  244. base.Tables.Add(new Task2DataTable(ds.Tables["Task2"]));
  245. }
  246. if ((ds.Tables["Task3"] != null)) {
  247. base.Tables.Add(new Task3DataTable(ds.Tables["Task3"]));
  248. }
  249. if ((ds.Tables["Task4"] != null)) {
  250. base.Tables.Add(new Task4DataTable(ds.Tables["Task4"]));
  251. }
  252. if ((ds.Tables["Task5"] != null)) {
  253. base.Tables.Add(new Task5DataTable(ds.Tables["Task5"]));
  254. }
  255. this.DataSetName = ds.DataSetName;
  256. this.Prefix = ds.Prefix;
  257. this.Namespace = ds.Namespace;
  258. this.Locale = ds.Locale;
  259. this.CaseSensitive = ds.CaseSensitive;
  260. this.EnforceConstraints = ds.EnforceConstraints;
  261. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  262. this.InitVars();
  263. }
  264. else {
  265. this.ReadXml(reader);
  266. this.InitVars();
  267. }
  268. }
  269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  271. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  272. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  273. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  274. stream.Position = 0;
  275. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  276. }
  277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  279. internal void InitVars() {
  280. this.InitVars(true);
  281. }
  282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  284. internal void InitVars(bool initTable) {
  285. this.tableCar = ((CarDataTable)(base.Tables["Car"]));
  286. if ((initTable == true)) {
  287. if ((this.tableCar != null)) {
  288. this.tableCar.InitVars();
  289. }
  290. }
  291. this.tableClient = ((ClientDataTable)(base.Tables["Client"]));
  292. if ((initTable == true)) {
  293. if ((this.tableClient != null)) {
  294. this.tableClient.InitVars();
  295. }
  296. }
  297. this.tableOrder_ = ((Order_DataTable)(base.Tables["Order_"]));
  298. if ((initTable == true)) {
  299. if ((this.tableOrder_ != null)) {
  300. this.tableOrder_.InitVars();
  301. }
  302. }
  303. this.tableTask1 = ((Task1DataTable)(base.Tables["Task1"]));
  304. if ((initTable == true)) {
  305. if ((this.tableTask1 != null)) {
  306. this.tableTask1.InitVars();
  307. }
  308. }
  309. this.tableTask2 = ((Task2DataTable)(base.Tables["Task2"]));
  310. if ((initTable == true)) {
  311. if ((this.tableTask2 != null)) {
  312. this.tableTask2.InitVars();
  313. }
  314. }
  315. this.tableTask3 = ((Task3DataTable)(base.Tables["Task3"]));
  316. if ((initTable == true)) {
  317. if ((this.tableTask3 != null)) {
  318. this.tableTask3.InitVars();
  319. }
  320. }
  321. this.tableTask4 = ((Task4DataTable)(base.Tables["Task4"]));
  322. if ((initTable == true)) {
  323. if ((this.tableTask4 != null)) {
  324. this.tableTask4.InitVars();
  325. }
  326. }
  327. this.tableTask5 = ((Task5DataTable)(base.Tables["Task5"]));
  328. if ((initTable == true)) {
  329. if ((this.tableTask5 != null)) {
  330. this.tableTask5.InitVars();
  331. }
  332. }
  333. this.relationFK_Order__Car = this.Relations["FK_Order__Car"];
  334. this.relationFK_Order__Client = this.Relations["FK_Order__Client"];
  335. }
  336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  338. private void InitClass() {
  339. this.DataSetName = "Avtodrive_02DataSet";
  340. this.Prefix = "";
  341. this.Namespace = "http://tempuri.org/Avtodrive_02DataSet.xsd";
  342. this.EnforceConstraints = true;
  343. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  344. this.tableCar = new CarDataTable();
  345. base.Tables.Add(this.tableCar);
  346. this.tableClient = new ClientDataTable();
  347. base.Tables.Add(this.tableClient);
  348. this.tableOrder_ = new Order_DataTable();
  349. base.Tables.Add(this.tableOrder_);
  350. this.tableTask1 = new Task1DataTable();
  351. base.Tables.Add(this.tableTask1);
  352. this.tableTask2 = new Task2DataTable();
  353. base.Tables.Add(this.tableTask2);
  354. this.tableTask3 = new Task3DataTable();
  355. base.Tables.Add(this.tableTask3);
  356. this.tableTask4 = new Task4DataTable();
  357. base.Tables.Add(this.tableTask4);
  358. this.tableTask5 = new Task5DataTable();
  359. base.Tables.Add(this.tableTask5);
  360. this.relationFK_Order__Car = new global::System.Data.DataRelation("FK_Order__Car", new global::System.Data.DataColumn[] {
  361. this.tableCar.IDColumn}, new global::System.Data.DataColumn[] {
  362. this.tableOrder_.ID_CarColumn}, false);
  363. this.Relations.Add(this.relationFK_Order__Car);
  364. this.relationFK_Order__Client = new global::System.Data.DataRelation("FK_Order__Client", new global::System.Data.DataColumn[] {
  365. this.tableClient.IDColumn}, new global::System.Data.DataColumn[] {
  366. this.tableOrder_.ID_ClientColumn}, false);
  367. this.Relations.Add(this.relationFK_Order__Client);
  368. }
  369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  371. private bool ShouldSerializeCar() {
  372. return false;
  373. }
  374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  376. private bool ShouldSerializeClient() {
  377. return false;
  378. }
  379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  381. private bool ShouldSerializeOrder_() {
  382. return false;
  383. }
  384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  386. private bool ShouldSerializeTask1() {
  387. return false;
  388. }
  389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  391. private bool ShouldSerializeTask2() {
  392. return false;
  393. }
  394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  396. private bool ShouldSerializeTask3() {
  397. return false;
  398. }
  399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  401. private bool ShouldSerializeTask4() {
  402. return false;
  403. }
  404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  406. private bool ShouldSerializeTask5() {
  407. return false;
  408. }
  409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  411. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  412. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  413. this.InitVars();
  414. }
  415. }
  416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  418. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  419. Avtodrive_02DataSet ds = new Avtodrive_02DataSet();
  420. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  421. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  422. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  423. any.Namespace = ds.Namespace;
  424. sequence.Items.Add(any);
  425. type.Particle = sequence;
  426. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  427. if (xs.Contains(dsSchema.TargetNamespace)) {
  428. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  429. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  430. try {
  431. global::System.Xml.Schema.XmlSchema schema = null;
  432. dsSchema.Write(s1);
  433. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  434. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  435. s2.SetLength(0);
  436. schema.Write(s2);
  437. if ((s1.Length == s2.Length)) {
  438. s1.Position = 0;
  439. s2.Position = 0;
  440. for (; ((s1.Position != s1.Length)
  441. && (s1.ReadByte() == s2.ReadByte())); ) {
  442. ;
  443. }
  444. if ((s1.Position == s1.Length)) {
  445. return type;
  446. }
  447. }
  448. }
  449. }
  450. finally {
  451. if ((s1 != null)) {
  452. s1.Close();
  453. }
  454. if ((s2 != null)) {
  455. s2.Close();
  456. }
  457. }
  458. }
  459. xs.Add(dsSchema);
  460. return type;
  461. }
  462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  463. public delegate void CarRowChangeEventHandler(object sender, CarRowChangeEvent e);
  464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  465. public delegate void ClientRowChangeEventHandler(object sender, ClientRowChangeEvent e);
  466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  467. public delegate void Order_RowChangeEventHandler(object sender, Order_RowChangeEvent e);
  468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  469. public delegate void Task1RowChangeEventHandler(object sender, Task1RowChangeEvent e);
  470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  471. public delegate void Task2RowChangeEventHandler(object sender, Task2RowChangeEvent e);
  472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  473. public delegate void Task3RowChangeEventHandler(object sender, Task3RowChangeEvent e);
  474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  475. public delegate void Task4RowChangeEventHandler(object sender, Task4RowChangeEvent e);
  476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  477. public delegate void Task5RowChangeEventHandler(object sender, Task5RowChangeEvent e);
  478. /// <summary>
  479. ///Represents the strongly named DataTable class.
  480. ///</summary>
  481. [global::System.Serializable()]
  482. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  483. public partial class CarDataTable : global::System.Data.TypedTableBase<CarRow> {
  484. private global::System.Data.DataColumn columnID;
  485. private global::System.Data.DataColumn columnModel;
  486. private global::System.Data.DataColumn columnColor;
  487. private global::System.Data.DataColumn columnCarManufactureDate;
  488. private global::System.Data.DataColumn columnGovermantNumber;
  489. private global::System.Data.DataColumn columnCarInsuranceCost;
  490. private global::System.Data.DataColumn columnOneDayCost;
  491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  493. public CarDataTable() {
  494. this.TableName = "Car";
  495. this.BeginInit();
  496. this.InitClass();
  497. this.EndInit();
  498. }
  499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  501. internal CarDataTable(global::System.Data.DataTable table) {
  502. this.TableName = table.TableName;
  503. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  504. this.CaseSensitive = table.CaseSensitive;
  505. }
  506. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  507. this.Locale = table.Locale;
  508. }
  509. if ((table.Namespace != table.DataSet.Namespace)) {
  510. this.Namespace = table.Namespace;
  511. }
  512. this.Prefix = table.Prefix;
  513. this.MinimumCapacity = table.MinimumCapacity;
  514. }
  515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  517. protected CarDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  518. base(info, context) {
  519. this.InitVars();
  520. }
  521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  523. public global::System.Data.DataColumn IDColumn {
  524. get {
  525. return this.columnID;
  526. }
  527. }
  528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  530. public global::System.Data.DataColumn ModelColumn {
  531. get {
  532. return this.columnModel;
  533. }
  534. }
  535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  537. public global::System.Data.DataColumn ColorColumn {
  538. get {
  539. return this.columnColor;
  540. }
  541. }
  542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  544. public global::System.Data.DataColumn CarManufactureDateColumn {
  545. get {
  546. return this.columnCarManufactureDate;
  547. }
  548. }
  549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  551. public global::System.Data.DataColumn GovermantNumberColumn {
  552. get {
  553. return this.columnGovermantNumber;
  554. }
  555. }
  556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  558. public global::System.Data.DataColumn CarInsuranceCostColumn {
  559. get {
  560. return this.columnCarInsuranceCost;
  561. }
  562. }
  563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  565. public global::System.Data.DataColumn OneDayCostColumn {
  566. get {
  567. return this.columnOneDayCost;
  568. }
  569. }
  570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  572. [global::System.ComponentModel.Browsable(false)]
  573. public int Count {
  574. get {
  575. return this.Rows.Count;
  576. }
  577. }
  578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  580. public CarRow this[int index] {
  581. get {
  582. return ((CarRow)(this.Rows[index]));
  583. }
  584. }
  585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  586. public event CarRowChangeEventHandler CarRowChanging;
  587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  588. public event CarRowChangeEventHandler CarRowChanged;
  589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  590. public event CarRowChangeEventHandler CarRowDeleting;
  591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  592. public event CarRowChangeEventHandler CarRowDeleted;
  593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  595. public void AddCarRow(CarRow row) {
  596. this.Rows.Add(row);
  597. }
  598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  600. public CarRow AddCarRow(string Model, string Color, System.DateTime CarManufactureDate, string GovermantNumber, decimal CarInsuranceCost, decimal OneDayCost) {
  601. CarRow rowCarRow = ((CarRow)(this.NewRow()));
  602. object[] columnValuesArray = new object[] {
  603. null,
  604. Model,
  605. Color,
  606. CarManufactureDate,
  607. GovermantNumber,
  608. CarInsuranceCost,
  609. OneDayCost};
  610. rowCarRow.ItemArray = columnValuesArray;
  611. this.Rows.Add(rowCarRow);
  612. return rowCarRow;
  613. }
  614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  616. public CarRow FindByID(int ID) {
  617. return ((CarRow)(this.Rows.Find(new object[] {
  618. ID})));
  619. }
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  622. public override global::System.Data.DataTable Clone() {
  623. CarDataTable cln = ((CarDataTable)(base.Clone()));
  624. cln.InitVars();
  625. return cln;
  626. }
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  629. protected override global::System.Data.DataTable CreateInstance() {
  630. return new CarDataTable();
  631. }
  632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  634. internal void InitVars() {
  635. this.columnID = base.Columns["ID"];
  636. this.columnModel = base.Columns["Model"];
  637. this.columnColor = base.Columns["Color"];
  638. this.columnCarManufactureDate = base.Columns["CarManufactureDate"];
  639. this.columnGovermantNumber = base.Columns["GovermantNumber"];
  640. this.columnCarInsuranceCost = base.Columns["CarInsuranceCost"];
  641. this.columnOneDayCost = base.Columns["OneDayCost"];
  642. }
  643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  645. private void InitClass() {
  646. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  647. base.Columns.Add(this.columnID);
  648. this.columnModel = new global::System.Data.DataColumn("Model", typeof(string), null, global::System.Data.MappingType.Element);
  649. base.Columns.Add(this.columnModel);
  650. this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
  651. base.Columns.Add(this.columnColor);
  652. this.columnCarManufactureDate = new global::System.Data.DataColumn("CarManufactureDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  653. base.Columns.Add(this.columnCarManufactureDate);
  654. this.columnGovermantNumber = new global::System.Data.DataColumn("GovermantNumber", typeof(string), null, global::System.Data.MappingType.Element);
  655. base.Columns.Add(this.columnGovermantNumber);
  656. this.columnCarInsuranceCost = new global::System.Data.DataColumn("CarInsuranceCost", typeof(decimal), null, global::System.Data.MappingType.Element);
  657. base.Columns.Add(this.columnCarInsuranceCost);
  658. this.columnOneDayCost = new global::System.Data.DataColumn("OneDayCost", typeof(decimal), null, global::System.Data.MappingType.Element);
  659. base.Columns.Add(this.columnOneDayCost);
  660. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  661. this.columnID}, true));
  662. this.columnID.AutoIncrement = true;
  663. this.columnID.AutoIncrementSeed = -1;
  664. this.columnID.AutoIncrementStep = -1;
  665. this.columnID.AllowDBNull = false;
  666. this.columnID.ReadOnly = true;
  667. this.columnID.Unique = true;
  668. this.columnModel.MaxLength = 50;
  669. this.columnColor.MaxLength = 50;
  670. this.columnGovermantNumber.MaxLength = 50;
  671. }
  672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  674. public CarRow NewCarRow() {
  675. return ((CarRow)(this.NewRow()));
  676. }
  677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  679. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  680. return new CarRow(builder);
  681. }
  682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  684. protected override global::System.Type GetRowType() {
  685. return typeof(CarRow);
  686. }
  687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  689. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  690. base.OnRowChanged(e);
  691. if ((this.CarRowChanged != null)) {
  692. this.CarRowChanged(this, new CarRowChangeEvent(((CarRow)(e.Row)), e.Action));
  693. }
  694. }
  695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  697. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  698. base.OnRowChanging(e);
  699. if ((this.CarRowChanging != null)) {
  700. this.CarRowChanging(this, new CarRowChangeEvent(((CarRow)(e.Row)), e.Action));
  701. }
  702. }
  703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  705. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  706. base.OnRowDeleted(e);
  707. if ((this.CarRowDeleted != null)) {
  708. this.CarRowDeleted(this, new CarRowChangeEvent(((CarRow)(e.Row)), e.Action));
  709. }
  710. }
  711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  713. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  714. base.OnRowDeleting(e);
  715. if ((this.CarRowDeleting != null)) {
  716. this.CarRowDeleting(this, new CarRowChangeEvent(((CarRow)(e.Row)), e.Action));
  717. }
  718. }
  719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  721. public void RemoveCarRow(CarRow row) {
  722. this.Rows.Remove(row);
  723. }
  724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  726. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  727. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  728. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  729. Avtodrive_02DataSet ds = new Avtodrive_02DataSet();
  730. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  731. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  732. any1.MinOccurs = new decimal(0);
  733. any1.MaxOccurs = decimal.MaxValue;
  734. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  735. sequence.Items.Add(any1);
  736. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  737. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  738. any2.MinOccurs = new decimal(1);
  739. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  740. sequence.Items.Add(any2);
  741. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  742. attribute1.Name = "namespace";
  743. attribute1.FixedValue = ds.Namespace;
  744. type.Attributes.Add(attribute1);
  745. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  746. attribute2.Name = "tableTypeName";
  747. attribute2.FixedValue = "CarDataTable";
  748. type.Attributes.Add(attribute2);
  749. type.Particle = sequence;
  750. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  751. if (xs.Contains(dsSchema.TargetNamespace)) {
  752. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  753. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  754. try {
  755. global::System.Xml.Schema.XmlSchema schema = null;
  756. dsSchema.Write(s1);
  757. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  758. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  759. s2.SetLength(0);
  760. schema.Write(s2);
  761. if ((s1.Length == s2.Length)) {
  762. s1.Position = 0;
  763. s2.Position = 0;
  764. for (; ((s1.Position != s1.Length)
  765. && (s1.ReadByte() == s2.ReadByte())); ) {
  766. ;
  767. }
  768. if ((s1.Position == s1.Length)) {
  769. return type;
  770. }
  771. }
  772. }
  773. }
  774. finally {
  775. if ((s1 != null)) {
  776. s1.Close();
  777. }
  778. if ((s2 != null)) {
  779. s2.Close();
  780. }
  781. }
  782. }
  783. xs.Add(dsSchema);
  784. return type;
  785. }
  786. }
  787. /// <summary>
  788. ///Represents the strongly named DataTable class.
  789. ///</summary>
  790. [global::System.Serializable()]
  791. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  792. public partial class ClientDataTable : global::System.Data.TypedTableBase<ClientRow> {
  793. private global::System.Data.DataColumn columnID;
  794. private global::System.Data.DataColumn columnFIO;
  795. private global::System.Data.DataColumn columnPasport;
  796. private global::System.Data.DataColumn columnPhone;
  797. private global::System.Data.DataColumn columnAddress;
  798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  800. public ClientDataTable() {
  801. this.TableName = "Client";
  802. this.BeginInit();
  803. this.InitClass();
  804. this.EndInit();
  805. }
  806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  808. internal ClientDataTable(global::System.Data.DataTable table) {
  809. this.TableName = table.TableName;
  810. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  811. this.CaseSensitive = table.CaseSensitive;
  812. }
  813. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  814. this.Locale = table.Locale;
  815. }
  816. if ((table.Namespace != table.DataSet.Namespace)) {
  817. this.Namespace = table.Namespace;
  818. }
  819. this.Prefix = table.Prefix;
  820. this.MinimumCapacity = table.MinimumCapacity;
  821. }
  822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  824. protected ClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  825. base(info, context) {
  826. this.InitVars();
  827. }
  828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  830. public global::System.Data.DataColumn IDColumn {
  831. get {
  832. return this.columnID;
  833. }
  834. }
  835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  837. public global::System.Data.DataColumn FIOColumn {
  838. get {
  839. return this.columnFIO;
  840. }
  841. }
  842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  844. public global::System.Data.DataColumn PasportColumn {
  845. get {
  846. return this.columnPasport;
  847. }
  848. }
  849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  851. public global::System.Data.DataColumn PhoneColumn {
  852. get {
  853. return this.columnPhone;
  854. }
  855. }
  856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  858. public global::System.Data.DataColumn AddressColumn {
  859. get {
  860. return this.columnAddress;
  861. }
  862. }
  863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  865. [global::System.ComponentModel.Browsable(false)]
  866. public int Count {
  867. get {
  868. return this.Rows.Count;
  869. }
  870. }
  871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  873. public ClientRow this[int index] {
  874. get {
  875. return ((ClientRow)(this.Rows[index]));
  876. }
  877. }
  878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  879. public event ClientRowChangeEventHandler ClientRowChanging;
  880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  881. public event ClientRowChangeEventHandler ClientRowChanged;
  882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  883. public event ClientRowChangeEventHandler ClientRowDeleting;
  884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  885. public event ClientRowChangeEventHandler ClientRowDeleted;
  886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  888. public void AddClientRow(ClientRow row) {
  889. this.Rows.Add(row);
  890. }
  891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  893. public ClientRow AddClientRow(string FIO, string Pasport, string Phone, string Address) {
  894. ClientRow rowClientRow = ((ClientRow)(this.NewRow()));
  895. object[] columnValuesArray = new object[] {
  896. null,
  897. FIO,
  898. Pasport,
  899. Phone,
  900. Address};
  901. rowClientRow.ItemArray = columnValuesArray;
  902. this.Rows.Add(rowClientRow);
  903. return rowClientRow;
  904. }
  905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  907. public ClientRow FindByID(int ID) {
  908. return ((ClientRow)(this.Rows.Find(new object[] {
  909. ID})));
  910. }
  911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  913. public override global::System.Data.DataTable Clone() {
  914. ClientDataTable cln = ((ClientDataTable)(base.Clone()));
  915. cln.InitVars();
  916. return cln;
  917. }
  918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  920. protected override global::System.Data.DataTable CreateInstance() {
  921. return new ClientDataTable();
  922. }
  923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  925. internal void InitVars() {
  926. this.columnID = base.Columns["ID"];
  927. this.columnFIO = base.Columns["FIO"];
  928. this.columnPasport = base.Columns["Pasport"];
  929. this.columnPhone = base.Columns["Phone"];
  930. this.columnAddress = base.Columns["Address"];
  931. }
  932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  934. private void InitClass() {
  935. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  936. base.Columns.Add(this.columnID);
  937. this.columnFIO = new global::System.Data.DataColumn("FIO", typeof(string), null, global::System.Data.MappingType.Element);
  938. base.Columns.Add(this.columnFIO);
  939. this.columnPasport = new global::System.Data.DataColumn("Pasport", typeof(string), null, global::System.Data.MappingType.Element);
  940. base.Columns.Add(this.columnPasport);
  941. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  942. base.Columns.Add(this.columnPhone);
  943. this.columnAddress = new global::System.Data.DataColumn("Address", typeof(string), null, global::System.Data.MappingType.Element);
  944. base.Columns.Add(this.columnAddress);
  945. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  946. this.columnID}, true));
  947. this.columnID.AutoIncrement = true;
  948. this.columnID.AutoIncrementSeed = -1;
  949. this.columnID.AutoIncrementStep = -1;
  950. this.columnID.AllowDBNull = false;
  951. this.columnID.ReadOnly = true;
  952. this.columnID.Unique = true;
  953. this.columnFIO.MaxLength = 50;
  954. this.columnPasport.MaxLength = 50;
  955. this.columnPhone.MaxLength = 20;
  956. this.columnAddress.MaxLength = 100;
  957. }
  958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  960. public ClientRow NewClientRow() {
  961. return ((ClientRow)(this.NewRow()));
  962. }
  963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  965. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  966. return new ClientRow(builder);
  967. }
  968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  970. protected override global::System.Type GetRowType() {
  971. return typeof(ClientRow);
  972. }
  973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  975. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  976. base.OnRowChanged(e);
  977. if ((this.ClientRowChanged != null)) {
  978. this.ClientRowChanged(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  979. }
  980. }
  981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  983. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  984. base.OnRowChanging(e);
  985. if ((this.ClientRowChanging != null)) {
  986. this.ClientRowChanging(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  987. }
  988. }
  989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  991. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  992. base.OnRowDeleted(e);
  993. if ((this.ClientRowDeleted != null)) {
  994. this.ClientRowDeleted(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  995. }
  996. }
  997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  999. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1000. base.OnRowDeleting(e);
  1001. if ((this.ClientRowDeleting != null)) {
  1002. this.ClientRowDeleting(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1003. }
  1004. }
  1005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1007. public void RemoveClientRow(ClientRow row) {
  1008. this.Rows.Remove(row);
  1009. }
  1010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1012. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1013. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1014. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1015. Avtodrive_02DataSet ds = new Avtodrive_02DataSet();
  1016. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1017. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1018. any1.MinOccurs = new decimal(0);
  1019. any1.MaxOccurs = decimal.MaxValue;
  1020. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1021. sequence.Items.Add(any1);
  1022. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1023. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1024. any2.MinOccurs = new decimal(1);
  1025. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1026. sequence.Items.Add(any2);
  1027. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1028. attribute1.Name = "namespace";
  1029. attribute1.FixedValue = ds.Namespace;
  1030. type.Attributes.Add(attribute1);
  1031. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1032. attribute2.Name = "tableTypeName";
  1033. attribute2.FixedValue = "ClientDataTable";
  1034. type.Attributes.Add(attribute2);
  1035. type.Particle = sequence;
  1036. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1037. if (xs.Contains(dsSchema.TargetNamespace)) {
  1038. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1039. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1040. try {
  1041. global::System.Xml.Schema.XmlSchema schema = null;
  1042. dsSchema.Write(s1);
  1043. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1044. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1045. s2.SetLength(0);
  1046. schema.Write(s2);
  1047. if ((s1.Length == s2.Length)) {
  1048. s1.Position = 0;
  1049. s2.Position = 0;
  1050. for (; ((s1.Position != s1.Length)
  1051. && (s1.ReadByte() == s2.ReadByte())); ) {
  1052. ;
  1053. }
  1054. if ((s1.Position == s1.Length)) {
  1055. return type;
  1056. }
  1057. }
  1058. }
  1059. }
  1060. finally {
  1061. if ((s1 != null)) {
  1062. s1.Close();
  1063. }
  1064. if ((s2 != null)) {
  1065. s2.Close();
  1066. }
  1067. }
  1068. }
  1069. xs.Add(dsSchema);
  1070. return type;
  1071. }
  1072. }
  1073. /// <summary>
  1074. ///Represents the strongly named DataTable class.
  1075. ///</summary>
  1076. [global::System.Serializable()]
  1077. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1078. public partial class Order_DataTable : global::System.Data.TypedTableBase<Order_Row> {
  1079. private global::System.Data.DataColumn columnID;
  1080. private global::System.Data.DataColumn columnID_Client;
  1081. private global::System.Data.DataColumn columnID_Car;
  1082. private global::System.Data.DataColumn columnDate_order;
  1083. private global::System.Data.DataColumn columnOrderTimeDay;
  1084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1086. public Order_DataTable() {
  1087. this.TableName = "Order_";
  1088. this.BeginInit();
  1089. this.InitClass();
  1090. this.EndInit();
  1091. }
  1092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1094. internal Order_DataTable(global::System.Data.DataTable table) {
  1095. this.TableName = table.TableName;
  1096. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1097. this.CaseSensitive = table.CaseSensitive;
  1098. }
  1099. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1100. this.Locale = table.Locale;
  1101. }
  1102. if ((table.Namespace != table.DataSet.Namespace)) {
  1103. this.Namespace = table.Namespace;
  1104. }
  1105. this.Prefix = table.Prefix;
  1106. this.MinimumCapacity = table.MinimumCapacity;
  1107. }
  1108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1110. protected Order_DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1111. base(info, context) {
  1112. this.InitVars();
  1113. }
  1114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1116. public global::System.Data.DataColumn IDColumn {
  1117. get {
  1118. return this.columnID;
  1119. }
  1120. }
  1121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1123. public global::System.Data.DataColumn ID_ClientColumn {
  1124. get {
  1125. return this.columnID_Client;
  1126. }
  1127. }
  1128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1130. public global::System.Data.DataColumn ID_CarColumn {
  1131. get {
  1132. return this.columnID_Car;
  1133. }
  1134. }
  1135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1137. public global::System.Data.DataColumn Date_orderColumn {
  1138. get {
  1139. return this.columnDate_order;
  1140. }
  1141. }
  1142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1144. public global::System.Data.DataColumn OrderTimeDayColumn {
  1145. get {
  1146. return this.columnOrderTimeDay;
  1147. }
  1148. }
  1149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1151. [global::System.ComponentModel.Browsable(false)]
  1152. public int Count {
  1153. get {
  1154. return this.Rows.Count;
  1155. }
  1156. }
  1157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1159. public Order_Row this[int index] {
  1160. get {
  1161. return ((Order_Row)(this.Rows[index]));
  1162. }
  1163. }
  1164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1165. public event Order_RowChangeEventHandler Order_RowChanging;
  1166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1167. public event Order_RowChangeEventHandler Order_RowChanged;
  1168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1169. public event Order_RowChangeEventHandler Order_RowDeleting;
  1170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1171. public event Order_RowChangeEventHandler Order_RowDeleted;
  1172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1174. public void AddOrder_Row(Order_Row row) {
  1175. this.Rows.Add(row);
  1176. }
  1177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1179. public Order_Row AddOrder_Row(ClientRow parentClientRowByFK_Order__Client, CarRow parentCarRowByFK_Order__Car, System.DateTime Date_order, int OrderTimeDay) {
  1180. Order_Row rowOrder_Row = ((Order_Row)(this.NewRow()));
  1181. object[] columnValuesArray = new object[] {
  1182. null,
  1183. null,
  1184. null,
  1185. Date_order,
  1186. OrderTimeDay};
  1187. if ((parentClientRowByFK_Order__Client != null)) {
  1188. columnValuesArray[1] = parentClientRowByFK_Order__Client[0];
  1189. }
  1190. if ((parentCarRowByFK_Order__Car != null)) {
  1191. columnValuesArray[2] = parentCarRowByFK_Order__Car[0];
  1192. }
  1193. rowOrder_Row.ItemArray = columnValuesArray;
  1194. this.Rows.Add(rowOrder_Row);
  1195. return rowOrder_Row;
  1196. }
  1197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1199. public Order_Row FindByID(int ID) {
  1200. return ((Order_Row)(this.Rows.Find(new object[] {
  1201. ID})));
  1202. }
  1203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1205. public override global::System.Data.DataTable Clone() {
  1206. Order_DataTable cln = ((Order_DataTable)(base.Clone()));
  1207. cln.InitVars();
  1208. return cln;
  1209. }
  1210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1212. protected override global::System.Data.DataTable CreateInstance() {
  1213. return new Order_DataTable();
  1214. }
  1215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1217. internal void InitVars() {
  1218. this.columnID = base.Columns["ID"];
  1219. this.columnID_Client = base.Columns["ID_Client"];
  1220. this.columnID_Car = base.Columns["ID_Car"];
  1221. this.columnDate_order = base.Columns["Date_order"];
  1222. this.columnOrderTimeDay = base.Columns["OrderTimeDay"];
  1223. }
  1224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1226. private void InitClass() {
  1227. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1228. base.Columns.Add(this.columnID);
  1229. this.columnID_Client = new global::System.Data.DataColumn("ID_Client", typeof(int), null, global::System.Data.MappingType.Element);
  1230. base.Columns.Add(this.columnID_Client);
  1231. this.columnID_Car = new global::System.Data.DataColumn("ID_Car", typeof(int), null, global::System.Data.MappingType.Element);
  1232. base.Columns.Add(this.columnID_Car);
  1233. this.columnDate_order = new global::System.Data.DataColumn("Date_order", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1234. base.Columns.Add(this.columnDate_order);
  1235. this.columnOrderTimeDay = new global::System.Data.DataColumn("OrderTimeDay", typeof(int), null, global::System.Data.MappingType.Element);
  1236. base.Columns.Add(this.columnOrderTimeDay);
  1237. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1238. this.columnID}, true));
  1239. this.columnID.AutoIncrement = true;
  1240. this.columnID.AutoIncrementSeed = -1;
  1241. this.columnID.AutoIncrementStep = -1;
  1242. this.columnID.AllowDBNull = false;
  1243. this.columnID.ReadOnly = true;
  1244. this.columnID.Unique = true;
  1245. }
  1246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1248. public Order_Row NewOrder_Row() {
  1249. return ((Order_Row)(this.NewRow()));
  1250. }
  1251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1253. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1254. return new Order_Row(builder);
  1255. }
  1256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1258. protected override global::System.Type GetRowType() {
  1259. return typeof(Order_Row);
  1260. }
  1261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1263. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1264. base.OnRowChanged(e);
  1265. if ((this.Order_RowChanged != null)) {
  1266. this.Order_RowChanged(this, new Order_RowChangeEvent(((Order_Row)(e.Row)), e.Action));
  1267. }
  1268. }
  1269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1271. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1272. base.OnRowChanging(e);
  1273. if ((this.Order_RowChanging != null)) {
  1274. this.Order_RowChanging(this, new Order_RowChangeEvent(((Order_Row)(e.Row)), e.Action));
  1275. }
  1276. }
  1277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1279. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1280. base.OnRowDeleted(e);
  1281. if ((this.Order_RowDeleted != null)) {
  1282. this.Order_RowDeleted(this, new Order_RowChangeEvent(((Order_Row)(e.Row)), e.Action));
  1283. }
  1284. }
  1285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1287. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1288. base.OnRowDeleting(e);
  1289. if ((this.Order_RowDeleting != null)) {
  1290. this.Order_RowDeleting(this, new Order_RowChangeEvent(((Order_Row)(e.Row)), e.Action));
  1291. }
  1292. }
  1293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1295. public void RemoveOrder_Row(Order_Row row) {
  1296. this.Rows.Remove(row);
  1297. }
  1298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1300. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1301. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1302. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1303. Avtodrive_02DataSet ds = new Avtodrive_02DataSet();
  1304. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1305. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1306. any1.MinOccurs = new decimal(0);
  1307. any1.MaxOccurs = decimal.MaxValue;
  1308. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1309. sequence.Items.Add(any1);
  1310. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1311. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1312. any2.MinOccurs = new decimal(1);
  1313. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1314. sequence.Items.Add(any2);
  1315. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1316. attribute1.Name = "namespace";
  1317. attribute1.FixedValue = ds.Namespace;
  1318. type.Attributes.Add(attribute1);
  1319. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1320. attribute2.Name = "tableTypeName";
  1321. attribute2.FixedValue = "Order_DataTable";
  1322. type.Attributes.Add(attribute2);
  1323. type.Particle = sequence;
  1324. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1325. if (xs.Contains(dsSchema.TargetNamespace)) {
  1326. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1327. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1328. try {
  1329. global::System.Xml.Schema.XmlSchema schema = null;
  1330. dsSchema.Write(s1);
  1331. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1332. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1333. s2.SetLength(0);
  1334. schema.Write(s2);
  1335. if ((s1.Length == s2.Length)) {
  1336. s1.Position = 0;
  1337. s2.Position = 0;
  1338. for (; ((s1.Position != s1.Length)
  1339. && (s1.ReadByte() == s2.ReadByte())); ) {
  1340. ;
  1341. }
  1342. if ((s1.Position == s1.Length)) {
  1343. return type;
  1344. }
  1345. }
  1346. }
  1347. }
  1348. finally {
  1349. if ((s1 != null)) {
  1350. s1.Close();
  1351. }
  1352. if ((s2 != null)) {
  1353. s2.Close();
  1354. }
  1355. }
  1356. }
  1357. xs.Add(dsSchema);
  1358. return type;
  1359. }
  1360. }
  1361. /// <summary>
  1362. ///Represents the strongly named DataTable class.
  1363. ///</summary>
  1364. [global::System.Serializable()]
  1365. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1366. public partial class Task1DataTable : global::System.Data.TypedTableBase<Task1Row> {
  1367. private global::System.Data.DataColumn columnID;
  1368. private global::System.Data.DataColumn columnModel;
  1369. private global::System.Data.DataColumn columnColor;
  1370. private global::System.Data.DataColumn columnCarManufactureDate;
  1371. private global::System.Data.DataColumn columnGovermantNumber;
  1372. private global::System.Data.DataColumn columnCarInsuranceCost;
  1373. private global::System.Data.DataColumn columnOneDayCost;
  1374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1376. public Task1DataTable() {
  1377. this.TableName = "Task1";
  1378. this.BeginInit();
  1379. this.InitClass();
  1380. this.EndInit();
  1381. }
  1382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1384. internal Task1DataTable(global::System.Data.DataTable table) {
  1385. this.TableName = table.TableName;
  1386. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1387. this.CaseSensitive = table.CaseSensitive;
  1388. }
  1389. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1390. this.Locale = table.Locale;
  1391. }
  1392. if ((table.Namespace != table.DataSet.Namespace)) {
  1393. this.Namespace = table.Namespace;
  1394. }
  1395. this.Prefix = table.Prefix;
  1396. this.MinimumCapacity = table.MinimumCapacity;
  1397. }
  1398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1400. protected Task1DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1401. base(info, context) {
  1402. this.InitVars();
  1403. }
  1404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1406. public global::System.Data.DataColumn IDColumn {
  1407. get {
  1408. return this.columnID;
  1409. }
  1410. }
  1411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1413. public global::System.Data.DataColumn ModelColumn {
  1414. get {
  1415. return this.columnModel;
  1416. }
  1417. }
  1418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1420. public global::System.Data.DataColumn ColorColumn {
  1421. get {
  1422. return this.columnColor;
  1423. }
  1424. }
  1425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1427. public global::System.Data.DataColumn CarManufactureDateColumn {
  1428. get {
  1429. return this.columnCarManufactureDate;
  1430. }
  1431. }
  1432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1434. public global::System.Data.DataColumn GovermantNumberColumn {
  1435. get {
  1436. return this.columnGovermantNumber;
  1437. }
  1438. }
  1439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1441. public global::System.Data.DataColumn CarInsuranceCostColumn {
  1442. get {
  1443. return this.columnCarInsuranceCost;
  1444. }
  1445. }
  1446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1448. public global::System.Data.DataColumn OneDayCostColumn {
  1449. get {
  1450. return this.columnOneDayCost;
  1451. }
  1452. }
  1453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1455. [global::System.ComponentModel.Browsable(false)]
  1456. public int Count {
  1457. get {
  1458. return this.Rows.Count;
  1459. }
  1460. }
  1461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1463. public Task1Row this[int index] {
  1464. get {
  1465. return ((Task1Row)(this.Rows[index]));
  1466. }
  1467. }
  1468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1469. public event Task1RowChangeEventHandler Task1RowChanging;
  1470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1471. public event Task1RowChangeEventHandler Task1RowChanged;
  1472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1473. public event Task1RowChangeEventHandler Task1RowDeleting;
  1474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1475. public event Task1RowChangeEventHandler Task1RowDeleted;
  1476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1478. public void AddTask1Row(Task1Row row) {
  1479. this.Rows.Add(row);
  1480. }
  1481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1483. public Task1Row AddTask1Row(string Model, string Color, System.DateTime CarManufactureDate, string GovermantNumber, decimal CarInsuranceCost, decimal OneDayCost) {
  1484. Task1Row rowTask1Row = ((Task1Row)(this.NewRow()));
  1485. object[] columnValuesArray = new object[] {
  1486. null,
  1487. Model,
  1488. Color,
  1489. CarManufactureDate,
  1490. GovermantNumber,
  1491. CarInsuranceCost,
  1492. OneDayCost};
  1493. rowTask1Row.ItemArray = columnValuesArray;
  1494. this.Rows.Add(rowTask1Row);
  1495. return rowTask1Row;
  1496. }
  1497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1499. public Task1Row FindByID(int ID) {
  1500. return ((Task1Row)(this.Rows.Find(new object[] {
  1501. ID})));
  1502. }
  1503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1505. public override global::System.Data.DataTable Clone() {
  1506. Task1DataTable cln = ((Task1DataTable)(base.Clone()));
  1507. cln.InitVars();
  1508. return cln;
  1509. }
  1510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1512. protected override global::System.Data.DataTable CreateInstance() {
  1513. return new Task1DataTable();
  1514. }
  1515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1517. internal void InitVars() {
  1518. this.columnID = base.Columns["ID"];
  1519. this.columnModel = base.Columns["Model"];
  1520. this.columnColor = base.Columns["Color"];
  1521. this.columnCarManufactureDate = base.Columns["CarManufactureDate"];
  1522. this.columnGovermantNumber = base.Columns["GovermantNumber"];
  1523. this.columnCarInsuranceCost = base.Columns["CarInsuranceCost"];
  1524. this.columnOneDayCost = base.Columns["OneDayCost"];
  1525. }
  1526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1528. private void InitClass() {
  1529. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1530. base.Columns.Add(this.columnID);
  1531. this.columnModel = new global::System.Data.DataColumn("Model", typeof(string), null, global::System.Data.MappingType.Element);
  1532. base.Columns.Add(this.columnModel);
  1533. this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
  1534. base.Columns.Add(this.columnColor);
  1535. this.columnCarManufactureDate = new global::System.Data.DataColumn("CarManufactureDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1536. base.Columns.Add(this.columnCarManufactureDate);
  1537. this.columnGovermantNumber = new global::System.Data.DataColumn("GovermantNumber", typeof(string), null, global::System.Data.MappingType.Element);
  1538. base.Columns.Add(this.columnGovermantNumber);
  1539. this.columnCarInsuranceCost = new global::System.Data.DataColumn("CarInsuranceCost", typeof(decimal), null, global::System.Data.MappingType.Element);
  1540. base.Columns.Add(this.columnCarInsuranceCost);
  1541. this.columnOneDayCost = new global::System.Data.DataColumn("OneDayCost", typeof(decimal), null, global::System.Data.MappingType.Element);
  1542. base.Columns.Add(this.columnOneDayCost);
  1543. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1544. this.columnID}, true));
  1545. this.columnID.AutoIncrement = true;
  1546. this.columnID.AllowDBNull = false;
  1547. this.columnID.ReadOnly = true;
  1548. this.columnID.Unique = true;
  1549. this.columnModel.MaxLength = 50;
  1550. this.columnColor.MaxLength = 50;
  1551. this.columnGovermantNumber.MaxLength = 50;
  1552. }
  1553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1555. public Task1Row NewTask1Row() {
  1556. return ((Task1Row)(this.NewRow()));
  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.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1561. return new Task1Row(builder);
  1562. }
  1563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1565. protected override global::System.Type GetRowType() {
  1566. return typeof(Task1Row);
  1567. }
  1568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1570. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1571. base.OnRowChanged(e);
  1572. if ((this.Task1RowChanged != null)) {
  1573. this.Task1RowChanged(this, new Task1RowChangeEvent(((Task1Row)(e.Row)), e.Action));
  1574. }
  1575. }
  1576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1578. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1579. base.OnRowChanging(e);
  1580. if ((this.Task1RowChanging != null)) {
  1581. this.Task1RowChanging(this, new Task1RowChangeEvent(((Task1Row)(e.Row)), e.Action));
  1582. }
  1583. }
  1584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1586. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1587. base.OnRowDeleted(e);
  1588. if ((this.Task1RowDeleted != null)) {
  1589. this.Task1RowDeleted(this, new Task1RowChangeEvent(((Task1Row)(e.Row)), e.Action));
  1590. }
  1591. }
  1592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1594. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1595. base.OnRowDeleting(e);
  1596. if ((this.Task1RowDeleting != null)) {
  1597. this.Task1RowDeleting(this, new Task1RowChangeEvent(((Task1Row)(e.Row)), e.Action));
  1598. }
  1599. }
  1600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1602. public void RemoveTask1Row(Task1Row row) {
  1603. this.Rows.Remove(row);
  1604. }
  1605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1607. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1608. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1609. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1610. Avtodrive_02DataSet ds = new Avtodrive_02DataSet();
  1611. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1612. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1613. any1.MinOccurs = new decimal(0);
  1614. any1.MaxOccurs = decimal.MaxValue;
  1615. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1616. sequence.Items.Add(any1);
  1617. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1618. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1619. any2.MinOccurs = new decimal(1);
  1620. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1621. sequence.Items.Add(any2);
  1622. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1623. attribute1.Name = "namespace";
  1624. attribute1.FixedValue = ds.Namespace;
  1625. type.Attributes.Add(attribute1);
  1626. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1627. attribute2.Name = "tableTypeName";
  1628. attribute2.FixedValue = "Task1DataTable";
  1629. type.Attributes.Add(attribute2);
  1630. type.Particle = sequence;
  1631. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1632. if (xs.Contains(dsSchema.TargetNamespace)) {
  1633. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1634. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1635. try {
  1636. global::System.Xml.Schema.XmlSchema schema = null;
  1637. dsSchema.Write(s1);
  1638. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1639. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1640. s2.SetLength(0);
  1641. schema.Write(s2);
  1642. if ((s1.Length == s2.Length)) {
  1643. s1.Position = 0;
  1644. s2.Position = 0;
  1645. for (; ((s1.Position != s1.Length)
  1646. && (s1.ReadByte() == s2.ReadByte())); ) {
  1647. ;
  1648. }
  1649. if ((s1.Position == s1.Length)) {
  1650. return type;
  1651. }
  1652. }
  1653. }
  1654. }
  1655. finally {
  1656. if ((s1 != null)) {
  1657. s1.Close();
  1658. }
  1659. if ((s2 != null)) {
  1660. s2.Close();
  1661. }
  1662. }
  1663. }
  1664. xs.Add(dsSchema);
  1665. return type;
  1666. }
  1667. }
  1668. /// <summary>
  1669. ///Represents the strongly named DataTable class.
  1670. ///</summary>
  1671. [global::System.Serializable()]
  1672. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1673. public partial class Task2DataTable : global::System.Data.TypedTableBase<Task2Row> {
  1674. private global::System.Data.DataColumn columnID;
  1675. private global::System.Data.DataColumn columnModel;
  1676. private global::System.Data.DataColumn columnColor;
  1677. private global::System.Data.DataColumn columnCarManufactureDate;
  1678. private global::System.Data.DataColumn columnGovermantNumber;
  1679. private global::System.Data.DataColumn columnCarInsuranceCost;
  1680. private global::System.Data.DataColumn columnOneDayCost;
  1681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1683. public Task2DataTable() {
  1684. this.TableName = "Task2";
  1685. this.BeginInit();
  1686. this.InitClass();
  1687. this.EndInit();
  1688. }
  1689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1691. internal Task2DataTable(global::System.Data.DataTable table) {
  1692. this.TableName = table.TableName;
  1693. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1694. this.CaseSensitive = table.CaseSensitive;
  1695. }
  1696. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1697. this.Locale = table.Locale;
  1698. }
  1699. if ((table.Namespace != table.DataSet.Namespace)) {
  1700. this.Namespace = table.Namespace;
  1701. }
  1702. this.Prefix = table.Prefix;
  1703. this.MinimumCapacity = table.MinimumCapacity;
  1704. }
  1705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1707. protected Task2DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1708. base(info, context) {
  1709. this.InitVars();
  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 IDColumn {
  1714. get {
  1715. return this.columnID;
  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 ModelColumn {
  1721. get {
  1722. return this.columnModel;
  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 ColorColumn {
  1728. get {
  1729. return this.columnColor;
  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 CarManufactureDateColumn {
  1735. get {
  1736. return this.columnCarManufactureDate;
  1737. }
  1738. }
  1739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1741. public global::System.Data.DataColumn GovermantNumberColumn {
  1742. get {
  1743. return this.columnGovermantNumber;
  1744. }
  1745. }
  1746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1748. public global::System.Data.DataColumn CarInsuranceCostColumn {
  1749. get {
  1750. return this.columnCarInsuranceCost;
  1751. }
  1752. }
  1753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1755. public global::System.Data.DataColumn OneDayCostColumn {
  1756. get {
  1757. return this.columnOneDayCost;
  1758. }
  1759. }
  1760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1762. [global::System.ComponentModel.Browsable(false)]
  1763. public int Count {
  1764. get {
  1765. return this.Rows.Count;
  1766. }
  1767. }
  1768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1770. public Task2Row this[int index] {
  1771. get {
  1772. return ((Task2Row)(this.Rows[index]));
  1773. }
  1774. }
  1775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1776. public event Task2RowChangeEventHandler Task2RowChanging;
  1777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1778. public event Task2RowChangeEventHandler Task2RowChanged;
  1779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1780. public event Task2RowChangeEventHandler Task2RowDeleting;
  1781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1782. public event Task2RowChangeEventHandler Task2RowDeleted;
  1783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1785. public void AddTask2Row(Task2Row row) {
  1786. this.Rows.Add(row);
  1787. }
  1788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1790. public Task2Row AddTask2Row(string Model, string Color, System.DateTime CarManufactureDate, string GovermantNumber, decimal CarInsuranceCost, decimal OneDayCost) {
  1791. Task2Row rowTask2Row = ((Task2Row)(this.NewRow()));
  1792. object[] columnValuesArray = new object[] {
  1793. null,
  1794. Model,
  1795. Color,
  1796. CarManufactureDate,
  1797. GovermantNumber,
  1798. CarInsuranceCost,
  1799. OneDayCost};
  1800. rowTask2Row.ItemArray = columnValuesArray;
  1801. this.Rows.Add(rowTask2Row);
  1802. return rowTask2Row;
  1803. }
  1804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1806. public Task2Row FindByID(int ID) {
  1807. return ((Task2Row)(this.Rows.Find(new object[] {
  1808. ID})));
  1809. }
  1810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1812. public override global::System.Data.DataTable Clone() {
  1813. Task2DataTable cln = ((Task2DataTable)(base.Clone()));
  1814. cln.InitVars();
  1815. return cln;
  1816. }
  1817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1819. protected override global::System.Data.DataTable CreateInstance() {
  1820. return new Task2DataTable();
  1821. }
  1822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1824. internal void InitVars() {
  1825. this.columnID = base.Columns["ID"];
  1826. this.columnModel = base.Columns["Model"];
  1827. this.columnColor = base.Columns["Color"];
  1828. this.columnCarManufactureDate = base.Columns["CarManufactureDate"];
  1829. this.columnGovermantNumber = base.Columns["GovermantNumber"];
  1830. this.columnCarInsuranceCost = base.Columns["CarInsuranceCost"];
  1831. this.columnOneDayCost = base.Columns["OneDayCost"];
  1832. }
  1833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1835. private void InitClass() {
  1836. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1837. base.Columns.Add(this.columnID);
  1838. this.columnModel = new global::System.Data.DataColumn("Model", typeof(string), null, global::System.Data.MappingType.Element);
  1839. base.Columns.Add(this.columnModel);
  1840. this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
  1841. base.Columns.Add(this.columnColor);
  1842. this.columnCarManufactureDate = new global::System.Data.DataColumn("CarManufactureDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1843. base.Columns.Add(this.columnCarManufactureDate);
  1844. this.columnGovermantNumber = new global::System.Data.DataColumn("GovermantNumber", typeof(string), null, global::System.Data.MappingType.Element);
  1845. base.Columns.Add(this.columnGovermantNumber);
  1846. this.columnCarInsuranceCost = new global::System.Data.DataColumn("CarInsuranceCost", typeof(decimal), null, global::System.Data.MappingType.Element);
  1847. base.Columns.Add(this.columnCarInsuranceCost);
  1848. this.columnOneDayCost = new global::System.Data.DataColumn("OneDayCost", typeof(decimal), null, global::System.Data.MappingType.Element);
  1849. base.Columns.Add(this.columnOneDayCost);
  1850. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1851. this.columnID}, true));
  1852. this.columnID.AutoIncrement = true;
  1853. this.columnID.AllowDBNull = false;
  1854. this.columnID.ReadOnly = true;
  1855. this.columnID.Unique = true;
  1856. this.columnModel.MaxLength = 50;
  1857. this.columnColor.MaxLength = 50;
  1858. this.columnGovermantNumber.MaxLength = 50;
  1859. }
  1860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1862. public Task2Row NewTask2Row() {
  1863. return ((Task2Row)(this.NewRow()));
  1864. }
  1865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1867. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1868. return new Task2Row(builder);
  1869. }
  1870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1872. protected override global::System.Type GetRowType() {
  1873. return typeof(Task2Row);
  1874. }
  1875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1877. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1878. base.OnRowChanged(e);
  1879. if ((this.Task2RowChanged != null)) {
  1880. this.Task2RowChanged(this, new Task2RowChangeEvent(((Task2Row)(e.Row)), e.Action));
  1881. }
  1882. }
  1883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1885. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1886. base.OnRowChanging(e);
  1887. if ((this.Task2RowChanging != null)) {
  1888. this.Task2RowChanging(this, new Task2RowChangeEvent(((Task2Row)(e.Row)), e.Action));
  1889. }
  1890. }
  1891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1893. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1894. base.OnRowDeleted(e);
  1895. if ((this.Task2RowDeleted != null)) {
  1896. this.Task2RowDeleted(this, new Task2RowChangeEvent(((Task2Row)(e.Row)), e.Action));
  1897. }
  1898. }
  1899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1901. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1902. base.OnRowDeleting(e);
  1903. if ((this.Task2RowDeleting != null)) {
  1904. this.Task2RowDeleting(this, new Task2RowChangeEvent(((Task2Row)(e.Row)), e.Action));
  1905. }
  1906. }
  1907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1909. public void RemoveTask2Row(Task2Row row) {
  1910. this.Rows.Remove(row);
  1911. }
  1912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1914. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1915. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1916. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1917. Avtodrive_02DataSet ds = new Avtodrive_02DataSet();
  1918. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1919. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1920. any1.MinOccurs = new decimal(0);
  1921. any1.MaxOccurs = decimal.MaxValue;
  1922. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1923. sequence.Items.Add(any1);
  1924. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1925. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1926. any2.MinOccurs = new decimal(1);
  1927. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1928. sequence.Items.Add(any2);
  1929. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1930. attribute1.Name = "namespace";
  1931. attribute1.FixedValue = ds.Namespace;
  1932. type.Attributes.Add(attribute1);
  1933. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1934. attribute2.Name = "tableTypeName";
  1935. attribute2.FixedValue = "Task2DataTable";
  1936. type.Attributes.Add(attribute2);
  1937. type.Particle = sequence;
  1938. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1939. if (xs.Contains(dsSchema.TargetNamespace)) {
  1940. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1941. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1942. try {
  1943. global::System.Xml.Schema.XmlSchema schema = null;
  1944. dsSchema.Write(s1);
  1945. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1946. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1947. s2.SetLength(0);
  1948. schema.Write(s2);
  1949. if ((s1.Length == s2.Length)) {
  1950. s1.Position = 0;
  1951. s2.Position = 0;
  1952. for (; ((s1.Position != s1.Length)
  1953. && (s1.ReadByte() == s2.ReadByte())); ) {
  1954. ;
  1955. }
  1956. if ((s1.Position == s1.Length)) {
  1957. return type;
  1958. }
  1959. }
  1960. }
  1961. }
  1962. finally {
  1963. if ((s1 != null)) {
  1964. s1.Close();
  1965. }
  1966. if ((s2 != null)) {
  1967. s2.Close();
  1968. }
  1969. }
  1970. }
  1971. xs.Add(dsSchema);
  1972. return type;
  1973. }
  1974. }
  1975. /// <summary>
  1976. ///Represents the strongly named DataTable class.
  1977. ///</summary>
  1978. [global::System.Serializable()]
  1979. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1980. public partial class Task3DataTable : global::System.Data.TypedTableBase<Task3Row> {
  1981. private global::System.Data.DataColumn columnFIO;
  1982. private global::System.Data.DataColumn columnModel;
  1983. private global::System.Data.DataColumn columnGovermantNumber;
  1984. private global::System.Data.DataColumn columnDate_order;
  1985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1987. public Task3DataTable() {
  1988. this.TableName = "Task3";
  1989. this.BeginInit();
  1990. this.InitClass();
  1991. this.EndInit();
  1992. }
  1993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1995. internal Task3DataTable(global::System.Data.DataTable table) {
  1996. this.TableName = table.TableName;
  1997. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1998. this.CaseSensitive = table.CaseSensitive;
  1999. }
  2000. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2001. this.Locale = table.Locale;
  2002. }
  2003. if ((table.Namespace != table.DataSet.Namespace)) {
  2004. this.Namespace = table.Namespace;
  2005. }
  2006. this.Prefix = table.Prefix;
  2007. this.MinimumCapacity = table.MinimumCapacity;
  2008. }
  2009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2011. protected Task3DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2012. base(info, context) {
  2013. this.InitVars();
  2014. }
  2015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2017. public global::System.Data.DataColumn FIOColumn {
  2018. get {
  2019. return this.columnFIO;
  2020. }
  2021. }
  2022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2024. public global::System.Data.DataColumn ModelColumn {
  2025. get {
  2026. return this.columnModel;
  2027. }
  2028. }
  2029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2031. public global::System.Data.DataColumn GovermantNumberColumn {
  2032. get {
  2033. return this.columnGovermantNumber;
  2034. }
  2035. }
  2036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2038. public global::System.Data.DataColumn Date_orderColumn {
  2039. get {
  2040. return this.columnDate_order;
  2041. }
  2042. }
  2043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2045. [global::System.ComponentModel.Browsable(false)]
  2046. public int Count {
  2047. get {
  2048. return this.Rows.Count;
  2049. }
  2050. }
  2051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2053. public Task3Row this[int index] {
  2054. get {
  2055. return ((Task3Row)(this.Rows[index]));
  2056. }
  2057. }
  2058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2059. public event Task3RowChangeEventHandler Task3RowChanging;
  2060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2061. public event Task3RowChangeEventHandler Task3RowChanged;
  2062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2063. public event Task3RowChangeEventHandler Task3RowDeleting;
  2064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2065. public event Task3RowChangeEventHandler Task3RowDeleted;
  2066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2068. public void AddTask3Row(Task3Row row) {
  2069. this.Rows.Add(row);
  2070. }
  2071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2073. public Task3Row AddTask3Row(string FIO, string Model, string GovermantNumber, System.DateTime Date_order) {
  2074. Task3Row rowTask3Row = ((Task3Row)(this.NewRow()));
  2075. object[] columnValuesArray = new object[] {
  2076. FIO,
  2077. Model,
  2078. GovermantNumber,
  2079. Date_order};
  2080. rowTask3Row.ItemArray = columnValuesArray;
  2081. this.Rows.Add(rowTask3Row);
  2082. return rowTask3Row;
  2083. }
  2084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2086. public override global::System.Data.DataTable Clone() {
  2087. Task3DataTable cln = ((Task3DataTable)(base.Clone()));
  2088. cln.InitVars();
  2089. return cln;
  2090. }
  2091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2093. protected override global::System.Data.DataTable CreateInstance() {
  2094. return new Task3DataTable();
  2095. }
  2096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2098. internal void InitVars() {
  2099. this.columnFIO = base.Columns["FIO"];
  2100. this.columnModel = base.Columns["Model"];
  2101. this.columnGovermantNumber = base.Columns["GovermantNumber"];
  2102. this.columnDate_order = base.Columns["Date_order"];
  2103. }
  2104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2106. private void InitClass() {
  2107. this.columnFIO = new global::System.Data.DataColumn("FIO", typeof(string), null, global::System.Data.MappingType.Element);
  2108. base.Columns.Add(this.columnFIO);
  2109. this.columnModel = new global::System.Data.DataColumn("Model", typeof(string), null, global::System.Data.MappingType.Element);
  2110. base.Columns.Add(this.columnModel);
  2111. this.columnGovermantNumber = new global::System.Data.DataColumn("GovermantNumber", typeof(string), null, global::System.Data.MappingType.Element);
  2112. base.Columns.Add(this.columnGovermantNumber);
  2113. this.columnDate_order = new global::System.Data.DataColumn("Date_order", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2114. base.Columns.Add(this.columnDate_order);
  2115. this.columnFIO.MaxLength = 50;
  2116. this.columnModel.MaxLength = 50;
  2117. this.columnGovermantNumber.MaxLength = 50;
  2118. }
  2119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2121. public Task3Row NewTask3Row() {
  2122. return ((Task3Row)(this.NewRow()));
  2123. }
  2124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2126. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2127. return new Task3Row(builder);
  2128. }
  2129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2131. protected override global::System.Type GetRowType() {
  2132. return typeof(Task3Row);
  2133. }
  2134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2136. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2137. base.OnRowChanged(e);
  2138. if ((this.Task3RowChanged != null)) {
  2139. this.Task3RowChanged(this, new Task3RowChangeEvent(((Task3Row)(e.Row)), e.Action));
  2140. }
  2141. }
  2142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2144. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2145. base.OnRowChanging(e);
  2146. if ((this.Task3RowChanging != null)) {
  2147. this.Task3RowChanging(this, new Task3RowChangeEvent(((Task3Row)(e.Row)), e.Action));
  2148. }
  2149. }
  2150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2152. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2153. base.OnRowDeleted(e);
  2154. if ((this.Task3RowDeleted != null)) {
  2155. this.Task3RowDeleted(this, new Task3RowChangeEvent(((Task3Row)(e.Row)), e.Action));
  2156. }
  2157. }
  2158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2160. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2161. base.OnRowDeleting(e);
  2162. if ((this.Task3RowDeleting != null)) {
  2163. this.Task3RowDeleting(this, new Task3RowChangeEvent(((Task3Row)(e.Row)), e.Action));
  2164. }
  2165. }
  2166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2168. public void RemoveTask3Row(Task3Row row) {
  2169. this.Rows.Remove(row);
  2170. }
  2171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2173. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2174. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2175. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2176. Avtodrive_02DataSet ds = new Avtodrive_02DataSet();
  2177. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2178. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2179. any1.MinOccurs = new decimal(0);
  2180. any1.MaxOccurs = decimal.MaxValue;
  2181. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2182. sequence.Items.Add(any1);
  2183. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2184. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2185. any2.MinOccurs = new decimal(1);
  2186. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2187. sequence.Items.Add(any2);
  2188. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2189. attribute1.Name = "namespace";
  2190. attribute1.FixedValue = ds.Namespace;
  2191. type.Attributes.Add(attribute1);
  2192. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2193. attribute2.Name = "tableTypeName";
  2194. attribute2.FixedValue = "Task3DataTable";
  2195. type.Attributes.Add(attribute2);
  2196. type.Particle = sequence;
  2197. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2198. if (xs.Contains(dsSchema.TargetNamespace)) {
  2199. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2200. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2201. try {
  2202. global::System.Xml.Schema.XmlSchema schema = null;
  2203. dsSchema.Write(s1);
  2204. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2205. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2206. s2.SetLength(0);
  2207. schema.Write(s2);
  2208. if ((s1.Length == s2.Length)) {
  2209. s1.Position = 0;
  2210. s2.Position = 0;
  2211. for (; ((s1.Position != s1.Length)
  2212. && (s1.ReadByte() == s2.ReadByte())); ) {
  2213. ;
  2214. }
  2215. if ((s1.Position == s1.Length)) {
  2216. return type;
  2217. }
  2218. }
  2219. }
  2220. }
  2221. finally {
  2222. if ((s1 != null)) {
  2223. s1.Close();
  2224. }
  2225. if ((s2 != null)) {
  2226. s2.Close();
  2227. }
  2228. }
  2229. }
  2230. xs.Add(dsSchema);
  2231. return type;
  2232. }
  2233. }
  2234. /// <summary>
  2235. ///Represents the strongly named DataTable class.
  2236. ///</summary>
  2237. [global::System.Serializable()]
  2238. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2239. public partial class Task4DataTable : global::System.Data.TypedTableBase<Task4Row> {
  2240. private global::System.Data.DataColumn columnGovermantNumber;
  2241. private global::System.Data.DataColumn columnModel;
  2242. private global::System.Data.DataColumn columnOneDayCost;
  2243. private global::System.Data.DataColumn columnOrderTimeDay;
  2244. private global::System.Data.DataColumn columnСтоимость;
  2245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2247. public Task4DataTable() {
  2248. this.TableName = "Task4";
  2249. this.BeginInit();
  2250. this.InitClass();
  2251. this.EndInit();
  2252. }
  2253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2255. internal Task4DataTable(global::System.Data.DataTable table) {
  2256. this.TableName = table.TableName;
  2257. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2258. this.CaseSensitive = table.CaseSensitive;
  2259. }
  2260. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2261. this.Locale = table.Locale;
  2262. }
  2263. if ((table.Namespace != table.DataSet.Namespace)) {
  2264. this.Namespace = table.Namespace;
  2265. }
  2266. this.Prefix = table.Prefix;
  2267. this.MinimumCapacity = table.MinimumCapacity;
  2268. }
  2269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2271. protected Task4DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2272. base(info, context) {
  2273. this.InitVars();
  2274. }
  2275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2277. public global::System.Data.DataColumn GovermantNumberColumn {
  2278. get {
  2279. return this.columnGovermantNumber;
  2280. }
  2281. }
  2282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2284. public global::System.Data.DataColumn ModelColumn {
  2285. get {
  2286. return this.columnModel;
  2287. }
  2288. }
  2289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2291. public global::System.Data.DataColumn OneDayCostColumn {
  2292. get {
  2293. return this.columnOneDayCost;
  2294. }
  2295. }
  2296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2298. public global::System.Data.DataColumn OrderTimeDayColumn {
  2299. get {
  2300. return this.columnOrderTimeDay;
  2301. }
  2302. }
  2303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2305. public global::System.Data.DataColumn СтоимостьColumn {
  2306. get {
  2307. return this.columnСтоимость;
  2308. }
  2309. }
  2310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2312. [global::System.ComponentModel.Browsable(false)]
  2313. public int Count {
  2314. get {
  2315. return this.Rows.Count;
  2316. }
  2317. }
  2318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2320. public Task4Row this[int index] {
  2321. get {
  2322. return ((Task4Row)(this.Rows[index]));
  2323. }
  2324. }
  2325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2326. public event Task4RowChangeEventHandler Task4RowChanging;
  2327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2328. public event Task4RowChangeEventHandler Task4RowChanged;
  2329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2330. public event Task4RowChangeEventHandler Task4RowDeleting;
  2331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2332. public event Task4RowChangeEventHandler Task4RowDeleted;
  2333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2335. public void AddTask4Row(Task4Row row) {
  2336. this.Rows.Add(row);
  2337. }
  2338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2340. public Task4Row AddTask4Row(string GovermantNumber, string Model, decimal OneDayCost, int OrderTimeDay, decimal Стоимость) {
  2341. Task4Row rowTask4Row = ((Task4Row)(this.NewRow()));
  2342. object[] columnValuesArray = new object[] {
  2343. GovermantNumber,
  2344. Model,
  2345. OneDayCost,
  2346. OrderTimeDay,
  2347. Стоимость};
  2348. rowTask4Row.ItemArray = columnValuesArray;
  2349. this.Rows.Add(rowTask4Row);
  2350. return rowTask4Row;
  2351. }
  2352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2354. public override global::System.Data.DataTable Clone() {
  2355. Task4DataTable cln = ((Task4DataTable)(base.Clone()));
  2356. cln.InitVars();
  2357. return cln;
  2358. }
  2359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2361. protected override global::System.Data.DataTable CreateInstance() {
  2362. return new Task4DataTable();
  2363. }
  2364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2366. internal void InitVars() {
  2367. this.columnGovermantNumber = base.Columns["GovermantNumber"];
  2368. this.columnModel = base.Columns["Model"];
  2369. this.columnOneDayCost = base.Columns["OneDayCost"];
  2370. this.columnOrderTimeDay = base.Columns["OrderTimeDay"];
  2371. this.columnСтоимость = base.Columns["Стоимость"];
  2372. }
  2373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2375. private void InitClass() {
  2376. this.columnGovermantNumber = new global::System.Data.DataColumn("GovermantNumber", typeof(string), null, global::System.Data.MappingType.Element);
  2377. base.Columns.Add(this.columnGovermantNumber);
  2378. this.columnModel = new global::System.Data.DataColumn("Model", typeof(string), null, global::System.Data.MappingType.Element);
  2379. base.Columns.Add(this.columnModel);
  2380. this.columnOneDayCost = new global::System.Data.DataColumn("OneDayCost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2381. base.Columns.Add(this.columnOneDayCost);
  2382. this.columnOrderTimeDay = new global::System.Data.DataColumn("OrderTimeDay", typeof(int), null, global::System.Data.MappingType.Element);
  2383. base.Columns.Add(this.columnOrderTimeDay);
  2384. this.columnСтоимость = new global::System.Data.DataColumn("Стоимость", typeof(decimal), null, global::System.Data.MappingType.Element);
  2385. base.Columns.Add(this.columnСтоимость);
  2386. this.columnGovermantNumber.MaxLength = 50;
  2387. this.columnModel.MaxLength = 50;
  2388. this.columnСтоимость.ReadOnly = true;
  2389. }
  2390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2392. public Task4Row NewTask4Row() {
  2393. return ((Task4Row)(this.NewRow()));
  2394. }
  2395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2397. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2398. return new Task4Row(builder);
  2399. }
  2400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2402. protected override global::System.Type GetRowType() {
  2403. return typeof(Task4Row);
  2404. }
  2405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2407. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2408. base.OnRowChanged(e);
  2409. if ((this.Task4RowChanged != null)) {
  2410. this.Task4RowChanged(this, new Task4RowChangeEvent(((Task4Row)(e.Row)), e.Action));
  2411. }
  2412. }
  2413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2415. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2416. base.OnRowChanging(e);
  2417. if ((this.Task4RowChanging != null)) {
  2418. this.Task4RowChanging(this, new Task4RowChangeEvent(((Task4Row)(e.Row)), e.Action));
  2419. }
  2420. }
  2421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2423. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2424. base.OnRowDeleted(e);
  2425. if ((this.Task4RowDeleted != null)) {
  2426. this.Task4RowDeleted(this, new Task4RowChangeEvent(((Task4Row)(e.Row)), e.Action));
  2427. }
  2428. }
  2429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2431. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2432. base.OnRowDeleting(e);
  2433. if ((this.Task4RowDeleting != null)) {
  2434. this.Task4RowDeleting(this, new Task4RowChangeEvent(((Task4Row)(e.Row)), e.Action));
  2435. }
  2436. }
  2437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2439. public void RemoveTask4Row(Task4Row row) {
  2440. this.Rows.Remove(row);
  2441. }
  2442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2444. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2445. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2446. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2447. Avtodrive_02DataSet ds = new Avtodrive_02DataSet();
  2448. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2449. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2450. any1.MinOccurs = new decimal(0);
  2451. any1.MaxOccurs = decimal.MaxValue;
  2452. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2453. sequence.Items.Add(any1);
  2454. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2455. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2456. any2.MinOccurs = new decimal(1);
  2457. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2458. sequence.Items.Add(any2);
  2459. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2460. attribute1.Name = "namespace";
  2461. attribute1.FixedValue = ds.Namespace;
  2462. type.Attributes.Add(attribute1);
  2463. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2464. attribute2.Name = "tableTypeName";
  2465. attribute2.FixedValue = "Task4DataTable";
  2466. type.Attributes.Add(attribute2);
  2467. type.Particle = sequence;
  2468. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2469. if (xs.Contains(dsSchema.TargetNamespace)) {
  2470. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2471. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2472. try {
  2473. global::System.Xml.Schema.XmlSchema schema = null;
  2474. dsSchema.Write(s1);
  2475. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2476. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2477. s2.SetLength(0);
  2478. schema.Write(s2);
  2479. if ((s1.Length == s2.Length)) {
  2480. s1.Position = 0;
  2481. s2.Position = 0;
  2482. for (; ((s1.Position != s1.Length)
  2483. && (s1.ReadByte() == s2.ReadByte())); ) {
  2484. ;
  2485. }
  2486. if ((s1.Position == s1.Length)) {
  2487. return type;
  2488. }
  2489. }
  2490. }
  2491. }
  2492. finally {
  2493. if ((s1 != null)) {
  2494. s1.Close();
  2495. }
  2496. if ((s2 != null)) {
  2497. s2.Close();
  2498. }
  2499. }
  2500. }
  2501. xs.Add(dsSchema);
  2502. return type;
  2503. }
  2504. }
  2505. /// <summary>
  2506. ///Represents the strongly named DataTable class.
  2507. ///</summary>
  2508. [global::System.Serializable()]
  2509. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2510. public partial class Task5DataTable : global::System.Data.TypedTableBase<Task5Row> {
  2511. private global::System.Data.DataColumn columnModel;
  2512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2514. public Task5DataTable() {
  2515. this.TableName = "Task5";
  2516. this.BeginInit();
  2517. this.InitClass();
  2518. this.EndInit();
  2519. }
  2520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2522. internal Task5DataTable(global::System.Data.DataTable table) {
  2523. this.TableName = table.TableName;
  2524. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2525. this.CaseSensitive = table.CaseSensitive;
  2526. }
  2527. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2528. this.Locale = table.Locale;
  2529. }
  2530. if ((table.Namespace != table.DataSet.Namespace)) {
  2531. this.Namespace = table.Namespace;
  2532. }
  2533. this.Prefix = table.Prefix;
  2534. this.MinimumCapacity = table.MinimumCapacity;
  2535. }
  2536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2538. protected Task5DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2539. base(info, context) {
  2540. this.InitVars();
  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 ModelColumn {
  2545. get {
  2546. return this.columnModel;
  2547. }
  2548. }
  2549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2551. [global::System.ComponentModel.Browsable(false)]
  2552. public int Count {
  2553. get {
  2554. return this.Rows.Count;
  2555. }
  2556. }
  2557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2559. public Task5Row this[int index] {
  2560. get {
  2561. return ((Task5Row)(this.Rows[index]));
  2562. }
  2563. }
  2564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2565. public event Task5RowChangeEventHandler Task5RowChanging;
  2566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2567. public event Task5RowChangeEventHandler Task5RowChanged;
  2568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2569. public event Task5RowChangeEventHandler Task5RowDeleting;
  2570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2571. public event Task5RowChangeEventHandler Task5RowDeleted;
  2572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2574. public void AddTask5Row(Task5Row row) {
  2575. this.Rows.Add(row);
  2576. }
  2577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2579. public Task5Row AddTask5Row(string Model) {
  2580. Task5Row rowTask5Row = ((Task5Row)(this.NewRow()));
  2581. object[] columnValuesArray = new object[] {
  2582. Model};
  2583. rowTask5Row.ItemArray = columnValuesArray;
  2584. this.Rows.Add(rowTask5Row);
  2585. return rowTask5Row;
  2586. }
  2587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2589. public override global::System.Data.DataTable Clone() {
  2590. Task5DataTable cln = ((Task5DataTable)(base.Clone()));
  2591. cln.InitVars();
  2592. return cln;
  2593. }
  2594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2596. protected override global::System.Data.DataTable CreateInstance() {
  2597. return new Task5DataTable();
  2598. }
  2599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2601. internal void InitVars() {
  2602. this.columnModel = base.Columns["Model"];
  2603. }
  2604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2606. private void InitClass() {
  2607. this.columnModel = new global::System.Data.DataColumn("Model", typeof(string), null, global::System.Data.MappingType.Element);
  2608. base.Columns.Add(this.columnModel);
  2609. this.columnModel.MaxLength = 50;
  2610. }
  2611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2613. public Task5Row NewTask5Row() {
  2614. return ((Task5Row)(this.NewRow()));
  2615. }
  2616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2618. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2619. return new Task5Row(builder);
  2620. }
  2621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2623. protected override global::System.Type GetRowType() {
  2624. return typeof(Task5Row);
  2625. }
  2626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2628. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2629. base.OnRowChanged(e);
  2630. if ((this.Task5RowChanged != null)) {
  2631. this.Task5RowChanged(this, new Task5RowChangeEvent(((Task5Row)(e.Row)), e.Action));
  2632. }
  2633. }
  2634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2636. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2637. base.OnRowChanging(e);
  2638. if ((this.Task5RowChanging != null)) {
  2639. this.Task5RowChanging(this, new Task5RowChangeEvent(((Task5Row)(e.Row)), e.Action));
  2640. }
  2641. }
  2642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2644. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2645. base.OnRowDeleted(e);
  2646. if ((this.Task5RowDeleted != null)) {
  2647. this.Task5RowDeleted(this, new Task5RowChangeEvent(((Task5Row)(e.Row)), e.Action));
  2648. }
  2649. }
  2650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2652. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2653. base.OnRowDeleting(e);
  2654. if ((this.Task5RowDeleting != null)) {
  2655. this.Task5RowDeleting(this, new Task5RowChangeEvent(((Task5Row)(e.Row)), e.Action));
  2656. }
  2657. }
  2658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2660. public void RemoveTask5Row(Task5Row row) {
  2661. this.Rows.Remove(row);
  2662. }
  2663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2665. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2666. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2667. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2668. Avtodrive_02DataSet ds = new Avtodrive_02DataSet();
  2669. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2670. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2671. any1.MinOccurs = new decimal(0);
  2672. any1.MaxOccurs = decimal.MaxValue;
  2673. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2674. sequence.Items.Add(any1);
  2675. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2676. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2677. any2.MinOccurs = new decimal(1);
  2678. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2679. sequence.Items.Add(any2);
  2680. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2681. attribute1.Name = "namespace";
  2682. attribute1.FixedValue = ds.Namespace;
  2683. type.Attributes.Add(attribute1);
  2684. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2685. attribute2.Name = "tableTypeName";
  2686. attribute2.FixedValue = "Task5DataTable";
  2687. type.Attributes.Add(attribute2);
  2688. type.Particle = sequence;
  2689. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2690. if (xs.Contains(dsSchema.TargetNamespace)) {
  2691. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2692. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2693. try {
  2694. global::System.Xml.Schema.XmlSchema schema = null;
  2695. dsSchema.Write(s1);
  2696. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2697. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2698. s2.SetLength(0);
  2699. schema.Write(s2);
  2700. if ((s1.Length == s2.Length)) {
  2701. s1.Position = 0;
  2702. s2.Position = 0;
  2703. for (; ((s1.Position != s1.Length)
  2704. && (s1.ReadByte() == s2.ReadByte())); ) {
  2705. ;
  2706. }
  2707. if ((s1.Position == s1.Length)) {
  2708. return type;
  2709. }
  2710. }
  2711. }
  2712. }
  2713. finally {
  2714. if ((s1 != null)) {
  2715. s1.Close();
  2716. }
  2717. if ((s2 != null)) {
  2718. s2.Close();
  2719. }
  2720. }
  2721. }
  2722. xs.Add(dsSchema);
  2723. return type;
  2724. }
  2725. }
  2726. /// <summary>
  2727. ///Represents strongly named DataRow class.
  2728. ///</summary>
  2729. public partial class CarRow : global::System.Data.DataRow {
  2730. private CarDataTable tableCar;
  2731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2733. internal CarRow(global::System.Data.DataRowBuilder rb) :
  2734. base(rb) {
  2735. this.tableCar = ((CarDataTable)(this.Table));
  2736. }
  2737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2739. public int ID {
  2740. get {
  2741. return ((int)(this[this.tableCar.IDColumn]));
  2742. }
  2743. set {
  2744. this[this.tableCar.IDColumn] = value;
  2745. }
  2746. }
  2747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2749. public string Model {
  2750. get {
  2751. try {
  2752. return ((string)(this[this.tableCar.ModelColumn]));
  2753. }
  2754. catch (global::System.InvalidCastException e) {
  2755. throw new global::System.Data.StrongTypingException("Значение для столбца \'Model\' в таблице \'Car\' равно DBNull.", e);
  2756. }
  2757. }
  2758. set {
  2759. this[this.tableCar.ModelColumn] = value;
  2760. }
  2761. }
  2762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2764. public string Color {
  2765. get {
  2766. try {
  2767. return ((string)(this[this.tableCar.ColorColumn]));
  2768. }
  2769. catch (global::System.InvalidCastException e) {
  2770. throw new global::System.Data.StrongTypingException("Значение для столбца \'Color\' в таблице \'Car\' равно DBNull.", e);
  2771. }
  2772. }
  2773. set {
  2774. this[this.tableCar.ColorColumn] = value;
  2775. }
  2776. }
  2777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2779. public System.DateTime CarManufactureDate {
  2780. get {
  2781. try {
  2782. return ((global::System.DateTime)(this[this.tableCar.CarManufactureDateColumn]));
  2783. }
  2784. catch (global::System.InvalidCastException e) {
  2785. throw new global::System.Data.StrongTypingException("Значение для столбца \'CarManufactureDate\' в таблице \'Car\' равно DBNull.", e);
  2786. }
  2787. }
  2788. set {
  2789. this[this.tableCar.CarManufactureDateColumn] = value;
  2790. }
  2791. }
  2792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2794. public string GovermantNumber {
  2795. get {
  2796. try {
  2797. return ((string)(this[this.tableCar.GovermantNumberColumn]));
  2798. }
  2799. catch (global::System.InvalidCastException e) {
  2800. throw new global::System.Data.StrongTypingException("Значение для столбца \'GovermantNumber\' в таблице \'Car\' равно DBNull.", e);
  2801. }
  2802. }
  2803. set {
  2804. this[this.tableCar.GovermantNumberColumn] = value;
  2805. }
  2806. }
  2807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2809. public decimal CarInsuranceCost {
  2810. get {
  2811. try {
  2812. return ((decimal)(this[this.tableCar.CarInsuranceCostColumn]));
  2813. }
  2814. catch (global::System.InvalidCastException e) {
  2815. throw new global::System.Data.StrongTypingException("Значение для столбца \'CarInsuranceCost\' в таблице \'Car\' равно DBNull.", e);
  2816. }
  2817. }
  2818. set {
  2819. this[this.tableCar.CarInsuranceCostColumn] = value;
  2820. }
  2821. }
  2822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2824. public decimal OneDayCost {
  2825. get {
  2826. try {
  2827. return ((decimal)(this[this.tableCar.OneDayCostColumn]));
  2828. }
  2829. catch (global::System.InvalidCastException e) {
  2830. throw new global::System.Data.StrongTypingException("Значение для столбца \'OneDayCost\' в таблице \'Car\' равно DBNull.", e);
  2831. }
  2832. }
  2833. set {
  2834. this[this.tableCar.OneDayCostColumn] = value;
  2835. }
  2836. }
  2837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2839. public bool IsModelNull() {
  2840. return this.IsNull(this.tableCar.ModelColumn);
  2841. }
  2842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2844. public void SetModelNull() {
  2845. this[this.tableCar.ModelColumn] = global::System.Convert.DBNull;
  2846. }
  2847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2849. public bool IsColorNull() {
  2850. return this.IsNull(this.tableCar.ColorColumn);
  2851. }
  2852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2854. public void SetColorNull() {
  2855. this[this.tableCar.ColorColumn] = global::System.Convert.DBNull;
  2856. }
  2857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2859. public bool IsCarManufactureDateNull() {
  2860. return this.IsNull(this.tableCar.CarManufactureDateColumn);
  2861. }
  2862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2864. public void SetCarManufactureDateNull() {
  2865. this[this.tableCar.CarManufactureDateColumn] = global::System.Convert.DBNull;
  2866. }
  2867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2869. public bool IsGovermantNumberNull() {
  2870. return this.IsNull(this.tableCar.GovermantNumberColumn);
  2871. }
  2872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2874. public void SetGovermantNumberNull() {
  2875. this[this.tableCar.GovermantNumberColumn] = global::System.Convert.DBNull;
  2876. }
  2877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2879. public bool IsCarInsuranceCostNull() {
  2880. return this.IsNull(this.tableCar.CarInsuranceCostColumn);
  2881. }
  2882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2884. public void SetCarInsuranceCostNull() {
  2885. this[this.tableCar.CarInsuranceCostColumn] = global::System.Convert.DBNull;
  2886. }
  2887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2889. public bool IsOneDayCostNull() {
  2890. return this.IsNull(this.tableCar.OneDayCostColumn);
  2891. }
  2892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2894. public void SetOneDayCostNull() {
  2895. this[this.tableCar.OneDayCostColumn] = global::System.Convert.DBNull;
  2896. }
  2897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2899. public Order_Row[] GetOrder_Rows() {
  2900. if ((this.Table.ChildRelations["FK_Order__Car"] == null)) {
  2901. return new Order_Row[0];
  2902. }
  2903. else {
  2904. return ((Order_Row[])(base.GetChildRows(this.Table.ChildRelations["FK_Order__Car"])));
  2905. }
  2906. }
  2907. }
  2908. /// <summary>
  2909. ///Represents strongly named DataRow class.
  2910. ///</summary>
  2911. public partial class ClientRow : global::System.Data.DataRow {
  2912. private ClientDataTable tableClient;
  2913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2915. internal ClientRow(global::System.Data.DataRowBuilder rb) :
  2916. base(rb) {
  2917. this.tableClient = ((ClientDataTable)(this.Table));
  2918. }
  2919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2921. public int ID {
  2922. get {
  2923. return ((int)(this[this.tableClient.IDColumn]));
  2924. }
  2925. set {
  2926. this[this.tableClient.IDColumn] = value;
  2927. }
  2928. }
  2929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2931. public string FIO {
  2932. get {
  2933. try {
  2934. return ((string)(this[this.tableClient.FIOColumn]));
  2935. }
  2936. catch (global::System.InvalidCastException e) {
  2937. throw new global::System.Data.StrongTypingException("Значение для столбца \'FIO\' в таблице \'Client\' равно DBNull.", e);
  2938. }
  2939. }
  2940. set {
  2941. this[this.tableClient.FIOColumn] = value;
  2942. }
  2943. }
  2944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2946. public string Pasport {
  2947. get {
  2948. try {
  2949. return ((string)(this[this.tableClient.PasportColumn]));
  2950. }
  2951. catch (global::System.InvalidCastException e) {
  2952. throw new global::System.Data.StrongTypingException("Значение для столбца \'Pasport\' в таблице \'Client\' равно DBNull.", e);
  2953. }
  2954. }
  2955. set {
  2956. this[this.tableClient.PasportColumn] = value;
  2957. }
  2958. }
  2959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2961. public string Phone {
  2962. get {
  2963. try {
  2964. return ((string)(this[this.tableClient.PhoneColumn]));
  2965. }
  2966. catch (global::System.InvalidCastException e) {
  2967. throw new global::System.Data.StrongTypingException("Значение для столбца \'Phone\' в таблице \'Client\' равно DBNull.", e);
  2968. }
  2969. }
  2970. set {
  2971. this[this.tableClient.PhoneColumn] = value;
  2972. }
  2973. }
  2974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2976. public string Address {
  2977. get {
  2978. try {
  2979. return ((string)(this[this.tableClient.AddressColumn]));
  2980. }
  2981. catch (global::System.InvalidCastException e) {
  2982. throw new global::System.Data.StrongTypingException("Значение для столбца \'Address\' в таблице \'Client\' равно DBNull.", e);
  2983. }
  2984. }
  2985. set {
  2986. this[this.tableClient.AddressColumn] = value;
  2987. }
  2988. }
  2989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2991. public bool IsFIONull() {
  2992. return this.IsNull(this.tableClient.FIOColumn);
  2993. }
  2994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2996. public void SetFIONull() {
  2997. this[this.tableClient.FIOColumn] = global::System.Convert.DBNull;
  2998. }
  2999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3001. public bool IsPasportNull() {
  3002. return this.IsNull(this.tableClient.PasportColumn);
  3003. }
  3004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3006. public void SetPasportNull() {
  3007. this[this.tableClient.PasportColumn] = global::System.Convert.DBNull;
  3008. }
  3009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3011. public bool IsPhoneNull() {
  3012. return this.IsNull(this.tableClient.PhoneColumn);
  3013. }
  3014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3016. public void SetPhoneNull() {
  3017. this[this.tableClient.PhoneColumn] = global::System.Convert.DBNull;
  3018. }
  3019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3021. public bool IsAddressNull() {
  3022. return this.IsNull(this.tableClient.AddressColumn);
  3023. }
  3024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3026. public void SetAddressNull() {
  3027. this[this.tableClient.AddressColumn] = global::System.Convert.DBNull;
  3028. }
  3029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3031. public Order_Row[] GetOrder_Rows() {
  3032. if ((this.Table.ChildRelations["FK_Order__Client"] == null)) {
  3033. return new Order_Row[0];
  3034. }
  3035. else {
  3036. return ((Order_Row[])(base.GetChildRows(this.Table.ChildRelations["FK_Order__Client"])));
  3037. }
  3038. }
  3039. }
  3040. /// <summary>
  3041. ///Represents strongly named DataRow class.
  3042. ///</summary>
  3043. public partial class Order_Row : global::System.Data.DataRow {
  3044. private Order_DataTable tableOrder_;
  3045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3047. internal Order_Row(global::System.Data.DataRowBuilder rb) :
  3048. base(rb) {
  3049. this.tableOrder_ = ((Order_DataTable)(this.Table));
  3050. }
  3051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3053. public int ID {
  3054. get {
  3055. return ((int)(this[this.tableOrder_.IDColumn]));
  3056. }
  3057. set {
  3058. this[this.tableOrder_.IDColumn] = value;
  3059. }
  3060. }
  3061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3063. public int ID_Client {
  3064. get {
  3065. try {
  3066. return ((int)(this[this.tableOrder_.ID_ClientColumn]));
  3067. }
  3068. catch (global::System.InvalidCastException e) {
  3069. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Client\' в таблице \'Order_\' равно DBNull.", e);
  3070. }
  3071. }
  3072. set {
  3073. this[this.tableOrder_.ID_ClientColumn] = value;
  3074. }
  3075. }
  3076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3078. public int ID_Car {
  3079. get {
  3080. try {
  3081. return ((int)(this[this.tableOrder_.ID_CarColumn]));
  3082. }
  3083. catch (global::System.InvalidCastException e) {
  3084. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Car\' в таблице \'Order_\' равно DBNull.", e);
  3085. }
  3086. }
  3087. set {
  3088. this[this.tableOrder_.ID_CarColumn] = value;
  3089. }
  3090. }
  3091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3093. public System.DateTime Date_order {
  3094. get {
  3095. try {
  3096. return ((global::System.DateTime)(this[this.tableOrder_.Date_orderColumn]));
  3097. }
  3098. catch (global::System.InvalidCastException e) {
  3099. throw new global::System.Data.StrongTypingException("Значение для столбца \'Date_order\' в таблице \'Order_\' равно DBNull.", e);
  3100. }
  3101. }
  3102. set {
  3103. this[this.tableOrder_.Date_orderColumn] = value;
  3104. }
  3105. }
  3106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3108. public int OrderTimeDay {
  3109. get {
  3110. try {
  3111. return ((int)(this[this.tableOrder_.OrderTimeDayColumn]));
  3112. }
  3113. catch (global::System.InvalidCastException e) {
  3114. throw new global::System.Data.StrongTypingException("Значение для столбца \'OrderTimeDay\' в таблице \'Order_\' равно DBNull.", e);
  3115. }
  3116. }
  3117. set {
  3118. this[this.tableOrder_.OrderTimeDayColumn] = value;
  3119. }
  3120. }
  3121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3123. public CarRow CarRow {
  3124. get {
  3125. return ((CarRow)(this.GetParentRow(this.Table.ParentRelations["FK_Order__Car"])));
  3126. }
  3127. set {
  3128. this.SetParentRow(value, this.Table.ParentRelations["FK_Order__Car"]);
  3129. }
  3130. }
  3131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3133. public ClientRow ClientRow {
  3134. get {
  3135. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_Order__Client"])));
  3136. }
  3137. set {
  3138. this.SetParentRow(value, this.Table.ParentRelations["FK_Order__Client"]);
  3139. }
  3140. }
  3141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3143. public bool IsID_ClientNull() {
  3144. return this.IsNull(this.tableOrder_.ID_ClientColumn);
  3145. }
  3146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3148. public void SetID_ClientNull() {
  3149. this[this.tableOrder_.ID_ClientColumn] = global::System.Convert.DBNull;
  3150. }
  3151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3153. public bool IsID_CarNull() {
  3154. return this.IsNull(this.tableOrder_.ID_CarColumn);
  3155. }
  3156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3158. public void SetID_CarNull() {
  3159. this[this.tableOrder_.ID_CarColumn] = global::System.Convert.DBNull;
  3160. }
  3161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3163. public bool IsDate_orderNull() {
  3164. return this.IsNull(this.tableOrder_.Date_orderColumn);
  3165. }
  3166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3168. public void SetDate_orderNull() {
  3169. this[this.tableOrder_.Date_orderColumn] = global::System.Convert.DBNull;
  3170. }
  3171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3173. public bool IsOrderTimeDayNull() {
  3174. return this.IsNull(this.tableOrder_.OrderTimeDayColumn);
  3175. }
  3176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3178. public void SetOrderTimeDayNull() {
  3179. this[this.tableOrder_.OrderTimeDayColumn] = global::System.Convert.DBNull;
  3180. }
  3181. }
  3182. /// <summary>
  3183. ///Represents strongly named DataRow class.
  3184. ///</summary>
  3185. public partial class Task1Row : global::System.Data.DataRow {
  3186. private Task1DataTable tableTask1;
  3187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3189. internal Task1Row(global::System.Data.DataRowBuilder rb) :
  3190. base(rb) {
  3191. this.tableTask1 = ((Task1DataTable)(this.Table));
  3192. }
  3193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3195. public int ID {
  3196. get {
  3197. return ((int)(this[this.tableTask1.IDColumn]));
  3198. }
  3199. set {
  3200. this[this.tableTask1.IDColumn] = value;
  3201. }
  3202. }
  3203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3205. public string Model {
  3206. get {
  3207. try {
  3208. return ((string)(this[this.tableTask1.ModelColumn]));
  3209. }
  3210. catch (global::System.InvalidCastException e) {
  3211. throw new global::System.Data.StrongTypingException("Значение для столбца \'Model\' в таблице \'Task1\' равно DBNull.", e);
  3212. }
  3213. }
  3214. set {
  3215. this[this.tableTask1.ModelColumn] = value;
  3216. }
  3217. }
  3218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3220. public string Color {
  3221. get {
  3222. try {
  3223. return ((string)(this[this.tableTask1.ColorColumn]));
  3224. }
  3225. catch (global::System.InvalidCastException e) {
  3226. throw new global::System.Data.StrongTypingException("Значение для столбца \'Color\' в таблице \'Task1\' равно DBNull.", e);
  3227. }
  3228. }
  3229. set {
  3230. this[this.tableTask1.ColorColumn] = value;
  3231. }
  3232. }
  3233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3235. public System.DateTime CarManufactureDate {
  3236. get {
  3237. try {
  3238. return ((global::System.DateTime)(this[this.tableTask1.CarManufactureDateColumn]));
  3239. }
  3240. catch (global::System.InvalidCastException e) {
  3241. throw new global::System.Data.StrongTypingException("Значение для столбца \'CarManufactureDate\' в таблице \'Task1\' равно DBNull.", e);
  3242. }
  3243. }
  3244. set {
  3245. this[this.tableTask1.CarManufactureDateColumn] = value;
  3246. }
  3247. }
  3248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3250. public string GovermantNumber {
  3251. get {
  3252. try {
  3253. return ((string)(this[this.tableTask1.GovermantNumberColumn]));
  3254. }
  3255. catch (global::System.InvalidCastException e) {
  3256. throw new global::System.Data.StrongTypingException("Значение для столбца \'GovermantNumber\' в таблице \'Task1\' равно DBNull.", e);
  3257. }
  3258. }
  3259. set {
  3260. this[this.tableTask1.GovermantNumberColumn] = value;
  3261. }
  3262. }
  3263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3265. public decimal CarInsuranceCost {
  3266. get {
  3267. try {
  3268. return ((decimal)(this[this.tableTask1.CarInsuranceCostColumn]));
  3269. }
  3270. catch (global::System.InvalidCastException e) {
  3271. throw new global::System.Data.StrongTypingException("Значение для столбца \'CarInsuranceCost\' в таблице \'Task1\' равно DBNull.", e);
  3272. }
  3273. }
  3274. set {
  3275. this[this.tableTask1.CarInsuranceCostColumn] = value;
  3276. }
  3277. }
  3278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3280. public decimal OneDayCost {
  3281. get {
  3282. try {
  3283. return ((decimal)(this[this.tableTask1.OneDayCostColumn]));
  3284. }
  3285. catch (global::System.InvalidCastException e) {
  3286. throw new global::System.Data.StrongTypingException("Значение для столбца \'OneDayCost\' в таблице \'Task1\' равно DBNull.", e);
  3287. }
  3288. }
  3289. set {
  3290. this[this.tableTask1.OneDayCostColumn] = value;
  3291. }
  3292. }
  3293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3295. public bool IsModelNull() {
  3296. return this.IsNull(this.tableTask1.ModelColumn);
  3297. }
  3298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3300. public void SetModelNull() {
  3301. this[this.tableTask1.ModelColumn] = global::System.Convert.DBNull;
  3302. }
  3303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3305. public bool IsColorNull() {
  3306. return this.IsNull(this.tableTask1.ColorColumn);
  3307. }
  3308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3310. public void SetColorNull() {
  3311. this[this.tableTask1.ColorColumn] = global::System.Convert.DBNull;
  3312. }
  3313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3315. public bool IsCarManufactureDateNull() {
  3316. return this.IsNull(this.tableTask1.CarManufactureDateColumn);
  3317. }
  3318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3320. public void SetCarManufactureDateNull() {
  3321. this[this.tableTask1.CarManufactureDateColumn] = global::System.Convert.DBNull;
  3322. }
  3323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3325. public bool IsGovermantNumberNull() {
  3326. return this.IsNull(this.tableTask1.GovermantNumberColumn);
  3327. }
  3328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3330. public void SetGovermantNumberNull() {
  3331. this[this.tableTask1.GovermantNumberColumn] = global::System.Convert.DBNull;
  3332. }
  3333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3335. public bool IsCarInsuranceCostNull() {
  3336. return this.IsNull(this.tableTask1.CarInsuranceCostColumn);
  3337. }
  3338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3340. public void SetCarInsuranceCostNull() {
  3341. this[this.tableTask1.CarInsuranceCostColumn] = global::System.Convert.DBNull;
  3342. }
  3343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3345. public bool IsOneDayCostNull() {
  3346. return this.IsNull(this.tableTask1.OneDayCostColumn);
  3347. }
  3348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3350. public void SetOneDayCostNull() {
  3351. this[this.tableTask1.OneDayCostColumn] = global::System.Convert.DBNull;
  3352. }
  3353. }
  3354. /// <summary>
  3355. ///Represents strongly named DataRow class.
  3356. ///</summary>
  3357. public partial class Task2Row : global::System.Data.DataRow {
  3358. private Task2DataTable tableTask2;
  3359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3361. internal Task2Row(global::System.Data.DataRowBuilder rb) :
  3362. base(rb) {
  3363. this.tableTask2 = ((Task2DataTable)(this.Table));
  3364. }
  3365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3367. public int ID {
  3368. get {
  3369. return ((int)(this[this.tableTask2.IDColumn]));
  3370. }
  3371. set {
  3372. this[this.tableTask2.IDColumn] = value;
  3373. }
  3374. }
  3375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3377. public string Model {
  3378. get {
  3379. try {
  3380. return ((string)(this[this.tableTask2.ModelColumn]));
  3381. }
  3382. catch (global::System.InvalidCastException e) {
  3383. throw new global::System.Data.StrongTypingException("Значение для столбца \'Model\' в таблице \'Task2\' равно DBNull.", e);
  3384. }
  3385. }
  3386. set {
  3387. this[this.tableTask2.ModelColumn] = value;
  3388. }
  3389. }
  3390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3392. public string Color {
  3393. get {
  3394. try {
  3395. return ((string)(this[this.tableTask2.ColorColumn]));
  3396. }
  3397. catch (global::System.InvalidCastException e) {
  3398. throw new global::System.Data.StrongTypingException("Значение для столбца \'Color\' в таблице \'Task2\' равно DBNull.", e);
  3399. }
  3400. }
  3401. set {
  3402. this[this.tableTask2.ColorColumn] = value;
  3403. }
  3404. }
  3405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3407. public System.DateTime CarManufactureDate {
  3408. get {
  3409. try {
  3410. return ((global::System.DateTime)(this[this.tableTask2.CarManufactureDateColumn]));
  3411. }
  3412. catch (global::System.InvalidCastException e) {
  3413. throw new global::System.Data.StrongTypingException("Значение для столбца \'CarManufactureDate\' в таблице \'Task2\' равно DBNull.", e);
  3414. }
  3415. }
  3416. set {
  3417. this[this.tableTask2.CarManufactureDateColumn] = value;
  3418. }
  3419. }
  3420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3422. public string GovermantNumber {
  3423. get {
  3424. try {
  3425. return ((string)(this[this.tableTask2.GovermantNumberColumn]));
  3426. }
  3427. catch (global::System.InvalidCastException e) {
  3428. throw new global::System.Data.StrongTypingException("Значение для столбца \'GovermantNumber\' в таблице \'Task2\' равно DBNull.", e);
  3429. }
  3430. }
  3431. set {
  3432. this[this.tableTask2.GovermantNumberColumn] = value;
  3433. }
  3434. }
  3435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3437. public decimal CarInsuranceCost {
  3438. get {
  3439. try {
  3440. return ((decimal)(this[this.tableTask2.CarInsuranceCostColumn]));
  3441. }
  3442. catch (global::System.InvalidCastException e) {
  3443. throw new global::System.Data.StrongTypingException("Значение для столбца \'CarInsuranceCost\' в таблице \'Task2\' равно DBNull.", e);
  3444. }
  3445. }
  3446. set {
  3447. this[this.tableTask2.CarInsuranceCostColumn] = value;
  3448. }
  3449. }
  3450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3452. public decimal OneDayCost {
  3453. get {
  3454. try {
  3455. return ((decimal)(this[this.tableTask2.OneDayCostColumn]));
  3456. }
  3457. catch (global::System.InvalidCastException e) {
  3458. throw new global::System.Data.StrongTypingException("Значение для столбца \'OneDayCost\' в таблице \'Task2\' равно DBNull.", e);
  3459. }
  3460. }
  3461. set {
  3462. this[this.tableTask2.OneDayCostColumn] = value;
  3463. }
  3464. }
  3465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3467. public bool IsModelNull() {
  3468. return this.IsNull(this.tableTask2.ModelColumn);
  3469. }
  3470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3472. public void SetModelNull() {
  3473. this[this.tableTask2.ModelColumn] = global::System.Convert.DBNull;
  3474. }
  3475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3477. public bool IsColorNull() {
  3478. return this.IsNull(this.tableTask2.ColorColumn);
  3479. }
  3480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3482. public void SetColorNull() {
  3483. this[this.tableTask2.ColorColumn] = global::System.Convert.DBNull;
  3484. }
  3485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3487. public bool IsCarManufactureDateNull() {
  3488. return this.IsNull(this.tableTask2.CarManufactureDateColumn);
  3489. }
  3490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3492. public void SetCarManufactureDateNull() {
  3493. this[this.tableTask2.CarManufactureDateColumn] = global::System.Convert.DBNull;
  3494. }
  3495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3497. public bool IsGovermantNumberNull() {
  3498. return this.IsNull(this.tableTask2.GovermantNumberColumn);
  3499. }
  3500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3502. public void SetGovermantNumberNull() {
  3503. this[this.tableTask2.GovermantNumberColumn] = global::System.Convert.DBNull;
  3504. }
  3505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3507. public bool IsCarInsuranceCostNull() {
  3508. return this.IsNull(this.tableTask2.CarInsuranceCostColumn);
  3509. }
  3510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3512. public void SetCarInsuranceCostNull() {
  3513. this[this.tableTask2.CarInsuranceCostColumn] = global::System.Convert.DBNull;
  3514. }
  3515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3517. public bool IsOneDayCostNull() {
  3518. return this.IsNull(this.tableTask2.OneDayCostColumn);
  3519. }
  3520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3522. public void SetOneDayCostNull() {
  3523. this[this.tableTask2.OneDayCostColumn] = global::System.Convert.DBNull;
  3524. }
  3525. }
  3526. /// <summary>
  3527. ///Represents strongly named DataRow class.
  3528. ///</summary>
  3529. public partial class Task3Row : global::System.Data.DataRow {
  3530. private Task3DataTable tableTask3;
  3531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3533. internal Task3Row(global::System.Data.DataRowBuilder rb) :
  3534. base(rb) {
  3535. this.tableTask3 = ((Task3DataTable)(this.Table));
  3536. }
  3537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3539. public string FIO {
  3540. get {
  3541. try {
  3542. return ((string)(this[this.tableTask3.FIOColumn]));
  3543. }
  3544. catch (global::System.InvalidCastException e) {
  3545. throw new global::System.Data.StrongTypingException("Значение для столбца \'FIO\' в таблице \'Task3\' равно DBNull.", e);
  3546. }
  3547. }
  3548. set {
  3549. this[this.tableTask3.FIOColumn] = value;
  3550. }
  3551. }
  3552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3554. public string Model {
  3555. get {
  3556. try {
  3557. return ((string)(this[this.tableTask3.ModelColumn]));
  3558. }
  3559. catch (global::System.InvalidCastException e) {
  3560. throw new global::System.Data.StrongTypingException("Значение для столбца \'Model\' в таблице \'Task3\' равно DBNull.", e);
  3561. }
  3562. }
  3563. set {
  3564. this[this.tableTask3.ModelColumn] = value;
  3565. }
  3566. }
  3567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3569. public string GovermantNumber {
  3570. get {
  3571. try {
  3572. return ((string)(this[this.tableTask3.GovermantNumberColumn]));
  3573. }
  3574. catch (global::System.InvalidCastException e) {
  3575. throw new global::System.Data.StrongTypingException("Значение для столбца \'GovermantNumber\' в таблице \'Task3\' равно DBNull.", e);
  3576. }
  3577. }
  3578. set {
  3579. this[this.tableTask3.GovermantNumberColumn] = value;
  3580. }
  3581. }
  3582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3584. public System.DateTime Date_order {
  3585. get {
  3586. try {
  3587. return ((global::System.DateTime)(this[this.tableTask3.Date_orderColumn]));
  3588. }
  3589. catch (global::System.InvalidCastException e) {
  3590. throw new global::System.Data.StrongTypingException("Значение для столбца \'Date_order\' в таблице \'Task3\' равно DBNull.", e);
  3591. }
  3592. }
  3593. set {
  3594. this[this.tableTask3.Date_orderColumn] = value;
  3595. }
  3596. }
  3597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3599. public bool IsFIONull() {
  3600. return this.IsNull(this.tableTask3.FIOColumn);
  3601. }
  3602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3604. public void SetFIONull() {
  3605. this[this.tableTask3.FIOColumn] = global::System.Convert.DBNull;
  3606. }
  3607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3609. public bool IsModelNull() {
  3610. return this.IsNull(this.tableTask3.ModelColumn);
  3611. }
  3612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3614. public void SetModelNull() {
  3615. this[this.tableTask3.ModelColumn] = global::System.Convert.DBNull;
  3616. }
  3617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3619. public bool IsGovermantNumberNull() {
  3620. return this.IsNull(this.tableTask3.GovermantNumberColumn);
  3621. }
  3622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3624. public void SetGovermantNumberNull() {
  3625. this[this.tableTask3.GovermantNumberColumn] = global::System.Convert.DBNull;
  3626. }
  3627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3629. public bool IsDate_orderNull() {
  3630. return this.IsNull(this.tableTask3.Date_orderColumn);
  3631. }
  3632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3634. public void SetDate_orderNull() {
  3635. this[this.tableTask3.Date_orderColumn] = global::System.Convert.DBNull;
  3636. }
  3637. }
  3638. /// <summary>
  3639. ///Represents strongly named DataRow class.
  3640. ///</summary>
  3641. public partial class Task4Row : global::System.Data.DataRow {
  3642. private Task4DataTable tableTask4;
  3643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3645. internal Task4Row(global::System.Data.DataRowBuilder rb) :
  3646. base(rb) {
  3647. this.tableTask4 = ((Task4DataTable)(this.Table));
  3648. }
  3649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3651. public string GovermantNumber {
  3652. get {
  3653. try {
  3654. return ((string)(this[this.tableTask4.GovermantNumberColumn]));
  3655. }
  3656. catch (global::System.InvalidCastException e) {
  3657. throw new global::System.Data.StrongTypingException("Значение для столбца \'GovermantNumber\' в таблице \'Task4\' равно DBNull.", e);
  3658. }
  3659. }
  3660. set {
  3661. this[this.tableTask4.GovermantNumberColumn] = value;
  3662. }
  3663. }
  3664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3666. public string Model {
  3667. get {
  3668. try {
  3669. return ((string)(this[this.tableTask4.ModelColumn]));
  3670. }
  3671. catch (global::System.InvalidCastException e) {
  3672. throw new global::System.Data.StrongTypingException("Значение для столбца \'Model\' в таблице \'Task4\' равно DBNull.", e);
  3673. }
  3674. }
  3675. set {
  3676. this[this.tableTask4.ModelColumn] = value;
  3677. }
  3678. }
  3679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3681. public decimal OneDayCost {
  3682. get {
  3683. try {
  3684. return ((decimal)(this[this.tableTask4.OneDayCostColumn]));
  3685. }
  3686. catch (global::System.InvalidCastException e) {
  3687. throw new global::System.Data.StrongTypingException("Значение для столбца \'OneDayCost\' в таблице \'Task4\' равно DBNull.", e);
  3688. }
  3689. }
  3690. set {
  3691. this[this.tableTask4.OneDayCostColumn] = value;
  3692. }
  3693. }
  3694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3696. public int OrderTimeDay {
  3697. get {
  3698. try {
  3699. return ((int)(this[this.tableTask4.OrderTimeDayColumn]));
  3700. }
  3701. catch (global::System.InvalidCastException e) {
  3702. throw new global::System.Data.StrongTypingException("Значение для столбца \'OrderTimeDay\' в таблице \'Task4\' равно DBNull.", e);
  3703. }
  3704. }
  3705. set {
  3706. this[this.tableTask4.OrderTimeDayColumn] = value;
  3707. }
  3708. }
  3709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3711. public decimal Стоимость {
  3712. get {
  3713. try {
  3714. return ((decimal)(this[this.tableTask4.СтоимостьColumn]));
  3715. }
  3716. catch (global::System.InvalidCastException e) {
  3717. throw new global::System.Data.StrongTypingException("Значение для столбца \'Стоимость\' в таблице \'Task4\' равно DBNull.", e);
  3718. }
  3719. }
  3720. set {
  3721. this[this.tableTask4.СтоимостьColumn] = value;
  3722. }
  3723. }
  3724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3726. public bool IsGovermantNumberNull() {
  3727. return this.IsNull(this.tableTask4.GovermantNumberColumn);
  3728. }
  3729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3731. public void SetGovermantNumberNull() {
  3732. this[this.tableTask4.GovermantNumberColumn] = global::System.Convert.DBNull;
  3733. }
  3734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3736. public bool IsModelNull() {
  3737. return this.IsNull(this.tableTask4.ModelColumn);
  3738. }
  3739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3741. public void SetModelNull() {
  3742. this[this.tableTask4.ModelColumn] = global::System.Convert.DBNull;
  3743. }
  3744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3746. public bool IsOneDayCostNull() {
  3747. return this.IsNull(this.tableTask4.OneDayCostColumn);
  3748. }
  3749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3751. public void SetOneDayCostNull() {
  3752. this[this.tableTask4.OneDayCostColumn] = global::System.Convert.DBNull;
  3753. }
  3754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3756. public bool IsOrderTimeDayNull() {
  3757. return this.IsNull(this.tableTask4.OrderTimeDayColumn);
  3758. }
  3759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3761. public void SetOrderTimeDayNull() {
  3762. this[this.tableTask4.OrderTimeDayColumn] = global::System.Convert.DBNull;
  3763. }
  3764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3766. public bool IsСтоимостьNull() {
  3767. return this.IsNull(this.tableTask4.СтоимостьColumn);
  3768. }
  3769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3771. public void SetСтоимостьNull() {
  3772. this[this.tableTask4.СтоимостьColumn] = global::System.Convert.DBNull;
  3773. }
  3774. }
  3775. /// <summary>
  3776. ///Represents strongly named DataRow class.
  3777. ///</summary>
  3778. public partial class Task5Row : global::System.Data.DataRow {
  3779. private Task5DataTable tableTask5;
  3780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3782. internal Task5Row(global::System.Data.DataRowBuilder rb) :
  3783. base(rb) {
  3784. this.tableTask5 = ((Task5DataTable)(this.Table));
  3785. }
  3786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3788. public string Model {
  3789. get {
  3790. try {
  3791. return ((string)(this[this.tableTask5.ModelColumn]));
  3792. }
  3793. catch (global::System.InvalidCastException e) {
  3794. throw new global::System.Data.StrongTypingException("Значение для столбца \'Model\' в таблице \'Task5\' равно DBNull.", e);
  3795. }
  3796. }
  3797. set {
  3798. this[this.tableTask5.ModelColumn] = value;
  3799. }
  3800. }
  3801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3803. public bool IsModelNull() {
  3804. return this.IsNull(this.tableTask5.ModelColumn);
  3805. }
  3806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3808. public void SetModelNull() {
  3809. this[this.tableTask5.ModelColumn] = global::System.Convert.DBNull;
  3810. }
  3811. }
  3812. /// <summary>
  3813. ///Row event argument class
  3814. ///</summary>
  3815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3816. public class CarRowChangeEvent : global::System.EventArgs {
  3817. private CarRow eventRow;
  3818. private global::System.Data.DataRowAction eventAction;
  3819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3821. public CarRowChangeEvent(CarRow row, global::System.Data.DataRowAction action) {
  3822. this.eventRow = row;
  3823. this.eventAction = action;
  3824. }
  3825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3827. public CarRow Row {
  3828. get {
  3829. return this.eventRow;
  3830. }
  3831. }
  3832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3834. public global::System.Data.DataRowAction Action {
  3835. get {
  3836. return this.eventAction;
  3837. }
  3838. }
  3839. }
  3840. /// <summary>
  3841. ///Row event argument class
  3842. ///</summary>
  3843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3844. public class ClientRowChangeEvent : global::System.EventArgs {
  3845. private ClientRow eventRow;
  3846. private global::System.Data.DataRowAction eventAction;
  3847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3849. public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) {
  3850. this.eventRow = row;
  3851. this.eventAction = action;
  3852. }
  3853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3855. public ClientRow Row {
  3856. get {
  3857. return this.eventRow;
  3858. }
  3859. }
  3860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3862. public global::System.Data.DataRowAction Action {
  3863. get {
  3864. return this.eventAction;
  3865. }
  3866. }
  3867. }
  3868. /// <summary>
  3869. ///Row event argument class
  3870. ///</summary>
  3871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3872. public class Order_RowChangeEvent : global::System.EventArgs {
  3873. private Order_Row eventRow;
  3874. private global::System.Data.DataRowAction eventAction;
  3875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3877. public Order_RowChangeEvent(Order_Row row, global::System.Data.DataRowAction action) {
  3878. this.eventRow = row;
  3879. this.eventAction = action;
  3880. }
  3881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3883. public Order_Row Row {
  3884. get {
  3885. return this.eventRow;
  3886. }
  3887. }
  3888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3890. public global::System.Data.DataRowAction Action {
  3891. get {
  3892. return this.eventAction;
  3893. }
  3894. }
  3895. }
  3896. /// <summary>
  3897. ///Row event argument class
  3898. ///</summary>
  3899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3900. public class Task1RowChangeEvent : global::System.EventArgs {
  3901. private Task1Row eventRow;
  3902. private global::System.Data.DataRowAction eventAction;
  3903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3905. public Task1RowChangeEvent(Task1Row row, global::System.Data.DataRowAction action) {
  3906. this.eventRow = row;
  3907. this.eventAction = action;
  3908. }
  3909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3911. public Task1Row Row {
  3912. get {
  3913. return this.eventRow;
  3914. }
  3915. }
  3916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3918. public global::System.Data.DataRowAction Action {
  3919. get {
  3920. return this.eventAction;
  3921. }
  3922. }
  3923. }
  3924. /// <summary>
  3925. ///Row event argument class
  3926. ///</summary>
  3927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3928. public class Task2RowChangeEvent : global::System.EventArgs {
  3929. private Task2Row eventRow;
  3930. private global::System.Data.DataRowAction eventAction;
  3931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3933. public Task2RowChangeEvent(Task2Row row, global::System.Data.DataRowAction action) {
  3934. this.eventRow = row;
  3935. this.eventAction = action;
  3936. }
  3937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3939. public Task2Row Row {
  3940. get {
  3941. return this.eventRow;
  3942. }
  3943. }
  3944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3946. public global::System.Data.DataRowAction Action {
  3947. get {
  3948. return this.eventAction;
  3949. }
  3950. }
  3951. }
  3952. /// <summary>
  3953. ///Row event argument class
  3954. ///</summary>
  3955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3956. public class Task3RowChangeEvent : global::System.EventArgs {
  3957. private Task3Row eventRow;
  3958. private global::System.Data.DataRowAction eventAction;
  3959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3961. public Task3RowChangeEvent(Task3Row row, global::System.Data.DataRowAction action) {
  3962. this.eventRow = row;
  3963. this.eventAction = action;
  3964. }
  3965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3967. public Task3Row Row {
  3968. get {
  3969. return this.eventRow;
  3970. }
  3971. }
  3972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3974. public global::System.Data.DataRowAction Action {
  3975. get {
  3976. return this.eventAction;
  3977. }
  3978. }
  3979. }
  3980. /// <summary>
  3981. ///Row event argument class
  3982. ///</summary>
  3983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3984. public class Task4RowChangeEvent : global::System.EventArgs {
  3985. private Task4Row eventRow;
  3986. private global::System.Data.DataRowAction eventAction;
  3987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3989. public Task4RowChangeEvent(Task4Row row, global::System.Data.DataRowAction action) {
  3990. this.eventRow = row;
  3991. this.eventAction = action;
  3992. }
  3993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3995. public Task4Row Row {
  3996. get {
  3997. return this.eventRow;
  3998. }
  3999. }
  4000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4002. public global::System.Data.DataRowAction Action {
  4003. get {
  4004. return this.eventAction;
  4005. }
  4006. }
  4007. }
  4008. /// <summary>
  4009. ///Row event argument class
  4010. ///</summary>
  4011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4012. public class Task5RowChangeEvent : global::System.EventArgs {
  4013. private Task5Row eventRow;
  4014. private global::System.Data.DataRowAction eventAction;
  4015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4017. public Task5RowChangeEvent(Task5Row row, global::System.Data.DataRowAction action) {
  4018. this.eventRow = row;
  4019. this.eventAction = action;
  4020. }
  4021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4023. public Task5Row Row {
  4024. get {
  4025. return this.eventRow;
  4026. }
  4027. }
  4028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4030. public global::System.Data.DataRowAction Action {
  4031. get {
  4032. return this.eventAction;
  4033. }
  4034. }
  4035. }
  4036. }
  4037. }
  4038. namespace Avtoprok.Avtodrive_02DataSetTableAdapters {
  4039. /// <summary>
  4040. ///Represents the connection and commands used to retrieve and save data.
  4041. ///</summary>
  4042. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4043. [global::System.ComponentModel.ToolboxItem(true)]
  4044. [global::System.ComponentModel.DataObjectAttribute(true)]
  4045. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4046. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4047. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4048. public partial class CarTableAdapter : global::System.ComponentModel.Component {
  4049. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4050. private global::System.Data.SqlClient.SqlConnection _connection;
  4051. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4052. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4053. private bool _clearBeforeFill;
  4054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4056. public CarTableAdapter() {
  4057. this.ClearBeforeFill = true;
  4058. }
  4059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4061. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4062. get {
  4063. if ((this._adapter == null)) {
  4064. this.InitAdapter();
  4065. }
  4066. return this._adapter;
  4067. }
  4068. }
  4069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4071. internal global::System.Data.SqlClient.SqlConnection Connection {
  4072. get {
  4073. if ((this._connection == null)) {
  4074. this.InitConnection();
  4075. }
  4076. return this._connection;
  4077. }
  4078. set {
  4079. this._connection = value;
  4080. if ((this.Adapter.InsertCommand != null)) {
  4081. this.Adapter.InsertCommand.Connection = value;
  4082. }
  4083. if ((this.Adapter.DeleteCommand != null)) {
  4084. this.Adapter.DeleteCommand.Connection = value;
  4085. }
  4086. if ((this.Adapter.UpdateCommand != null)) {
  4087. this.Adapter.UpdateCommand.Connection = value;
  4088. }
  4089. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4090. if ((this.CommandCollection[i] != null)) {
  4091. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4092. }
  4093. }
  4094. }
  4095. }
  4096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4098. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4099. get {
  4100. return this._transaction;
  4101. }
  4102. set {
  4103. this._transaction = value;
  4104. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4105. this.CommandCollection[i].Transaction = this._transaction;
  4106. }
  4107. if (((this.Adapter != null)
  4108. && (this.Adapter.DeleteCommand != null))) {
  4109. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4110. }
  4111. if (((this.Adapter != null)
  4112. && (this.Adapter.InsertCommand != null))) {
  4113. this.Adapter.InsertCommand.Transaction = this._transaction;
  4114. }
  4115. if (((this.Adapter != null)
  4116. && (this.Adapter.UpdateCommand != null))) {
  4117. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4118. }
  4119. }
  4120. }
  4121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4123. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4124. get {
  4125. if ((this._commandCollection == null)) {
  4126. this.InitCommandCollection();
  4127. }
  4128. return this._commandCollection;
  4129. }
  4130. }
  4131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4133. public bool ClearBeforeFill {
  4134. get {
  4135. return this._clearBeforeFill;
  4136. }
  4137. set {
  4138. this._clearBeforeFill = value;
  4139. }
  4140. }
  4141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4143. private void InitAdapter() {
  4144. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4145. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4146. tableMapping.SourceTable = "Table";
  4147. tableMapping.DataSetTable = "Car";
  4148. tableMapping.ColumnMappings.Add("ID", "ID");
  4149. tableMapping.ColumnMappings.Add("Model", "Model");
  4150. tableMapping.ColumnMappings.Add("Color", "Color");
  4151. tableMapping.ColumnMappings.Add("CarManufactureDate", "CarManufactureDate");
  4152. tableMapping.ColumnMappings.Add("GovermantNumber", "GovermantNumber");
  4153. tableMapping.ColumnMappings.Add("CarInsuranceCost", "CarInsuranceCost");
  4154. tableMapping.ColumnMappings.Add("OneDayCost", "OneDayCost");
  4155. this._adapter.TableMappings.Add(tableMapping);
  4156. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4157. this._adapter.DeleteCommand.Connection = this.Connection;
  4158. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Car] WHERE (([ID] = @Original_ID) AND ((@IsNull_Model = 1 AND [Model] IS NULL) OR ([Model] = @Original_Model)) AND ((@IsNull_Color = 1 AND [Color] IS NULL) OR ([Color] = @Original_Color)) AND ((@IsNull_CarManufactureDate = 1 AND [CarManufactureDate] IS NULL) OR ([CarManufactureDate] = @Original_CarManufactureDate)) AND ((@IsNull_GovermantNumber = 1 AND [GovermantNumber] IS NULL) OR ([GovermantNumber] = @Original_GovermantNumber)) AND ((@IsNull_CarInsuranceCost = 1 AND [CarInsuranceCost] IS NULL) OR ([CarInsuranceCost] = @Original_CarInsuranceCost)) AND ((@IsNull_OneDayCost = 1 AND [OneDayCost] IS NULL) OR ([OneDayCost] = @Original_OneDayCost)))";
  4159. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4160. 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, "", "", ""));
  4161. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Model", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Model", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4162. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Model", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Model", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4163. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Color", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4164. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Color", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4165. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CarManufactureDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CarManufactureDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4166. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CarManufactureDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CarManufactureDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4167. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_GovermantNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GovermantNumber", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4168. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GovermantNumber", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GovermantNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4169. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CarInsuranceCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CarInsuranceCost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4170. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CarInsuranceCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CarInsuranceCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4171. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OneDayCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OneDayCost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4172. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OneDayCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OneDayCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4173. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4174. this._adapter.InsertCommand.Connection = this.Connection;
  4175. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Car] ([Model], [Color], [CarManufactureDate], [GovermantNumber], [CarInsuranceCost], [OneDayCost]) VALUES (@Model, @Color, @CarManufactureDate, @GovermantNumber, @CarInsuranceCost, @OneDayCost);
  4176. SELECT ID, Model, Color, CarManufactureDate, GovermantNumber, CarInsuranceCost, OneDayCost FROM Car WHERE (ID = SCOPE_IDENTITY())";
  4177. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4178. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Model", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Model", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4179. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Color", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4180. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CarManufactureDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CarManufactureDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4181. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GovermantNumber", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GovermantNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4182. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CarInsuranceCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CarInsuranceCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4183. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OneDayCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OneDayCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4184. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4185. this._adapter.UpdateCommand.Connection = this.Connection;
  4186. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Car] SET [Model] = @Model, [Color] = @Color, [CarManufactureDate] = @CarManufactureDate, [GovermantNumber] = @GovermantNumber, [CarInsuranceCost] = @CarInsuranceCost, [OneDayCost] = @OneDayCost WHERE (([ID] = @Original_ID) AND ((@IsNull_Model = 1 AND [Model] IS NULL) OR ([Model] = @Original_Model)) AND ((@IsNull_Color = 1 AND [Color] IS NULL) OR ([Color] = @Original_Color)) AND ((@IsNull_CarManufactureDate = 1 AND [CarManufactureDate] IS NULL) OR ([CarManufactureDate] = @Original_CarManufactureDate)) AND ((@IsNull_GovermantNumber = 1 AND [GovermantNumber] IS NULL) OR ([GovermantNumber] = @Original_GovermantNumber)) AND ((@IsNull_CarInsuranceCost = 1 AND [CarInsuranceCost] IS NULL) OR ([CarInsuranceCost] = @Original_CarInsuranceCost)) AND ((@IsNull_OneDayCost = 1 AND [OneDayCost] IS NULL) OR ([OneDayCost] = @Original_OneDayCost)));
  4187. SELECT ID, Model, Color, CarManufactureDate, GovermantNumber, CarInsuranceCost, OneDayCost FROM Car WHERE (ID = @ID)";
  4188. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4189. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Model", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Model", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4190. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Color", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4191. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CarManufactureDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CarManufactureDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4192. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GovermantNumber", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GovermantNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4193. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CarInsuranceCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CarInsuranceCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4194. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OneDayCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OneDayCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4195. 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, "", "", ""));
  4196. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Model", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Model", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4197. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Model", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Model", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4198. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Color", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4199. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Color", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4200. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CarManufactureDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CarManufactureDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4201. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CarManufactureDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CarManufactureDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4202. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_GovermantNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GovermantNumber", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4203. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GovermantNumber", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GovermantNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4204. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CarInsuranceCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CarInsuranceCost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4205. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CarInsuranceCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CarInsuranceCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4206. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OneDayCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OneDayCost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4207. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OneDayCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OneDayCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4208. 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, "", "", ""));
  4209. }
  4210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4212. private void InitConnection() {
  4213. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4214. this._connection.ConnectionString = global::Avtoprok.Properties.Settings.Default.Avtodrive_02ConnectionString;
  4215. }
  4216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4218. private void InitCommandCollection() {
  4219. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4220. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4221. this._commandCollection[0].Connection = this.Connection;
  4222. this._commandCollection[0].CommandText = "SELECT ID, Model, Color, CarManufactureDate, GovermantNumber, CarInsuranceCost, O" +
  4223. "neDayCost FROM dbo.Car";
  4224. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4225. }
  4226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4228. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4229. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4230. public virtual int Fill(Avtodrive_02DataSet.CarDataTable dataTable) {
  4231. this.Adapter.SelectCommand = this.CommandCollection[0];
  4232. if ((this.ClearBeforeFill == true)) {
  4233. dataTable.Clear();
  4234. }
  4235. int returnValue = this.Adapter.Fill(dataTable);
  4236. return returnValue;
  4237. }
  4238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4240. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4241. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4242. public virtual Avtodrive_02DataSet.CarDataTable GetData() {
  4243. this.Adapter.SelectCommand = this.CommandCollection[0];
  4244. Avtodrive_02DataSet.CarDataTable dataTable = new Avtodrive_02DataSet.CarDataTable();
  4245. this.Adapter.Fill(dataTable);
  4246. return dataTable;
  4247. }
  4248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4250. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4251. public virtual int Update(Avtodrive_02DataSet.CarDataTable dataTable) {
  4252. return this.Adapter.Update(dataTable);
  4253. }
  4254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4256. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4257. public virtual int Update(Avtodrive_02DataSet dataSet) {
  4258. return this.Adapter.Update(dataSet, "Car");
  4259. }
  4260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4262. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4263. public virtual int Update(global::System.Data.DataRow dataRow) {
  4264. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4265. dataRow});
  4266. }
  4267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4269. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4270. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4271. return this.Adapter.Update(dataRows);
  4272. }
  4273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4275. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4276. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4277. public virtual int Delete(int Original_ID, string Original_Model, string Original_Color, global::System.Nullable<global::System.DateTime> Original_CarManufactureDate, string Original_GovermantNumber, global::System.Nullable<decimal> Original_CarInsuranceCost, global::System.Nullable<decimal> Original_OneDayCost) {
  4278. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  4279. if ((Original_Model == null)) {
  4280. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4281. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4282. }
  4283. else {
  4284. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4285. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Model));
  4286. }
  4287. if ((Original_Color == null)) {
  4288. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4289. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4290. }
  4291. else {
  4292. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4293. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Color));
  4294. }
  4295. if ((Original_CarManufactureDate.HasValue == true)) {
  4296. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4297. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_CarManufactureDate.Value));
  4298. }
  4299. else {
  4300. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4301. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4302. }
  4303. if ((Original_GovermantNumber == null)) {
  4304. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  4305. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  4306. }
  4307. else {
  4308. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  4309. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_GovermantNumber));
  4310. }
  4311. if ((Original_CarInsuranceCost.HasValue == true)) {
  4312. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  4313. this.Adapter.DeleteCommand.Parameters[10].Value = ((decimal)(Original_CarInsuranceCost.Value));
  4314. }
  4315. else {
  4316. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  4317. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  4318. }
  4319. if ((Original_OneDayCost.HasValue == true)) {
  4320. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  4321. this.Adapter.DeleteCommand.Parameters[12].Value = ((decimal)(Original_OneDayCost.Value));
  4322. }
  4323. else {
  4324. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  4325. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  4326. }
  4327. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4328. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4329. != global::System.Data.ConnectionState.Open)) {
  4330. this.Adapter.DeleteCommand.Connection.Open();
  4331. }
  4332. try {
  4333. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4334. return returnValue;
  4335. }
  4336. finally {
  4337. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4338. this.Adapter.DeleteCommand.Connection.Close();
  4339. }
  4340. }
  4341. }
  4342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4344. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4345. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4346. public virtual int Insert(string Model, string Color, global::System.Nullable<global::System.DateTime> CarManufactureDate, string GovermantNumber, global::System.Nullable<decimal> CarInsuranceCost, global::System.Nullable<decimal> OneDayCost) {
  4347. if ((Model == null)) {
  4348. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4349. }
  4350. else {
  4351. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Model));
  4352. }
  4353. if ((Color == null)) {
  4354. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4355. }
  4356. else {
  4357. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Color));
  4358. }
  4359. if ((CarManufactureDate.HasValue == true)) {
  4360. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(CarManufactureDate.Value));
  4361. }
  4362. else {
  4363. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4364. }
  4365. if ((GovermantNumber == null)) {
  4366. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4367. }
  4368. else {
  4369. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(GovermantNumber));
  4370. }
  4371. if ((CarInsuranceCost.HasValue == true)) {
  4372. this.Adapter.InsertCommand.Parameters[4].Value = ((decimal)(CarInsuranceCost.Value));
  4373. }
  4374. else {
  4375. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  4376. }
  4377. if ((OneDayCost.HasValue == true)) {
  4378. this.Adapter.InsertCommand.Parameters[5].Value = ((decimal)(OneDayCost.Value));
  4379. }
  4380. else {
  4381. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  4382. }
  4383. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4384. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4385. != global::System.Data.ConnectionState.Open)) {
  4386. this.Adapter.InsertCommand.Connection.Open();
  4387. }
  4388. try {
  4389. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4390. return returnValue;
  4391. }
  4392. finally {
  4393. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4394. this.Adapter.InsertCommand.Connection.Close();
  4395. }
  4396. }
  4397. }
  4398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4400. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4401. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4402. public virtual int Update(string Model, string Color, global::System.Nullable<global::System.DateTime> CarManufactureDate, string GovermantNumber, global::System.Nullable<decimal> CarInsuranceCost, global::System.Nullable<decimal> OneDayCost, int Original_ID, string Original_Model, string Original_Color, global::System.Nullable<global::System.DateTime> Original_CarManufactureDate, string Original_GovermantNumber, global::System.Nullable<decimal> Original_CarInsuranceCost, global::System.Nullable<decimal> Original_OneDayCost, int ID) {
  4403. if ((Model == null)) {
  4404. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4405. }
  4406. else {
  4407. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Model));
  4408. }
  4409. if ((Color == null)) {
  4410. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4411. }
  4412. else {
  4413. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Color));
  4414. }
  4415. if ((CarManufactureDate.HasValue == true)) {
  4416. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(CarManufactureDate.Value));
  4417. }
  4418. else {
  4419. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4420. }
  4421. if ((GovermantNumber == null)) {
  4422. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4423. }
  4424. else {
  4425. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(GovermantNumber));
  4426. }
  4427. if ((CarInsuranceCost.HasValue == true)) {
  4428. this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(CarInsuranceCost.Value));
  4429. }
  4430. else {
  4431. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4432. }
  4433. if ((OneDayCost.HasValue == true)) {
  4434. this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(OneDayCost.Value));
  4435. }
  4436. else {
  4437. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  4438. }
  4439. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  4440. if ((Original_Model == null)) {
  4441. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  4442. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  4443. }
  4444. else {
  4445. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  4446. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Model));
  4447. }
  4448. if ((Original_Color == null)) {
  4449. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  4450. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  4451. }
  4452. else {
  4453. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  4454. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Color));
  4455. }
  4456. if ((Original_CarManufactureDate.HasValue == true)) {
  4457. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  4458. this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(Original_CarManufactureDate.Value));
  4459. }
  4460. else {
  4461. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  4462. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  4463. }
  4464. if ((Original_GovermantNumber == null)) {
  4465. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  4466. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  4467. }
  4468. else {
  4469. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  4470. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_GovermantNumber));
  4471. }
  4472. if ((Original_CarInsuranceCost.HasValue == true)) {
  4473. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  4474. this.Adapter.UpdateCommand.Parameters[16].Value = ((decimal)(Original_CarInsuranceCost.Value));
  4475. }
  4476. else {
  4477. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  4478. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  4479. }
  4480. if ((Original_OneDayCost.HasValue == true)) {
  4481. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  4482. this.Adapter.UpdateCommand.Parameters[18].Value = ((decimal)(Original_OneDayCost.Value));
  4483. }
  4484. else {
  4485. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  4486. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  4487. }
  4488. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(ID));
  4489. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4490. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4491. != global::System.Data.ConnectionState.Open)) {
  4492. this.Adapter.UpdateCommand.Connection.Open();
  4493. }
  4494. try {
  4495. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4496. return returnValue;
  4497. }
  4498. finally {
  4499. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4500. this.Adapter.UpdateCommand.Connection.Close();
  4501. }
  4502. }
  4503. }
  4504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4506. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4507. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4508. public virtual int Update(string Model, string Color, global::System.Nullable<global::System.DateTime> CarManufactureDate, string GovermantNumber, global::System.Nullable<decimal> CarInsuranceCost, global::System.Nullable<decimal> OneDayCost, int Original_ID, string Original_Model, string Original_Color, global::System.Nullable<global::System.DateTime> Original_CarManufactureDate, string Original_GovermantNumber, global::System.Nullable<decimal> Original_CarInsuranceCost, global::System.Nullable<decimal> Original_OneDayCost) {
  4509. return this.Update(Model, Color, CarManufactureDate, GovermantNumber, CarInsuranceCost, OneDayCost, Original_ID, Original_Model, Original_Color, Original_CarManufactureDate, Original_GovermantNumber, Original_CarInsuranceCost, Original_OneDayCost, Original_ID);
  4510. }
  4511. }
  4512. /// <summary>
  4513. ///Represents the connection and commands used to retrieve and save data.
  4514. ///</summary>
  4515. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4516. [global::System.ComponentModel.ToolboxItem(true)]
  4517. [global::System.ComponentModel.DataObjectAttribute(true)]
  4518. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4519. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4520. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4521. public partial class ClientTableAdapter : global::System.ComponentModel.Component {
  4522. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4523. private global::System.Data.SqlClient.SqlConnection _connection;
  4524. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4525. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4526. private bool _clearBeforeFill;
  4527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4529. public ClientTableAdapter() {
  4530. this.ClearBeforeFill = true;
  4531. }
  4532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4534. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4535. get {
  4536. if ((this._adapter == null)) {
  4537. this.InitAdapter();
  4538. }
  4539. return this._adapter;
  4540. }
  4541. }
  4542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4544. internal global::System.Data.SqlClient.SqlConnection Connection {
  4545. get {
  4546. if ((this._connection == null)) {
  4547. this.InitConnection();
  4548. }
  4549. return this._connection;
  4550. }
  4551. set {
  4552. this._connection = value;
  4553. if ((this.Adapter.InsertCommand != null)) {
  4554. this.Adapter.InsertCommand.Connection = value;
  4555. }
  4556. if ((this.Adapter.DeleteCommand != null)) {
  4557. this.Adapter.DeleteCommand.Connection = value;
  4558. }
  4559. if ((this.Adapter.UpdateCommand != null)) {
  4560. this.Adapter.UpdateCommand.Connection = value;
  4561. }
  4562. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4563. if ((this.CommandCollection[i] != null)) {
  4564. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4565. }
  4566. }
  4567. }
  4568. }
  4569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4571. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4572. get {
  4573. return this._transaction;
  4574. }
  4575. set {
  4576. this._transaction = value;
  4577. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4578. this.CommandCollection[i].Transaction = this._transaction;
  4579. }
  4580. if (((this.Adapter != null)
  4581. && (this.Adapter.DeleteCommand != null))) {
  4582. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4583. }
  4584. if (((this.Adapter != null)
  4585. && (this.Adapter.InsertCommand != null))) {
  4586. this.Adapter.InsertCommand.Transaction = this._transaction;
  4587. }
  4588. if (((this.Adapter != null)
  4589. && (this.Adapter.UpdateCommand != null))) {
  4590. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4591. }
  4592. }
  4593. }
  4594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4596. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4597. get {
  4598. if ((this._commandCollection == null)) {
  4599. this.InitCommandCollection();
  4600. }
  4601. return this._commandCollection;
  4602. }
  4603. }
  4604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4606. public bool ClearBeforeFill {
  4607. get {
  4608. return this._clearBeforeFill;
  4609. }
  4610. set {
  4611. this._clearBeforeFill = value;
  4612. }
  4613. }
  4614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4616. private void InitAdapter() {
  4617. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4618. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4619. tableMapping.SourceTable = "Table";
  4620. tableMapping.DataSetTable = "Client";
  4621. tableMapping.ColumnMappings.Add("ID", "ID");
  4622. tableMapping.ColumnMappings.Add("FIO", "FIO");
  4623. tableMapping.ColumnMappings.Add("Pasport", "Pasport");
  4624. tableMapping.ColumnMappings.Add("Phone", "Phone");
  4625. tableMapping.ColumnMappings.Add("Address", "Address");
  4626. this._adapter.TableMappings.Add(tableMapping);
  4627. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4628. this._adapter.DeleteCommand.Connection = this.Connection;
  4629. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Client] WHERE (([ID] = @Original_ID) AND ((@IsNull_FIO = 1 AND [FIO] IS NULL) OR ([FIO] = @Original_FIO)) AND ((@IsNull_Pasport = 1 AND [Pasport] IS NULL) OR ([Pasport] = @Original_Pasport)) AND ((@IsNull_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_Address)))";
  4630. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4631. 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, "", "", ""));
  4632. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FIO", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FIO", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4633. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FIO", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FIO", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4634. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Pasport", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pasport", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4635. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Pasport", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pasport", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4636. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4637. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4638. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Address", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4639. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Address", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4640. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4641. this._adapter.InsertCommand.Connection = this.Connection;
  4642. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Client] ([FIO], [Pasport], [Phone], [Address]) VALUES (@FIO, @" +
  4643. "Pasport, @Phone, @Address);\r\nSELECT ID, FIO, Pasport, Phone, Address FROM Client" +
  4644. " WHERE (ID = SCOPE_IDENTITY())";
  4645. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4646. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FIO", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FIO", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4647. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Pasport", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pasport", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4648. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4649. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Address", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4650. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4651. this._adapter.UpdateCommand.Connection = this.Connection;
  4652. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Client] SET [FIO] = @FIO, [Pasport] = @Pasport, [Phone] = @Phone, [Address] = @Address WHERE (([ID] = @Original_ID) AND ((@IsNull_FIO = 1 AND [FIO] IS NULL) OR ([FIO] = @Original_FIO)) AND ((@IsNull_Pasport = 1 AND [Pasport] IS NULL) OR ([Pasport] = @Original_Pasport)) AND ((@IsNull_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_Address)));
  4653. SELECT ID, FIO, Pasport, Phone, Address FROM Client WHERE (ID = @ID)";
  4654. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4655. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FIO", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FIO", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4656. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Pasport", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pasport", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4657. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4658. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Address", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4659. 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, "", "", ""));
  4660. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FIO", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FIO", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4661. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FIO", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FIO", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4662. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Pasport", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pasport", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4663. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Pasport", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pasport", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4664. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4665. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4666. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Address", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4667. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Address", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4668. 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, "", "", ""));
  4669. }
  4670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4672. private void InitConnection() {
  4673. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4674. this._connection.ConnectionString = global::Avtoprok.Properties.Settings.Default.Avtodrive_02ConnectionString;
  4675. }
  4676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4678. private void InitCommandCollection() {
  4679. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4680. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4681. this._commandCollection[0].Connection = this.Connection;
  4682. this._commandCollection[0].CommandText = "SELECT ID, FIO, Pasport, Phone, Address FROM dbo.Client";
  4683. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4684. }
  4685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4687. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4688. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4689. public virtual int Fill(Avtodrive_02DataSet.ClientDataTable dataTable) {
  4690. this.Adapter.SelectCommand = this.CommandCollection[0];
  4691. if ((this.ClearBeforeFill == true)) {
  4692. dataTable.Clear();
  4693. }
  4694. int returnValue = this.Adapter.Fill(dataTable);
  4695. return returnValue;
  4696. }
  4697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4699. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4700. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4701. public virtual Avtodrive_02DataSet.ClientDataTable GetData() {
  4702. this.Adapter.SelectCommand = this.CommandCollection[0];
  4703. Avtodrive_02DataSet.ClientDataTable dataTable = new Avtodrive_02DataSet.ClientDataTable();
  4704. this.Adapter.Fill(dataTable);
  4705. return dataTable;
  4706. }
  4707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4709. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4710. public virtual int Update(Avtodrive_02DataSet.ClientDataTable dataTable) {
  4711. return this.Adapter.Update(dataTable);
  4712. }
  4713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4715. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4716. public virtual int Update(Avtodrive_02DataSet dataSet) {
  4717. return this.Adapter.Update(dataSet, "Client");
  4718. }
  4719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4721. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4722. public virtual int Update(global::System.Data.DataRow dataRow) {
  4723. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4724. dataRow});
  4725. }
  4726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4728. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4729. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4730. return this.Adapter.Update(dataRows);
  4731. }
  4732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4734. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4735. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4736. public virtual int Delete(int Original_ID, string Original_FIO, string Original_Pasport, string Original_Phone, string Original_Address) {
  4737. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  4738. if ((Original_FIO == null)) {
  4739. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4740. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4741. }
  4742. else {
  4743. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4744. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_FIO));
  4745. }
  4746. if ((Original_Pasport == null)) {
  4747. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4748. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4749. }
  4750. else {
  4751. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4752. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Pasport));
  4753. }
  4754. if ((Original_Phone == null)) {
  4755. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4756. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4757. }
  4758. else {
  4759. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4760. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Phone));
  4761. }
  4762. if ((Original_Address == null)) {
  4763. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  4764. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  4765. }
  4766. else {
  4767. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  4768. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Address));
  4769. }
  4770. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4771. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4772. != global::System.Data.ConnectionState.Open)) {
  4773. this.Adapter.DeleteCommand.Connection.Open();
  4774. }
  4775. try {
  4776. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4777. return returnValue;
  4778. }
  4779. finally {
  4780. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4781. this.Adapter.DeleteCommand.Connection.Close();
  4782. }
  4783. }
  4784. }
  4785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4787. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4788. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4789. public virtual int Insert(string FIO, string Pasport, string Phone, string Address) {
  4790. if ((FIO == null)) {
  4791. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4792. }
  4793. else {
  4794. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(FIO));
  4795. }
  4796. if ((Pasport == null)) {
  4797. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4798. }
  4799. else {
  4800. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Pasport));
  4801. }
  4802. if ((Phone == null)) {
  4803. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4804. }
  4805. else {
  4806. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Phone));
  4807. }
  4808. if ((Address == null)) {
  4809. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4810. }
  4811. else {
  4812. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Address));
  4813. }
  4814. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4815. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4816. != global::System.Data.ConnectionState.Open)) {
  4817. this.Adapter.InsertCommand.Connection.Open();
  4818. }
  4819. try {
  4820. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4821. return returnValue;
  4822. }
  4823. finally {
  4824. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4825. this.Adapter.InsertCommand.Connection.Close();
  4826. }
  4827. }
  4828. }
  4829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4831. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4832. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4833. public virtual int Update(string FIO, string Pasport, string Phone, string Address, int Original_ID, string Original_FIO, string Original_Pasport, string Original_Phone, string Original_Address, int ID) {
  4834. if ((FIO == null)) {
  4835. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4836. }
  4837. else {
  4838. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(FIO));
  4839. }
  4840. if ((Pasport == null)) {
  4841. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4842. }
  4843. else {
  4844. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Pasport));
  4845. }
  4846. if ((Phone == null)) {
  4847. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4848. }
  4849. else {
  4850. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Phone));
  4851. }
  4852. if ((Address == null)) {
  4853. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4854. }
  4855. else {
  4856. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Address));
  4857. }
  4858. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  4859. if ((Original_FIO == null)) {
  4860. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  4861. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  4862. }
  4863. else {
  4864. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  4865. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_FIO));
  4866. }
  4867. if ((Original_Pasport == null)) {
  4868. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  4869. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  4870. }
  4871. else {
  4872. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  4873. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Pasport));
  4874. }
  4875. if ((Original_Phone == null)) {
  4876. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  4877. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  4878. }
  4879. else {
  4880. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  4881. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Phone));
  4882. }
  4883. if ((Original_Address == null)) {
  4884. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  4885. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  4886. }
  4887. else {
  4888. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  4889. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Address));
  4890. }
  4891. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(ID));
  4892. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4893. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4894. != global::System.Data.ConnectionState.Open)) {
  4895. this.Adapter.UpdateCommand.Connection.Open();
  4896. }
  4897. try {
  4898. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4899. return returnValue;
  4900. }
  4901. finally {
  4902. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4903. this.Adapter.UpdateCommand.Connection.Close();
  4904. }
  4905. }
  4906. }
  4907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4909. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4910. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4911. public virtual int Update(string FIO, string Pasport, string Phone, string Address, int Original_ID, string Original_FIO, string Original_Pasport, string Original_Phone, string Original_Address) {
  4912. return this.Update(FIO, Pasport, Phone, Address, Original_ID, Original_FIO, Original_Pasport, Original_Phone, Original_Address, Original_ID);
  4913. }
  4914. }
  4915. /// <summary>
  4916. ///Represents the connection and commands used to retrieve and save data.
  4917. ///</summary>
  4918. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4919. [global::System.ComponentModel.ToolboxItem(true)]
  4920. [global::System.ComponentModel.DataObjectAttribute(true)]
  4921. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4922. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4923. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4924. public partial class Order_TableAdapter : global::System.ComponentModel.Component {
  4925. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4926. private global::System.Data.SqlClient.SqlConnection _connection;
  4927. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4928. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4929. private bool _clearBeforeFill;
  4930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4932. public Order_TableAdapter() {
  4933. this.ClearBeforeFill = true;
  4934. }
  4935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4937. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4938. get {
  4939. if ((this._adapter == null)) {
  4940. this.InitAdapter();
  4941. }
  4942. return this._adapter;
  4943. }
  4944. }
  4945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4947. internal global::System.Data.SqlClient.SqlConnection Connection {
  4948. get {
  4949. if ((this._connection == null)) {
  4950. this.InitConnection();
  4951. }
  4952. return this._connection;
  4953. }
  4954. set {
  4955. this._connection = value;
  4956. if ((this.Adapter.InsertCommand != null)) {
  4957. this.Adapter.InsertCommand.Connection = value;
  4958. }
  4959. if ((this.Adapter.DeleteCommand != null)) {
  4960. this.Adapter.DeleteCommand.Connection = value;
  4961. }
  4962. if ((this.Adapter.UpdateCommand != null)) {
  4963. this.Adapter.UpdateCommand.Connection = value;
  4964. }
  4965. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4966. if ((this.CommandCollection[i] != null)) {
  4967. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4968. }
  4969. }
  4970. }
  4971. }
  4972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4974. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4975. get {
  4976. return this._transaction;
  4977. }
  4978. set {
  4979. this._transaction = value;
  4980. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4981. this.CommandCollection[i].Transaction = this._transaction;
  4982. }
  4983. if (((this.Adapter != null)
  4984. && (this.Adapter.DeleteCommand != null))) {
  4985. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4986. }
  4987. if (((this.Adapter != null)
  4988. && (this.Adapter.InsertCommand != null))) {
  4989. this.Adapter.InsertCommand.Transaction = this._transaction;
  4990. }
  4991. if (((this.Adapter != null)
  4992. && (this.Adapter.UpdateCommand != null))) {
  4993. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4994. }
  4995. }
  4996. }
  4997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4999. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5000. get {
  5001. if ((this._commandCollection == null)) {
  5002. this.InitCommandCollection();
  5003. }
  5004. return this._commandCollection;
  5005. }
  5006. }
  5007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5009. public bool ClearBeforeFill {
  5010. get {
  5011. return this._clearBeforeFill;
  5012. }
  5013. set {
  5014. this._clearBeforeFill = value;
  5015. }
  5016. }
  5017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5019. private void InitAdapter() {
  5020. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5021. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5022. tableMapping.SourceTable = "Table";
  5023. tableMapping.DataSetTable = "Order_";
  5024. tableMapping.ColumnMappings.Add("ID", "ID");
  5025. tableMapping.ColumnMappings.Add("ID_Client", "ID_Client");
  5026. tableMapping.ColumnMappings.Add("ID_Car", "ID_Car");
  5027. tableMapping.ColumnMappings.Add("Date_order", "Date_order");
  5028. tableMapping.ColumnMappings.Add("OrderTimeDay", "OrderTimeDay");
  5029. this._adapter.TableMappings.Add(tableMapping);
  5030. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5031. this._adapter.DeleteCommand.Connection = this.Connection;
  5032. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Order_] WHERE (([ID] = @Original_ID) AND ((@IsNull_ID_Client = 1 AND [ID_Client] IS NULL) OR ([ID_Client] = @Original_ID_Client)) AND ((@IsNull_ID_Car = 1 AND [ID_Car] IS NULL) OR ([ID_Car] = @Original_ID_Car)) AND ((@IsNull_Date_order = 1 AND [Date_order] IS NULL) OR ([Date_order] = @Original_Date_order)) AND ((@IsNull_OrderTimeDay = 1 AND [OrderTimeDay] IS NULL) OR ([OrderTimeDay] = @Original_OrderTimeDay)))";
  5033. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5034. 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, "", "", ""));
  5035. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Client", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5036. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Client", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5037. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Car", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Car", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5038. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Car", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Car", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5039. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Date_order", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date_order", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5040. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Date_order", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date_order", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5041. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrderTimeDay", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderTimeDay", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5042. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderTimeDay", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderTimeDay", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5043. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5044. this._adapter.InsertCommand.Connection = this.Connection;
  5045. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Order_] ([ID_Client], [ID_Car], [Date_order], [OrderTimeDay]) " +
  5046. "VALUES (@ID_Client, @ID_Car, @Date_order, @OrderTimeDay);\r\nSELECT ID, ID_Client," +
  5047. " ID_Car, Date_order, OrderTimeDay FROM Order_ WHERE (ID = SCOPE_IDENTITY())";
  5048. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5049. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Client", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5050. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Car", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Car", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5051. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Date_order", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date_order", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5052. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderTimeDay", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderTimeDay", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5053. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5054. this._adapter.UpdateCommand.Connection = this.Connection;
  5055. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Order_] SET [ID_Client] = @ID_Client, [ID_Car] = @ID_Car, [Date_order] = @Date_order, [OrderTimeDay] = @OrderTimeDay WHERE (([ID] = @Original_ID) AND ((@IsNull_ID_Client = 1 AND [ID_Client] IS NULL) OR ([ID_Client] = @Original_ID_Client)) AND ((@IsNull_ID_Car = 1 AND [ID_Car] IS NULL) OR ([ID_Car] = @Original_ID_Car)) AND ((@IsNull_Date_order = 1 AND [Date_order] IS NULL) OR ([Date_order] = @Original_Date_order)) AND ((@IsNull_OrderTimeDay = 1 AND [OrderTimeDay] IS NULL) OR ([OrderTimeDay] = @Original_OrderTimeDay)));
  5056. SELECT ID, ID_Client, ID_Car, Date_order, OrderTimeDay FROM Order_ WHERE (ID = @ID)";
  5057. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5058. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Client", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5059. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Car", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Car", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5060. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Date_order", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date_order", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5061. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderTimeDay", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderTimeDay", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5062. 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, "", "", ""));
  5063. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Client", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5064. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Client", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5065. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_Car", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Car", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5066. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Car", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Car", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5067. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Date_order", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date_order", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5068. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Date_order", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date_order", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5069. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrderTimeDay", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderTimeDay", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5070. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderTimeDay", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderTimeDay", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5071. 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, "", "", ""));
  5072. }
  5073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5075. private void InitConnection() {
  5076. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5077. this._connection.ConnectionString = global::Avtoprok.Properties.Settings.Default.Avtodrive_02ConnectionString;
  5078. }
  5079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5081. private void InitCommandCollection() {
  5082. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5083. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5084. this._commandCollection[0].Connection = this.Connection;
  5085. this._commandCollection[0].CommandText = "SELECT ID, ID_Client, ID_Car, Date_order, OrderTimeDay FROM dbo.Order_";
  5086. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5087. }
  5088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5090. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5091. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5092. public virtual int Fill(Avtodrive_02DataSet.Order_DataTable dataTable) {
  5093. this.Adapter.SelectCommand = this.CommandCollection[0];
  5094. if ((this.ClearBeforeFill == true)) {
  5095. dataTable.Clear();
  5096. }
  5097. int returnValue = this.Adapter.Fill(dataTable);
  5098. return returnValue;
  5099. }
  5100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5102. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5103. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5104. public virtual Avtodrive_02DataSet.Order_DataTable GetData() {
  5105. this.Adapter.SelectCommand = this.CommandCollection[0];
  5106. Avtodrive_02DataSet.Order_DataTable dataTable = new Avtodrive_02DataSet.Order_DataTable();
  5107. this.Adapter.Fill(dataTable);
  5108. return dataTable;
  5109. }
  5110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5112. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5113. public virtual int Update(Avtodrive_02DataSet.Order_DataTable dataTable) {
  5114. return this.Adapter.Update(dataTable);
  5115. }
  5116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5118. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5119. public virtual int Update(Avtodrive_02DataSet dataSet) {
  5120. return this.Adapter.Update(dataSet, "Order_");
  5121. }
  5122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5124. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5125. public virtual int Update(global::System.Data.DataRow dataRow) {
  5126. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5127. dataRow});
  5128. }
  5129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5131. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5132. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5133. return this.Adapter.Update(dataRows);
  5134. }
  5135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5137. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5138. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5139. public virtual int Delete(int Original_ID, global::System.Nullable<int> Original_ID_Client, global::System.Nullable<int> Original_ID_Car, global::System.Nullable<global::System.DateTime> Original_Date_order, global::System.Nullable<int> Original_OrderTimeDay) {
  5140. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  5141. if ((Original_ID_Client.HasValue == true)) {
  5142. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5143. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ID_Client.Value));
  5144. }
  5145. else {
  5146. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5147. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5148. }
  5149. if ((Original_ID_Car.HasValue == true)) {
  5150. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5151. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_ID_Car.Value));
  5152. }
  5153. else {
  5154. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5155. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5156. }
  5157. if ((Original_Date_order.HasValue == true)) {
  5158. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5159. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Date_order.Value));
  5160. }
  5161. else {
  5162. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5163. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5164. }
  5165. if ((Original_OrderTimeDay.HasValue == true)) {
  5166. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  5167. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_OrderTimeDay.Value));
  5168. }
  5169. else {
  5170. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  5171. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  5172. }
  5173. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5174. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5175. != global::System.Data.ConnectionState.Open)) {
  5176. this.Adapter.DeleteCommand.Connection.Open();
  5177. }
  5178. try {
  5179. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5180. return returnValue;
  5181. }
  5182. finally {
  5183. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5184. this.Adapter.DeleteCommand.Connection.Close();
  5185. }
  5186. }
  5187. }
  5188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5190. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5191. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5192. public virtual int Insert(global::System.Nullable<int> ID_Client, global::System.Nullable<int> ID_Car, global::System.Nullable<global::System.DateTime> Date_order, global::System.Nullable<int> OrderTimeDay) {
  5193. if ((ID_Client.HasValue == true)) {
  5194. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_Client.Value));
  5195. }
  5196. else {
  5197. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5198. }
  5199. if ((ID_Car.HasValue == true)) {
  5200. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ID_Car.Value));
  5201. }
  5202. else {
  5203. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5204. }
  5205. if ((Date_order.HasValue == true)) {
  5206. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(Date_order.Value));
  5207. }
  5208. else {
  5209. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5210. }
  5211. if ((OrderTimeDay.HasValue == true)) {
  5212. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(OrderTimeDay.Value));
  5213. }
  5214. else {
  5215. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5216. }
  5217. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5218. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5219. != global::System.Data.ConnectionState.Open)) {
  5220. this.Adapter.InsertCommand.Connection.Open();
  5221. }
  5222. try {
  5223. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5224. return returnValue;
  5225. }
  5226. finally {
  5227. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5228. this.Adapter.InsertCommand.Connection.Close();
  5229. }
  5230. }
  5231. }
  5232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5234. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5235. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5236. public virtual int Update(global::System.Nullable<int> ID_Client, global::System.Nullable<int> ID_Car, global::System.Nullable<global::System.DateTime> Date_order, global::System.Nullable<int> OrderTimeDay, int Original_ID, global::System.Nullable<int> Original_ID_Client, global::System.Nullable<int> Original_ID_Car, global::System.Nullable<global::System.DateTime> Original_Date_order, global::System.Nullable<int> Original_OrderTimeDay, int ID) {
  5237. if ((ID_Client.HasValue == true)) {
  5238. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_Client.Value));
  5239. }
  5240. else {
  5241. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5242. }
  5243. if ((ID_Car.HasValue == true)) {
  5244. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ID_Car.Value));
  5245. }
  5246. else {
  5247. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5248. }
  5249. if ((Date_order.HasValue == true)) {
  5250. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(Date_order.Value));
  5251. }
  5252. else {
  5253. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5254. }
  5255. if ((OrderTimeDay.HasValue == true)) {
  5256. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(OrderTimeDay.Value));
  5257. }
  5258. else {
  5259. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5260. }
  5261. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  5262. if ((Original_ID_Client.HasValue == true)) {
  5263. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  5264. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID_Client.Value));
  5265. }
  5266. else {
  5267. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  5268. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  5269. }
  5270. if ((Original_ID_Car.HasValue == true)) {
  5271. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  5272. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_ID_Car.Value));
  5273. }
  5274. else {
  5275. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  5276. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  5277. }
  5278. if ((Original_Date_order.HasValue == true)) {
  5279. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  5280. this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(Original_Date_order.Value));
  5281. }
  5282. else {
  5283. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  5284. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  5285. }
  5286. if ((Original_OrderTimeDay.HasValue == true)) {
  5287. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  5288. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_OrderTimeDay.Value));
  5289. }
  5290. else {
  5291. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  5292. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  5293. }
  5294. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(ID));
  5295. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5296. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5297. != global::System.Data.ConnectionState.Open)) {
  5298. this.Adapter.UpdateCommand.Connection.Open();
  5299. }
  5300. try {
  5301. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5302. return returnValue;
  5303. }
  5304. finally {
  5305. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5306. this.Adapter.UpdateCommand.Connection.Close();
  5307. }
  5308. }
  5309. }
  5310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5312. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5313. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5314. public virtual int Update(global::System.Nullable<int> ID_Client, global::System.Nullable<int> ID_Car, global::System.Nullable<global::System.DateTime> Date_order, global::System.Nullable<int> OrderTimeDay, int Original_ID, global::System.Nullable<int> Original_ID_Client, global::System.Nullable<int> Original_ID_Car, global::System.Nullable<global::System.DateTime> Original_Date_order, global::System.Nullable<int> Original_OrderTimeDay) {
  5315. return this.Update(ID_Client, ID_Car, Date_order, OrderTimeDay, Original_ID, Original_ID_Client, Original_ID_Car, Original_Date_order, Original_OrderTimeDay, Original_ID);
  5316. }
  5317. }
  5318. /// <summary>
  5319. ///Represents the connection and commands used to retrieve and save data.
  5320. ///</summary>
  5321. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5322. [global::System.ComponentModel.ToolboxItem(true)]
  5323. [global::System.ComponentModel.DataObjectAttribute(true)]
  5324. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5325. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5326. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5327. public partial class Task1TableAdapter : global::System.ComponentModel.Component {
  5328. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5329. private global::System.Data.SqlClient.SqlConnection _connection;
  5330. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5331. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5332. private bool _clearBeforeFill;
  5333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5335. public Task1TableAdapter() {
  5336. this.ClearBeforeFill = true;
  5337. }
  5338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5340. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5341. get {
  5342. if ((this._adapter == null)) {
  5343. this.InitAdapter();
  5344. }
  5345. return this._adapter;
  5346. }
  5347. }
  5348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5350. internal global::System.Data.SqlClient.SqlConnection Connection {
  5351. get {
  5352. if ((this._connection == null)) {
  5353. this.InitConnection();
  5354. }
  5355. return this._connection;
  5356. }
  5357. set {
  5358. this._connection = value;
  5359. if ((this.Adapter.InsertCommand != null)) {
  5360. this.Adapter.InsertCommand.Connection = value;
  5361. }
  5362. if ((this.Adapter.DeleteCommand != null)) {
  5363. this.Adapter.DeleteCommand.Connection = value;
  5364. }
  5365. if ((this.Adapter.UpdateCommand != null)) {
  5366. this.Adapter.UpdateCommand.Connection = value;
  5367. }
  5368. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5369. if ((this.CommandCollection[i] != null)) {
  5370. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5371. }
  5372. }
  5373. }
  5374. }
  5375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5377. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5378. get {
  5379. return this._transaction;
  5380. }
  5381. set {
  5382. this._transaction = value;
  5383. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5384. this.CommandCollection[i].Transaction = this._transaction;
  5385. }
  5386. if (((this.Adapter != null)
  5387. && (this.Adapter.DeleteCommand != null))) {
  5388. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5389. }
  5390. if (((this.Adapter != null)
  5391. && (this.Adapter.InsertCommand != null))) {
  5392. this.Adapter.InsertCommand.Transaction = this._transaction;
  5393. }
  5394. if (((this.Adapter != null)
  5395. && (this.Adapter.UpdateCommand != null))) {
  5396. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5397. }
  5398. }
  5399. }
  5400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5402. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5403. get {
  5404. if ((this._commandCollection == null)) {
  5405. this.InitCommandCollection();
  5406. }
  5407. return this._commandCollection;
  5408. }
  5409. }
  5410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5412. public bool ClearBeforeFill {
  5413. get {
  5414. return this._clearBeforeFill;
  5415. }
  5416. set {
  5417. this._clearBeforeFill = value;
  5418. }
  5419. }
  5420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5422. private void InitAdapter() {
  5423. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5424. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5425. tableMapping.SourceTable = "Table";
  5426. tableMapping.DataSetTable = "Task1";
  5427. tableMapping.ColumnMappings.Add("ID", "ID");
  5428. tableMapping.ColumnMappings.Add("Model", "Model");
  5429. tableMapping.ColumnMappings.Add("Color", "Color");
  5430. tableMapping.ColumnMappings.Add("CarManufactureDate", "CarManufactureDate");
  5431. tableMapping.ColumnMappings.Add("GovermantNumber", "GovermantNumber");
  5432. tableMapping.ColumnMappings.Add("CarInsuranceCost", "CarInsuranceCost");
  5433. tableMapping.ColumnMappings.Add("OneDayCost", "OneDayCost");
  5434. this._adapter.TableMappings.Add(tableMapping);
  5435. }
  5436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5438. private void InitConnection() {
  5439. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5440. this._connection.ConnectionString = global::Avtoprok.Properties.Settings.Default.Avtodrive_02ConnectionString;
  5441. }
  5442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5444. private void InitCommandCollection() {
  5445. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5446. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5447. this._commandCollection[0].Connection = this.Connection;
  5448. this._commandCollection[0].CommandText = "dbo.Task1";
  5449. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  5450. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5451. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@value1", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5452. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@value2", global::System.Data.SqlDbType.NChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5453. }
  5454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5456. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5457. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5458. public virtual int Fill(Avtodrive_02DataSet.Task1DataTable dataTable, global::System.Nullable<global::System.DateTime> value1, string value2) {
  5459. this.Adapter.SelectCommand = this.CommandCollection[0];
  5460. if ((value1.HasValue == true)) {
  5461. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(value1.Value));
  5462. }
  5463. else {
  5464. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  5465. }
  5466. if ((value2 == null)) {
  5467. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  5468. }
  5469. else {
  5470. this.Adapter.SelectCommand.Parameters[2].Value = ((string)(value2));
  5471. }
  5472. if ((this.ClearBeforeFill == true)) {
  5473. dataTable.Clear();
  5474. }
  5475. int returnValue = this.Adapter.Fill(dataTable);
  5476. return returnValue;
  5477. }
  5478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5480. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5481. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5482. public virtual Avtodrive_02DataSet.Task1DataTable GetData(global::System.Nullable<global::System.DateTime> value1, string value2) {
  5483. this.Adapter.SelectCommand = this.CommandCollection[0];
  5484. if ((value1.HasValue == true)) {
  5485. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(value1.Value));
  5486. }
  5487. else {
  5488. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  5489. }
  5490. if ((value2 == null)) {
  5491. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  5492. }
  5493. else {
  5494. this.Adapter.SelectCommand.Parameters[2].Value = ((string)(value2));
  5495. }
  5496. Avtodrive_02DataSet.Task1DataTable dataTable = new Avtodrive_02DataSet.Task1DataTable();
  5497. this.Adapter.Fill(dataTable);
  5498. return dataTable;
  5499. }
  5500. }
  5501. /// <summary>
  5502. ///Represents the connection and commands used to retrieve and save data.
  5503. ///</summary>
  5504. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5505. [global::System.ComponentModel.ToolboxItem(true)]
  5506. [global::System.ComponentModel.DataObjectAttribute(true)]
  5507. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5508. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5509. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5510. public partial class Task2TableAdapter : global::System.ComponentModel.Component {
  5511. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5512. private global::System.Data.SqlClient.SqlConnection _connection;
  5513. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5514. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5515. private bool _clearBeforeFill;
  5516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5518. public Task2TableAdapter() {
  5519. this.ClearBeforeFill = true;
  5520. }
  5521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5523. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5524. get {
  5525. if ((this._adapter == null)) {
  5526. this.InitAdapter();
  5527. }
  5528. return this._adapter;
  5529. }
  5530. }
  5531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5533. internal global::System.Data.SqlClient.SqlConnection Connection {
  5534. get {
  5535. if ((this._connection == null)) {
  5536. this.InitConnection();
  5537. }
  5538. return this._connection;
  5539. }
  5540. set {
  5541. this._connection = value;
  5542. if ((this.Adapter.InsertCommand != null)) {
  5543. this.Adapter.InsertCommand.Connection = value;
  5544. }
  5545. if ((this.Adapter.DeleteCommand != null)) {
  5546. this.Adapter.DeleteCommand.Connection = value;
  5547. }
  5548. if ((this.Adapter.UpdateCommand != null)) {
  5549. this.Adapter.UpdateCommand.Connection = value;
  5550. }
  5551. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5552. if ((this.CommandCollection[i] != null)) {
  5553. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5554. }
  5555. }
  5556. }
  5557. }
  5558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5560. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5561. get {
  5562. return this._transaction;
  5563. }
  5564. set {
  5565. this._transaction = value;
  5566. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5567. this.CommandCollection[i].Transaction = this._transaction;
  5568. }
  5569. if (((this.Adapter != null)
  5570. && (this.Adapter.DeleteCommand != null))) {
  5571. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5572. }
  5573. if (((this.Adapter != null)
  5574. && (this.Adapter.InsertCommand != null))) {
  5575. this.Adapter.InsertCommand.Transaction = this._transaction;
  5576. }
  5577. if (((this.Adapter != null)
  5578. && (this.Adapter.UpdateCommand != null))) {
  5579. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5580. }
  5581. }
  5582. }
  5583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5585. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5586. get {
  5587. if ((this._commandCollection == null)) {
  5588. this.InitCommandCollection();
  5589. }
  5590. return this._commandCollection;
  5591. }
  5592. }
  5593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5595. public bool ClearBeforeFill {
  5596. get {
  5597. return this._clearBeforeFill;
  5598. }
  5599. set {
  5600. this._clearBeforeFill = value;
  5601. }
  5602. }
  5603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5605. private void InitAdapter() {
  5606. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5607. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5608. tableMapping.SourceTable = "Table";
  5609. tableMapping.DataSetTable = "Task2";
  5610. tableMapping.ColumnMappings.Add("ID", "ID");
  5611. tableMapping.ColumnMappings.Add("Model", "Model");
  5612. tableMapping.ColumnMappings.Add("Color", "Color");
  5613. tableMapping.ColumnMappings.Add("CarManufactureDate", "CarManufactureDate");
  5614. tableMapping.ColumnMappings.Add("GovermantNumber", "GovermantNumber");
  5615. tableMapping.ColumnMappings.Add("CarInsuranceCost", "CarInsuranceCost");
  5616. tableMapping.ColumnMappings.Add("OneDayCost", "OneDayCost");
  5617. this._adapter.TableMappings.Add(tableMapping);
  5618. }
  5619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5621. private void InitConnection() {
  5622. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5623. this._connection.ConnectionString = global::Avtoprok.Properties.Settings.Default.Avtodrive_02ConnectionString;
  5624. }
  5625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5627. private void InitCommandCollection() {
  5628. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5629. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5630. this._commandCollection[0].Connection = this.Connection;
  5631. this._commandCollection[0].CommandText = "dbo.Task2";
  5632. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  5633. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5634. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value1", global::System.Data.SqlDbType.NChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5635. }
  5636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5638. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5639. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5640. public virtual int Fill(Avtodrive_02DataSet.Task2DataTable dataTable, string Value1) {
  5641. this.Adapter.SelectCommand = this.CommandCollection[0];
  5642. if ((Value1 == null)) {
  5643. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  5644. }
  5645. else {
  5646. this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Value1));
  5647. }
  5648. if ((this.ClearBeforeFill == true)) {
  5649. dataTable.Clear();
  5650. }
  5651. int returnValue = this.Adapter.Fill(dataTable);
  5652. return returnValue;
  5653. }
  5654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5656. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5657. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5658. public virtual Avtodrive_02DataSet.Task2DataTable GetData(string Value1) {
  5659. this.Adapter.SelectCommand = this.CommandCollection[0];
  5660. if ((Value1 == null)) {
  5661. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  5662. }
  5663. else {
  5664. this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Value1));
  5665. }
  5666. Avtodrive_02DataSet.Task2DataTable dataTable = new Avtodrive_02DataSet.Task2DataTable();
  5667. this.Adapter.Fill(dataTable);
  5668. return dataTable;
  5669. }
  5670. }
  5671. /// <summary>
  5672. ///Represents the connection and commands used to retrieve and save data.
  5673. ///</summary>
  5674. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5675. [global::System.ComponentModel.ToolboxItem(true)]
  5676. [global::System.ComponentModel.DataObjectAttribute(true)]
  5677. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5678. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5679. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5680. public partial class Task3TableAdapter : global::System.ComponentModel.Component {
  5681. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5682. private global::System.Data.SqlClient.SqlConnection _connection;
  5683. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5684. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5685. private bool _clearBeforeFill;
  5686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5688. public Task3TableAdapter() {
  5689. this.ClearBeforeFill = true;
  5690. }
  5691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5693. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5694. get {
  5695. if ((this._adapter == null)) {
  5696. this.InitAdapter();
  5697. }
  5698. return this._adapter;
  5699. }
  5700. }
  5701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5703. internal global::System.Data.SqlClient.SqlConnection Connection {
  5704. get {
  5705. if ((this._connection == null)) {
  5706. this.InitConnection();
  5707. }
  5708. return this._connection;
  5709. }
  5710. set {
  5711. this._connection = value;
  5712. if ((this.Adapter.InsertCommand != null)) {
  5713. this.Adapter.InsertCommand.Connection = value;
  5714. }
  5715. if ((this.Adapter.DeleteCommand != null)) {
  5716. this.Adapter.DeleteCommand.Connection = value;
  5717. }
  5718. if ((this.Adapter.UpdateCommand != null)) {
  5719. this.Adapter.UpdateCommand.Connection = value;
  5720. }
  5721. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5722. if ((this.CommandCollection[i] != null)) {
  5723. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5724. }
  5725. }
  5726. }
  5727. }
  5728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5730. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5731. get {
  5732. return this._transaction;
  5733. }
  5734. set {
  5735. this._transaction = value;
  5736. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5737. this.CommandCollection[i].Transaction = this._transaction;
  5738. }
  5739. if (((this.Adapter != null)
  5740. && (this.Adapter.DeleteCommand != null))) {
  5741. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5742. }
  5743. if (((this.Adapter != null)
  5744. && (this.Adapter.InsertCommand != null))) {
  5745. this.Adapter.InsertCommand.Transaction = this._transaction;
  5746. }
  5747. if (((this.Adapter != null)
  5748. && (this.Adapter.UpdateCommand != null))) {
  5749. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5750. }
  5751. }
  5752. }
  5753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5755. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5756. get {
  5757. if ((this._commandCollection == null)) {
  5758. this.InitCommandCollection();
  5759. }
  5760. return this._commandCollection;
  5761. }
  5762. }
  5763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5765. public bool ClearBeforeFill {
  5766. get {
  5767. return this._clearBeforeFill;
  5768. }
  5769. set {
  5770. this._clearBeforeFill = value;
  5771. }
  5772. }
  5773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5775. private void InitAdapter() {
  5776. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5777. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5778. tableMapping.SourceTable = "Table";
  5779. tableMapping.DataSetTable = "Task3";
  5780. tableMapping.ColumnMappings.Add("FIO", "FIO");
  5781. tableMapping.ColumnMappings.Add("Model", "Model");
  5782. tableMapping.ColumnMappings.Add("GovermantNumber", "GovermantNumber");
  5783. tableMapping.ColumnMappings.Add("Date_order", "Date_order");
  5784. this._adapter.TableMappings.Add(tableMapping);
  5785. }
  5786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5788. private void InitConnection() {
  5789. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5790. this._connection.ConnectionString = global::Avtoprok.Properties.Settings.Default.Avtodrive_02ConnectionString;
  5791. }
  5792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5794. private void InitCommandCollection() {
  5795. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5796. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5797. this._commandCollection[0].Connection = this.Connection;
  5798. this._commandCollection[0].CommandText = "dbo.Task3";
  5799. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  5800. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5801. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@value1", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5802. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@value2", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5803. }
  5804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5806. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5807. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5808. public virtual int Fill(Avtodrive_02DataSet.Task3DataTable dataTable, global::System.Nullable<global::System.DateTime> value1, global::System.Nullable<global::System.DateTime> value2) {
  5809. this.Adapter.SelectCommand = this.CommandCollection[0];
  5810. if ((value1.HasValue == true)) {
  5811. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(value1.Value));
  5812. }
  5813. else {
  5814. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  5815. }
  5816. if ((value2.HasValue == true)) {
  5817. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(value2.Value));
  5818. }
  5819. else {
  5820. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  5821. }
  5822. if ((this.ClearBeforeFill == true)) {
  5823. dataTable.Clear();
  5824. }
  5825. int returnValue = this.Adapter.Fill(dataTable);
  5826. return returnValue;
  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.Select, true)]
  5832. public virtual Avtodrive_02DataSet.Task3DataTable GetData(global::System.Nullable<global::System.DateTime> value1, global::System.Nullable<global::System.DateTime> value2) {
  5833. this.Adapter.SelectCommand = this.CommandCollection[0];
  5834. if ((value1.HasValue == true)) {
  5835. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(value1.Value));
  5836. }
  5837. else {
  5838. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  5839. }
  5840. if ((value2.HasValue == true)) {
  5841. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(value2.Value));
  5842. }
  5843. else {
  5844. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  5845. }
  5846. Avtodrive_02DataSet.Task3DataTable dataTable = new Avtodrive_02DataSet.Task3DataTable();
  5847. this.Adapter.Fill(dataTable);
  5848. return dataTable;
  5849. }
  5850. }
  5851. /// <summary>
  5852. ///Represents the connection and commands used to retrieve and save data.
  5853. ///</summary>
  5854. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5855. [global::System.ComponentModel.ToolboxItem(true)]
  5856. [global::System.ComponentModel.DataObjectAttribute(true)]
  5857. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5858. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5859. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5860. public partial class Task4TableAdapter : global::System.ComponentModel.Component {
  5861. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5862. private global::System.Data.SqlClient.SqlConnection _connection;
  5863. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5864. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5865. private bool _clearBeforeFill;
  5866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5868. public Task4TableAdapter() {
  5869. this.ClearBeforeFill = true;
  5870. }
  5871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5873. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5874. get {
  5875. if ((this._adapter == null)) {
  5876. this.InitAdapter();
  5877. }
  5878. return this._adapter;
  5879. }
  5880. }
  5881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5883. internal global::System.Data.SqlClient.SqlConnection Connection {
  5884. get {
  5885. if ((this._connection == null)) {
  5886. this.InitConnection();
  5887. }
  5888. return this._connection;
  5889. }
  5890. set {
  5891. this._connection = value;
  5892. if ((this.Adapter.InsertCommand != null)) {
  5893. this.Adapter.InsertCommand.Connection = value;
  5894. }
  5895. if ((this.Adapter.DeleteCommand != null)) {
  5896. this.Adapter.DeleteCommand.Connection = value;
  5897. }
  5898. if ((this.Adapter.UpdateCommand != null)) {
  5899. this.Adapter.UpdateCommand.Connection = value;
  5900. }
  5901. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5902. if ((this.CommandCollection[i] != null)) {
  5903. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5904. }
  5905. }
  5906. }
  5907. }
  5908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5910. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5911. get {
  5912. return this._transaction;
  5913. }
  5914. set {
  5915. this._transaction = value;
  5916. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5917. this.CommandCollection[i].Transaction = this._transaction;
  5918. }
  5919. if (((this.Adapter != null)
  5920. && (this.Adapter.DeleteCommand != null))) {
  5921. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5922. }
  5923. if (((this.Adapter != null)
  5924. && (this.Adapter.InsertCommand != null))) {
  5925. this.Adapter.InsertCommand.Transaction = this._transaction;
  5926. }
  5927. if (((this.Adapter != null)
  5928. && (this.Adapter.UpdateCommand != null))) {
  5929. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5930. }
  5931. }
  5932. }
  5933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5935. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5936. get {
  5937. if ((this._commandCollection == null)) {
  5938. this.InitCommandCollection();
  5939. }
  5940. return this._commandCollection;
  5941. }
  5942. }
  5943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5945. public bool ClearBeforeFill {
  5946. get {
  5947. return this._clearBeforeFill;
  5948. }
  5949. set {
  5950. this._clearBeforeFill = value;
  5951. }
  5952. }
  5953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5955. private void InitAdapter() {
  5956. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5957. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5958. tableMapping.SourceTable = "Table";
  5959. tableMapping.DataSetTable = "Task4";
  5960. tableMapping.ColumnMappings.Add("GovermantNumber", "GovermantNumber");
  5961. tableMapping.ColumnMappings.Add("Model", "Model");
  5962. tableMapping.ColumnMappings.Add("OneDayCost", "OneDayCost");
  5963. tableMapping.ColumnMappings.Add("OrderTimeDay", "OrderTimeDay");
  5964. tableMapping.ColumnMappings.Add("Стоимость", "Стоимость");
  5965. this._adapter.TableMappings.Add(tableMapping);
  5966. }
  5967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5969. private void InitConnection() {
  5970. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5971. this._connection.ConnectionString = global::Avtoprok.Properties.Settings.Default.Avtodrive_02ConnectionString;
  5972. }
  5973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5975. private void InitCommandCollection() {
  5976. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5977. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5978. this._commandCollection[0].Connection = this.Connection;
  5979. this._commandCollection[0].CommandText = "dbo.Task4";
  5980. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  5981. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5982. }
  5983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5985. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5986. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5987. public virtual int Fill(Avtodrive_02DataSet.Task4DataTable dataTable) {
  5988. this.Adapter.SelectCommand = this.CommandCollection[0];
  5989. if ((this.ClearBeforeFill == true)) {
  5990. dataTable.Clear();
  5991. }
  5992. int returnValue = this.Adapter.Fill(dataTable);
  5993. return returnValue;
  5994. }
  5995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5997. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5998. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5999. public virtual Avtodrive_02DataSet.Task4DataTable GetData() {
  6000. this.Adapter.SelectCommand = this.CommandCollection[0];
  6001. Avtodrive_02DataSet.Task4DataTable dataTable = new Avtodrive_02DataSet.Task4DataTable();
  6002. this.Adapter.Fill(dataTable);
  6003. return dataTable;
  6004. }
  6005. }
  6006. /// <summary>
  6007. ///Represents the connection and commands used to retrieve and save data.
  6008. ///</summary>
  6009. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6010. [global::System.ComponentModel.ToolboxItem(true)]
  6011. [global::System.ComponentModel.DataObjectAttribute(true)]
  6012. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6013. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6014. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6015. public partial class Task5TableAdapter : global::System.ComponentModel.Component {
  6016. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6017. private global::System.Data.SqlClient.SqlConnection _connection;
  6018. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6019. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6020. private bool _clearBeforeFill;
  6021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6023. public Task5TableAdapter() {
  6024. this.ClearBeforeFill = true;
  6025. }
  6026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6028. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6029. get {
  6030. if ((this._adapter == null)) {
  6031. this.InitAdapter();
  6032. }
  6033. return this._adapter;
  6034. }
  6035. }
  6036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6038. internal global::System.Data.SqlClient.SqlConnection Connection {
  6039. get {
  6040. if ((this._connection == null)) {
  6041. this.InitConnection();
  6042. }
  6043. return this._connection;
  6044. }
  6045. set {
  6046. this._connection = value;
  6047. if ((this.Adapter.InsertCommand != null)) {
  6048. this.Adapter.InsertCommand.Connection = value;
  6049. }
  6050. if ((this.Adapter.DeleteCommand != null)) {
  6051. this.Adapter.DeleteCommand.Connection = value;
  6052. }
  6053. if ((this.Adapter.UpdateCommand != null)) {
  6054. this.Adapter.UpdateCommand.Connection = value;
  6055. }
  6056. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6057. if ((this.CommandCollection[i] != null)) {
  6058. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6059. }
  6060. }
  6061. }
  6062. }
  6063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6065. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6066. get {
  6067. return this._transaction;
  6068. }
  6069. set {
  6070. this._transaction = value;
  6071. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6072. this.CommandCollection[i].Transaction = this._transaction;
  6073. }
  6074. if (((this.Adapter != null)
  6075. && (this.Adapter.DeleteCommand != null))) {
  6076. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6077. }
  6078. if (((this.Adapter != null)
  6079. && (this.Adapter.InsertCommand != null))) {
  6080. this.Adapter.InsertCommand.Transaction = this._transaction;
  6081. }
  6082. if (((this.Adapter != null)
  6083. && (this.Adapter.UpdateCommand != null))) {
  6084. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6085. }
  6086. }
  6087. }
  6088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6090. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6091. get {
  6092. if ((this._commandCollection == null)) {
  6093. this.InitCommandCollection();
  6094. }
  6095. return this._commandCollection;
  6096. }
  6097. }
  6098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6100. public bool ClearBeforeFill {
  6101. get {
  6102. return this._clearBeforeFill;
  6103. }
  6104. set {
  6105. this._clearBeforeFill = value;
  6106. }
  6107. }
  6108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6110. private void InitAdapter() {
  6111. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6112. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6113. tableMapping.SourceTable = "Table";
  6114. tableMapping.DataSetTable = "Task5";
  6115. tableMapping.ColumnMappings.Add("Model", "Model");
  6116. this._adapter.TableMappings.Add(tableMapping);
  6117. }
  6118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6120. private void InitConnection() {
  6121. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6122. this._connection.ConnectionString = global::Avtoprok.Properties.Settings.Default.Avtodrive_02ConnectionString;
  6123. }
  6124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6126. private void InitCommandCollection() {
  6127. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6128. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6129. this._commandCollection[0].Connection = this.Connection;
  6130. this._commandCollection[0].CommandText = "dbo.Task5";
  6131. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  6132. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6133. }
  6134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6136. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6137. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6138. public virtual int Fill(Avtodrive_02DataSet.Task5DataTable dataTable) {
  6139. this.Adapter.SelectCommand = this.CommandCollection[0];
  6140. if ((this.ClearBeforeFill == true)) {
  6141. dataTable.Clear();
  6142. }
  6143. int returnValue = this.Adapter.Fill(dataTable);
  6144. return returnValue;
  6145. }
  6146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6148. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6149. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6150. public virtual Avtodrive_02DataSet.Task5DataTable GetData() {
  6151. this.Adapter.SelectCommand = this.CommandCollection[0];
  6152. Avtodrive_02DataSet.Task5DataTable dataTable = new Avtodrive_02DataSet.Task5DataTable();
  6153. this.Adapter.Fill(dataTable);
  6154. return dataTable;
  6155. }
  6156. }
  6157. /// <summary>
  6158. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  6159. ///</summary>
  6160. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6161. [global::System.ComponentModel.ToolboxItem(true)]
  6162. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  6163. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6164. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  6165. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  6166. private UpdateOrderOption _updateOrder;
  6167. private CarTableAdapter _carTableAdapter;
  6168. private ClientTableAdapter _clientTableAdapter;
  6169. private Order_TableAdapter _order_TableAdapter;
  6170. private bool _backupDataSetBeforeUpdate;
  6171. private global::System.Data.IDbConnection _connection;
  6172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6174. public UpdateOrderOption UpdateOrder {
  6175. get {
  6176. return this._updateOrder;
  6177. }
  6178. set {
  6179. this._updateOrder = value;
  6180. }
  6181. }
  6182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6184. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6185. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6186. "a", "System.Drawing.Design.UITypeEditor")]
  6187. public CarTableAdapter CarTableAdapter {
  6188. get {
  6189. return this._carTableAdapter;
  6190. }
  6191. set {
  6192. this._carTableAdapter = value;
  6193. }
  6194. }
  6195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6197. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6198. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6199. "a", "System.Drawing.Design.UITypeEditor")]
  6200. public ClientTableAdapter ClientTableAdapter {
  6201. get {
  6202. return this._clientTableAdapter;
  6203. }
  6204. set {
  6205. this._clientTableAdapter = value;
  6206. }
  6207. }
  6208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6210. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6211. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6212. "a", "System.Drawing.Design.UITypeEditor")]
  6213. public Order_TableAdapter Order_TableAdapter {
  6214. get {
  6215. return this._order_TableAdapter;
  6216. }
  6217. set {
  6218. this._order_TableAdapter = value;
  6219. }
  6220. }
  6221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6223. public bool BackupDataSetBeforeUpdate {
  6224. get {
  6225. return this._backupDataSetBeforeUpdate;
  6226. }
  6227. set {
  6228. this._backupDataSetBeforeUpdate = value;
  6229. }
  6230. }
  6231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6233. [global::System.ComponentModel.Browsable(false)]
  6234. public global::System.Data.IDbConnection Connection {
  6235. get {
  6236. if ((this._connection != null)) {
  6237. return this._connection;
  6238. }
  6239. if (((this._carTableAdapter != null)
  6240. && (this._carTableAdapter.Connection != null))) {
  6241. return this._carTableAdapter.Connection;
  6242. }
  6243. if (((this._clientTableAdapter != null)
  6244. && (this._clientTableAdapter.Connection != null))) {
  6245. return this._clientTableAdapter.Connection;
  6246. }
  6247. if (((this._order_TableAdapter != null)
  6248. && (this._order_TableAdapter.Connection != null))) {
  6249. return this._order_TableAdapter.Connection;
  6250. }
  6251. return null;
  6252. }
  6253. set {
  6254. this._connection = value;
  6255. }
  6256. }
  6257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6259. [global::System.ComponentModel.Browsable(false)]
  6260. public int TableAdapterInstanceCount {
  6261. get {
  6262. int count = 0;
  6263. if ((this._carTableAdapter != null)) {
  6264. count = (count + 1);
  6265. }
  6266. if ((this._clientTableAdapter != null)) {
  6267. count = (count + 1);
  6268. }
  6269. if ((this._order_TableAdapter != null)) {
  6270. count = (count + 1);
  6271. }
  6272. return count;
  6273. }
  6274. }
  6275. /// <summary>
  6276. ///Update rows in top-down order.
  6277. ///</summary>
  6278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6280. private int UpdateUpdatedRows(Avtodrive_02DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6281. int result = 0;
  6282. if ((this._carTableAdapter != null)) {
  6283. global::System.Data.DataRow[] updatedRows = dataSet.Car.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6284. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6285. if (((updatedRows != null)
  6286. && (0 < updatedRows.Length))) {
  6287. result = (result + this._carTableAdapter.Update(updatedRows));
  6288. allChangedRows.AddRange(updatedRows);
  6289. }
  6290. }
  6291. if ((this._clientTableAdapter != null)) {
  6292. global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6293. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6294. if (((updatedRows != null)
  6295. && (0 < updatedRows.Length))) {
  6296. result = (result + this._clientTableAdapter.Update(updatedRows));
  6297. allChangedRows.AddRange(updatedRows);
  6298. }
  6299. }
  6300. if ((this._order_TableAdapter != null)) {
  6301. global::System.Data.DataRow[] updatedRows = dataSet.Order_.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6302. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6303. if (((updatedRows != null)
  6304. && (0 < updatedRows.Length))) {
  6305. result = (result + this._order_TableAdapter.Update(updatedRows));
  6306. allChangedRows.AddRange(updatedRows);
  6307. }
  6308. }
  6309. return result;
  6310. }
  6311. /// <summary>
  6312. ///Insert rows in top-down order.
  6313. ///</summary>
  6314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6316. private int UpdateInsertedRows(Avtodrive_02DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6317. int result = 0;
  6318. if ((this._carTableAdapter != null)) {
  6319. global::System.Data.DataRow[] addedRows = dataSet.Car.Select(null, null, global::System.Data.DataViewRowState.Added);
  6320. if (((addedRows != null)
  6321. && (0 < addedRows.Length))) {
  6322. result = (result + this._carTableAdapter.Update(addedRows));
  6323. allAddedRows.AddRange(addedRows);
  6324. }
  6325. }
  6326. if ((this._clientTableAdapter != null)) {
  6327. global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
  6328. if (((addedRows != null)
  6329. && (0 < addedRows.Length))) {
  6330. result = (result + this._clientTableAdapter.Update(addedRows));
  6331. allAddedRows.AddRange(addedRows);
  6332. }
  6333. }
  6334. if ((this._order_TableAdapter != null)) {
  6335. global::System.Data.DataRow[] addedRows = dataSet.Order_.Select(null, null, global::System.Data.DataViewRowState.Added);
  6336. if (((addedRows != null)
  6337. && (0 < addedRows.Length))) {
  6338. result = (result + this._order_TableAdapter.Update(addedRows));
  6339. allAddedRows.AddRange(addedRows);
  6340. }
  6341. }
  6342. return result;
  6343. }
  6344. /// <summary>
  6345. ///Delete rows in bottom-up order.
  6346. ///</summary>
  6347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6349. private int UpdateDeletedRows(Avtodrive_02DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  6350. int result = 0;
  6351. if ((this._order_TableAdapter != null)) {
  6352. global::System.Data.DataRow[] deletedRows = dataSet.Order_.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6353. if (((deletedRows != null)
  6354. && (0 < deletedRows.Length))) {
  6355. result = (result + this._order_TableAdapter.Update(deletedRows));
  6356. allChangedRows.AddRange(deletedRows);
  6357. }
  6358. }
  6359. if ((this._clientTableAdapter != null)) {
  6360. global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6361. if (((deletedRows != null)
  6362. && (0 < deletedRows.Length))) {
  6363. result = (result + this._clientTableAdapter.Update(deletedRows));
  6364. allChangedRows.AddRange(deletedRows);
  6365. }
  6366. }
  6367. if ((this._carTableAdapter != null)) {
  6368. global::System.Data.DataRow[] deletedRows = dataSet.Car.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6369. if (((deletedRows != null)
  6370. && (0 < deletedRows.Length))) {
  6371. result = (result + this._carTableAdapter.Update(deletedRows));
  6372. allChangedRows.AddRange(deletedRows);
  6373. }
  6374. }
  6375. return result;
  6376. }
  6377. /// <summary>
  6378. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  6379. ///</summary>
  6380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6382. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6383. if (((updatedRows == null)
  6384. || (updatedRows.Length < 1))) {
  6385. return updatedRows;
  6386. }
  6387. if (((allAddedRows == null)
  6388. || (allAddedRows.Count < 1))) {
  6389. return updatedRows;
  6390. }
  6391. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6392. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  6393. global::System.Data.DataRow row = updatedRows[i];
  6394. if ((allAddedRows.Contains(row) == false)) {
  6395. realUpdatedRows.Add(row);
  6396. }
  6397. }
  6398. return realUpdatedRows.ToArray();
  6399. }
  6400. /// <summary>
  6401. ///Update all changes to the dataset.
  6402. ///</summary>
  6403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6405. public virtual int UpdateAll(Avtodrive_02DataSet dataSet) {
  6406. if ((dataSet == null)) {
  6407. throw new global::System.ArgumentNullException("dataSet");
  6408. }
  6409. if ((dataSet.HasChanges() == false)) {
  6410. return 0;
  6411. }
  6412. if (((this._carTableAdapter != null)
  6413. && (this.MatchTableAdapterConnection(this._carTableAdapter.Connection) == false))) {
  6414. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6415. "r, должны использовать одинаковую строку подключения.");
  6416. }
  6417. if (((this._clientTableAdapter != null)
  6418. && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
  6419. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6420. "r, должны использовать одинаковую строку подключения.");
  6421. }
  6422. if (((this._order_TableAdapter != null)
  6423. && (this.MatchTableAdapterConnection(this._order_TableAdapter.Connection) == false))) {
  6424. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6425. "r, должны использовать одинаковую строку подключения.");
  6426. }
  6427. global::System.Data.IDbConnection workConnection = this.Connection;
  6428. if ((workConnection == null)) {
  6429. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  6430. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  6431. }
  6432. bool workConnOpened = false;
  6433. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  6434. == global::System.Data.ConnectionState.Broken)) {
  6435. workConnection.Close();
  6436. }
  6437. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  6438. workConnection.Open();
  6439. workConnOpened = true;
  6440. }
  6441. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  6442. if ((workTransaction == null)) {
  6443. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  6444. "и или текущее состояние не позволяет начать транзакцию.");
  6445. }
  6446. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6447. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6448. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  6449. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  6450. int result = 0;
  6451. global::System.Data.DataSet backupDataSet = null;
  6452. if (this.BackupDataSetBeforeUpdate) {
  6453. backupDataSet = new global::System.Data.DataSet();
  6454. backupDataSet.Merge(dataSet);
  6455. }
  6456. try {
  6457. // ---- Prepare for update -----------
  6458. //
  6459. if ((this._carTableAdapter != null)) {
  6460. revertConnections.Add(this._carTableAdapter, this._carTableAdapter.Connection);
  6461. this._carTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6462. this._carTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6463. if (this._carTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6464. this._carTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6465. adaptersWithAcceptChangesDuringUpdate.Add(this._carTableAdapter.Adapter);
  6466. }
  6467. }
  6468. if ((this._clientTableAdapter != null)) {
  6469. revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
  6470. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6471. this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6472. if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6473. this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6474. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
  6475. }
  6476. }
  6477. if ((this._order_TableAdapter != null)) {
  6478. revertConnections.Add(this._order_TableAdapter, this._order_TableAdapter.Connection);
  6479. this._order_TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6480. this._order_TableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6481. if (this._order_TableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6482. this._order_TableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6483. adaptersWithAcceptChangesDuringUpdate.Add(this._order_TableAdapter.Adapter);
  6484. }
  6485. }
  6486. //
  6487. //---- Perform updates -----------
  6488. //
  6489. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  6490. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  6491. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  6492. }
  6493. else {
  6494. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  6495. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  6496. }
  6497. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  6498. //
  6499. //---- Commit updates -----------
  6500. //
  6501. workTransaction.Commit();
  6502. if ((0 < allAddedRows.Count)) {
  6503. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  6504. allAddedRows.CopyTo(rows);
  6505. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6506. global::System.Data.DataRow row = rows[i];
  6507. row.AcceptChanges();
  6508. }
  6509. }
  6510. if ((0 < allChangedRows.Count)) {
  6511. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  6512. allChangedRows.CopyTo(rows);
  6513. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6514. global::System.Data.DataRow row = rows[i];
  6515. row.AcceptChanges();
  6516. }
  6517. }
  6518. }
  6519. catch (global::System.Exception ex) {
  6520. workTransaction.Rollback();
  6521. // ---- Restore the dataset -----------
  6522. if (this.BackupDataSetBeforeUpdate) {
  6523. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  6524. dataSet.Clear();
  6525. dataSet.Merge(backupDataSet);
  6526. }
  6527. else {
  6528. if ((0 < allAddedRows.Count)) {
  6529. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  6530. allAddedRows.CopyTo(rows);
  6531. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6532. global::System.Data.DataRow row = rows[i];
  6533. row.AcceptChanges();
  6534. row.SetAdded();
  6535. }
  6536. }
  6537. }
  6538. throw ex;
  6539. }
  6540. finally {
  6541. if (workConnOpened) {
  6542. workConnection.Close();
  6543. }
  6544. if ((this._carTableAdapter != null)) {
  6545. this._carTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._carTableAdapter]));
  6546. this._carTableAdapter.Transaction = null;
  6547. }
  6548. if ((this._clientTableAdapter != null)) {
  6549. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
  6550. this._clientTableAdapter.Transaction = null;
  6551. }
  6552. if ((this._order_TableAdapter != null)) {
  6553. this._order_TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._order_TableAdapter]));
  6554. this._order_TableAdapter.Transaction = null;
  6555. }
  6556. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  6557. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  6558. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  6559. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  6560. global::System.Data.Common.DataAdapter adapter = adapters[i];
  6561. adapter.AcceptChangesDuringUpdate = true;
  6562. }
  6563. }
  6564. }
  6565. return result;
  6566. }
  6567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6569. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  6570. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  6571. }
  6572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6574. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  6575. if ((this._connection != null)) {
  6576. return true;
  6577. }
  6578. if (((this.Connection == null)
  6579. || (inputConnection == null))) {
  6580. return true;
  6581. }
  6582. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  6583. return true;
  6584. }
  6585. return false;
  6586. }
  6587. /// <summary>
  6588. ///Update Order Option
  6589. ///</summary>
  6590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6591. public enum UpdateOrderOption {
  6592. InsertUpdateDelete = 0,
  6593. UpdateInsertDelete = 1,
  6594. }
  6595. /// <summary>
  6596. ///Used to sort self-referenced table's rows
  6597. ///</summary>
  6598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6599. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  6600. private global::System.Data.DataRelation _relation;
  6601. private int _childFirst;
  6602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6604. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  6605. this._relation = relation;
  6606. if (childFirst) {
  6607. this._childFirst = -1;
  6608. }
  6609. else {
  6610. this._childFirst = 1;
  6611. }
  6612. }
  6613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6615. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  6616. global::System.Diagnostics.Debug.Assert((row != null));
  6617. global::System.Data.DataRow root = row;
  6618. distance = 0;
  6619. 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>();
  6620. traversedRows[row] = row;
  6621. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  6622. for (
  6623. ; ((parent != null)
  6624. && (traversedRows.ContainsKey(parent) == false));
  6625. ) {
  6626. distance = (distance + 1);
  6627. root = parent;
  6628. traversedRows[parent] = parent;
  6629. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  6630. }
  6631. if ((distance == 0)) {
  6632. traversedRows.Clear();
  6633. traversedRows[row] = row;
  6634. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  6635. for (
  6636. ; ((parent != null)
  6637. && (traversedRows.ContainsKey(parent) == false));
  6638. ) {
  6639. distance = (distance + 1);
  6640. root = parent;
  6641. traversedRows[parent] = parent;
  6642. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  6643. }
  6644. }
  6645. return root;
  6646. }
  6647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6649. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  6650. if (object.ReferenceEquals(row1, row2)) {
  6651. return 0;
  6652. }
  6653. if ((row1 == null)) {
  6654. return -1;
  6655. }
  6656. if ((row2 == null)) {
  6657. return 1;
  6658. }
  6659. int distance1 = 0;
  6660. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  6661. int distance2 = 0;
  6662. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  6663. if (object.ReferenceEquals(root1, root2)) {
  6664. return (this._childFirst * distance1.CompareTo(distance2));
  6665. }
  6666. else {
  6667. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  6668. && (root2.Table != null)));
  6669. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  6670. return -1;
  6671. }
  6672. else {
  6673. return 1;
  6674. }
  6675. }
  6676. }
  6677. }
  6678. }
  6679. }
  6680. #pragma warning restore 1591