bobrovDemoEgzamenDataSet.Designer.cs 885 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace bobrov2demo {
  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("bobrovDemoEgzamenDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class bobrovDemoEgzamenDataSet : global::System.Data.DataSet {
  22. private AttachedProductDataTable tableAttachedProduct;
  23. private ClientDataTable tableClient;
  24. private client_b_importDataTable tableclient_b_import;
  25. private ClientServiceDataTable tableClientService;
  26. private DocumentByServiceDataTable tableDocumentByService;
  27. private GenderDataTable tableGender;
  28. private ManufacturerDataTable tableManufacturer;
  29. private ProductDataTable tableProduct;
  30. private ProductPhotoDataTable tableProductPhoto;
  31. private ProductSaleDataTable tableProductSale;
  32. private ServiceDataTable tableService;
  33. private service_b_importDataTable tableservice_b_import;
  34. private ServicePhotoDataTable tableServicePhoto;
  35. private TagDataTable tableTag;
  36. private TagOfClientDataTable tableTagOfClient;
  37. private global::System.Data.DataRelation relationFK_AttachedProduct_Product;
  38. private global::System.Data.DataRelation relationFK_AttachedProduct_Product1;
  39. private global::System.Data.DataRelation relationFK_Client_Gender;
  40. private global::System.Data.DataRelation relationFK_ClientService_Client;
  41. private global::System.Data.DataRelation relationFK_ClientService_Service;
  42. private global::System.Data.DataRelation relationFK_DocumentByService_ClientService;
  43. private global::System.Data.DataRelation relationFK_Product_Manufacturer;
  44. private global::System.Data.DataRelation relationFK_ProductPhoto_Product;
  45. private global::System.Data.DataRelation relationFK_ProductSale_ClientService;
  46. private global::System.Data.DataRelation relationFK_ProductSale_Product;
  47. private global::System.Data.DataRelation relationFK_ServicePhoto_Service;
  48. private global::System.Data.DataRelation relationFK_TagOfClient_Client;
  49. private global::System.Data.DataRelation relationFK_TagOfClient_Tag;
  50. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  51. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  52. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  53. public bobrovDemoEgzamenDataSet() {
  54. this.BeginInit();
  55. this.InitClass();
  56. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  57. base.Tables.CollectionChanged += schemaChangedHandler;
  58. base.Relations.CollectionChanged += schemaChangedHandler;
  59. this.EndInit();
  60. }
  61. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  62. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  63. protected bobrovDemoEgzamenDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  64. base(info, context, false) {
  65. if ((this.IsBinarySerialized(info, context) == true)) {
  66. this.InitVars(false);
  67. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  68. this.Tables.CollectionChanged += schemaChangedHandler1;
  69. this.Relations.CollectionChanged += schemaChangedHandler1;
  70. return;
  71. }
  72. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  73. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  74. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  75. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  76. if ((ds.Tables["AttachedProduct"] != null)) {
  77. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  78. }
  79. if ((ds.Tables["Client"] != null)) {
  80. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  81. }
  82. if ((ds.Tables["client_b_import"] != null)) {
  83. base.Tables.Add(new client_b_importDataTable(ds.Tables["client_b_import"]));
  84. }
  85. if ((ds.Tables["ClientService"] != null)) {
  86. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  87. }
  88. if ((ds.Tables["DocumentByService"] != null)) {
  89. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  90. }
  91. if ((ds.Tables["Gender"] != null)) {
  92. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  93. }
  94. if ((ds.Tables["Manufacturer"] != null)) {
  95. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  96. }
  97. if ((ds.Tables["Product"] != null)) {
  98. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  99. }
  100. if ((ds.Tables["ProductPhoto"] != null)) {
  101. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  102. }
  103. if ((ds.Tables["ProductSale"] != null)) {
  104. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  105. }
  106. if ((ds.Tables["Service"] != null)) {
  107. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  108. }
  109. if ((ds.Tables["service_b_import"] != null)) {
  110. base.Tables.Add(new service_b_importDataTable(ds.Tables["service_b_import"]));
  111. }
  112. if ((ds.Tables["ServicePhoto"] != null)) {
  113. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  114. }
  115. if ((ds.Tables["Tag"] != null)) {
  116. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  117. }
  118. if ((ds.Tables["TagOfClient"] != null)) {
  119. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  120. }
  121. this.DataSetName = ds.DataSetName;
  122. this.Prefix = ds.Prefix;
  123. this.Namespace = ds.Namespace;
  124. this.Locale = ds.Locale;
  125. this.CaseSensitive = ds.CaseSensitive;
  126. this.EnforceConstraints = ds.EnforceConstraints;
  127. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  128. this.InitVars();
  129. }
  130. else {
  131. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  132. }
  133. this.GetSerializationData(info, context);
  134. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  135. base.Tables.CollectionChanged += schemaChangedHandler;
  136. this.Relations.CollectionChanged += schemaChangedHandler;
  137. }
  138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  140. [global::System.ComponentModel.Browsable(false)]
  141. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  142. public AttachedProductDataTable AttachedProduct {
  143. get {
  144. return this.tableAttachedProduct;
  145. }
  146. }
  147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  149. [global::System.ComponentModel.Browsable(false)]
  150. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  151. public ClientDataTable Client {
  152. get {
  153. return this.tableClient;
  154. }
  155. }
  156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  158. [global::System.ComponentModel.Browsable(false)]
  159. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  160. public client_b_importDataTable client_b_import {
  161. get {
  162. return this.tableclient_b_import;
  163. }
  164. }
  165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  167. [global::System.ComponentModel.Browsable(false)]
  168. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  169. public ClientServiceDataTable ClientService {
  170. get {
  171. return this.tableClientService;
  172. }
  173. }
  174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  176. [global::System.ComponentModel.Browsable(false)]
  177. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  178. public DocumentByServiceDataTable DocumentByService {
  179. get {
  180. return this.tableDocumentByService;
  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.Browsable(false)]
  186. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  187. public GenderDataTable Gender {
  188. get {
  189. return this.tableGender;
  190. }
  191. }
  192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  194. [global::System.ComponentModel.Browsable(false)]
  195. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  196. public ManufacturerDataTable Manufacturer {
  197. get {
  198. return this.tableManufacturer;
  199. }
  200. }
  201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  203. [global::System.ComponentModel.Browsable(false)]
  204. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  205. public ProductDataTable Product {
  206. get {
  207. return this.tableProduct;
  208. }
  209. }
  210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  212. [global::System.ComponentModel.Browsable(false)]
  213. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  214. public ProductPhotoDataTable ProductPhoto {
  215. get {
  216. return this.tableProductPhoto;
  217. }
  218. }
  219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  221. [global::System.ComponentModel.Browsable(false)]
  222. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  223. public ProductSaleDataTable ProductSale {
  224. get {
  225. return this.tableProductSale;
  226. }
  227. }
  228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  230. [global::System.ComponentModel.Browsable(false)]
  231. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  232. public ServiceDataTable Service {
  233. get {
  234. return this.tableService;
  235. }
  236. }
  237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  239. [global::System.ComponentModel.Browsable(false)]
  240. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  241. public service_b_importDataTable service_b_import {
  242. get {
  243. return this.tableservice_b_import;
  244. }
  245. }
  246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  248. [global::System.ComponentModel.Browsable(false)]
  249. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  250. public ServicePhotoDataTable ServicePhoto {
  251. get {
  252. return this.tableServicePhoto;
  253. }
  254. }
  255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  257. [global::System.ComponentModel.Browsable(false)]
  258. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  259. public TagDataTable Tag {
  260. get {
  261. return this.tableTag;
  262. }
  263. }
  264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  266. [global::System.ComponentModel.Browsable(false)]
  267. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  268. public TagOfClientDataTable TagOfClient {
  269. get {
  270. return this.tableTagOfClient;
  271. }
  272. }
  273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  275. [global::System.ComponentModel.BrowsableAttribute(true)]
  276. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  277. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  278. get {
  279. return this._schemaSerializationMode;
  280. }
  281. set {
  282. this._schemaSerializationMode = value;
  283. }
  284. }
  285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  287. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  288. public new global::System.Data.DataTableCollection Tables {
  289. get {
  290. return base.Tables;
  291. }
  292. }
  293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  295. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  296. public new global::System.Data.DataRelationCollection Relations {
  297. get {
  298. return base.Relations;
  299. }
  300. }
  301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  303. protected override void InitializeDerivedDataSet() {
  304. this.BeginInit();
  305. this.InitClass();
  306. this.EndInit();
  307. }
  308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  310. public override global::System.Data.DataSet Clone() {
  311. bobrovDemoEgzamenDataSet cln = ((bobrovDemoEgzamenDataSet)(base.Clone()));
  312. cln.InitVars();
  313. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  314. return cln;
  315. }
  316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  318. protected override bool ShouldSerializeTables() {
  319. return false;
  320. }
  321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  323. protected override bool ShouldSerializeRelations() {
  324. return false;
  325. }
  326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  328. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  329. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  330. this.Reset();
  331. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  332. ds.ReadXml(reader);
  333. if ((ds.Tables["AttachedProduct"] != null)) {
  334. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  335. }
  336. if ((ds.Tables["Client"] != null)) {
  337. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  338. }
  339. if ((ds.Tables["client_b_import"] != null)) {
  340. base.Tables.Add(new client_b_importDataTable(ds.Tables["client_b_import"]));
  341. }
  342. if ((ds.Tables["ClientService"] != null)) {
  343. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  344. }
  345. if ((ds.Tables["DocumentByService"] != null)) {
  346. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  347. }
  348. if ((ds.Tables["Gender"] != null)) {
  349. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  350. }
  351. if ((ds.Tables["Manufacturer"] != null)) {
  352. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  353. }
  354. if ((ds.Tables["Product"] != null)) {
  355. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  356. }
  357. if ((ds.Tables["ProductPhoto"] != null)) {
  358. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  359. }
  360. if ((ds.Tables["ProductSale"] != null)) {
  361. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  362. }
  363. if ((ds.Tables["Service"] != null)) {
  364. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  365. }
  366. if ((ds.Tables["service_b_import"] != null)) {
  367. base.Tables.Add(new service_b_importDataTable(ds.Tables["service_b_import"]));
  368. }
  369. if ((ds.Tables["ServicePhoto"] != null)) {
  370. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  371. }
  372. if ((ds.Tables["Tag"] != null)) {
  373. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  374. }
  375. if ((ds.Tables["TagOfClient"] != null)) {
  376. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  377. }
  378. this.DataSetName = ds.DataSetName;
  379. this.Prefix = ds.Prefix;
  380. this.Namespace = ds.Namespace;
  381. this.Locale = ds.Locale;
  382. this.CaseSensitive = ds.CaseSensitive;
  383. this.EnforceConstraints = ds.EnforceConstraints;
  384. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  385. this.InitVars();
  386. }
  387. else {
  388. this.ReadXml(reader);
  389. this.InitVars();
  390. }
  391. }
  392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  394. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  395. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  396. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  397. stream.Position = 0;
  398. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  399. }
  400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  402. internal void InitVars() {
  403. this.InitVars(true);
  404. }
  405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  407. internal void InitVars(bool initTable) {
  408. this.tableAttachedProduct = ((AttachedProductDataTable)(base.Tables["AttachedProduct"]));
  409. if ((initTable == true)) {
  410. if ((this.tableAttachedProduct != null)) {
  411. this.tableAttachedProduct.InitVars();
  412. }
  413. }
  414. this.tableClient = ((ClientDataTable)(base.Tables["Client"]));
  415. if ((initTable == true)) {
  416. if ((this.tableClient != null)) {
  417. this.tableClient.InitVars();
  418. }
  419. }
  420. this.tableclient_b_import = ((client_b_importDataTable)(base.Tables["client_b_import"]));
  421. if ((initTable == true)) {
  422. if ((this.tableclient_b_import != null)) {
  423. this.tableclient_b_import.InitVars();
  424. }
  425. }
  426. this.tableClientService = ((ClientServiceDataTable)(base.Tables["ClientService"]));
  427. if ((initTable == true)) {
  428. if ((this.tableClientService != null)) {
  429. this.tableClientService.InitVars();
  430. }
  431. }
  432. this.tableDocumentByService = ((DocumentByServiceDataTable)(base.Tables["DocumentByService"]));
  433. if ((initTable == true)) {
  434. if ((this.tableDocumentByService != null)) {
  435. this.tableDocumentByService.InitVars();
  436. }
  437. }
  438. this.tableGender = ((GenderDataTable)(base.Tables["Gender"]));
  439. if ((initTable == true)) {
  440. if ((this.tableGender != null)) {
  441. this.tableGender.InitVars();
  442. }
  443. }
  444. this.tableManufacturer = ((ManufacturerDataTable)(base.Tables["Manufacturer"]));
  445. if ((initTable == true)) {
  446. if ((this.tableManufacturer != null)) {
  447. this.tableManufacturer.InitVars();
  448. }
  449. }
  450. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  451. if ((initTable == true)) {
  452. if ((this.tableProduct != null)) {
  453. this.tableProduct.InitVars();
  454. }
  455. }
  456. this.tableProductPhoto = ((ProductPhotoDataTable)(base.Tables["ProductPhoto"]));
  457. if ((initTable == true)) {
  458. if ((this.tableProductPhoto != null)) {
  459. this.tableProductPhoto.InitVars();
  460. }
  461. }
  462. this.tableProductSale = ((ProductSaleDataTable)(base.Tables["ProductSale"]));
  463. if ((initTable == true)) {
  464. if ((this.tableProductSale != null)) {
  465. this.tableProductSale.InitVars();
  466. }
  467. }
  468. this.tableService = ((ServiceDataTable)(base.Tables["Service"]));
  469. if ((initTable == true)) {
  470. if ((this.tableService != null)) {
  471. this.tableService.InitVars();
  472. }
  473. }
  474. this.tableservice_b_import = ((service_b_importDataTable)(base.Tables["service_b_import"]));
  475. if ((initTable == true)) {
  476. if ((this.tableservice_b_import != null)) {
  477. this.tableservice_b_import.InitVars();
  478. }
  479. }
  480. this.tableServicePhoto = ((ServicePhotoDataTable)(base.Tables["ServicePhoto"]));
  481. if ((initTable == true)) {
  482. if ((this.tableServicePhoto != null)) {
  483. this.tableServicePhoto.InitVars();
  484. }
  485. }
  486. this.tableTag = ((TagDataTable)(base.Tables["Tag"]));
  487. if ((initTable == true)) {
  488. if ((this.tableTag != null)) {
  489. this.tableTag.InitVars();
  490. }
  491. }
  492. this.tableTagOfClient = ((TagOfClientDataTable)(base.Tables["TagOfClient"]));
  493. if ((initTable == true)) {
  494. if ((this.tableTagOfClient != null)) {
  495. this.tableTagOfClient.InitVars();
  496. }
  497. }
  498. this.relationFK_AttachedProduct_Product = this.Relations["FK_AttachedProduct_Product"];
  499. this.relationFK_AttachedProduct_Product1 = this.Relations["FK_AttachedProduct_Product1"];
  500. this.relationFK_Client_Gender = this.Relations["FK_Client_Gender"];
  501. this.relationFK_ClientService_Client = this.Relations["FK_ClientService_Client"];
  502. this.relationFK_ClientService_Service = this.Relations["FK_ClientService_Service"];
  503. this.relationFK_DocumentByService_ClientService = this.Relations["FK_DocumentByService_ClientService"];
  504. this.relationFK_Product_Manufacturer = this.Relations["FK_Product_Manufacturer"];
  505. this.relationFK_ProductPhoto_Product = this.Relations["FK_ProductPhoto_Product"];
  506. this.relationFK_ProductSale_ClientService = this.Relations["FK_ProductSale_ClientService"];
  507. this.relationFK_ProductSale_Product = this.Relations["FK_ProductSale_Product"];
  508. this.relationFK_ServicePhoto_Service = this.Relations["FK_ServicePhoto_Service"];
  509. this.relationFK_TagOfClient_Client = this.Relations["FK_TagOfClient_Client"];
  510. this.relationFK_TagOfClient_Tag = this.Relations["FK_TagOfClient_Tag"];
  511. }
  512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  514. private void InitClass() {
  515. this.DataSetName = "bobrovDemoEgzamenDataSet";
  516. this.Prefix = "";
  517. this.Namespace = "http://tempuri.org/bobrovDemoEgzamenDataSet.xsd";
  518. this.EnforceConstraints = true;
  519. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  520. this.tableAttachedProduct = new AttachedProductDataTable();
  521. base.Tables.Add(this.tableAttachedProduct);
  522. this.tableClient = new ClientDataTable();
  523. base.Tables.Add(this.tableClient);
  524. this.tableclient_b_import = new client_b_importDataTable();
  525. base.Tables.Add(this.tableclient_b_import);
  526. this.tableClientService = new ClientServiceDataTable();
  527. base.Tables.Add(this.tableClientService);
  528. this.tableDocumentByService = new DocumentByServiceDataTable();
  529. base.Tables.Add(this.tableDocumentByService);
  530. this.tableGender = new GenderDataTable();
  531. base.Tables.Add(this.tableGender);
  532. this.tableManufacturer = new ManufacturerDataTable();
  533. base.Tables.Add(this.tableManufacturer);
  534. this.tableProduct = new ProductDataTable();
  535. base.Tables.Add(this.tableProduct);
  536. this.tableProductPhoto = new ProductPhotoDataTable();
  537. base.Tables.Add(this.tableProductPhoto);
  538. this.tableProductSale = new ProductSaleDataTable();
  539. base.Tables.Add(this.tableProductSale);
  540. this.tableService = new ServiceDataTable();
  541. base.Tables.Add(this.tableService);
  542. this.tableservice_b_import = new service_b_importDataTable();
  543. base.Tables.Add(this.tableservice_b_import);
  544. this.tableServicePhoto = new ServicePhotoDataTable();
  545. base.Tables.Add(this.tableServicePhoto);
  546. this.tableTag = new TagDataTable();
  547. base.Tables.Add(this.tableTag);
  548. this.tableTagOfClient = new TagOfClientDataTable();
  549. base.Tables.Add(this.tableTagOfClient);
  550. this.relationFK_AttachedProduct_Product = new global::System.Data.DataRelation("FK_AttachedProduct_Product", new global::System.Data.DataColumn[] {
  551. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  552. this.tableAttachedProduct.MainProductIDColumn}, false);
  553. this.Relations.Add(this.relationFK_AttachedProduct_Product);
  554. this.relationFK_AttachedProduct_Product1 = new global::System.Data.DataRelation("FK_AttachedProduct_Product1", new global::System.Data.DataColumn[] {
  555. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  556. this.tableAttachedProduct.AttachedProductIDColumn}, false);
  557. this.Relations.Add(this.relationFK_AttachedProduct_Product1);
  558. this.relationFK_Client_Gender = new global::System.Data.DataRelation("FK_Client_Gender", new global::System.Data.DataColumn[] {
  559. this.tableGender.CodeColumn}, new global::System.Data.DataColumn[] {
  560. this.tableClient.GenderCodeColumn}, false);
  561. this.Relations.Add(this.relationFK_Client_Gender);
  562. this.relationFK_ClientService_Client = new global::System.Data.DataRelation("FK_ClientService_Client", new global::System.Data.DataColumn[] {
  563. this.tableClient.IDColumn}, new global::System.Data.DataColumn[] {
  564. this.tableClientService.ClientIDColumn}, false);
  565. this.Relations.Add(this.relationFK_ClientService_Client);
  566. this.relationFK_ClientService_Service = new global::System.Data.DataRelation("FK_ClientService_Service", new global::System.Data.DataColumn[] {
  567. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  568. this.tableClientService.ServiceIDColumn}, false);
  569. this.Relations.Add(this.relationFK_ClientService_Service);
  570. this.relationFK_DocumentByService_ClientService = new global::System.Data.DataRelation("FK_DocumentByService_ClientService", new global::System.Data.DataColumn[] {
  571. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  572. this.tableDocumentByService.ClientServiceIDColumn}, false);
  573. this.Relations.Add(this.relationFK_DocumentByService_ClientService);
  574. this.relationFK_Product_Manufacturer = new global::System.Data.DataRelation("FK_Product_Manufacturer", new global::System.Data.DataColumn[] {
  575. this.tableManufacturer.IDColumn}, new global::System.Data.DataColumn[] {
  576. this.tableProduct.ManufacturerIDColumn}, false);
  577. this.Relations.Add(this.relationFK_Product_Manufacturer);
  578. this.relationFK_ProductPhoto_Product = new global::System.Data.DataRelation("FK_ProductPhoto_Product", new global::System.Data.DataColumn[] {
  579. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  580. this.tableProductPhoto.ProductIDColumn}, false);
  581. this.Relations.Add(this.relationFK_ProductPhoto_Product);
  582. this.relationFK_ProductSale_ClientService = new global::System.Data.DataRelation("FK_ProductSale_ClientService", new global::System.Data.DataColumn[] {
  583. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  584. this.tableProductSale.ClientServiceIDColumn}, false);
  585. this.Relations.Add(this.relationFK_ProductSale_ClientService);
  586. this.relationFK_ProductSale_Product = new global::System.Data.DataRelation("FK_ProductSale_Product", new global::System.Data.DataColumn[] {
  587. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  588. this.tableProductSale.ProductIDColumn}, false);
  589. this.Relations.Add(this.relationFK_ProductSale_Product);
  590. this.relationFK_ServicePhoto_Service = new global::System.Data.DataRelation("FK_ServicePhoto_Service", new global::System.Data.DataColumn[] {
  591. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  592. this.tableServicePhoto.ServiceIDColumn}, false);
  593. this.Relations.Add(this.relationFK_ServicePhoto_Service);
  594. this.relationFK_TagOfClient_Client = new global::System.Data.DataRelation("FK_TagOfClient_Client", new global::System.Data.DataColumn[] {
  595. this.tableClient.IDColumn}, new global::System.Data.DataColumn[] {
  596. this.tableTagOfClient.ClientIDColumn}, false);
  597. this.Relations.Add(this.relationFK_TagOfClient_Client);
  598. this.relationFK_TagOfClient_Tag = new global::System.Data.DataRelation("FK_TagOfClient_Tag", new global::System.Data.DataColumn[] {
  599. this.tableTag.IDColumn}, new global::System.Data.DataColumn[] {
  600. this.tableTagOfClient.TagIDColumn}, false);
  601. this.Relations.Add(this.relationFK_TagOfClient_Tag);
  602. }
  603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  605. private bool ShouldSerializeAttachedProduct() {
  606. return false;
  607. }
  608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  610. private bool ShouldSerializeClient() {
  611. return false;
  612. }
  613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  615. private bool ShouldSerializeclient_b_import() {
  616. return false;
  617. }
  618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  620. private bool ShouldSerializeClientService() {
  621. return false;
  622. }
  623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  625. private bool ShouldSerializeDocumentByService() {
  626. return false;
  627. }
  628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  630. private bool ShouldSerializeGender() {
  631. return false;
  632. }
  633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  635. private bool ShouldSerializeManufacturer() {
  636. return false;
  637. }
  638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  640. private bool ShouldSerializeProduct() {
  641. return false;
  642. }
  643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  645. private bool ShouldSerializeProductPhoto() {
  646. return false;
  647. }
  648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  650. private bool ShouldSerializeProductSale() {
  651. return false;
  652. }
  653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  655. private bool ShouldSerializeService() {
  656. return false;
  657. }
  658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  660. private bool ShouldSerializeservice_b_import() {
  661. return false;
  662. }
  663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  665. private bool ShouldSerializeServicePhoto() {
  666. return false;
  667. }
  668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  670. private bool ShouldSerializeTag() {
  671. return false;
  672. }
  673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  675. private bool ShouldSerializeTagOfClient() {
  676. return false;
  677. }
  678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  680. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  681. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  682. this.InitVars();
  683. }
  684. }
  685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  687. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  688. bobrovDemoEgzamenDataSet ds = new bobrovDemoEgzamenDataSet();
  689. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  690. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  691. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  692. any.Namespace = ds.Namespace;
  693. sequence.Items.Add(any);
  694. type.Particle = sequence;
  695. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  696. if (xs.Contains(dsSchema.TargetNamespace)) {
  697. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  698. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  699. try {
  700. global::System.Xml.Schema.XmlSchema schema = null;
  701. dsSchema.Write(s1);
  702. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  703. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  704. s2.SetLength(0);
  705. schema.Write(s2);
  706. if ((s1.Length == s2.Length)) {
  707. s1.Position = 0;
  708. s2.Position = 0;
  709. for (; ((s1.Position != s1.Length)
  710. && (s1.ReadByte() == s2.ReadByte())); ) {
  711. ;
  712. }
  713. if ((s1.Position == s1.Length)) {
  714. return type;
  715. }
  716. }
  717. }
  718. }
  719. finally {
  720. if ((s1 != null)) {
  721. s1.Close();
  722. }
  723. if ((s2 != null)) {
  724. s2.Close();
  725. }
  726. }
  727. }
  728. xs.Add(dsSchema);
  729. return type;
  730. }
  731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  732. public delegate void AttachedProductRowChangeEventHandler(object sender, AttachedProductRowChangeEvent e);
  733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  734. public delegate void ClientRowChangeEventHandler(object sender, ClientRowChangeEvent e);
  735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  736. public delegate void client_b_importRowChangeEventHandler(object sender, client_b_importRowChangeEvent e);
  737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  738. public delegate void ClientServiceRowChangeEventHandler(object sender, ClientServiceRowChangeEvent e);
  739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  740. public delegate void DocumentByServiceRowChangeEventHandler(object sender, DocumentByServiceRowChangeEvent e);
  741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  742. public delegate void GenderRowChangeEventHandler(object sender, GenderRowChangeEvent e);
  743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  744. public delegate void ManufacturerRowChangeEventHandler(object sender, ManufacturerRowChangeEvent e);
  745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  746. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  748. public delegate void ProductPhotoRowChangeEventHandler(object sender, ProductPhotoRowChangeEvent e);
  749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  750. public delegate void ProductSaleRowChangeEventHandler(object sender, ProductSaleRowChangeEvent e);
  751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  752. public delegate void ServiceRowChangeEventHandler(object sender, ServiceRowChangeEvent e);
  753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  754. public delegate void service_b_importRowChangeEventHandler(object sender, service_b_importRowChangeEvent e);
  755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  756. public delegate void ServicePhotoRowChangeEventHandler(object sender, ServicePhotoRowChangeEvent e);
  757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  758. public delegate void TagRowChangeEventHandler(object sender, TagRowChangeEvent e);
  759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  760. public delegate void TagOfClientRowChangeEventHandler(object sender, TagOfClientRowChangeEvent e);
  761. /// <summary>
  762. ///Represents the strongly named DataTable class.
  763. ///</summary>
  764. [global::System.Serializable()]
  765. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  766. public partial class AttachedProductDataTable : global::System.Data.TypedTableBase<AttachedProductRow> {
  767. private global::System.Data.DataColumn columnMainProductID;
  768. private global::System.Data.DataColumn columnAttachedProductID;
  769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  771. public AttachedProductDataTable() {
  772. this.TableName = "AttachedProduct";
  773. this.BeginInit();
  774. this.InitClass();
  775. this.EndInit();
  776. }
  777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  779. internal AttachedProductDataTable(global::System.Data.DataTable table) {
  780. this.TableName = table.TableName;
  781. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  782. this.CaseSensitive = table.CaseSensitive;
  783. }
  784. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  785. this.Locale = table.Locale;
  786. }
  787. if ((table.Namespace != table.DataSet.Namespace)) {
  788. this.Namespace = table.Namespace;
  789. }
  790. this.Prefix = table.Prefix;
  791. this.MinimumCapacity = table.MinimumCapacity;
  792. }
  793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  795. protected AttachedProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  796. base(info, context) {
  797. this.InitVars();
  798. }
  799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  801. public global::System.Data.DataColumn MainProductIDColumn {
  802. get {
  803. return this.columnMainProductID;
  804. }
  805. }
  806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  808. public global::System.Data.DataColumn AttachedProductIDColumn {
  809. get {
  810. return this.columnAttachedProductID;
  811. }
  812. }
  813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  815. [global::System.ComponentModel.Browsable(false)]
  816. public int Count {
  817. get {
  818. return this.Rows.Count;
  819. }
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  823. public AttachedProductRow this[int index] {
  824. get {
  825. return ((AttachedProductRow)(this.Rows[index]));
  826. }
  827. }
  828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  829. public event AttachedProductRowChangeEventHandler AttachedProductRowChanging;
  830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  831. public event AttachedProductRowChangeEventHandler AttachedProductRowChanged;
  832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  833. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleting;
  834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  835. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleted;
  836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  838. public void AddAttachedProductRow(AttachedProductRow row) {
  839. this.Rows.Add(row);
  840. }
  841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  843. public AttachedProductRow AddAttachedProductRow(ProductRow parentProductRowByFK_AttachedProduct_Product, ProductRow parentProductRowByFK_AttachedProduct_Product1) {
  844. AttachedProductRow rowAttachedProductRow = ((AttachedProductRow)(this.NewRow()));
  845. object[] columnValuesArray = new object[] {
  846. null,
  847. null};
  848. if ((parentProductRowByFK_AttachedProduct_Product != null)) {
  849. columnValuesArray[0] = parentProductRowByFK_AttachedProduct_Product[0];
  850. }
  851. if ((parentProductRowByFK_AttachedProduct_Product1 != null)) {
  852. columnValuesArray[1] = parentProductRowByFK_AttachedProduct_Product1[0];
  853. }
  854. rowAttachedProductRow.ItemArray = columnValuesArray;
  855. this.Rows.Add(rowAttachedProductRow);
  856. return rowAttachedProductRow;
  857. }
  858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  860. public AttachedProductRow FindByMainProductIDAttachedProductID(int MainProductID, int AttachedProductID) {
  861. return ((AttachedProductRow)(this.Rows.Find(new object[] {
  862. MainProductID,
  863. AttachedProductID})));
  864. }
  865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  867. public override global::System.Data.DataTable Clone() {
  868. AttachedProductDataTable cln = ((AttachedProductDataTable)(base.Clone()));
  869. cln.InitVars();
  870. return cln;
  871. }
  872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  874. protected override global::System.Data.DataTable CreateInstance() {
  875. return new AttachedProductDataTable();
  876. }
  877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  879. internal void InitVars() {
  880. this.columnMainProductID = base.Columns["MainProductID"];
  881. this.columnAttachedProductID = base.Columns["AttachedProductID"];
  882. }
  883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  885. private void InitClass() {
  886. this.columnMainProductID = new global::System.Data.DataColumn("MainProductID", typeof(int), null, global::System.Data.MappingType.Element);
  887. base.Columns.Add(this.columnMainProductID);
  888. this.columnAttachedProductID = new global::System.Data.DataColumn("AttachedProductID", typeof(int), null, global::System.Data.MappingType.Element);
  889. base.Columns.Add(this.columnAttachedProductID);
  890. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  891. this.columnMainProductID,
  892. this.columnAttachedProductID}, true));
  893. this.columnMainProductID.AllowDBNull = false;
  894. this.columnAttachedProductID.AllowDBNull = false;
  895. }
  896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  898. public AttachedProductRow NewAttachedProductRow() {
  899. return ((AttachedProductRow)(this.NewRow()));
  900. }
  901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  903. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  904. return new AttachedProductRow(builder);
  905. }
  906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  908. protected override global::System.Type GetRowType() {
  909. return typeof(AttachedProductRow);
  910. }
  911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  913. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  914. base.OnRowChanged(e);
  915. if ((this.AttachedProductRowChanged != null)) {
  916. this.AttachedProductRowChanged(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  917. }
  918. }
  919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  921. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  922. base.OnRowChanging(e);
  923. if ((this.AttachedProductRowChanging != null)) {
  924. this.AttachedProductRowChanging(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  925. }
  926. }
  927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  929. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  930. base.OnRowDeleted(e);
  931. if ((this.AttachedProductRowDeleted != null)) {
  932. this.AttachedProductRowDeleted(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  933. }
  934. }
  935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  937. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  938. base.OnRowDeleting(e);
  939. if ((this.AttachedProductRowDeleting != null)) {
  940. this.AttachedProductRowDeleting(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  941. }
  942. }
  943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  945. public void RemoveAttachedProductRow(AttachedProductRow row) {
  946. this.Rows.Remove(row);
  947. }
  948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  950. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  951. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  952. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  953. bobrovDemoEgzamenDataSet ds = new bobrovDemoEgzamenDataSet();
  954. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  955. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  956. any1.MinOccurs = new decimal(0);
  957. any1.MaxOccurs = decimal.MaxValue;
  958. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  959. sequence.Items.Add(any1);
  960. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  961. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  962. any2.MinOccurs = new decimal(1);
  963. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  964. sequence.Items.Add(any2);
  965. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  966. attribute1.Name = "namespace";
  967. attribute1.FixedValue = ds.Namespace;
  968. type.Attributes.Add(attribute1);
  969. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  970. attribute2.Name = "tableTypeName";
  971. attribute2.FixedValue = "AttachedProductDataTable";
  972. type.Attributes.Add(attribute2);
  973. type.Particle = sequence;
  974. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  975. if (xs.Contains(dsSchema.TargetNamespace)) {
  976. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  977. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  978. try {
  979. global::System.Xml.Schema.XmlSchema schema = null;
  980. dsSchema.Write(s1);
  981. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  982. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  983. s2.SetLength(0);
  984. schema.Write(s2);
  985. if ((s1.Length == s2.Length)) {
  986. s1.Position = 0;
  987. s2.Position = 0;
  988. for (; ((s1.Position != s1.Length)
  989. && (s1.ReadByte() == s2.ReadByte())); ) {
  990. ;
  991. }
  992. if ((s1.Position == s1.Length)) {
  993. return type;
  994. }
  995. }
  996. }
  997. }
  998. finally {
  999. if ((s1 != null)) {
  1000. s1.Close();
  1001. }
  1002. if ((s2 != null)) {
  1003. s2.Close();
  1004. }
  1005. }
  1006. }
  1007. xs.Add(dsSchema);
  1008. return type;
  1009. }
  1010. }
  1011. /// <summary>
  1012. ///Represents the strongly named DataTable class.
  1013. ///</summary>
  1014. [global::System.Serializable()]
  1015. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1016. public partial class ClientDataTable : global::System.Data.TypedTableBase<ClientRow> {
  1017. private global::System.Data.DataColumn columnID;
  1018. private global::System.Data.DataColumn columnFirstName;
  1019. private global::System.Data.DataColumn columnLastName;
  1020. private global::System.Data.DataColumn columnPatronymic;
  1021. private global::System.Data.DataColumn columnBirthday;
  1022. private global::System.Data.DataColumn columnRegistrationDate;
  1023. private global::System.Data.DataColumn columnEmail;
  1024. private global::System.Data.DataColumn columnPhone;
  1025. private global::System.Data.DataColumn columnGenderCode;
  1026. private global::System.Data.DataColumn columnPhotoPath;
  1027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1029. public ClientDataTable() {
  1030. this.TableName = "Client";
  1031. this.BeginInit();
  1032. this.InitClass();
  1033. this.EndInit();
  1034. }
  1035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1037. internal ClientDataTable(global::System.Data.DataTable table) {
  1038. this.TableName = table.TableName;
  1039. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1040. this.CaseSensitive = table.CaseSensitive;
  1041. }
  1042. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1043. this.Locale = table.Locale;
  1044. }
  1045. if ((table.Namespace != table.DataSet.Namespace)) {
  1046. this.Namespace = table.Namespace;
  1047. }
  1048. this.Prefix = table.Prefix;
  1049. this.MinimumCapacity = table.MinimumCapacity;
  1050. }
  1051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1053. protected ClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1054. base(info, context) {
  1055. this.InitVars();
  1056. }
  1057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1059. public global::System.Data.DataColumn IDColumn {
  1060. get {
  1061. return this.columnID;
  1062. }
  1063. }
  1064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1066. public global::System.Data.DataColumn FirstNameColumn {
  1067. get {
  1068. return this.columnFirstName;
  1069. }
  1070. }
  1071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1073. public global::System.Data.DataColumn LastNameColumn {
  1074. get {
  1075. return this.columnLastName;
  1076. }
  1077. }
  1078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1080. public global::System.Data.DataColumn PatronymicColumn {
  1081. get {
  1082. return this.columnPatronymic;
  1083. }
  1084. }
  1085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1087. public global::System.Data.DataColumn BirthdayColumn {
  1088. get {
  1089. return this.columnBirthday;
  1090. }
  1091. }
  1092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1094. public global::System.Data.DataColumn RegistrationDateColumn {
  1095. get {
  1096. return this.columnRegistrationDate;
  1097. }
  1098. }
  1099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1101. public global::System.Data.DataColumn EmailColumn {
  1102. get {
  1103. return this.columnEmail;
  1104. }
  1105. }
  1106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1108. public global::System.Data.DataColumn PhoneColumn {
  1109. get {
  1110. return this.columnPhone;
  1111. }
  1112. }
  1113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1115. public global::System.Data.DataColumn GenderCodeColumn {
  1116. get {
  1117. return this.columnGenderCode;
  1118. }
  1119. }
  1120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1122. public global::System.Data.DataColumn PhotoPathColumn {
  1123. get {
  1124. return this.columnPhotoPath;
  1125. }
  1126. }
  1127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1129. [global::System.ComponentModel.Browsable(false)]
  1130. public int Count {
  1131. get {
  1132. return this.Rows.Count;
  1133. }
  1134. }
  1135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1137. public ClientRow this[int index] {
  1138. get {
  1139. return ((ClientRow)(this.Rows[index]));
  1140. }
  1141. }
  1142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1143. public event ClientRowChangeEventHandler ClientRowChanging;
  1144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1145. public event ClientRowChangeEventHandler ClientRowChanged;
  1146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1147. public event ClientRowChangeEventHandler ClientRowDeleting;
  1148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1149. public event ClientRowChangeEventHandler ClientRowDeleted;
  1150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1152. public void AddClientRow(ClientRow row) {
  1153. this.Rows.Add(row);
  1154. }
  1155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1157. public ClientRow AddClientRow(string FirstName, string LastName, string Patronymic, System.DateTime Birthday, System.DateTime RegistrationDate, string Email, string Phone, GenderRow parentGenderRowByFK_Client_Gender, string PhotoPath) {
  1158. ClientRow rowClientRow = ((ClientRow)(this.NewRow()));
  1159. object[] columnValuesArray = new object[] {
  1160. null,
  1161. FirstName,
  1162. LastName,
  1163. Patronymic,
  1164. Birthday,
  1165. RegistrationDate,
  1166. Email,
  1167. Phone,
  1168. null,
  1169. PhotoPath};
  1170. if ((parentGenderRowByFK_Client_Gender != null)) {
  1171. columnValuesArray[8] = parentGenderRowByFK_Client_Gender[0];
  1172. }
  1173. rowClientRow.ItemArray = columnValuesArray;
  1174. this.Rows.Add(rowClientRow);
  1175. return rowClientRow;
  1176. }
  1177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1179. public ClientRow FindByID(int ID) {
  1180. return ((ClientRow)(this.Rows.Find(new object[] {
  1181. ID})));
  1182. }
  1183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1185. public override global::System.Data.DataTable Clone() {
  1186. ClientDataTable cln = ((ClientDataTable)(base.Clone()));
  1187. cln.InitVars();
  1188. return cln;
  1189. }
  1190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1192. protected override global::System.Data.DataTable CreateInstance() {
  1193. return new ClientDataTable();
  1194. }
  1195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1197. internal void InitVars() {
  1198. this.columnID = base.Columns["ID"];
  1199. this.columnFirstName = base.Columns["FirstName"];
  1200. this.columnLastName = base.Columns["LastName"];
  1201. this.columnPatronymic = base.Columns["Patronymic"];
  1202. this.columnBirthday = base.Columns["Birthday"];
  1203. this.columnRegistrationDate = base.Columns["RegistrationDate"];
  1204. this.columnEmail = base.Columns["Email"];
  1205. this.columnPhone = base.Columns["Phone"];
  1206. this.columnGenderCode = base.Columns["GenderCode"];
  1207. this.columnPhotoPath = base.Columns["PhotoPath"];
  1208. }
  1209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1211. private void InitClass() {
  1212. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1213. base.Columns.Add(this.columnID);
  1214. this.columnFirstName = new global::System.Data.DataColumn("FirstName", typeof(string), null, global::System.Data.MappingType.Element);
  1215. base.Columns.Add(this.columnFirstName);
  1216. this.columnLastName = new global::System.Data.DataColumn("LastName", typeof(string), null, global::System.Data.MappingType.Element);
  1217. base.Columns.Add(this.columnLastName);
  1218. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  1219. base.Columns.Add(this.columnPatronymic);
  1220. this.columnBirthday = new global::System.Data.DataColumn("Birthday", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1221. base.Columns.Add(this.columnBirthday);
  1222. this.columnRegistrationDate = new global::System.Data.DataColumn("RegistrationDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1223. base.Columns.Add(this.columnRegistrationDate);
  1224. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1225. base.Columns.Add(this.columnEmail);
  1226. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1227. base.Columns.Add(this.columnPhone);
  1228. this.columnGenderCode = new global::System.Data.DataColumn("GenderCode", typeof(string), null, global::System.Data.MappingType.Element);
  1229. base.Columns.Add(this.columnGenderCode);
  1230. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  1231. base.Columns.Add(this.columnPhotoPath);
  1232. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1233. this.columnID}, true));
  1234. this.columnID.AutoIncrement = true;
  1235. this.columnID.AutoIncrementSeed = -1;
  1236. this.columnID.AutoIncrementStep = -1;
  1237. this.columnID.AllowDBNull = false;
  1238. this.columnID.ReadOnly = true;
  1239. this.columnID.Unique = true;
  1240. this.columnFirstName.AllowDBNull = false;
  1241. this.columnFirstName.MaxLength = 50;
  1242. this.columnLastName.AllowDBNull = false;
  1243. this.columnLastName.MaxLength = 50;
  1244. this.columnPatronymic.MaxLength = 50;
  1245. this.columnRegistrationDate.AllowDBNull = false;
  1246. this.columnEmail.MaxLength = 255;
  1247. this.columnPhone.AllowDBNull = false;
  1248. this.columnPhone.MaxLength = 20;
  1249. this.columnGenderCode.AllowDBNull = false;
  1250. this.columnGenderCode.MaxLength = 1;
  1251. this.columnPhotoPath.MaxLength = 1000;
  1252. }
  1253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1255. public ClientRow NewClientRow() {
  1256. return ((ClientRow)(this.NewRow()));
  1257. }
  1258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1260. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1261. return new ClientRow(builder);
  1262. }
  1263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1265. protected override global::System.Type GetRowType() {
  1266. return typeof(ClientRow);
  1267. }
  1268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1270. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1271. base.OnRowChanged(e);
  1272. if ((this.ClientRowChanged != null)) {
  1273. this.ClientRowChanged(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1274. }
  1275. }
  1276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1278. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1279. base.OnRowChanging(e);
  1280. if ((this.ClientRowChanging != null)) {
  1281. this.ClientRowChanging(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1282. }
  1283. }
  1284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1286. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1287. base.OnRowDeleted(e);
  1288. if ((this.ClientRowDeleted != null)) {
  1289. this.ClientRowDeleted(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1290. }
  1291. }
  1292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1294. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1295. base.OnRowDeleting(e);
  1296. if ((this.ClientRowDeleting != null)) {
  1297. this.ClientRowDeleting(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1298. }
  1299. }
  1300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1302. public void RemoveClientRow(ClientRow row) {
  1303. this.Rows.Remove(row);
  1304. }
  1305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1307. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1308. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1309. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1310. bobrovDemoEgzamenDataSet ds = new bobrovDemoEgzamenDataSet();
  1311. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1312. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1313. any1.MinOccurs = new decimal(0);
  1314. any1.MaxOccurs = decimal.MaxValue;
  1315. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1316. sequence.Items.Add(any1);
  1317. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1318. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1319. any2.MinOccurs = new decimal(1);
  1320. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1321. sequence.Items.Add(any2);
  1322. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1323. attribute1.Name = "namespace";
  1324. attribute1.FixedValue = ds.Namespace;
  1325. type.Attributes.Add(attribute1);
  1326. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1327. attribute2.Name = "tableTypeName";
  1328. attribute2.FixedValue = "ClientDataTable";
  1329. type.Attributes.Add(attribute2);
  1330. type.Particle = sequence;
  1331. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1332. if (xs.Contains(dsSchema.TargetNamespace)) {
  1333. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1334. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1335. try {
  1336. global::System.Xml.Schema.XmlSchema schema = null;
  1337. dsSchema.Write(s1);
  1338. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1339. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1340. s2.SetLength(0);
  1341. schema.Write(s2);
  1342. if ((s1.Length == s2.Length)) {
  1343. s1.Position = 0;
  1344. s2.Position = 0;
  1345. for (; ((s1.Position != s1.Length)
  1346. && (s1.ReadByte() == s2.ReadByte())); ) {
  1347. ;
  1348. }
  1349. if ((s1.Position == s1.Length)) {
  1350. return type;
  1351. }
  1352. }
  1353. }
  1354. }
  1355. finally {
  1356. if ((s1 != null)) {
  1357. s1.Close();
  1358. }
  1359. if ((s2 != null)) {
  1360. s2.Close();
  1361. }
  1362. }
  1363. }
  1364. xs.Add(dsSchema);
  1365. return type;
  1366. }
  1367. }
  1368. /// <summary>
  1369. ///Represents the strongly named DataTable class.
  1370. ///</summary>
  1371. [global::System.Serializable()]
  1372. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1373. public partial class client_b_importDataTable : global::System.Data.TypedTableBase<client_b_importRow> {
  1374. private global::System.Data.DataColumn columnФамилия;
  1375. private global::System.Data.DataColumn columnИмя;
  1376. private global::System.Data.DataColumn columnОтчество;
  1377. private global::System.Data.DataColumn columnПол;
  1378. private global::System.Data.DataColumn columnТелефон;
  1379. private global::System.Data.DataColumn columnДата_рождения;
  1380. private global::System.Data.DataColumn columnEmail;
  1381. private global::System.Data.DataColumn columnДата_регистрации;
  1382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1384. public client_b_importDataTable() {
  1385. this.TableName = "client_b_import";
  1386. this.BeginInit();
  1387. this.InitClass();
  1388. this.EndInit();
  1389. }
  1390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1392. internal client_b_importDataTable(global::System.Data.DataTable table) {
  1393. this.TableName = table.TableName;
  1394. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1395. this.CaseSensitive = table.CaseSensitive;
  1396. }
  1397. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1398. this.Locale = table.Locale;
  1399. }
  1400. if ((table.Namespace != table.DataSet.Namespace)) {
  1401. this.Namespace = table.Namespace;
  1402. }
  1403. this.Prefix = table.Prefix;
  1404. this.MinimumCapacity = table.MinimumCapacity;
  1405. }
  1406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1408. protected client_b_importDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1409. base(info, context) {
  1410. this.InitVars();
  1411. }
  1412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1414. public global::System.Data.DataColumn ФамилияColumn {
  1415. get {
  1416. return this.columnФамилия;
  1417. }
  1418. }
  1419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1421. public global::System.Data.DataColumn ИмяColumn {
  1422. get {
  1423. return this.columnИмя;
  1424. }
  1425. }
  1426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1428. public global::System.Data.DataColumn ОтчествоColumn {
  1429. get {
  1430. return this.columnОтчество;
  1431. }
  1432. }
  1433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1435. public global::System.Data.DataColumn ПолColumn {
  1436. get {
  1437. return this.columnПол;
  1438. }
  1439. }
  1440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1442. public global::System.Data.DataColumn ТелефонColumn {
  1443. get {
  1444. return this.columnТелефон;
  1445. }
  1446. }
  1447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1449. public global::System.Data.DataColumn Дата_рожденияColumn {
  1450. get {
  1451. return this.columnДата_рождения;
  1452. }
  1453. }
  1454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1456. public global::System.Data.DataColumn EmailColumn {
  1457. get {
  1458. return this.columnEmail;
  1459. }
  1460. }
  1461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1463. public global::System.Data.DataColumn Дата_регистрацииColumn {
  1464. get {
  1465. return this.columnДата_регистрации;
  1466. }
  1467. }
  1468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1470. [global::System.ComponentModel.Browsable(false)]
  1471. public int Count {
  1472. get {
  1473. return this.Rows.Count;
  1474. }
  1475. }
  1476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1478. public client_b_importRow this[int index] {
  1479. get {
  1480. return ((client_b_importRow)(this.Rows[index]));
  1481. }
  1482. }
  1483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1484. public event client_b_importRowChangeEventHandler client_b_importRowChanging;
  1485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1486. public event client_b_importRowChangeEventHandler client_b_importRowChanged;
  1487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1488. public event client_b_importRowChangeEventHandler client_b_importRowDeleting;
  1489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1490. public event client_b_importRowChangeEventHandler client_b_importRowDeleted;
  1491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1493. public void Addclient_b_importRow(client_b_importRow row) {
  1494. this.Rows.Add(row);
  1495. }
  1496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1498. public client_b_importRow Addclient_b_importRow(string Фамилия, string Имя, string Отчество, string Пол, string Телефон, System.DateTime Дата_рождения, string Email, System.DateTime Дата_регистрации) {
  1499. client_b_importRow rowclient_b_importRow = ((client_b_importRow)(this.NewRow()));
  1500. object[] columnValuesArray = new object[] {
  1501. Фамилия,
  1502. Имя,
  1503. Отчество,
  1504. Пол,
  1505. Телефон,
  1506. Дата_рождения,
  1507. Email,
  1508. Дата_регистрации};
  1509. rowclient_b_importRow.ItemArray = columnValuesArray;
  1510. this.Rows.Add(rowclient_b_importRow);
  1511. return rowclient_b_importRow;
  1512. }
  1513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1515. public override global::System.Data.DataTable Clone() {
  1516. client_b_importDataTable cln = ((client_b_importDataTable)(base.Clone()));
  1517. cln.InitVars();
  1518. return cln;
  1519. }
  1520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1522. protected override global::System.Data.DataTable CreateInstance() {
  1523. return new client_b_importDataTable();
  1524. }
  1525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1527. internal void InitVars() {
  1528. this.columnФамилия = base.Columns["Фамилия"];
  1529. this.columnИмя = base.Columns["Имя"];
  1530. this.columnОтчество = base.Columns["Отчество"];
  1531. this.columnПол = base.Columns["Пол"];
  1532. this.columnТелефон = base.Columns["Телефон"];
  1533. this.columnДата_рождения = base.Columns["Дата_рождения"];
  1534. this.columnEmail = base.Columns["Email"];
  1535. this.columnДата_регистрации = base.Columns["Дата_регистрации"];
  1536. }
  1537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1539. private void InitClass() {
  1540. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  1541. base.Columns.Add(this.columnФамилия);
  1542. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  1543. base.Columns.Add(this.columnИмя);
  1544. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  1545. base.Columns.Add(this.columnОтчество);
  1546. this.columnПол = new global::System.Data.DataColumn("Пол", typeof(string), null, global::System.Data.MappingType.Element);
  1547. base.Columns.Add(this.columnПол);
  1548. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  1549. base.Columns.Add(this.columnТелефон);
  1550. this.columnДата_рождения = new global::System.Data.DataColumn("Дата_рождения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1551. base.Columns.Add(this.columnДата_рождения);
  1552. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1553. base.Columns.Add(this.columnEmail);
  1554. this.columnДата_регистрации = new global::System.Data.DataColumn("Дата_регистрации", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1555. base.Columns.Add(this.columnДата_регистрации);
  1556. this.columnФамилия.AllowDBNull = false;
  1557. this.columnФамилия.MaxLength = 50;
  1558. this.columnИмя.MaxLength = 50;
  1559. this.columnОтчество.MaxLength = 50;
  1560. this.columnПол.AllowDBNull = false;
  1561. this.columnПол.MaxLength = 50;
  1562. this.columnТелефон.AllowDBNull = false;
  1563. this.columnТелефон.MaxLength = 50;
  1564. this.columnДата_рождения.AllowDBNull = false;
  1565. this.columnEmail.AllowDBNull = false;
  1566. this.columnEmail.MaxLength = 50;
  1567. this.columnДата_регистрации.AllowDBNull = false;
  1568. }
  1569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1571. public client_b_importRow Newclient_b_importRow() {
  1572. return ((client_b_importRow)(this.NewRow()));
  1573. }
  1574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1576. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1577. return new client_b_importRow(builder);
  1578. }
  1579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1581. protected override global::System.Type GetRowType() {
  1582. return typeof(client_b_importRow);
  1583. }
  1584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1586. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1587. base.OnRowChanged(e);
  1588. if ((this.client_b_importRowChanged != null)) {
  1589. this.client_b_importRowChanged(this, new client_b_importRowChangeEvent(((client_b_importRow)(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 OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1595. base.OnRowChanging(e);
  1596. if ((this.client_b_importRowChanging != null)) {
  1597. this.client_b_importRowChanging(this, new client_b_importRowChangeEvent(((client_b_importRow)(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. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1603. base.OnRowDeleted(e);
  1604. if ((this.client_b_importRowDeleted != null)) {
  1605. this.client_b_importRowDeleted(this, new client_b_importRowChangeEvent(((client_b_importRow)(e.Row)), e.Action));
  1606. }
  1607. }
  1608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1610. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1611. base.OnRowDeleting(e);
  1612. if ((this.client_b_importRowDeleting != null)) {
  1613. this.client_b_importRowDeleting(this, new client_b_importRowChangeEvent(((client_b_importRow)(e.Row)), e.Action));
  1614. }
  1615. }
  1616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1618. public void Removeclient_b_importRow(client_b_importRow row) {
  1619. this.Rows.Remove(row);
  1620. }
  1621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1623. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1624. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1625. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1626. bobrovDemoEgzamenDataSet ds = new bobrovDemoEgzamenDataSet();
  1627. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1628. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1629. any1.MinOccurs = new decimal(0);
  1630. any1.MaxOccurs = decimal.MaxValue;
  1631. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1632. sequence.Items.Add(any1);
  1633. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1634. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1635. any2.MinOccurs = new decimal(1);
  1636. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1637. sequence.Items.Add(any2);
  1638. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1639. attribute1.Name = "namespace";
  1640. attribute1.FixedValue = ds.Namespace;
  1641. type.Attributes.Add(attribute1);
  1642. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1643. attribute2.Name = "tableTypeName";
  1644. attribute2.FixedValue = "client_b_importDataTable";
  1645. type.Attributes.Add(attribute2);
  1646. type.Particle = sequence;
  1647. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1648. if (xs.Contains(dsSchema.TargetNamespace)) {
  1649. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1650. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1651. try {
  1652. global::System.Xml.Schema.XmlSchema schema = null;
  1653. dsSchema.Write(s1);
  1654. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1655. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1656. s2.SetLength(0);
  1657. schema.Write(s2);
  1658. if ((s1.Length == s2.Length)) {
  1659. s1.Position = 0;
  1660. s2.Position = 0;
  1661. for (; ((s1.Position != s1.Length)
  1662. && (s1.ReadByte() == s2.ReadByte())); ) {
  1663. ;
  1664. }
  1665. if ((s1.Position == s1.Length)) {
  1666. return type;
  1667. }
  1668. }
  1669. }
  1670. }
  1671. finally {
  1672. if ((s1 != null)) {
  1673. s1.Close();
  1674. }
  1675. if ((s2 != null)) {
  1676. s2.Close();
  1677. }
  1678. }
  1679. }
  1680. xs.Add(dsSchema);
  1681. return type;
  1682. }
  1683. }
  1684. /// <summary>
  1685. ///Represents the strongly named DataTable class.
  1686. ///</summary>
  1687. [global::System.Serializable()]
  1688. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1689. public partial class ClientServiceDataTable : global::System.Data.TypedTableBase<ClientServiceRow> {
  1690. private global::System.Data.DataColumn columnID;
  1691. private global::System.Data.DataColumn columnClientID;
  1692. private global::System.Data.DataColumn columnServiceID;
  1693. private global::System.Data.DataColumn columnStartTime;
  1694. private global::System.Data.DataColumn columnComment;
  1695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1697. public ClientServiceDataTable() {
  1698. this.TableName = "ClientService";
  1699. this.BeginInit();
  1700. this.InitClass();
  1701. this.EndInit();
  1702. }
  1703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1705. internal ClientServiceDataTable(global::System.Data.DataTable table) {
  1706. this.TableName = table.TableName;
  1707. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1708. this.CaseSensitive = table.CaseSensitive;
  1709. }
  1710. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1711. this.Locale = table.Locale;
  1712. }
  1713. if ((table.Namespace != table.DataSet.Namespace)) {
  1714. this.Namespace = table.Namespace;
  1715. }
  1716. this.Prefix = table.Prefix;
  1717. this.MinimumCapacity = table.MinimumCapacity;
  1718. }
  1719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1721. protected ClientServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1722. base(info, context) {
  1723. this.InitVars();
  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 IDColumn {
  1728. get {
  1729. return this.columnID;
  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 ClientIDColumn {
  1735. get {
  1736. return this.columnClientID;
  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 ServiceIDColumn {
  1742. get {
  1743. return this.columnServiceID;
  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 StartTimeColumn {
  1749. get {
  1750. return this.columnStartTime;
  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 CommentColumn {
  1756. get {
  1757. return this.columnComment;
  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 ClientServiceRow this[int index] {
  1771. get {
  1772. return ((ClientServiceRow)(this.Rows[index]));
  1773. }
  1774. }
  1775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1776. public event ClientServiceRowChangeEventHandler ClientServiceRowChanging;
  1777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1778. public event ClientServiceRowChangeEventHandler ClientServiceRowChanged;
  1779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1780. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleting;
  1781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1782. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleted;
  1783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1785. public void AddClientServiceRow(ClientServiceRow 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 ClientServiceRow AddClientServiceRow(ClientRow parentClientRowByFK_ClientService_Client, ServiceRow parentServiceRowByFK_ClientService_Service, System.DateTime StartTime, string Comment) {
  1791. ClientServiceRow rowClientServiceRow = ((ClientServiceRow)(this.NewRow()));
  1792. object[] columnValuesArray = new object[] {
  1793. null,
  1794. null,
  1795. null,
  1796. StartTime,
  1797. Comment};
  1798. if ((parentClientRowByFK_ClientService_Client != null)) {
  1799. columnValuesArray[1] = parentClientRowByFK_ClientService_Client[0];
  1800. }
  1801. if ((parentServiceRowByFK_ClientService_Service != null)) {
  1802. columnValuesArray[2] = parentServiceRowByFK_ClientService_Service[0];
  1803. }
  1804. rowClientServiceRow.ItemArray = columnValuesArray;
  1805. this.Rows.Add(rowClientServiceRow);
  1806. return rowClientServiceRow;
  1807. }
  1808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1810. public ClientServiceRow FindByID(int ID) {
  1811. return ((ClientServiceRow)(this.Rows.Find(new object[] {
  1812. ID})));
  1813. }
  1814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1816. public override global::System.Data.DataTable Clone() {
  1817. ClientServiceDataTable cln = ((ClientServiceDataTable)(base.Clone()));
  1818. cln.InitVars();
  1819. return cln;
  1820. }
  1821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1823. protected override global::System.Data.DataTable CreateInstance() {
  1824. return new ClientServiceDataTable();
  1825. }
  1826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1828. internal void InitVars() {
  1829. this.columnID = base.Columns["ID"];
  1830. this.columnClientID = base.Columns["ClientID"];
  1831. this.columnServiceID = base.Columns["ServiceID"];
  1832. this.columnStartTime = base.Columns["StartTime"];
  1833. this.columnComment = base.Columns["Comment"];
  1834. }
  1835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1837. private void InitClass() {
  1838. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1839. base.Columns.Add(this.columnID);
  1840. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  1841. base.Columns.Add(this.columnClientID);
  1842. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  1843. base.Columns.Add(this.columnServiceID);
  1844. this.columnStartTime = new global::System.Data.DataColumn("StartTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1845. base.Columns.Add(this.columnStartTime);
  1846. this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element);
  1847. base.Columns.Add(this.columnComment);
  1848. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1849. this.columnID}, true));
  1850. this.columnID.AutoIncrement = true;
  1851. this.columnID.AutoIncrementSeed = -1;
  1852. this.columnID.AutoIncrementStep = -1;
  1853. this.columnID.AllowDBNull = false;
  1854. this.columnID.ReadOnly = true;
  1855. this.columnID.Unique = true;
  1856. this.columnClientID.AllowDBNull = false;
  1857. this.columnServiceID.AllowDBNull = false;
  1858. this.columnStartTime.AllowDBNull = false;
  1859. this.columnComment.MaxLength = 2147483647;
  1860. }
  1861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1863. public ClientServiceRow NewClientServiceRow() {
  1864. return ((ClientServiceRow)(this.NewRow()));
  1865. }
  1866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1868. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1869. return new ClientServiceRow(builder);
  1870. }
  1871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1873. protected override global::System.Type GetRowType() {
  1874. return typeof(ClientServiceRow);
  1875. }
  1876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1878. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1879. base.OnRowChanged(e);
  1880. if ((this.ClientServiceRowChanged != null)) {
  1881. this.ClientServiceRowChanged(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1882. }
  1883. }
  1884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1886. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1887. base.OnRowChanging(e);
  1888. if ((this.ClientServiceRowChanging != null)) {
  1889. this.ClientServiceRowChanging(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1890. }
  1891. }
  1892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1894. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1895. base.OnRowDeleted(e);
  1896. if ((this.ClientServiceRowDeleted != null)) {
  1897. this.ClientServiceRowDeleted(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1898. }
  1899. }
  1900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1902. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1903. base.OnRowDeleting(e);
  1904. if ((this.ClientServiceRowDeleting != null)) {
  1905. this.ClientServiceRowDeleting(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1906. }
  1907. }
  1908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1910. public void RemoveClientServiceRow(ClientServiceRow row) {
  1911. this.Rows.Remove(row);
  1912. }
  1913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1915. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1916. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1917. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1918. bobrovDemoEgzamenDataSet ds = new bobrovDemoEgzamenDataSet();
  1919. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1920. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1921. any1.MinOccurs = new decimal(0);
  1922. any1.MaxOccurs = decimal.MaxValue;
  1923. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1924. sequence.Items.Add(any1);
  1925. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1926. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1927. any2.MinOccurs = new decimal(1);
  1928. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1929. sequence.Items.Add(any2);
  1930. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1931. attribute1.Name = "namespace";
  1932. attribute1.FixedValue = ds.Namespace;
  1933. type.Attributes.Add(attribute1);
  1934. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1935. attribute2.Name = "tableTypeName";
  1936. attribute2.FixedValue = "ClientServiceDataTable";
  1937. type.Attributes.Add(attribute2);
  1938. type.Particle = sequence;
  1939. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1940. if (xs.Contains(dsSchema.TargetNamespace)) {
  1941. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1942. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1943. try {
  1944. global::System.Xml.Schema.XmlSchema schema = null;
  1945. dsSchema.Write(s1);
  1946. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1947. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1948. s2.SetLength(0);
  1949. schema.Write(s2);
  1950. if ((s1.Length == s2.Length)) {
  1951. s1.Position = 0;
  1952. s2.Position = 0;
  1953. for (; ((s1.Position != s1.Length)
  1954. && (s1.ReadByte() == s2.ReadByte())); ) {
  1955. ;
  1956. }
  1957. if ((s1.Position == s1.Length)) {
  1958. return type;
  1959. }
  1960. }
  1961. }
  1962. }
  1963. finally {
  1964. if ((s1 != null)) {
  1965. s1.Close();
  1966. }
  1967. if ((s2 != null)) {
  1968. s2.Close();
  1969. }
  1970. }
  1971. }
  1972. xs.Add(dsSchema);
  1973. return type;
  1974. }
  1975. }
  1976. /// <summary>
  1977. ///Represents the strongly named DataTable class.
  1978. ///</summary>
  1979. [global::System.Serializable()]
  1980. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1981. public partial class DocumentByServiceDataTable : global::System.Data.TypedTableBase<DocumentByServiceRow> {
  1982. private global::System.Data.DataColumn columnID;
  1983. private global::System.Data.DataColumn columnClientServiceID;
  1984. private global::System.Data.DataColumn columnDocumentPath;
  1985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1987. public DocumentByServiceDataTable() {
  1988. this.TableName = "DocumentByService";
  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 DocumentByServiceDataTable(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 DocumentByServiceDataTable(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 IDColumn {
  2018. get {
  2019. return this.columnID;
  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 ClientServiceIDColumn {
  2025. get {
  2026. return this.columnClientServiceID;
  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 DocumentPathColumn {
  2032. get {
  2033. return this.columnDocumentPath;
  2034. }
  2035. }
  2036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2038. [global::System.ComponentModel.Browsable(false)]
  2039. public int Count {
  2040. get {
  2041. return this.Rows.Count;
  2042. }
  2043. }
  2044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2046. public DocumentByServiceRow this[int index] {
  2047. get {
  2048. return ((DocumentByServiceRow)(this.Rows[index]));
  2049. }
  2050. }
  2051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2052. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanging;
  2053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2054. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanged;
  2055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2056. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleting;
  2057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2058. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleted;
  2059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2061. public void AddDocumentByServiceRow(DocumentByServiceRow row) {
  2062. this.Rows.Add(row);
  2063. }
  2064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2066. public DocumentByServiceRow AddDocumentByServiceRow(ClientServiceRow parentClientServiceRowByFK_DocumentByService_ClientService, string DocumentPath) {
  2067. DocumentByServiceRow rowDocumentByServiceRow = ((DocumentByServiceRow)(this.NewRow()));
  2068. object[] columnValuesArray = new object[] {
  2069. null,
  2070. null,
  2071. DocumentPath};
  2072. if ((parentClientServiceRowByFK_DocumentByService_ClientService != null)) {
  2073. columnValuesArray[1] = parentClientServiceRowByFK_DocumentByService_ClientService[0];
  2074. }
  2075. rowDocumentByServiceRow.ItemArray = columnValuesArray;
  2076. this.Rows.Add(rowDocumentByServiceRow);
  2077. return rowDocumentByServiceRow;
  2078. }
  2079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2081. public DocumentByServiceRow FindByID(int ID) {
  2082. return ((DocumentByServiceRow)(this.Rows.Find(new object[] {
  2083. ID})));
  2084. }
  2085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2087. public override global::System.Data.DataTable Clone() {
  2088. DocumentByServiceDataTable cln = ((DocumentByServiceDataTable)(base.Clone()));
  2089. cln.InitVars();
  2090. return cln;
  2091. }
  2092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2094. protected override global::System.Data.DataTable CreateInstance() {
  2095. return new DocumentByServiceDataTable();
  2096. }
  2097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2099. internal void InitVars() {
  2100. this.columnID = base.Columns["ID"];
  2101. this.columnClientServiceID = base.Columns["ClientServiceID"];
  2102. this.columnDocumentPath = base.Columns["DocumentPath"];
  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.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2108. base.Columns.Add(this.columnID);
  2109. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  2110. base.Columns.Add(this.columnClientServiceID);
  2111. this.columnDocumentPath = new global::System.Data.DataColumn("DocumentPath", typeof(string), null, global::System.Data.MappingType.Element);
  2112. base.Columns.Add(this.columnDocumentPath);
  2113. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2114. this.columnID}, true));
  2115. this.columnID.AutoIncrement = true;
  2116. this.columnID.AutoIncrementSeed = -1;
  2117. this.columnID.AutoIncrementStep = -1;
  2118. this.columnID.AllowDBNull = false;
  2119. this.columnID.ReadOnly = true;
  2120. this.columnID.Unique = true;
  2121. this.columnClientServiceID.AllowDBNull = false;
  2122. this.columnDocumentPath.AllowDBNull = false;
  2123. this.columnDocumentPath.MaxLength = 1000;
  2124. }
  2125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2127. public DocumentByServiceRow NewDocumentByServiceRow() {
  2128. return ((DocumentByServiceRow)(this.NewRow()));
  2129. }
  2130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2132. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2133. return new DocumentByServiceRow(builder);
  2134. }
  2135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2137. protected override global::System.Type GetRowType() {
  2138. return typeof(DocumentByServiceRow);
  2139. }
  2140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2142. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2143. base.OnRowChanged(e);
  2144. if ((this.DocumentByServiceRowChanged != null)) {
  2145. this.DocumentByServiceRowChanged(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  2146. }
  2147. }
  2148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2150. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2151. base.OnRowChanging(e);
  2152. if ((this.DocumentByServiceRowChanging != null)) {
  2153. this.DocumentByServiceRowChanging(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  2154. }
  2155. }
  2156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2158. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2159. base.OnRowDeleted(e);
  2160. if ((this.DocumentByServiceRowDeleted != null)) {
  2161. this.DocumentByServiceRowDeleted(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  2162. }
  2163. }
  2164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2166. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2167. base.OnRowDeleting(e);
  2168. if ((this.DocumentByServiceRowDeleting != null)) {
  2169. this.DocumentByServiceRowDeleting(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  2170. }
  2171. }
  2172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2174. public void RemoveDocumentByServiceRow(DocumentByServiceRow row) {
  2175. this.Rows.Remove(row);
  2176. }
  2177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2179. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2180. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2181. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2182. bobrovDemoEgzamenDataSet ds = new bobrovDemoEgzamenDataSet();
  2183. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2184. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2185. any1.MinOccurs = new decimal(0);
  2186. any1.MaxOccurs = decimal.MaxValue;
  2187. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2188. sequence.Items.Add(any1);
  2189. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2190. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2191. any2.MinOccurs = new decimal(1);
  2192. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2193. sequence.Items.Add(any2);
  2194. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2195. attribute1.Name = "namespace";
  2196. attribute1.FixedValue = ds.Namespace;
  2197. type.Attributes.Add(attribute1);
  2198. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2199. attribute2.Name = "tableTypeName";
  2200. attribute2.FixedValue = "DocumentByServiceDataTable";
  2201. type.Attributes.Add(attribute2);
  2202. type.Particle = sequence;
  2203. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2204. if (xs.Contains(dsSchema.TargetNamespace)) {
  2205. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2206. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2207. try {
  2208. global::System.Xml.Schema.XmlSchema schema = null;
  2209. dsSchema.Write(s1);
  2210. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2211. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2212. s2.SetLength(0);
  2213. schema.Write(s2);
  2214. if ((s1.Length == s2.Length)) {
  2215. s1.Position = 0;
  2216. s2.Position = 0;
  2217. for (; ((s1.Position != s1.Length)
  2218. && (s1.ReadByte() == s2.ReadByte())); ) {
  2219. ;
  2220. }
  2221. if ((s1.Position == s1.Length)) {
  2222. return type;
  2223. }
  2224. }
  2225. }
  2226. }
  2227. finally {
  2228. if ((s1 != null)) {
  2229. s1.Close();
  2230. }
  2231. if ((s2 != null)) {
  2232. s2.Close();
  2233. }
  2234. }
  2235. }
  2236. xs.Add(dsSchema);
  2237. return type;
  2238. }
  2239. }
  2240. /// <summary>
  2241. ///Represents the strongly named DataTable class.
  2242. ///</summary>
  2243. [global::System.Serializable()]
  2244. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2245. public partial class GenderDataTable : global::System.Data.TypedTableBase<GenderRow> {
  2246. private global::System.Data.DataColumn columnCode;
  2247. private global::System.Data.DataColumn columnName;
  2248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2250. public GenderDataTable() {
  2251. this.TableName = "Gender";
  2252. this.BeginInit();
  2253. this.InitClass();
  2254. this.EndInit();
  2255. }
  2256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2258. internal GenderDataTable(global::System.Data.DataTable table) {
  2259. this.TableName = table.TableName;
  2260. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2261. this.CaseSensitive = table.CaseSensitive;
  2262. }
  2263. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2264. this.Locale = table.Locale;
  2265. }
  2266. if ((table.Namespace != table.DataSet.Namespace)) {
  2267. this.Namespace = table.Namespace;
  2268. }
  2269. this.Prefix = table.Prefix;
  2270. this.MinimumCapacity = table.MinimumCapacity;
  2271. }
  2272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2274. protected GenderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2275. base(info, context) {
  2276. this.InitVars();
  2277. }
  2278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2280. public global::System.Data.DataColumn CodeColumn {
  2281. get {
  2282. return this.columnCode;
  2283. }
  2284. }
  2285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2287. public global::System.Data.DataColumn NameColumn {
  2288. get {
  2289. return this.columnName;
  2290. }
  2291. }
  2292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2294. [global::System.ComponentModel.Browsable(false)]
  2295. public int Count {
  2296. get {
  2297. return this.Rows.Count;
  2298. }
  2299. }
  2300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2302. public GenderRow this[int index] {
  2303. get {
  2304. return ((GenderRow)(this.Rows[index]));
  2305. }
  2306. }
  2307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2308. public event GenderRowChangeEventHandler GenderRowChanging;
  2309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2310. public event GenderRowChangeEventHandler GenderRowChanged;
  2311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2312. public event GenderRowChangeEventHandler GenderRowDeleting;
  2313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2314. public event GenderRowChangeEventHandler GenderRowDeleted;
  2315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2317. public void AddGenderRow(GenderRow row) {
  2318. this.Rows.Add(row);
  2319. }
  2320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2322. public GenderRow AddGenderRow(string Code, string Name) {
  2323. GenderRow rowGenderRow = ((GenderRow)(this.NewRow()));
  2324. object[] columnValuesArray = new object[] {
  2325. Code,
  2326. Name};
  2327. rowGenderRow.ItemArray = columnValuesArray;
  2328. this.Rows.Add(rowGenderRow);
  2329. return rowGenderRow;
  2330. }
  2331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2333. public GenderRow FindByCode(string Code) {
  2334. return ((GenderRow)(this.Rows.Find(new object[] {
  2335. Code})));
  2336. }
  2337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2339. public override global::System.Data.DataTable Clone() {
  2340. GenderDataTable cln = ((GenderDataTable)(base.Clone()));
  2341. cln.InitVars();
  2342. return cln;
  2343. }
  2344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2346. protected override global::System.Data.DataTable CreateInstance() {
  2347. return new GenderDataTable();
  2348. }
  2349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2351. internal void InitVars() {
  2352. this.columnCode = base.Columns["Code"];
  2353. this.columnName = base.Columns["Name"];
  2354. }
  2355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2357. private void InitClass() {
  2358. this.columnCode = new global::System.Data.DataColumn("Code", typeof(string), null, global::System.Data.MappingType.Element);
  2359. base.Columns.Add(this.columnCode);
  2360. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2361. base.Columns.Add(this.columnName);
  2362. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2363. this.columnCode}, true));
  2364. this.columnCode.AllowDBNull = false;
  2365. this.columnCode.Unique = true;
  2366. this.columnCode.MaxLength = 1;
  2367. this.columnName.MaxLength = 10;
  2368. }
  2369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2371. public GenderRow NewGenderRow() {
  2372. return ((GenderRow)(this.NewRow()));
  2373. }
  2374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2376. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2377. return new GenderRow(builder);
  2378. }
  2379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2381. protected override global::System.Type GetRowType() {
  2382. return typeof(GenderRow);
  2383. }
  2384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2386. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2387. base.OnRowChanged(e);
  2388. if ((this.GenderRowChanged != null)) {
  2389. this.GenderRowChanged(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2390. }
  2391. }
  2392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2394. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2395. base.OnRowChanging(e);
  2396. if ((this.GenderRowChanging != null)) {
  2397. this.GenderRowChanging(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2398. }
  2399. }
  2400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2402. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2403. base.OnRowDeleted(e);
  2404. if ((this.GenderRowDeleted != null)) {
  2405. this.GenderRowDeleted(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2406. }
  2407. }
  2408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2410. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2411. base.OnRowDeleting(e);
  2412. if ((this.GenderRowDeleting != null)) {
  2413. this.GenderRowDeleting(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2414. }
  2415. }
  2416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2418. public void RemoveGenderRow(GenderRow row) {
  2419. this.Rows.Remove(row);
  2420. }
  2421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2423. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2424. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2425. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2426. bobrovDemoEgzamenDataSet ds = new bobrovDemoEgzamenDataSet();
  2427. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2428. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2429. any1.MinOccurs = new decimal(0);
  2430. any1.MaxOccurs = decimal.MaxValue;
  2431. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2432. sequence.Items.Add(any1);
  2433. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2434. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2435. any2.MinOccurs = new decimal(1);
  2436. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2437. sequence.Items.Add(any2);
  2438. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2439. attribute1.Name = "namespace";
  2440. attribute1.FixedValue = ds.Namespace;
  2441. type.Attributes.Add(attribute1);
  2442. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2443. attribute2.Name = "tableTypeName";
  2444. attribute2.FixedValue = "GenderDataTable";
  2445. type.Attributes.Add(attribute2);
  2446. type.Particle = sequence;
  2447. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2448. if (xs.Contains(dsSchema.TargetNamespace)) {
  2449. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2450. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2451. try {
  2452. global::System.Xml.Schema.XmlSchema schema = null;
  2453. dsSchema.Write(s1);
  2454. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2455. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2456. s2.SetLength(0);
  2457. schema.Write(s2);
  2458. if ((s1.Length == s2.Length)) {
  2459. s1.Position = 0;
  2460. s2.Position = 0;
  2461. for (; ((s1.Position != s1.Length)
  2462. && (s1.ReadByte() == s2.ReadByte())); ) {
  2463. ;
  2464. }
  2465. if ((s1.Position == s1.Length)) {
  2466. return type;
  2467. }
  2468. }
  2469. }
  2470. }
  2471. finally {
  2472. if ((s1 != null)) {
  2473. s1.Close();
  2474. }
  2475. if ((s2 != null)) {
  2476. s2.Close();
  2477. }
  2478. }
  2479. }
  2480. xs.Add(dsSchema);
  2481. return type;
  2482. }
  2483. }
  2484. /// <summary>
  2485. ///Represents the strongly named DataTable class.
  2486. ///</summary>
  2487. [global::System.Serializable()]
  2488. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2489. public partial class ManufacturerDataTable : global::System.Data.TypedTableBase<ManufacturerRow> {
  2490. private global::System.Data.DataColumn columnID;
  2491. private global::System.Data.DataColumn columnName;
  2492. private global::System.Data.DataColumn columnStartDate;
  2493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2495. public ManufacturerDataTable() {
  2496. this.TableName = "Manufacturer";
  2497. this.BeginInit();
  2498. this.InitClass();
  2499. this.EndInit();
  2500. }
  2501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2503. internal ManufacturerDataTable(global::System.Data.DataTable table) {
  2504. this.TableName = table.TableName;
  2505. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2506. this.CaseSensitive = table.CaseSensitive;
  2507. }
  2508. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2509. this.Locale = table.Locale;
  2510. }
  2511. if ((table.Namespace != table.DataSet.Namespace)) {
  2512. this.Namespace = table.Namespace;
  2513. }
  2514. this.Prefix = table.Prefix;
  2515. this.MinimumCapacity = table.MinimumCapacity;
  2516. }
  2517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2519. protected ManufacturerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2520. base(info, context) {
  2521. this.InitVars();
  2522. }
  2523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2525. public global::System.Data.DataColumn IDColumn {
  2526. get {
  2527. return this.columnID;
  2528. }
  2529. }
  2530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2532. public global::System.Data.DataColumn NameColumn {
  2533. get {
  2534. return this.columnName;
  2535. }
  2536. }
  2537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2539. public global::System.Data.DataColumn StartDateColumn {
  2540. get {
  2541. return this.columnStartDate;
  2542. }
  2543. }
  2544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2546. [global::System.ComponentModel.Browsable(false)]
  2547. public int Count {
  2548. get {
  2549. return this.Rows.Count;
  2550. }
  2551. }
  2552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2554. public ManufacturerRow this[int index] {
  2555. get {
  2556. return ((ManufacturerRow)(this.Rows[index]));
  2557. }
  2558. }
  2559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2560. public event ManufacturerRowChangeEventHandler ManufacturerRowChanging;
  2561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2562. public event ManufacturerRowChangeEventHandler ManufacturerRowChanged;
  2563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2564. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleting;
  2565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2566. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleted;
  2567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2569. public void AddManufacturerRow(ManufacturerRow row) {
  2570. this.Rows.Add(row);
  2571. }
  2572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2574. public ManufacturerRow AddManufacturerRow(string Name, System.DateTime StartDate) {
  2575. ManufacturerRow rowManufacturerRow = ((ManufacturerRow)(this.NewRow()));
  2576. object[] columnValuesArray = new object[] {
  2577. null,
  2578. Name,
  2579. StartDate};
  2580. rowManufacturerRow.ItemArray = columnValuesArray;
  2581. this.Rows.Add(rowManufacturerRow);
  2582. return rowManufacturerRow;
  2583. }
  2584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2586. public ManufacturerRow FindByID(int ID) {
  2587. return ((ManufacturerRow)(this.Rows.Find(new object[] {
  2588. ID})));
  2589. }
  2590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2592. public override global::System.Data.DataTable Clone() {
  2593. ManufacturerDataTable cln = ((ManufacturerDataTable)(base.Clone()));
  2594. cln.InitVars();
  2595. return cln;
  2596. }
  2597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2599. protected override global::System.Data.DataTable CreateInstance() {
  2600. return new ManufacturerDataTable();
  2601. }
  2602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2604. internal void InitVars() {
  2605. this.columnID = base.Columns["ID"];
  2606. this.columnName = base.Columns["Name"];
  2607. this.columnStartDate = base.Columns["StartDate"];
  2608. }
  2609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2611. private void InitClass() {
  2612. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2613. base.Columns.Add(this.columnID);
  2614. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2615. base.Columns.Add(this.columnName);
  2616. this.columnStartDate = new global::System.Data.DataColumn("StartDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2617. base.Columns.Add(this.columnStartDate);
  2618. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2619. this.columnID}, true));
  2620. this.columnID.AutoIncrement = true;
  2621. this.columnID.AutoIncrementSeed = -1;
  2622. this.columnID.AutoIncrementStep = -1;
  2623. this.columnID.AllowDBNull = false;
  2624. this.columnID.ReadOnly = true;
  2625. this.columnID.Unique = true;
  2626. this.columnName.AllowDBNull = false;
  2627. this.columnName.MaxLength = 100;
  2628. }
  2629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2631. public ManufacturerRow NewManufacturerRow() {
  2632. return ((ManufacturerRow)(this.NewRow()));
  2633. }
  2634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2636. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2637. return new ManufacturerRow(builder);
  2638. }
  2639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2641. protected override global::System.Type GetRowType() {
  2642. return typeof(ManufacturerRow);
  2643. }
  2644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2646. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2647. base.OnRowChanged(e);
  2648. if ((this.ManufacturerRowChanged != null)) {
  2649. this.ManufacturerRowChanged(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2650. }
  2651. }
  2652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2654. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2655. base.OnRowChanging(e);
  2656. if ((this.ManufacturerRowChanging != null)) {
  2657. this.ManufacturerRowChanging(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2658. }
  2659. }
  2660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2662. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2663. base.OnRowDeleted(e);
  2664. if ((this.ManufacturerRowDeleted != null)) {
  2665. this.ManufacturerRowDeleted(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2666. }
  2667. }
  2668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2670. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2671. base.OnRowDeleting(e);
  2672. if ((this.ManufacturerRowDeleting != null)) {
  2673. this.ManufacturerRowDeleting(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2674. }
  2675. }
  2676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2678. public void RemoveManufacturerRow(ManufacturerRow row) {
  2679. this.Rows.Remove(row);
  2680. }
  2681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2683. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2684. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2685. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2686. bobrovDemoEgzamenDataSet ds = new bobrovDemoEgzamenDataSet();
  2687. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2688. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2689. any1.MinOccurs = new decimal(0);
  2690. any1.MaxOccurs = decimal.MaxValue;
  2691. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2692. sequence.Items.Add(any1);
  2693. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2694. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2695. any2.MinOccurs = new decimal(1);
  2696. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2697. sequence.Items.Add(any2);
  2698. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2699. attribute1.Name = "namespace";
  2700. attribute1.FixedValue = ds.Namespace;
  2701. type.Attributes.Add(attribute1);
  2702. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2703. attribute2.Name = "tableTypeName";
  2704. attribute2.FixedValue = "ManufacturerDataTable";
  2705. type.Attributes.Add(attribute2);
  2706. type.Particle = sequence;
  2707. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2708. if (xs.Contains(dsSchema.TargetNamespace)) {
  2709. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2710. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2711. try {
  2712. global::System.Xml.Schema.XmlSchema schema = null;
  2713. dsSchema.Write(s1);
  2714. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2715. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2716. s2.SetLength(0);
  2717. schema.Write(s2);
  2718. if ((s1.Length == s2.Length)) {
  2719. s1.Position = 0;
  2720. s2.Position = 0;
  2721. for (; ((s1.Position != s1.Length)
  2722. && (s1.ReadByte() == s2.ReadByte())); ) {
  2723. ;
  2724. }
  2725. if ((s1.Position == s1.Length)) {
  2726. return type;
  2727. }
  2728. }
  2729. }
  2730. }
  2731. finally {
  2732. if ((s1 != null)) {
  2733. s1.Close();
  2734. }
  2735. if ((s2 != null)) {
  2736. s2.Close();
  2737. }
  2738. }
  2739. }
  2740. xs.Add(dsSchema);
  2741. return type;
  2742. }
  2743. }
  2744. /// <summary>
  2745. ///Represents the strongly named DataTable class.
  2746. ///</summary>
  2747. [global::System.Serializable()]
  2748. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2749. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  2750. private global::System.Data.DataColumn columnID;
  2751. private global::System.Data.DataColumn columnTitle;
  2752. private global::System.Data.DataColumn columnCost;
  2753. private global::System.Data.DataColumn columnDescription;
  2754. private global::System.Data.DataColumn columnMainImagePath;
  2755. private global::System.Data.DataColumn columnIsActive;
  2756. private global::System.Data.DataColumn columnManufacturerID;
  2757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2759. public ProductDataTable() {
  2760. this.TableName = "Product";
  2761. this.BeginInit();
  2762. this.InitClass();
  2763. this.EndInit();
  2764. }
  2765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2767. internal ProductDataTable(global::System.Data.DataTable table) {
  2768. this.TableName = table.TableName;
  2769. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2770. this.CaseSensitive = table.CaseSensitive;
  2771. }
  2772. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2773. this.Locale = table.Locale;
  2774. }
  2775. if ((table.Namespace != table.DataSet.Namespace)) {
  2776. this.Namespace = table.Namespace;
  2777. }
  2778. this.Prefix = table.Prefix;
  2779. this.MinimumCapacity = table.MinimumCapacity;
  2780. }
  2781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2783. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2784. base(info, context) {
  2785. this.InitVars();
  2786. }
  2787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2789. public global::System.Data.DataColumn IDColumn {
  2790. get {
  2791. return this.columnID;
  2792. }
  2793. }
  2794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2796. public global::System.Data.DataColumn TitleColumn {
  2797. get {
  2798. return this.columnTitle;
  2799. }
  2800. }
  2801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2803. public global::System.Data.DataColumn CostColumn {
  2804. get {
  2805. return this.columnCost;
  2806. }
  2807. }
  2808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2810. public global::System.Data.DataColumn DescriptionColumn {
  2811. get {
  2812. return this.columnDescription;
  2813. }
  2814. }
  2815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2817. public global::System.Data.DataColumn MainImagePathColumn {
  2818. get {
  2819. return this.columnMainImagePath;
  2820. }
  2821. }
  2822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2824. public global::System.Data.DataColumn IsActiveColumn {
  2825. get {
  2826. return this.columnIsActive;
  2827. }
  2828. }
  2829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2831. public global::System.Data.DataColumn ManufacturerIDColumn {
  2832. get {
  2833. return this.columnManufacturerID;
  2834. }
  2835. }
  2836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2838. [global::System.ComponentModel.Browsable(false)]
  2839. public int Count {
  2840. get {
  2841. return this.Rows.Count;
  2842. }
  2843. }
  2844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2846. public ProductRow this[int index] {
  2847. get {
  2848. return ((ProductRow)(this.Rows[index]));
  2849. }
  2850. }
  2851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2852. public event ProductRowChangeEventHandler ProductRowChanging;
  2853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2854. public event ProductRowChangeEventHandler ProductRowChanged;
  2855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2856. public event ProductRowChangeEventHandler ProductRowDeleting;
  2857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2858. public event ProductRowChangeEventHandler ProductRowDeleted;
  2859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2861. public void AddProductRow(ProductRow row) {
  2862. this.Rows.Add(row);
  2863. }
  2864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2866. public ProductRow AddProductRow(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, ManufacturerRow parentManufacturerRowByFK_Product_Manufacturer) {
  2867. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  2868. object[] columnValuesArray = new object[] {
  2869. null,
  2870. Title,
  2871. Cost,
  2872. Description,
  2873. MainImagePath,
  2874. IsActive,
  2875. null};
  2876. if ((parentManufacturerRowByFK_Product_Manufacturer != null)) {
  2877. columnValuesArray[6] = parentManufacturerRowByFK_Product_Manufacturer[0];
  2878. }
  2879. rowProductRow.ItemArray = columnValuesArray;
  2880. this.Rows.Add(rowProductRow);
  2881. return rowProductRow;
  2882. }
  2883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2885. public ProductRow FindByID(int ID) {
  2886. return ((ProductRow)(this.Rows.Find(new object[] {
  2887. ID})));
  2888. }
  2889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2891. public override global::System.Data.DataTable Clone() {
  2892. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  2893. cln.InitVars();
  2894. return cln;
  2895. }
  2896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2898. protected override global::System.Data.DataTable CreateInstance() {
  2899. return new ProductDataTable();
  2900. }
  2901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2903. internal void InitVars() {
  2904. this.columnID = base.Columns["ID"];
  2905. this.columnTitle = base.Columns["Title"];
  2906. this.columnCost = base.Columns["Cost"];
  2907. this.columnDescription = base.Columns["Description"];
  2908. this.columnMainImagePath = base.Columns["MainImagePath"];
  2909. this.columnIsActive = base.Columns["IsActive"];
  2910. this.columnManufacturerID = base.Columns["ManufacturerID"];
  2911. }
  2912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2914. private void InitClass() {
  2915. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2916. base.Columns.Add(this.columnID);
  2917. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2918. base.Columns.Add(this.columnTitle);
  2919. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2920. base.Columns.Add(this.columnCost);
  2921. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  2922. base.Columns.Add(this.columnDescription);
  2923. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  2924. base.Columns.Add(this.columnMainImagePath);
  2925. this.columnIsActive = new global::System.Data.DataColumn("IsActive", typeof(bool), null, global::System.Data.MappingType.Element);
  2926. base.Columns.Add(this.columnIsActive);
  2927. this.columnManufacturerID = new global::System.Data.DataColumn("ManufacturerID", typeof(int), null, global::System.Data.MappingType.Element);
  2928. base.Columns.Add(this.columnManufacturerID);
  2929. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2930. this.columnID}, true));
  2931. this.columnID.AutoIncrement = true;
  2932. this.columnID.AutoIncrementSeed = -1;
  2933. this.columnID.AutoIncrementStep = -1;
  2934. this.columnID.AllowDBNull = false;
  2935. this.columnID.ReadOnly = true;
  2936. this.columnID.Unique = true;
  2937. this.columnTitle.AllowDBNull = false;
  2938. this.columnTitle.MaxLength = 100;
  2939. this.columnCost.AllowDBNull = false;
  2940. this.columnDescription.MaxLength = 2147483647;
  2941. this.columnMainImagePath.MaxLength = 1000;
  2942. this.columnIsActive.AllowDBNull = false;
  2943. }
  2944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2946. public ProductRow NewProductRow() {
  2947. return ((ProductRow)(this.NewRow()));
  2948. }
  2949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2951. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2952. return new ProductRow(builder);
  2953. }
  2954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2956. protected override global::System.Type GetRowType() {
  2957. return typeof(ProductRow);
  2958. }
  2959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2961. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2962. base.OnRowChanged(e);
  2963. if ((this.ProductRowChanged != null)) {
  2964. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2965. }
  2966. }
  2967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2969. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2970. base.OnRowChanging(e);
  2971. if ((this.ProductRowChanging != null)) {
  2972. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2973. }
  2974. }
  2975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2977. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2978. base.OnRowDeleted(e);
  2979. if ((this.ProductRowDeleted != null)) {
  2980. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2981. }
  2982. }
  2983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2985. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2986. base.OnRowDeleting(e);
  2987. if ((this.ProductRowDeleting != null)) {
  2988. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2989. }
  2990. }
  2991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2993. public void RemoveProductRow(ProductRow row) {
  2994. this.Rows.Remove(row);
  2995. }
  2996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2998. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2999. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3000. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3001. bobrovDemoEgzamenDataSet ds = new bobrovDemoEgzamenDataSet();
  3002. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3003. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3004. any1.MinOccurs = new decimal(0);
  3005. any1.MaxOccurs = decimal.MaxValue;
  3006. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3007. sequence.Items.Add(any1);
  3008. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3009. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3010. any2.MinOccurs = new decimal(1);
  3011. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3012. sequence.Items.Add(any2);
  3013. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3014. attribute1.Name = "namespace";
  3015. attribute1.FixedValue = ds.Namespace;
  3016. type.Attributes.Add(attribute1);
  3017. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3018. attribute2.Name = "tableTypeName";
  3019. attribute2.FixedValue = "ProductDataTable";
  3020. type.Attributes.Add(attribute2);
  3021. type.Particle = sequence;
  3022. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3023. if (xs.Contains(dsSchema.TargetNamespace)) {
  3024. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3025. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3026. try {
  3027. global::System.Xml.Schema.XmlSchema schema = null;
  3028. dsSchema.Write(s1);
  3029. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3030. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3031. s2.SetLength(0);
  3032. schema.Write(s2);
  3033. if ((s1.Length == s2.Length)) {
  3034. s1.Position = 0;
  3035. s2.Position = 0;
  3036. for (; ((s1.Position != s1.Length)
  3037. && (s1.ReadByte() == s2.ReadByte())); ) {
  3038. ;
  3039. }
  3040. if ((s1.Position == s1.Length)) {
  3041. return type;
  3042. }
  3043. }
  3044. }
  3045. }
  3046. finally {
  3047. if ((s1 != null)) {
  3048. s1.Close();
  3049. }
  3050. if ((s2 != null)) {
  3051. s2.Close();
  3052. }
  3053. }
  3054. }
  3055. xs.Add(dsSchema);
  3056. return type;
  3057. }
  3058. }
  3059. /// <summary>
  3060. ///Represents the strongly named DataTable class.
  3061. ///</summary>
  3062. [global::System.Serializable()]
  3063. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3064. public partial class ProductPhotoDataTable : global::System.Data.TypedTableBase<ProductPhotoRow> {
  3065. private global::System.Data.DataColumn columnID;
  3066. private global::System.Data.DataColumn columnProductID;
  3067. private global::System.Data.DataColumn columnPhotoPath;
  3068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3070. public ProductPhotoDataTable() {
  3071. this.TableName = "ProductPhoto";
  3072. this.BeginInit();
  3073. this.InitClass();
  3074. this.EndInit();
  3075. }
  3076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3078. internal ProductPhotoDataTable(global::System.Data.DataTable table) {
  3079. this.TableName = table.TableName;
  3080. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3081. this.CaseSensitive = table.CaseSensitive;
  3082. }
  3083. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3084. this.Locale = table.Locale;
  3085. }
  3086. if ((table.Namespace != table.DataSet.Namespace)) {
  3087. this.Namespace = table.Namespace;
  3088. }
  3089. this.Prefix = table.Prefix;
  3090. this.MinimumCapacity = table.MinimumCapacity;
  3091. }
  3092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3094. protected ProductPhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3095. base(info, context) {
  3096. this.InitVars();
  3097. }
  3098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3100. public global::System.Data.DataColumn IDColumn {
  3101. get {
  3102. return this.columnID;
  3103. }
  3104. }
  3105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3107. public global::System.Data.DataColumn ProductIDColumn {
  3108. get {
  3109. return this.columnProductID;
  3110. }
  3111. }
  3112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3114. public global::System.Data.DataColumn PhotoPathColumn {
  3115. get {
  3116. return this.columnPhotoPath;
  3117. }
  3118. }
  3119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3121. [global::System.ComponentModel.Browsable(false)]
  3122. public int Count {
  3123. get {
  3124. return this.Rows.Count;
  3125. }
  3126. }
  3127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3129. public ProductPhotoRow this[int index] {
  3130. get {
  3131. return ((ProductPhotoRow)(this.Rows[index]));
  3132. }
  3133. }
  3134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3135. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanging;
  3136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3137. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanged;
  3138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3139. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleting;
  3140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3141. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleted;
  3142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3144. public void AddProductPhotoRow(ProductPhotoRow row) {
  3145. this.Rows.Add(row);
  3146. }
  3147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3149. public ProductPhotoRow AddProductPhotoRow(ProductRow parentProductRowByFK_ProductPhoto_Product, string PhotoPath) {
  3150. ProductPhotoRow rowProductPhotoRow = ((ProductPhotoRow)(this.NewRow()));
  3151. object[] columnValuesArray = new object[] {
  3152. null,
  3153. null,
  3154. PhotoPath};
  3155. if ((parentProductRowByFK_ProductPhoto_Product != null)) {
  3156. columnValuesArray[1] = parentProductRowByFK_ProductPhoto_Product[0];
  3157. }
  3158. rowProductPhotoRow.ItemArray = columnValuesArray;
  3159. this.Rows.Add(rowProductPhotoRow);
  3160. return rowProductPhotoRow;
  3161. }
  3162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3164. public ProductPhotoRow FindByID(int ID) {
  3165. return ((ProductPhotoRow)(this.Rows.Find(new object[] {
  3166. ID})));
  3167. }
  3168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3170. public override global::System.Data.DataTable Clone() {
  3171. ProductPhotoDataTable cln = ((ProductPhotoDataTable)(base.Clone()));
  3172. cln.InitVars();
  3173. return cln;
  3174. }
  3175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3177. protected override global::System.Data.DataTable CreateInstance() {
  3178. return new ProductPhotoDataTable();
  3179. }
  3180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3182. internal void InitVars() {
  3183. this.columnID = base.Columns["ID"];
  3184. this.columnProductID = base.Columns["ProductID"];
  3185. this.columnPhotoPath = base.Columns["PhotoPath"];
  3186. }
  3187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3189. private void InitClass() {
  3190. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3191. base.Columns.Add(this.columnID);
  3192. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3193. base.Columns.Add(this.columnProductID);
  3194. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  3195. base.Columns.Add(this.columnPhotoPath);
  3196. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3197. this.columnID}, true));
  3198. this.columnID.AutoIncrement = true;
  3199. this.columnID.AutoIncrementSeed = -1;
  3200. this.columnID.AutoIncrementStep = -1;
  3201. this.columnID.AllowDBNull = false;
  3202. this.columnID.ReadOnly = true;
  3203. this.columnID.Unique = true;
  3204. this.columnProductID.AllowDBNull = false;
  3205. this.columnPhotoPath.AllowDBNull = false;
  3206. this.columnPhotoPath.MaxLength = 1000;
  3207. }
  3208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3210. public ProductPhotoRow NewProductPhotoRow() {
  3211. return ((ProductPhotoRow)(this.NewRow()));
  3212. }
  3213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3215. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3216. return new ProductPhotoRow(builder);
  3217. }
  3218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3220. protected override global::System.Type GetRowType() {
  3221. return typeof(ProductPhotoRow);
  3222. }
  3223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3225. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3226. base.OnRowChanged(e);
  3227. if ((this.ProductPhotoRowChanged != null)) {
  3228. this.ProductPhotoRowChanged(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  3229. }
  3230. }
  3231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3233. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3234. base.OnRowChanging(e);
  3235. if ((this.ProductPhotoRowChanging != null)) {
  3236. this.ProductPhotoRowChanging(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  3237. }
  3238. }
  3239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3241. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3242. base.OnRowDeleted(e);
  3243. if ((this.ProductPhotoRowDeleted != null)) {
  3244. this.ProductPhotoRowDeleted(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  3245. }
  3246. }
  3247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3249. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3250. base.OnRowDeleting(e);
  3251. if ((this.ProductPhotoRowDeleting != null)) {
  3252. this.ProductPhotoRowDeleting(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  3253. }
  3254. }
  3255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3257. public void RemoveProductPhotoRow(ProductPhotoRow row) {
  3258. this.Rows.Remove(row);
  3259. }
  3260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3262. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3263. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3264. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3265. bobrovDemoEgzamenDataSet ds = new bobrovDemoEgzamenDataSet();
  3266. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3267. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3268. any1.MinOccurs = new decimal(0);
  3269. any1.MaxOccurs = decimal.MaxValue;
  3270. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3271. sequence.Items.Add(any1);
  3272. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3273. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3274. any2.MinOccurs = new decimal(1);
  3275. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3276. sequence.Items.Add(any2);
  3277. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3278. attribute1.Name = "namespace";
  3279. attribute1.FixedValue = ds.Namespace;
  3280. type.Attributes.Add(attribute1);
  3281. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3282. attribute2.Name = "tableTypeName";
  3283. attribute2.FixedValue = "ProductPhotoDataTable";
  3284. type.Attributes.Add(attribute2);
  3285. type.Particle = sequence;
  3286. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3287. if (xs.Contains(dsSchema.TargetNamespace)) {
  3288. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3289. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3290. try {
  3291. global::System.Xml.Schema.XmlSchema schema = null;
  3292. dsSchema.Write(s1);
  3293. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3294. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3295. s2.SetLength(0);
  3296. schema.Write(s2);
  3297. if ((s1.Length == s2.Length)) {
  3298. s1.Position = 0;
  3299. s2.Position = 0;
  3300. for (; ((s1.Position != s1.Length)
  3301. && (s1.ReadByte() == s2.ReadByte())); ) {
  3302. ;
  3303. }
  3304. if ((s1.Position == s1.Length)) {
  3305. return type;
  3306. }
  3307. }
  3308. }
  3309. }
  3310. finally {
  3311. if ((s1 != null)) {
  3312. s1.Close();
  3313. }
  3314. if ((s2 != null)) {
  3315. s2.Close();
  3316. }
  3317. }
  3318. }
  3319. xs.Add(dsSchema);
  3320. return type;
  3321. }
  3322. }
  3323. /// <summary>
  3324. ///Represents the strongly named DataTable class.
  3325. ///</summary>
  3326. [global::System.Serializable()]
  3327. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3328. public partial class ProductSaleDataTable : global::System.Data.TypedTableBase<ProductSaleRow> {
  3329. private global::System.Data.DataColumn columnID;
  3330. private global::System.Data.DataColumn columnSaleDate;
  3331. private global::System.Data.DataColumn columnProductID;
  3332. private global::System.Data.DataColumn columnQuantity;
  3333. private global::System.Data.DataColumn columnClientServiceID;
  3334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3336. public ProductSaleDataTable() {
  3337. this.TableName = "ProductSale";
  3338. this.BeginInit();
  3339. this.InitClass();
  3340. this.EndInit();
  3341. }
  3342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3344. internal ProductSaleDataTable(global::System.Data.DataTable table) {
  3345. this.TableName = table.TableName;
  3346. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3347. this.CaseSensitive = table.CaseSensitive;
  3348. }
  3349. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3350. this.Locale = table.Locale;
  3351. }
  3352. if ((table.Namespace != table.DataSet.Namespace)) {
  3353. this.Namespace = table.Namespace;
  3354. }
  3355. this.Prefix = table.Prefix;
  3356. this.MinimumCapacity = table.MinimumCapacity;
  3357. }
  3358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3360. protected ProductSaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3361. base(info, context) {
  3362. this.InitVars();
  3363. }
  3364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3366. public global::System.Data.DataColumn IDColumn {
  3367. get {
  3368. return this.columnID;
  3369. }
  3370. }
  3371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3373. public global::System.Data.DataColumn SaleDateColumn {
  3374. get {
  3375. return this.columnSaleDate;
  3376. }
  3377. }
  3378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3380. public global::System.Data.DataColumn ProductIDColumn {
  3381. get {
  3382. return this.columnProductID;
  3383. }
  3384. }
  3385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3387. public global::System.Data.DataColumn QuantityColumn {
  3388. get {
  3389. return this.columnQuantity;
  3390. }
  3391. }
  3392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3394. public global::System.Data.DataColumn ClientServiceIDColumn {
  3395. get {
  3396. return this.columnClientServiceID;
  3397. }
  3398. }
  3399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3401. [global::System.ComponentModel.Browsable(false)]
  3402. public int Count {
  3403. get {
  3404. return this.Rows.Count;
  3405. }
  3406. }
  3407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3409. public ProductSaleRow this[int index] {
  3410. get {
  3411. return ((ProductSaleRow)(this.Rows[index]));
  3412. }
  3413. }
  3414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3415. public event ProductSaleRowChangeEventHandler ProductSaleRowChanging;
  3416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3417. public event ProductSaleRowChangeEventHandler ProductSaleRowChanged;
  3418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3419. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleting;
  3420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3421. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleted;
  3422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3424. public void AddProductSaleRow(ProductSaleRow row) {
  3425. this.Rows.Add(row);
  3426. }
  3427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3429. public ProductSaleRow AddProductSaleRow(System.DateTime SaleDate, ProductRow parentProductRowByFK_ProductSale_Product, int Quantity, ClientServiceRow parentClientServiceRowByFK_ProductSale_ClientService) {
  3430. ProductSaleRow rowProductSaleRow = ((ProductSaleRow)(this.NewRow()));
  3431. object[] columnValuesArray = new object[] {
  3432. null,
  3433. SaleDate,
  3434. null,
  3435. Quantity,
  3436. null};
  3437. if ((parentProductRowByFK_ProductSale_Product != null)) {
  3438. columnValuesArray[2] = parentProductRowByFK_ProductSale_Product[0];
  3439. }
  3440. if ((parentClientServiceRowByFK_ProductSale_ClientService != null)) {
  3441. columnValuesArray[4] = parentClientServiceRowByFK_ProductSale_ClientService[0];
  3442. }
  3443. rowProductSaleRow.ItemArray = columnValuesArray;
  3444. this.Rows.Add(rowProductSaleRow);
  3445. return rowProductSaleRow;
  3446. }
  3447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3449. public ProductSaleRow FindByID(int ID) {
  3450. return ((ProductSaleRow)(this.Rows.Find(new object[] {
  3451. ID})));
  3452. }
  3453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3455. public override global::System.Data.DataTable Clone() {
  3456. ProductSaleDataTable cln = ((ProductSaleDataTable)(base.Clone()));
  3457. cln.InitVars();
  3458. return cln;
  3459. }
  3460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3462. protected override global::System.Data.DataTable CreateInstance() {
  3463. return new ProductSaleDataTable();
  3464. }
  3465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3467. internal void InitVars() {
  3468. this.columnID = base.Columns["ID"];
  3469. this.columnSaleDate = base.Columns["SaleDate"];
  3470. this.columnProductID = base.Columns["ProductID"];
  3471. this.columnQuantity = base.Columns["Quantity"];
  3472. this.columnClientServiceID = base.Columns["ClientServiceID"];
  3473. }
  3474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3476. private void InitClass() {
  3477. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3478. base.Columns.Add(this.columnID);
  3479. this.columnSaleDate = new global::System.Data.DataColumn("SaleDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3480. base.Columns.Add(this.columnSaleDate);
  3481. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3482. base.Columns.Add(this.columnProductID);
  3483. this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
  3484. base.Columns.Add(this.columnQuantity);
  3485. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3486. base.Columns.Add(this.columnClientServiceID);
  3487. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3488. this.columnID}, true));
  3489. this.columnID.AutoIncrement = true;
  3490. this.columnID.AutoIncrementSeed = -1;
  3491. this.columnID.AutoIncrementStep = -1;
  3492. this.columnID.AllowDBNull = false;
  3493. this.columnID.ReadOnly = true;
  3494. this.columnID.Unique = true;
  3495. this.columnSaleDate.AllowDBNull = false;
  3496. this.columnProductID.AllowDBNull = false;
  3497. this.columnQuantity.AllowDBNull = false;
  3498. }
  3499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3501. public ProductSaleRow NewProductSaleRow() {
  3502. return ((ProductSaleRow)(this.NewRow()));
  3503. }
  3504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3506. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3507. return new ProductSaleRow(builder);
  3508. }
  3509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3511. protected override global::System.Type GetRowType() {
  3512. return typeof(ProductSaleRow);
  3513. }
  3514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3516. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3517. base.OnRowChanged(e);
  3518. if ((this.ProductSaleRowChanged != null)) {
  3519. this.ProductSaleRowChanged(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3520. }
  3521. }
  3522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3524. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3525. base.OnRowChanging(e);
  3526. if ((this.ProductSaleRowChanging != null)) {
  3527. this.ProductSaleRowChanging(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3528. }
  3529. }
  3530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3532. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3533. base.OnRowDeleted(e);
  3534. if ((this.ProductSaleRowDeleted != null)) {
  3535. this.ProductSaleRowDeleted(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3536. }
  3537. }
  3538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3540. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3541. base.OnRowDeleting(e);
  3542. if ((this.ProductSaleRowDeleting != null)) {
  3543. this.ProductSaleRowDeleting(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3544. }
  3545. }
  3546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3548. public void RemoveProductSaleRow(ProductSaleRow row) {
  3549. this.Rows.Remove(row);
  3550. }
  3551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3553. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3554. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3555. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3556. bobrovDemoEgzamenDataSet ds = new bobrovDemoEgzamenDataSet();
  3557. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3558. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3559. any1.MinOccurs = new decimal(0);
  3560. any1.MaxOccurs = decimal.MaxValue;
  3561. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3562. sequence.Items.Add(any1);
  3563. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3564. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3565. any2.MinOccurs = new decimal(1);
  3566. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3567. sequence.Items.Add(any2);
  3568. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3569. attribute1.Name = "namespace";
  3570. attribute1.FixedValue = ds.Namespace;
  3571. type.Attributes.Add(attribute1);
  3572. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3573. attribute2.Name = "tableTypeName";
  3574. attribute2.FixedValue = "ProductSaleDataTable";
  3575. type.Attributes.Add(attribute2);
  3576. type.Particle = sequence;
  3577. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3578. if (xs.Contains(dsSchema.TargetNamespace)) {
  3579. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3580. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3581. try {
  3582. global::System.Xml.Schema.XmlSchema schema = null;
  3583. dsSchema.Write(s1);
  3584. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3585. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3586. s2.SetLength(0);
  3587. schema.Write(s2);
  3588. if ((s1.Length == s2.Length)) {
  3589. s1.Position = 0;
  3590. s2.Position = 0;
  3591. for (; ((s1.Position != s1.Length)
  3592. && (s1.ReadByte() == s2.ReadByte())); ) {
  3593. ;
  3594. }
  3595. if ((s1.Position == s1.Length)) {
  3596. return type;
  3597. }
  3598. }
  3599. }
  3600. }
  3601. finally {
  3602. if ((s1 != null)) {
  3603. s1.Close();
  3604. }
  3605. if ((s2 != null)) {
  3606. s2.Close();
  3607. }
  3608. }
  3609. }
  3610. xs.Add(dsSchema);
  3611. return type;
  3612. }
  3613. }
  3614. /// <summary>
  3615. ///Represents the strongly named DataTable class.
  3616. ///</summary>
  3617. [global::System.Serializable()]
  3618. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3619. public partial class ServiceDataTable : global::System.Data.TypedTableBase<ServiceRow> {
  3620. private global::System.Data.DataColumn columnID;
  3621. private global::System.Data.DataColumn columnTitle;
  3622. private global::System.Data.DataColumn columnCost;
  3623. private global::System.Data.DataColumn columnDurationInSeconds;
  3624. private global::System.Data.DataColumn columnDescription;
  3625. private global::System.Data.DataColumn columnDiscount;
  3626. private global::System.Data.DataColumn columnMainImagePath;
  3627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3629. public ServiceDataTable() {
  3630. this.TableName = "Service";
  3631. this.BeginInit();
  3632. this.InitClass();
  3633. this.EndInit();
  3634. }
  3635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3637. internal ServiceDataTable(global::System.Data.DataTable table) {
  3638. this.TableName = table.TableName;
  3639. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3640. this.CaseSensitive = table.CaseSensitive;
  3641. }
  3642. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3643. this.Locale = table.Locale;
  3644. }
  3645. if ((table.Namespace != table.DataSet.Namespace)) {
  3646. this.Namespace = table.Namespace;
  3647. }
  3648. this.Prefix = table.Prefix;
  3649. this.MinimumCapacity = table.MinimumCapacity;
  3650. }
  3651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3653. protected ServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3654. base(info, context) {
  3655. this.InitVars();
  3656. }
  3657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3659. public global::System.Data.DataColumn IDColumn {
  3660. get {
  3661. return this.columnID;
  3662. }
  3663. }
  3664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3666. public global::System.Data.DataColumn TitleColumn {
  3667. get {
  3668. return this.columnTitle;
  3669. }
  3670. }
  3671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3673. public global::System.Data.DataColumn CostColumn {
  3674. get {
  3675. return this.columnCost;
  3676. }
  3677. }
  3678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3680. public global::System.Data.DataColumn DurationInSecondsColumn {
  3681. get {
  3682. return this.columnDurationInSeconds;
  3683. }
  3684. }
  3685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3687. public global::System.Data.DataColumn DescriptionColumn {
  3688. get {
  3689. return this.columnDescription;
  3690. }
  3691. }
  3692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3694. public global::System.Data.DataColumn DiscountColumn {
  3695. get {
  3696. return this.columnDiscount;
  3697. }
  3698. }
  3699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3701. public global::System.Data.DataColumn MainImagePathColumn {
  3702. get {
  3703. return this.columnMainImagePath;
  3704. }
  3705. }
  3706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3708. [global::System.ComponentModel.Browsable(false)]
  3709. public int Count {
  3710. get {
  3711. return this.Rows.Count;
  3712. }
  3713. }
  3714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3716. public ServiceRow this[int index] {
  3717. get {
  3718. return ((ServiceRow)(this.Rows[index]));
  3719. }
  3720. }
  3721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3722. public event ServiceRowChangeEventHandler ServiceRowChanging;
  3723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3724. public event ServiceRowChangeEventHandler ServiceRowChanged;
  3725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3726. public event ServiceRowChangeEventHandler ServiceRowDeleting;
  3727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3728. public event ServiceRowChangeEventHandler ServiceRowDeleted;
  3729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3731. public void AddServiceRow(ServiceRow row) {
  3732. this.Rows.Add(row);
  3733. }
  3734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3736. public ServiceRow AddServiceRow(string Title, decimal Cost, int DurationInSeconds, string Description, double Discount, string MainImagePath) {
  3737. ServiceRow rowServiceRow = ((ServiceRow)(this.NewRow()));
  3738. object[] columnValuesArray = new object[] {
  3739. null,
  3740. Title,
  3741. Cost,
  3742. DurationInSeconds,
  3743. Description,
  3744. Discount,
  3745. MainImagePath};
  3746. rowServiceRow.ItemArray = columnValuesArray;
  3747. this.Rows.Add(rowServiceRow);
  3748. return rowServiceRow;
  3749. }
  3750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3752. public ServiceRow FindByID(int ID) {
  3753. return ((ServiceRow)(this.Rows.Find(new object[] {
  3754. ID})));
  3755. }
  3756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3758. public override global::System.Data.DataTable Clone() {
  3759. ServiceDataTable cln = ((ServiceDataTable)(base.Clone()));
  3760. cln.InitVars();
  3761. return cln;
  3762. }
  3763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3765. protected override global::System.Data.DataTable CreateInstance() {
  3766. return new ServiceDataTable();
  3767. }
  3768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3770. internal void InitVars() {
  3771. this.columnID = base.Columns["ID"];
  3772. this.columnTitle = base.Columns["Title"];
  3773. this.columnCost = base.Columns["Cost"];
  3774. this.columnDurationInSeconds = base.Columns["DurationInSeconds"];
  3775. this.columnDescription = base.Columns["Description"];
  3776. this.columnDiscount = base.Columns["Discount"];
  3777. this.columnMainImagePath = base.Columns["MainImagePath"];
  3778. }
  3779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3781. private void InitClass() {
  3782. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3783. base.Columns.Add(this.columnID);
  3784. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3785. base.Columns.Add(this.columnTitle);
  3786. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  3787. base.Columns.Add(this.columnCost);
  3788. this.columnDurationInSeconds = new global::System.Data.DataColumn("DurationInSeconds", typeof(int), null, global::System.Data.MappingType.Element);
  3789. base.Columns.Add(this.columnDurationInSeconds);
  3790. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  3791. base.Columns.Add(this.columnDescription);
  3792. this.columnDiscount = new global::System.Data.DataColumn("Discount", typeof(double), null, global::System.Data.MappingType.Element);
  3793. base.Columns.Add(this.columnDiscount);
  3794. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  3795. base.Columns.Add(this.columnMainImagePath);
  3796. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3797. this.columnID}, true));
  3798. this.columnID.AutoIncrement = true;
  3799. this.columnID.AutoIncrementSeed = -1;
  3800. this.columnID.AutoIncrementStep = -1;
  3801. this.columnID.AllowDBNull = false;
  3802. this.columnID.ReadOnly = true;
  3803. this.columnID.Unique = true;
  3804. this.columnTitle.AllowDBNull = false;
  3805. this.columnTitle.MaxLength = 100;
  3806. this.columnCost.AllowDBNull = false;
  3807. this.columnDurationInSeconds.AllowDBNull = false;
  3808. this.columnDescription.MaxLength = 2147483647;
  3809. this.columnMainImagePath.MaxLength = 1000;
  3810. }
  3811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3813. public ServiceRow NewServiceRow() {
  3814. return ((ServiceRow)(this.NewRow()));
  3815. }
  3816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3818. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3819. return new ServiceRow(builder);
  3820. }
  3821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3823. protected override global::System.Type GetRowType() {
  3824. return typeof(ServiceRow);
  3825. }
  3826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3828. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3829. base.OnRowChanged(e);
  3830. if ((this.ServiceRowChanged != null)) {
  3831. this.ServiceRowChanged(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3832. }
  3833. }
  3834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3836. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3837. base.OnRowChanging(e);
  3838. if ((this.ServiceRowChanging != null)) {
  3839. this.ServiceRowChanging(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3840. }
  3841. }
  3842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3844. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3845. base.OnRowDeleted(e);
  3846. if ((this.ServiceRowDeleted != null)) {
  3847. this.ServiceRowDeleted(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3848. }
  3849. }
  3850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3852. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3853. base.OnRowDeleting(e);
  3854. if ((this.ServiceRowDeleting != null)) {
  3855. this.ServiceRowDeleting(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3856. }
  3857. }
  3858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3860. public void RemoveServiceRow(ServiceRow row) {
  3861. this.Rows.Remove(row);
  3862. }
  3863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3865. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3866. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3867. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3868. bobrovDemoEgzamenDataSet ds = new bobrovDemoEgzamenDataSet();
  3869. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3870. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3871. any1.MinOccurs = new decimal(0);
  3872. any1.MaxOccurs = decimal.MaxValue;
  3873. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3874. sequence.Items.Add(any1);
  3875. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3876. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3877. any2.MinOccurs = new decimal(1);
  3878. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3879. sequence.Items.Add(any2);
  3880. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3881. attribute1.Name = "namespace";
  3882. attribute1.FixedValue = ds.Namespace;
  3883. type.Attributes.Add(attribute1);
  3884. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3885. attribute2.Name = "tableTypeName";
  3886. attribute2.FixedValue = "ServiceDataTable";
  3887. type.Attributes.Add(attribute2);
  3888. type.Particle = sequence;
  3889. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3890. if (xs.Contains(dsSchema.TargetNamespace)) {
  3891. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3892. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3893. try {
  3894. global::System.Xml.Schema.XmlSchema schema = null;
  3895. dsSchema.Write(s1);
  3896. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3897. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3898. s2.SetLength(0);
  3899. schema.Write(s2);
  3900. if ((s1.Length == s2.Length)) {
  3901. s1.Position = 0;
  3902. s2.Position = 0;
  3903. for (; ((s1.Position != s1.Length)
  3904. && (s1.ReadByte() == s2.ReadByte())); ) {
  3905. ;
  3906. }
  3907. if ((s1.Position == s1.Length)) {
  3908. return type;
  3909. }
  3910. }
  3911. }
  3912. }
  3913. finally {
  3914. if ((s1 != null)) {
  3915. s1.Close();
  3916. }
  3917. if ((s2 != null)) {
  3918. s2.Close();
  3919. }
  3920. }
  3921. }
  3922. xs.Add(dsSchema);
  3923. return type;
  3924. }
  3925. }
  3926. /// <summary>
  3927. ///Represents the strongly named DataTable class.
  3928. ///</summary>
  3929. [global::System.Serializable()]
  3930. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3931. public partial class service_b_importDataTable : global::System.Data.TypedTableBase<service_b_importRow> {
  3932. private global::System.Data.DataColumn columnНаименование_услуги;
  3933. private global::System.Data.DataColumn columnГлавное_изображение;
  3934. private global::System.Data.DataColumn columnДлительность;
  3935. private global::System.Data.DataColumn columnСтоимость;
  3936. private global::System.Data.DataColumn columnДействующая_скидка;
  3937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3939. public service_b_importDataTable() {
  3940. this.TableName = "service_b_import";
  3941. this.BeginInit();
  3942. this.InitClass();
  3943. this.EndInit();
  3944. }
  3945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3947. internal service_b_importDataTable(global::System.Data.DataTable table) {
  3948. this.TableName = table.TableName;
  3949. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3950. this.CaseSensitive = table.CaseSensitive;
  3951. }
  3952. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3953. this.Locale = table.Locale;
  3954. }
  3955. if ((table.Namespace != table.DataSet.Namespace)) {
  3956. this.Namespace = table.Namespace;
  3957. }
  3958. this.Prefix = table.Prefix;
  3959. this.MinimumCapacity = table.MinimumCapacity;
  3960. }
  3961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3963. protected service_b_importDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3964. base(info, context) {
  3965. this.InitVars();
  3966. }
  3967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3969. public global::System.Data.DataColumn Наименование_услугиColumn {
  3970. get {
  3971. return this.columnНаименование_услуги;
  3972. }
  3973. }
  3974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3976. public global::System.Data.DataColumn Главное_изображениеColumn {
  3977. get {
  3978. return this.columnГлавное_изображение;
  3979. }
  3980. }
  3981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3983. public global::System.Data.DataColumn ДлительностьColumn {
  3984. get {
  3985. return this.columnДлительность;
  3986. }
  3987. }
  3988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3990. public global::System.Data.DataColumn СтоимостьColumn {
  3991. get {
  3992. return this.columnСтоимость;
  3993. }
  3994. }
  3995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3997. public global::System.Data.DataColumn Действующая_скидкаColumn {
  3998. get {
  3999. return this.columnДействующая_скидка;
  4000. }
  4001. }
  4002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4004. [global::System.ComponentModel.Browsable(false)]
  4005. public int Count {
  4006. get {
  4007. return this.Rows.Count;
  4008. }
  4009. }
  4010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4012. public service_b_importRow this[int index] {
  4013. get {
  4014. return ((service_b_importRow)(this.Rows[index]));
  4015. }
  4016. }
  4017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4018. public event service_b_importRowChangeEventHandler service_b_importRowChanging;
  4019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4020. public event service_b_importRowChangeEventHandler service_b_importRowChanged;
  4021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4022. public event service_b_importRowChangeEventHandler service_b_importRowDeleting;
  4023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4024. public event service_b_importRowChangeEventHandler service_b_importRowDeleted;
  4025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4027. public void Addservice_b_importRow(service_b_importRow row) {
  4028. this.Rows.Add(row);
  4029. }
  4030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4032. public service_b_importRow Addservice_b_importRow(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка) {
  4033. service_b_importRow rowservice_b_importRow = ((service_b_importRow)(this.NewRow()));
  4034. object[] columnValuesArray = new object[] {
  4035. Наименование_услуги,
  4036. Главное_изображение,
  4037. Длительность,
  4038. Стоимость,
  4039. Действующая_скидка};
  4040. rowservice_b_importRow.ItemArray = columnValuesArray;
  4041. this.Rows.Add(rowservice_b_importRow);
  4042. return rowservice_b_importRow;
  4043. }
  4044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4046. public service_b_importRow FindByНаименование_услуги(string Наименование_услуги) {
  4047. return ((service_b_importRow)(this.Rows.Find(new object[] {
  4048. Наименование_услуги})));
  4049. }
  4050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4052. public override global::System.Data.DataTable Clone() {
  4053. service_b_importDataTable cln = ((service_b_importDataTable)(base.Clone()));
  4054. cln.InitVars();
  4055. return cln;
  4056. }
  4057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4059. protected override global::System.Data.DataTable CreateInstance() {
  4060. return new service_b_importDataTable();
  4061. }
  4062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4064. internal void InitVars() {
  4065. this.columnНаименование_услуги = base.Columns["Наименование_услуги"];
  4066. this.columnГлавное_изображение = base.Columns["Главное_изображение"];
  4067. this.columnДлительность = base.Columns["Длительность"];
  4068. this.columnСтоимость = base.Columns["Стоимость"];
  4069. this.columnДействующая_скидка = base.Columns["Действующая_скидка"];
  4070. }
  4071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4073. private void InitClass() {
  4074. this.columnНаименование_услуги = new global::System.Data.DataColumn("Наименование_услуги", typeof(string), null, global::System.Data.MappingType.Element);
  4075. base.Columns.Add(this.columnНаименование_услуги);
  4076. this.columnГлавное_изображение = new global::System.Data.DataColumn("Главное_изображение", typeof(string), null, global::System.Data.MappingType.Element);
  4077. base.Columns.Add(this.columnГлавное_изображение);
  4078. this.columnДлительность = new global::System.Data.DataColumn("Длительность", typeof(string), null, global::System.Data.MappingType.Element);
  4079. base.Columns.Add(this.columnДлительность);
  4080. this.columnСтоимость = new global::System.Data.DataColumn("Стоимость", typeof(string), null, global::System.Data.MappingType.Element);
  4081. base.Columns.Add(this.columnСтоимость);
  4082. this.columnДействующая_скидка = new global::System.Data.DataColumn("Действующая_скидка", typeof(string), null, global::System.Data.MappingType.Element);
  4083. base.Columns.Add(this.columnДействующая_скидка);
  4084. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4085. this.columnНаименование_услуги}, true));
  4086. this.columnНаименование_услуги.AllowDBNull = false;
  4087. this.columnНаименование_услуги.Unique = true;
  4088. this.columnНаименование_услуги.MaxLength = 50;
  4089. this.columnГлавное_изображение.AllowDBNull = false;
  4090. this.columnГлавное_изображение.MaxLength = 100;
  4091. this.columnДлительность.AllowDBNull = false;
  4092. this.columnДлительность.MaxLength = 50;
  4093. this.columnСтоимость.AllowDBNull = false;
  4094. this.columnСтоимость.MaxLength = 50;
  4095. this.columnДействующая_скидка.AllowDBNull = false;
  4096. this.columnДействующая_скидка.MaxLength = 50;
  4097. }
  4098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4100. public service_b_importRow Newservice_b_importRow() {
  4101. return ((service_b_importRow)(this.NewRow()));
  4102. }
  4103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4105. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4106. return new service_b_importRow(builder);
  4107. }
  4108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4110. protected override global::System.Type GetRowType() {
  4111. return typeof(service_b_importRow);
  4112. }
  4113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4115. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4116. base.OnRowChanged(e);
  4117. if ((this.service_b_importRowChanged != null)) {
  4118. this.service_b_importRowChanged(this, new service_b_importRowChangeEvent(((service_b_importRow)(e.Row)), e.Action));
  4119. }
  4120. }
  4121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4123. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4124. base.OnRowChanging(e);
  4125. if ((this.service_b_importRowChanging != null)) {
  4126. this.service_b_importRowChanging(this, new service_b_importRowChangeEvent(((service_b_importRow)(e.Row)), e.Action));
  4127. }
  4128. }
  4129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4131. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4132. base.OnRowDeleted(e);
  4133. if ((this.service_b_importRowDeleted != null)) {
  4134. this.service_b_importRowDeleted(this, new service_b_importRowChangeEvent(((service_b_importRow)(e.Row)), e.Action));
  4135. }
  4136. }
  4137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4139. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4140. base.OnRowDeleting(e);
  4141. if ((this.service_b_importRowDeleting != null)) {
  4142. this.service_b_importRowDeleting(this, new service_b_importRowChangeEvent(((service_b_importRow)(e.Row)), e.Action));
  4143. }
  4144. }
  4145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4147. public void Removeservice_b_importRow(service_b_importRow row) {
  4148. this.Rows.Remove(row);
  4149. }
  4150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4152. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4153. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4154. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4155. bobrovDemoEgzamenDataSet ds = new bobrovDemoEgzamenDataSet();
  4156. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4157. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4158. any1.MinOccurs = new decimal(0);
  4159. any1.MaxOccurs = decimal.MaxValue;
  4160. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4161. sequence.Items.Add(any1);
  4162. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4163. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4164. any2.MinOccurs = new decimal(1);
  4165. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4166. sequence.Items.Add(any2);
  4167. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4168. attribute1.Name = "namespace";
  4169. attribute1.FixedValue = ds.Namespace;
  4170. type.Attributes.Add(attribute1);
  4171. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4172. attribute2.Name = "tableTypeName";
  4173. attribute2.FixedValue = "service_b_importDataTable";
  4174. type.Attributes.Add(attribute2);
  4175. type.Particle = sequence;
  4176. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4177. if (xs.Contains(dsSchema.TargetNamespace)) {
  4178. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4179. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4180. try {
  4181. global::System.Xml.Schema.XmlSchema schema = null;
  4182. dsSchema.Write(s1);
  4183. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4184. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4185. s2.SetLength(0);
  4186. schema.Write(s2);
  4187. if ((s1.Length == s2.Length)) {
  4188. s1.Position = 0;
  4189. s2.Position = 0;
  4190. for (; ((s1.Position != s1.Length)
  4191. && (s1.ReadByte() == s2.ReadByte())); ) {
  4192. ;
  4193. }
  4194. if ((s1.Position == s1.Length)) {
  4195. return type;
  4196. }
  4197. }
  4198. }
  4199. }
  4200. finally {
  4201. if ((s1 != null)) {
  4202. s1.Close();
  4203. }
  4204. if ((s2 != null)) {
  4205. s2.Close();
  4206. }
  4207. }
  4208. }
  4209. xs.Add(dsSchema);
  4210. return type;
  4211. }
  4212. }
  4213. /// <summary>
  4214. ///Represents the strongly named DataTable class.
  4215. ///</summary>
  4216. [global::System.Serializable()]
  4217. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4218. public partial class ServicePhotoDataTable : global::System.Data.TypedTableBase<ServicePhotoRow> {
  4219. private global::System.Data.DataColumn columnID;
  4220. private global::System.Data.DataColumn columnServiceID;
  4221. private global::System.Data.DataColumn columnPhotoPath;
  4222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4224. public ServicePhotoDataTable() {
  4225. this.TableName = "ServicePhoto";
  4226. this.BeginInit();
  4227. this.InitClass();
  4228. this.EndInit();
  4229. }
  4230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4232. internal ServicePhotoDataTable(global::System.Data.DataTable table) {
  4233. this.TableName = table.TableName;
  4234. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4235. this.CaseSensitive = table.CaseSensitive;
  4236. }
  4237. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4238. this.Locale = table.Locale;
  4239. }
  4240. if ((table.Namespace != table.DataSet.Namespace)) {
  4241. this.Namespace = table.Namespace;
  4242. }
  4243. this.Prefix = table.Prefix;
  4244. this.MinimumCapacity = table.MinimumCapacity;
  4245. }
  4246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4248. protected ServicePhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4249. base(info, context) {
  4250. this.InitVars();
  4251. }
  4252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4254. public global::System.Data.DataColumn IDColumn {
  4255. get {
  4256. return this.columnID;
  4257. }
  4258. }
  4259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4261. public global::System.Data.DataColumn ServiceIDColumn {
  4262. get {
  4263. return this.columnServiceID;
  4264. }
  4265. }
  4266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4268. public global::System.Data.DataColumn PhotoPathColumn {
  4269. get {
  4270. return this.columnPhotoPath;
  4271. }
  4272. }
  4273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4275. [global::System.ComponentModel.Browsable(false)]
  4276. public int Count {
  4277. get {
  4278. return this.Rows.Count;
  4279. }
  4280. }
  4281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4283. public ServicePhotoRow this[int index] {
  4284. get {
  4285. return ((ServicePhotoRow)(this.Rows[index]));
  4286. }
  4287. }
  4288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4289. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanging;
  4290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4291. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanged;
  4292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4293. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleting;
  4294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4295. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleted;
  4296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4298. public void AddServicePhotoRow(ServicePhotoRow row) {
  4299. this.Rows.Add(row);
  4300. }
  4301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4303. public ServicePhotoRow AddServicePhotoRow(ServiceRow parentServiceRowByFK_ServicePhoto_Service, string PhotoPath) {
  4304. ServicePhotoRow rowServicePhotoRow = ((ServicePhotoRow)(this.NewRow()));
  4305. object[] columnValuesArray = new object[] {
  4306. null,
  4307. null,
  4308. PhotoPath};
  4309. if ((parentServiceRowByFK_ServicePhoto_Service != null)) {
  4310. columnValuesArray[1] = parentServiceRowByFK_ServicePhoto_Service[0];
  4311. }
  4312. rowServicePhotoRow.ItemArray = columnValuesArray;
  4313. this.Rows.Add(rowServicePhotoRow);
  4314. return rowServicePhotoRow;
  4315. }
  4316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4318. public ServicePhotoRow FindByID(int ID) {
  4319. return ((ServicePhotoRow)(this.Rows.Find(new object[] {
  4320. ID})));
  4321. }
  4322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4324. public override global::System.Data.DataTable Clone() {
  4325. ServicePhotoDataTable cln = ((ServicePhotoDataTable)(base.Clone()));
  4326. cln.InitVars();
  4327. return cln;
  4328. }
  4329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4331. protected override global::System.Data.DataTable CreateInstance() {
  4332. return new ServicePhotoDataTable();
  4333. }
  4334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4336. internal void InitVars() {
  4337. this.columnID = base.Columns["ID"];
  4338. this.columnServiceID = base.Columns["ServiceID"];
  4339. this.columnPhotoPath = base.Columns["PhotoPath"];
  4340. }
  4341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4343. private void InitClass() {
  4344. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  4345. base.Columns.Add(this.columnID);
  4346. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  4347. base.Columns.Add(this.columnServiceID);
  4348. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  4349. base.Columns.Add(this.columnPhotoPath);
  4350. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4351. this.columnID}, true));
  4352. this.columnID.AutoIncrement = true;
  4353. this.columnID.AutoIncrementSeed = -1;
  4354. this.columnID.AutoIncrementStep = -1;
  4355. this.columnID.AllowDBNull = false;
  4356. this.columnID.ReadOnly = true;
  4357. this.columnID.Unique = true;
  4358. this.columnServiceID.AllowDBNull = false;
  4359. this.columnPhotoPath.AllowDBNull = false;
  4360. this.columnPhotoPath.MaxLength = 1000;
  4361. }
  4362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4364. public ServicePhotoRow NewServicePhotoRow() {
  4365. return ((ServicePhotoRow)(this.NewRow()));
  4366. }
  4367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4369. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4370. return new ServicePhotoRow(builder);
  4371. }
  4372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4374. protected override global::System.Type GetRowType() {
  4375. return typeof(ServicePhotoRow);
  4376. }
  4377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4379. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4380. base.OnRowChanged(e);
  4381. if ((this.ServicePhotoRowChanged != null)) {
  4382. this.ServicePhotoRowChanged(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  4383. }
  4384. }
  4385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4387. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4388. base.OnRowChanging(e);
  4389. if ((this.ServicePhotoRowChanging != null)) {
  4390. this.ServicePhotoRowChanging(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  4391. }
  4392. }
  4393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4395. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4396. base.OnRowDeleted(e);
  4397. if ((this.ServicePhotoRowDeleted != null)) {
  4398. this.ServicePhotoRowDeleted(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  4399. }
  4400. }
  4401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4403. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4404. base.OnRowDeleting(e);
  4405. if ((this.ServicePhotoRowDeleting != null)) {
  4406. this.ServicePhotoRowDeleting(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  4407. }
  4408. }
  4409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4411. public void RemoveServicePhotoRow(ServicePhotoRow row) {
  4412. this.Rows.Remove(row);
  4413. }
  4414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4416. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4417. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4418. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4419. bobrovDemoEgzamenDataSet ds = new bobrovDemoEgzamenDataSet();
  4420. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4421. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4422. any1.MinOccurs = new decimal(0);
  4423. any1.MaxOccurs = decimal.MaxValue;
  4424. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4425. sequence.Items.Add(any1);
  4426. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4427. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4428. any2.MinOccurs = new decimal(1);
  4429. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4430. sequence.Items.Add(any2);
  4431. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4432. attribute1.Name = "namespace";
  4433. attribute1.FixedValue = ds.Namespace;
  4434. type.Attributes.Add(attribute1);
  4435. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4436. attribute2.Name = "tableTypeName";
  4437. attribute2.FixedValue = "ServicePhotoDataTable";
  4438. type.Attributes.Add(attribute2);
  4439. type.Particle = sequence;
  4440. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4441. if (xs.Contains(dsSchema.TargetNamespace)) {
  4442. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4443. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4444. try {
  4445. global::System.Xml.Schema.XmlSchema schema = null;
  4446. dsSchema.Write(s1);
  4447. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4448. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4449. s2.SetLength(0);
  4450. schema.Write(s2);
  4451. if ((s1.Length == s2.Length)) {
  4452. s1.Position = 0;
  4453. s2.Position = 0;
  4454. for (; ((s1.Position != s1.Length)
  4455. && (s1.ReadByte() == s2.ReadByte())); ) {
  4456. ;
  4457. }
  4458. if ((s1.Position == s1.Length)) {
  4459. return type;
  4460. }
  4461. }
  4462. }
  4463. }
  4464. finally {
  4465. if ((s1 != null)) {
  4466. s1.Close();
  4467. }
  4468. if ((s2 != null)) {
  4469. s2.Close();
  4470. }
  4471. }
  4472. }
  4473. xs.Add(dsSchema);
  4474. return type;
  4475. }
  4476. }
  4477. /// <summary>
  4478. ///Represents the strongly named DataTable class.
  4479. ///</summary>
  4480. [global::System.Serializable()]
  4481. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4482. public partial class TagDataTable : global::System.Data.TypedTableBase<TagRow> {
  4483. private global::System.Data.DataColumn columnID;
  4484. private global::System.Data.DataColumn columnTitle;
  4485. private global::System.Data.DataColumn columnColor;
  4486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4488. public TagDataTable() {
  4489. this.TableName = "Tag";
  4490. this.BeginInit();
  4491. this.InitClass();
  4492. this.EndInit();
  4493. }
  4494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4496. internal TagDataTable(global::System.Data.DataTable table) {
  4497. this.TableName = table.TableName;
  4498. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4499. this.CaseSensitive = table.CaseSensitive;
  4500. }
  4501. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4502. this.Locale = table.Locale;
  4503. }
  4504. if ((table.Namespace != table.DataSet.Namespace)) {
  4505. this.Namespace = table.Namespace;
  4506. }
  4507. this.Prefix = table.Prefix;
  4508. this.MinimumCapacity = table.MinimumCapacity;
  4509. }
  4510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4512. protected TagDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4513. base(info, context) {
  4514. this.InitVars();
  4515. }
  4516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4518. public global::System.Data.DataColumn IDColumn {
  4519. get {
  4520. return this.columnID;
  4521. }
  4522. }
  4523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4525. public global::System.Data.DataColumn TitleColumn {
  4526. get {
  4527. return this.columnTitle;
  4528. }
  4529. }
  4530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4532. public global::System.Data.DataColumn ColorColumn {
  4533. get {
  4534. return this.columnColor;
  4535. }
  4536. }
  4537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4539. [global::System.ComponentModel.Browsable(false)]
  4540. public int Count {
  4541. get {
  4542. return this.Rows.Count;
  4543. }
  4544. }
  4545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4547. public TagRow this[int index] {
  4548. get {
  4549. return ((TagRow)(this.Rows[index]));
  4550. }
  4551. }
  4552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4553. public event TagRowChangeEventHandler TagRowChanging;
  4554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4555. public event TagRowChangeEventHandler TagRowChanged;
  4556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4557. public event TagRowChangeEventHandler TagRowDeleting;
  4558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4559. public event TagRowChangeEventHandler TagRowDeleted;
  4560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4562. public void AddTagRow(TagRow row) {
  4563. this.Rows.Add(row);
  4564. }
  4565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4567. public TagRow AddTagRow(string Title, string Color) {
  4568. TagRow rowTagRow = ((TagRow)(this.NewRow()));
  4569. object[] columnValuesArray = new object[] {
  4570. null,
  4571. Title,
  4572. Color};
  4573. rowTagRow.ItemArray = columnValuesArray;
  4574. this.Rows.Add(rowTagRow);
  4575. return rowTagRow;
  4576. }
  4577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4579. public TagRow FindByID(int ID) {
  4580. return ((TagRow)(this.Rows.Find(new object[] {
  4581. ID})));
  4582. }
  4583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4585. public override global::System.Data.DataTable Clone() {
  4586. TagDataTable cln = ((TagDataTable)(base.Clone()));
  4587. cln.InitVars();
  4588. return cln;
  4589. }
  4590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4592. protected override global::System.Data.DataTable CreateInstance() {
  4593. return new TagDataTable();
  4594. }
  4595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4597. internal void InitVars() {
  4598. this.columnID = base.Columns["ID"];
  4599. this.columnTitle = base.Columns["Title"];
  4600. this.columnColor = base.Columns["Color"];
  4601. }
  4602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4604. private void InitClass() {
  4605. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  4606. base.Columns.Add(this.columnID);
  4607. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  4608. base.Columns.Add(this.columnTitle);
  4609. this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
  4610. base.Columns.Add(this.columnColor);
  4611. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4612. this.columnID}, true));
  4613. this.columnID.AutoIncrement = true;
  4614. this.columnID.AutoIncrementSeed = -1;
  4615. this.columnID.AutoIncrementStep = -1;
  4616. this.columnID.AllowDBNull = false;
  4617. this.columnID.ReadOnly = true;
  4618. this.columnID.Unique = true;
  4619. this.columnTitle.AllowDBNull = false;
  4620. this.columnTitle.MaxLength = 30;
  4621. this.columnColor.AllowDBNull = false;
  4622. this.columnColor.MaxLength = 6;
  4623. }
  4624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4626. public TagRow NewTagRow() {
  4627. return ((TagRow)(this.NewRow()));
  4628. }
  4629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4631. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4632. return new TagRow(builder);
  4633. }
  4634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4636. protected override global::System.Type GetRowType() {
  4637. return typeof(TagRow);
  4638. }
  4639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4641. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4642. base.OnRowChanged(e);
  4643. if ((this.TagRowChanged != null)) {
  4644. this.TagRowChanged(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4645. }
  4646. }
  4647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4649. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4650. base.OnRowChanging(e);
  4651. if ((this.TagRowChanging != null)) {
  4652. this.TagRowChanging(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4653. }
  4654. }
  4655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4657. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4658. base.OnRowDeleted(e);
  4659. if ((this.TagRowDeleted != null)) {
  4660. this.TagRowDeleted(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4661. }
  4662. }
  4663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4665. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4666. base.OnRowDeleting(e);
  4667. if ((this.TagRowDeleting != null)) {
  4668. this.TagRowDeleting(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4669. }
  4670. }
  4671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4673. public void RemoveTagRow(TagRow row) {
  4674. this.Rows.Remove(row);
  4675. }
  4676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4678. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4679. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4680. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4681. bobrovDemoEgzamenDataSet ds = new bobrovDemoEgzamenDataSet();
  4682. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4683. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4684. any1.MinOccurs = new decimal(0);
  4685. any1.MaxOccurs = decimal.MaxValue;
  4686. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4687. sequence.Items.Add(any1);
  4688. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4689. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4690. any2.MinOccurs = new decimal(1);
  4691. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4692. sequence.Items.Add(any2);
  4693. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4694. attribute1.Name = "namespace";
  4695. attribute1.FixedValue = ds.Namespace;
  4696. type.Attributes.Add(attribute1);
  4697. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4698. attribute2.Name = "tableTypeName";
  4699. attribute2.FixedValue = "TagDataTable";
  4700. type.Attributes.Add(attribute2);
  4701. type.Particle = sequence;
  4702. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4703. if (xs.Contains(dsSchema.TargetNamespace)) {
  4704. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4705. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4706. try {
  4707. global::System.Xml.Schema.XmlSchema schema = null;
  4708. dsSchema.Write(s1);
  4709. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4710. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4711. s2.SetLength(0);
  4712. schema.Write(s2);
  4713. if ((s1.Length == s2.Length)) {
  4714. s1.Position = 0;
  4715. s2.Position = 0;
  4716. for (; ((s1.Position != s1.Length)
  4717. && (s1.ReadByte() == s2.ReadByte())); ) {
  4718. ;
  4719. }
  4720. if ((s1.Position == s1.Length)) {
  4721. return type;
  4722. }
  4723. }
  4724. }
  4725. }
  4726. finally {
  4727. if ((s1 != null)) {
  4728. s1.Close();
  4729. }
  4730. if ((s2 != null)) {
  4731. s2.Close();
  4732. }
  4733. }
  4734. }
  4735. xs.Add(dsSchema);
  4736. return type;
  4737. }
  4738. }
  4739. /// <summary>
  4740. ///Represents the strongly named DataTable class.
  4741. ///</summary>
  4742. [global::System.Serializable()]
  4743. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4744. public partial class TagOfClientDataTable : global::System.Data.TypedTableBase<TagOfClientRow> {
  4745. private global::System.Data.DataColumn columnClientID;
  4746. private global::System.Data.DataColumn columnTagID;
  4747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4749. public TagOfClientDataTable() {
  4750. this.TableName = "TagOfClient";
  4751. this.BeginInit();
  4752. this.InitClass();
  4753. this.EndInit();
  4754. }
  4755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4757. internal TagOfClientDataTable(global::System.Data.DataTable table) {
  4758. this.TableName = table.TableName;
  4759. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4760. this.CaseSensitive = table.CaseSensitive;
  4761. }
  4762. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4763. this.Locale = table.Locale;
  4764. }
  4765. if ((table.Namespace != table.DataSet.Namespace)) {
  4766. this.Namespace = table.Namespace;
  4767. }
  4768. this.Prefix = table.Prefix;
  4769. this.MinimumCapacity = table.MinimumCapacity;
  4770. }
  4771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4773. protected TagOfClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4774. base(info, context) {
  4775. this.InitVars();
  4776. }
  4777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4779. public global::System.Data.DataColumn ClientIDColumn {
  4780. get {
  4781. return this.columnClientID;
  4782. }
  4783. }
  4784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4786. public global::System.Data.DataColumn TagIDColumn {
  4787. get {
  4788. return this.columnTagID;
  4789. }
  4790. }
  4791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4793. [global::System.ComponentModel.Browsable(false)]
  4794. public int Count {
  4795. get {
  4796. return this.Rows.Count;
  4797. }
  4798. }
  4799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4801. public TagOfClientRow this[int index] {
  4802. get {
  4803. return ((TagOfClientRow)(this.Rows[index]));
  4804. }
  4805. }
  4806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4807. public event TagOfClientRowChangeEventHandler TagOfClientRowChanging;
  4808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4809. public event TagOfClientRowChangeEventHandler TagOfClientRowChanged;
  4810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4811. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleting;
  4812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4813. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleted;
  4814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4816. public void AddTagOfClientRow(TagOfClientRow row) {
  4817. this.Rows.Add(row);
  4818. }
  4819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4821. public TagOfClientRow AddTagOfClientRow(ClientRow parentClientRowByFK_TagOfClient_Client, TagRow parentTagRowByFK_TagOfClient_Tag) {
  4822. TagOfClientRow rowTagOfClientRow = ((TagOfClientRow)(this.NewRow()));
  4823. object[] columnValuesArray = new object[] {
  4824. null,
  4825. null};
  4826. if ((parentClientRowByFK_TagOfClient_Client != null)) {
  4827. columnValuesArray[0] = parentClientRowByFK_TagOfClient_Client[0];
  4828. }
  4829. if ((parentTagRowByFK_TagOfClient_Tag != null)) {
  4830. columnValuesArray[1] = parentTagRowByFK_TagOfClient_Tag[0];
  4831. }
  4832. rowTagOfClientRow.ItemArray = columnValuesArray;
  4833. this.Rows.Add(rowTagOfClientRow);
  4834. return rowTagOfClientRow;
  4835. }
  4836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4838. public TagOfClientRow FindByClientIDTagID(int ClientID, int TagID) {
  4839. return ((TagOfClientRow)(this.Rows.Find(new object[] {
  4840. ClientID,
  4841. TagID})));
  4842. }
  4843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4845. public override global::System.Data.DataTable Clone() {
  4846. TagOfClientDataTable cln = ((TagOfClientDataTable)(base.Clone()));
  4847. cln.InitVars();
  4848. return cln;
  4849. }
  4850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4852. protected override global::System.Data.DataTable CreateInstance() {
  4853. return new TagOfClientDataTable();
  4854. }
  4855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4857. internal void InitVars() {
  4858. this.columnClientID = base.Columns["ClientID"];
  4859. this.columnTagID = base.Columns["TagID"];
  4860. }
  4861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4863. private void InitClass() {
  4864. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  4865. base.Columns.Add(this.columnClientID);
  4866. this.columnTagID = new global::System.Data.DataColumn("TagID", typeof(int), null, global::System.Data.MappingType.Element);
  4867. base.Columns.Add(this.columnTagID);
  4868. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4869. this.columnClientID,
  4870. this.columnTagID}, true));
  4871. this.columnClientID.AllowDBNull = false;
  4872. this.columnTagID.AllowDBNull = false;
  4873. }
  4874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4876. public TagOfClientRow NewTagOfClientRow() {
  4877. return ((TagOfClientRow)(this.NewRow()));
  4878. }
  4879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4881. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4882. return new TagOfClientRow(builder);
  4883. }
  4884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4886. protected override global::System.Type GetRowType() {
  4887. return typeof(TagOfClientRow);
  4888. }
  4889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4891. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4892. base.OnRowChanged(e);
  4893. if ((this.TagOfClientRowChanged != null)) {
  4894. this.TagOfClientRowChanged(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4895. }
  4896. }
  4897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4899. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4900. base.OnRowChanging(e);
  4901. if ((this.TagOfClientRowChanging != null)) {
  4902. this.TagOfClientRowChanging(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4903. }
  4904. }
  4905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4907. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4908. base.OnRowDeleted(e);
  4909. if ((this.TagOfClientRowDeleted != null)) {
  4910. this.TagOfClientRowDeleted(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4911. }
  4912. }
  4913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4915. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4916. base.OnRowDeleting(e);
  4917. if ((this.TagOfClientRowDeleting != null)) {
  4918. this.TagOfClientRowDeleting(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4919. }
  4920. }
  4921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4923. public void RemoveTagOfClientRow(TagOfClientRow row) {
  4924. this.Rows.Remove(row);
  4925. }
  4926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4928. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4929. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4930. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4931. bobrovDemoEgzamenDataSet ds = new bobrovDemoEgzamenDataSet();
  4932. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4933. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4934. any1.MinOccurs = new decimal(0);
  4935. any1.MaxOccurs = decimal.MaxValue;
  4936. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4937. sequence.Items.Add(any1);
  4938. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4939. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4940. any2.MinOccurs = new decimal(1);
  4941. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4942. sequence.Items.Add(any2);
  4943. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4944. attribute1.Name = "namespace";
  4945. attribute1.FixedValue = ds.Namespace;
  4946. type.Attributes.Add(attribute1);
  4947. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4948. attribute2.Name = "tableTypeName";
  4949. attribute2.FixedValue = "TagOfClientDataTable";
  4950. type.Attributes.Add(attribute2);
  4951. type.Particle = sequence;
  4952. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4953. if (xs.Contains(dsSchema.TargetNamespace)) {
  4954. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4955. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4956. try {
  4957. global::System.Xml.Schema.XmlSchema schema = null;
  4958. dsSchema.Write(s1);
  4959. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4960. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4961. s2.SetLength(0);
  4962. schema.Write(s2);
  4963. if ((s1.Length == s2.Length)) {
  4964. s1.Position = 0;
  4965. s2.Position = 0;
  4966. for (; ((s1.Position != s1.Length)
  4967. && (s1.ReadByte() == s2.ReadByte())); ) {
  4968. ;
  4969. }
  4970. if ((s1.Position == s1.Length)) {
  4971. return type;
  4972. }
  4973. }
  4974. }
  4975. }
  4976. finally {
  4977. if ((s1 != null)) {
  4978. s1.Close();
  4979. }
  4980. if ((s2 != null)) {
  4981. s2.Close();
  4982. }
  4983. }
  4984. }
  4985. xs.Add(dsSchema);
  4986. return type;
  4987. }
  4988. }
  4989. /// <summary>
  4990. ///Represents strongly named DataRow class.
  4991. ///</summary>
  4992. public partial class AttachedProductRow : global::System.Data.DataRow {
  4993. private AttachedProductDataTable tableAttachedProduct;
  4994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4996. internal AttachedProductRow(global::System.Data.DataRowBuilder rb) :
  4997. base(rb) {
  4998. this.tableAttachedProduct = ((AttachedProductDataTable)(this.Table));
  4999. }
  5000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5002. public int MainProductID {
  5003. get {
  5004. return ((int)(this[this.tableAttachedProduct.MainProductIDColumn]));
  5005. }
  5006. set {
  5007. this[this.tableAttachedProduct.MainProductIDColumn] = value;
  5008. }
  5009. }
  5010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5012. public int AttachedProductID {
  5013. get {
  5014. return ((int)(this[this.tableAttachedProduct.AttachedProductIDColumn]));
  5015. }
  5016. set {
  5017. this[this.tableAttachedProduct.AttachedProductIDColumn] = value;
  5018. }
  5019. }
  5020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5022. public ProductRow ProductRowByFK_AttachedProduct_Product {
  5023. get {
  5024. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product"])));
  5025. }
  5026. set {
  5027. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product"]);
  5028. }
  5029. }
  5030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5032. public ProductRow ProductRowByFK_AttachedProduct_Product1 {
  5033. get {
  5034. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product1"])));
  5035. }
  5036. set {
  5037. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product1"]);
  5038. }
  5039. }
  5040. }
  5041. /// <summary>
  5042. ///Represents strongly named DataRow class.
  5043. ///</summary>
  5044. public partial class ClientRow : global::System.Data.DataRow {
  5045. private ClientDataTable tableClient;
  5046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5048. internal ClientRow(global::System.Data.DataRowBuilder rb) :
  5049. base(rb) {
  5050. this.tableClient = ((ClientDataTable)(this.Table));
  5051. }
  5052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5054. public int ID {
  5055. get {
  5056. return ((int)(this[this.tableClient.IDColumn]));
  5057. }
  5058. set {
  5059. this[this.tableClient.IDColumn] = value;
  5060. }
  5061. }
  5062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5064. public string FirstName {
  5065. get {
  5066. return ((string)(this[this.tableClient.FirstNameColumn]));
  5067. }
  5068. set {
  5069. this[this.tableClient.FirstNameColumn] = value;
  5070. }
  5071. }
  5072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5074. public string LastName {
  5075. get {
  5076. return ((string)(this[this.tableClient.LastNameColumn]));
  5077. }
  5078. set {
  5079. this[this.tableClient.LastNameColumn] = value;
  5080. }
  5081. }
  5082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5084. public string Patronymic {
  5085. get {
  5086. try {
  5087. return ((string)(this[this.tableClient.PatronymicColumn]));
  5088. }
  5089. catch (global::System.InvalidCastException e) {
  5090. throw new global::System.Data.StrongTypingException("Значение для столбца \'Patronymic\' в таблице \'Client\' равно DBNull.", e);
  5091. }
  5092. }
  5093. set {
  5094. this[this.tableClient.PatronymicColumn] = value;
  5095. }
  5096. }
  5097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5099. public System.DateTime Birthday {
  5100. get {
  5101. try {
  5102. return ((global::System.DateTime)(this[this.tableClient.BirthdayColumn]));
  5103. }
  5104. catch (global::System.InvalidCastException e) {
  5105. throw new global::System.Data.StrongTypingException("Значение для столбца \'Birthday\' в таблице \'Client\' равно DBNull.", e);
  5106. }
  5107. }
  5108. set {
  5109. this[this.tableClient.BirthdayColumn] = value;
  5110. }
  5111. }
  5112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5114. public System.DateTime RegistrationDate {
  5115. get {
  5116. return ((global::System.DateTime)(this[this.tableClient.RegistrationDateColumn]));
  5117. }
  5118. set {
  5119. this[this.tableClient.RegistrationDateColumn] = value;
  5120. }
  5121. }
  5122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5124. public string Email {
  5125. get {
  5126. try {
  5127. return ((string)(this[this.tableClient.EmailColumn]));
  5128. }
  5129. catch (global::System.InvalidCastException e) {
  5130. throw new global::System.Data.StrongTypingException("Значение для столбца \'Email\' в таблице \'Client\' равно DBNull.", e);
  5131. }
  5132. }
  5133. set {
  5134. this[this.tableClient.EmailColumn] = value;
  5135. }
  5136. }
  5137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5139. public string Phone {
  5140. get {
  5141. return ((string)(this[this.tableClient.PhoneColumn]));
  5142. }
  5143. set {
  5144. this[this.tableClient.PhoneColumn] = value;
  5145. }
  5146. }
  5147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5149. public string GenderCode {
  5150. get {
  5151. return ((string)(this[this.tableClient.GenderCodeColumn]));
  5152. }
  5153. set {
  5154. this[this.tableClient.GenderCodeColumn] = value;
  5155. }
  5156. }
  5157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5159. public string PhotoPath {
  5160. get {
  5161. try {
  5162. return ((string)(this[this.tableClient.PhotoPathColumn]));
  5163. }
  5164. catch (global::System.InvalidCastException e) {
  5165. throw new global::System.Data.StrongTypingException("Значение для столбца \'PhotoPath\' в таблице \'Client\' равно DBNull.", e);
  5166. }
  5167. }
  5168. set {
  5169. this[this.tableClient.PhotoPathColumn] = value;
  5170. }
  5171. }
  5172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5174. public GenderRow GenderRow {
  5175. get {
  5176. return ((GenderRow)(this.GetParentRow(this.Table.ParentRelations["FK_Client_Gender"])));
  5177. }
  5178. set {
  5179. this.SetParentRow(value, this.Table.ParentRelations["FK_Client_Gender"]);
  5180. }
  5181. }
  5182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5184. public bool IsPatronymicNull() {
  5185. return this.IsNull(this.tableClient.PatronymicColumn);
  5186. }
  5187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5189. public void SetPatronymicNull() {
  5190. this[this.tableClient.PatronymicColumn] = global::System.Convert.DBNull;
  5191. }
  5192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5194. public bool IsBirthdayNull() {
  5195. return this.IsNull(this.tableClient.BirthdayColumn);
  5196. }
  5197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5199. public void SetBirthdayNull() {
  5200. this[this.tableClient.BirthdayColumn] = global::System.Convert.DBNull;
  5201. }
  5202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5204. public bool IsEmailNull() {
  5205. return this.IsNull(this.tableClient.EmailColumn);
  5206. }
  5207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5209. public void SetEmailNull() {
  5210. this[this.tableClient.EmailColumn] = global::System.Convert.DBNull;
  5211. }
  5212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5214. public bool IsPhotoPathNull() {
  5215. return this.IsNull(this.tableClient.PhotoPathColumn);
  5216. }
  5217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5219. public void SetPhotoPathNull() {
  5220. this[this.tableClient.PhotoPathColumn] = global::System.Convert.DBNull;
  5221. }
  5222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5224. public ClientServiceRow[] GetClientServiceRows() {
  5225. if ((this.Table.ChildRelations["FK_ClientService_Client"] == null)) {
  5226. return new ClientServiceRow[0];
  5227. }
  5228. else {
  5229. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Client"])));
  5230. }
  5231. }
  5232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5234. public TagOfClientRow[] GetTagOfClientRows() {
  5235. if ((this.Table.ChildRelations["FK_TagOfClient_Client"] == null)) {
  5236. return new TagOfClientRow[0];
  5237. }
  5238. else {
  5239. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Client"])));
  5240. }
  5241. }
  5242. }
  5243. /// <summary>
  5244. ///Represents strongly named DataRow class.
  5245. ///</summary>
  5246. public partial class client_b_importRow : global::System.Data.DataRow {
  5247. private client_b_importDataTable tableclient_b_import;
  5248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5250. internal client_b_importRow(global::System.Data.DataRowBuilder rb) :
  5251. base(rb) {
  5252. this.tableclient_b_import = ((client_b_importDataTable)(this.Table));
  5253. }
  5254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5256. public string Фамилия {
  5257. get {
  5258. return ((string)(this[this.tableclient_b_import.ФамилияColumn]));
  5259. }
  5260. set {
  5261. this[this.tableclient_b_import.ФамилияColumn] = value;
  5262. }
  5263. }
  5264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5266. public string Имя {
  5267. get {
  5268. try {
  5269. return ((string)(this[this.tableclient_b_import.ИмяColumn]));
  5270. }
  5271. catch (global::System.InvalidCastException e) {
  5272. throw new global::System.Data.StrongTypingException("Значение для столбца \'Имя\' в таблице \'client_b_import\' равно DBNull.", e);
  5273. }
  5274. }
  5275. set {
  5276. this[this.tableclient_b_import.ИмяColumn] = value;
  5277. }
  5278. }
  5279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5281. public string Отчество {
  5282. get {
  5283. try {
  5284. return ((string)(this[this.tableclient_b_import.ОтчествоColumn]));
  5285. }
  5286. catch (global::System.InvalidCastException e) {
  5287. throw new global::System.Data.StrongTypingException("Значение для столбца \'Отчество\' в таблице \'client_b_import\' равно DBNull.", e);
  5288. }
  5289. }
  5290. set {
  5291. this[this.tableclient_b_import.ОтчествоColumn] = value;
  5292. }
  5293. }
  5294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5296. public string Пол {
  5297. get {
  5298. return ((string)(this[this.tableclient_b_import.ПолColumn]));
  5299. }
  5300. set {
  5301. this[this.tableclient_b_import.ПолColumn] = value;
  5302. }
  5303. }
  5304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5306. public string Телефон {
  5307. get {
  5308. return ((string)(this[this.tableclient_b_import.ТелефонColumn]));
  5309. }
  5310. set {
  5311. this[this.tableclient_b_import.ТелефонColumn] = value;
  5312. }
  5313. }
  5314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5316. public System.DateTime Дата_рождения {
  5317. get {
  5318. return ((global::System.DateTime)(this[this.tableclient_b_import.Дата_рожденияColumn]));
  5319. }
  5320. set {
  5321. this[this.tableclient_b_import.Дата_рожденияColumn] = value;
  5322. }
  5323. }
  5324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5326. public string Email {
  5327. get {
  5328. return ((string)(this[this.tableclient_b_import.EmailColumn]));
  5329. }
  5330. set {
  5331. this[this.tableclient_b_import.EmailColumn] = value;
  5332. }
  5333. }
  5334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5336. public System.DateTime Дата_регистрации {
  5337. get {
  5338. return ((global::System.DateTime)(this[this.tableclient_b_import.Дата_регистрацииColumn]));
  5339. }
  5340. set {
  5341. this[this.tableclient_b_import.Дата_регистрацииColumn] = value;
  5342. }
  5343. }
  5344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5346. public bool IsИмяNull() {
  5347. return this.IsNull(this.tableclient_b_import.ИмяColumn);
  5348. }
  5349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5351. public void SetИмяNull() {
  5352. this[this.tableclient_b_import.ИмяColumn] = global::System.Convert.DBNull;
  5353. }
  5354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5356. public bool IsОтчествоNull() {
  5357. return this.IsNull(this.tableclient_b_import.ОтчествоColumn);
  5358. }
  5359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5361. public void SetОтчествоNull() {
  5362. this[this.tableclient_b_import.ОтчествоColumn] = global::System.Convert.DBNull;
  5363. }
  5364. }
  5365. /// <summary>
  5366. ///Represents strongly named DataRow class.
  5367. ///</summary>
  5368. public partial class ClientServiceRow : global::System.Data.DataRow {
  5369. private ClientServiceDataTable tableClientService;
  5370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5372. internal ClientServiceRow(global::System.Data.DataRowBuilder rb) :
  5373. base(rb) {
  5374. this.tableClientService = ((ClientServiceDataTable)(this.Table));
  5375. }
  5376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5378. public int ID {
  5379. get {
  5380. return ((int)(this[this.tableClientService.IDColumn]));
  5381. }
  5382. set {
  5383. this[this.tableClientService.IDColumn] = value;
  5384. }
  5385. }
  5386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5388. public int ClientID {
  5389. get {
  5390. return ((int)(this[this.tableClientService.ClientIDColumn]));
  5391. }
  5392. set {
  5393. this[this.tableClientService.ClientIDColumn] = value;
  5394. }
  5395. }
  5396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5398. public int ServiceID {
  5399. get {
  5400. return ((int)(this[this.tableClientService.ServiceIDColumn]));
  5401. }
  5402. set {
  5403. this[this.tableClientService.ServiceIDColumn] = value;
  5404. }
  5405. }
  5406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5408. public System.DateTime StartTime {
  5409. get {
  5410. return ((global::System.DateTime)(this[this.tableClientService.StartTimeColumn]));
  5411. }
  5412. set {
  5413. this[this.tableClientService.StartTimeColumn] = value;
  5414. }
  5415. }
  5416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5418. public string Comment {
  5419. get {
  5420. try {
  5421. return ((string)(this[this.tableClientService.CommentColumn]));
  5422. }
  5423. catch (global::System.InvalidCastException e) {
  5424. throw new global::System.Data.StrongTypingException("Значение для столбца \'Comment\' в таблице \'ClientService\' равно DBNull.", e);
  5425. }
  5426. }
  5427. set {
  5428. this[this.tableClientService.CommentColumn] = value;
  5429. }
  5430. }
  5431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5433. public ClientRow ClientRow {
  5434. get {
  5435. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Client"])));
  5436. }
  5437. set {
  5438. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Client"]);
  5439. }
  5440. }
  5441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5443. public ServiceRow ServiceRow {
  5444. get {
  5445. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Service"])));
  5446. }
  5447. set {
  5448. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Service"]);
  5449. }
  5450. }
  5451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5453. public bool IsCommentNull() {
  5454. return this.IsNull(this.tableClientService.CommentColumn);
  5455. }
  5456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5458. public void SetCommentNull() {
  5459. this[this.tableClientService.CommentColumn] = global::System.Convert.DBNull;
  5460. }
  5461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5463. public DocumentByServiceRow[] GetDocumentByServiceRows() {
  5464. if ((this.Table.ChildRelations["FK_DocumentByService_ClientService"] == null)) {
  5465. return new DocumentByServiceRow[0];
  5466. }
  5467. else {
  5468. return ((DocumentByServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_DocumentByService_ClientService"])));
  5469. }
  5470. }
  5471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5473. public ProductSaleRow[] GetProductSaleRows() {
  5474. if ((this.Table.ChildRelations["FK_ProductSale_ClientService"] == null)) {
  5475. return new ProductSaleRow[0];
  5476. }
  5477. else {
  5478. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_ClientService"])));
  5479. }
  5480. }
  5481. }
  5482. /// <summary>
  5483. ///Represents strongly named DataRow class.
  5484. ///</summary>
  5485. public partial class DocumentByServiceRow : global::System.Data.DataRow {
  5486. private DocumentByServiceDataTable tableDocumentByService;
  5487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5489. internal DocumentByServiceRow(global::System.Data.DataRowBuilder rb) :
  5490. base(rb) {
  5491. this.tableDocumentByService = ((DocumentByServiceDataTable)(this.Table));
  5492. }
  5493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5495. public int ID {
  5496. get {
  5497. return ((int)(this[this.tableDocumentByService.IDColumn]));
  5498. }
  5499. set {
  5500. this[this.tableDocumentByService.IDColumn] = value;
  5501. }
  5502. }
  5503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5505. public int ClientServiceID {
  5506. get {
  5507. return ((int)(this[this.tableDocumentByService.ClientServiceIDColumn]));
  5508. }
  5509. set {
  5510. this[this.tableDocumentByService.ClientServiceIDColumn] = value;
  5511. }
  5512. }
  5513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5515. public string DocumentPath {
  5516. get {
  5517. return ((string)(this[this.tableDocumentByService.DocumentPathColumn]));
  5518. }
  5519. set {
  5520. this[this.tableDocumentByService.DocumentPathColumn] = value;
  5521. }
  5522. }
  5523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5525. public ClientServiceRow ClientServiceRow {
  5526. get {
  5527. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_DocumentByService_ClientService"])));
  5528. }
  5529. set {
  5530. this.SetParentRow(value, this.Table.ParentRelations["FK_DocumentByService_ClientService"]);
  5531. }
  5532. }
  5533. }
  5534. /// <summary>
  5535. ///Represents strongly named DataRow class.
  5536. ///</summary>
  5537. public partial class GenderRow : global::System.Data.DataRow {
  5538. private GenderDataTable tableGender;
  5539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5541. internal GenderRow(global::System.Data.DataRowBuilder rb) :
  5542. base(rb) {
  5543. this.tableGender = ((GenderDataTable)(this.Table));
  5544. }
  5545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5547. public string Code {
  5548. get {
  5549. return ((string)(this[this.tableGender.CodeColumn]));
  5550. }
  5551. set {
  5552. this[this.tableGender.CodeColumn] = value;
  5553. }
  5554. }
  5555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5557. public string Name {
  5558. get {
  5559. try {
  5560. return ((string)(this[this.tableGender.NameColumn]));
  5561. }
  5562. catch (global::System.InvalidCastException e) {
  5563. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Gender\' равно DBNull.", e);
  5564. }
  5565. }
  5566. set {
  5567. this[this.tableGender.NameColumn] = value;
  5568. }
  5569. }
  5570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5572. public bool IsNameNull() {
  5573. return this.IsNull(this.tableGender.NameColumn);
  5574. }
  5575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5577. public void SetNameNull() {
  5578. this[this.tableGender.NameColumn] = global::System.Convert.DBNull;
  5579. }
  5580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5582. public ClientRow[] GetClientRows() {
  5583. if ((this.Table.ChildRelations["FK_Client_Gender"] == null)) {
  5584. return new ClientRow[0];
  5585. }
  5586. else {
  5587. return ((ClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Client_Gender"])));
  5588. }
  5589. }
  5590. }
  5591. /// <summary>
  5592. ///Represents strongly named DataRow class.
  5593. ///</summary>
  5594. public partial class ManufacturerRow : global::System.Data.DataRow {
  5595. private ManufacturerDataTable tableManufacturer;
  5596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5598. internal ManufacturerRow(global::System.Data.DataRowBuilder rb) :
  5599. base(rb) {
  5600. this.tableManufacturer = ((ManufacturerDataTable)(this.Table));
  5601. }
  5602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5604. public int ID {
  5605. get {
  5606. return ((int)(this[this.tableManufacturer.IDColumn]));
  5607. }
  5608. set {
  5609. this[this.tableManufacturer.IDColumn] = value;
  5610. }
  5611. }
  5612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5614. public string Name {
  5615. get {
  5616. return ((string)(this[this.tableManufacturer.NameColumn]));
  5617. }
  5618. set {
  5619. this[this.tableManufacturer.NameColumn] = value;
  5620. }
  5621. }
  5622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5624. public System.DateTime StartDate {
  5625. get {
  5626. try {
  5627. return ((global::System.DateTime)(this[this.tableManufacturer.StartDateColumn]));
  5628. }
  5629. catch (global::System.InvalidCastException e) {
  5630. throw new global::System.Data.StrongTypingException("Значение для столбца \'StartDate\' в таблице \'Manufacturer\' равно DBNull.", e);
  5631. }
  5632. }
  5633. set {
  5634. this[this.tableManufacturer.StartDateColumn] = value;
  5635. }
  5636. }
  5637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5639. public bool IsStartDateNull() {
  5640. return this.IsNull(this.tableManufacturer.StartDateColumn);
  5641. }
  5642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5644. public void SetStartDateNull() {
  5645. this[this.tableManufacturer.StartDateColumn] = global::System.Convert.DBNull;
  5646. }
  5647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5649. public ProductRow[] GetProductRows() {
  5650. if ((this.Table.ChildRelations["FK_Product_Manufacturer"] == null)) {
  5651. return new ProductRow[0];
  5652. }
  5653. else {
  5654. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Manufacturer"])));
  5655. }
  5656. }
  5657. }
  5658. /// <summary>
  5659. ///Represents strongly named DataRow class.
  5660. ///</summary>
  5661. public partial class ProductRow : global::System.Data.DataRow {
  5662. private ProductDataTable tableProduct;
  5663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5665. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  5666. base(rb) {
  5667. this.tableProduct = ((ProductDataTable)(this.Table));
  5668. }
  5669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5671. public int ID {
  5672. get {
  5673. return ((int)(this[this.tableProduct.IDColumn]));
  5674. }
  5675. set {
  5676. this[this.tableProduct.IDColumn] = value;
  5677. }
  5678. }
  5679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5681. public string Title {
  5682. get {
  5683. return ((string)(this[this.tableProduct.TitleColumn]));
  5684. }
  5685. set {
  5686. this[this.tableProduct.TitleColumn] = value;
  5687. }
  5688. }
  5689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5691. public decimal Cost {
  5692. get {
  5693. return ((decimal)(this[this.tableProduct.CostColumn]));
  5694. }
  5695. set {
  5696. this[this.tableProduct.CostColumn] = value;
  5697. }
  5698. }
  5699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5701. public string Description {
  5702. get {
  5703. try {
  5704. return ((string)(this[this.tableProduct.DescriptionColumn]));
  5705. }
  5706. catch (global::System.InvalidCastException e) {
  5707. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Product\' равно DBNull.", e);
  5708. }
  5709. }
  5710. set {
  5711. this[this.tableProduct.DescriptionColumn] = value;
  5712. }
  5713. }
  5714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5716. public string MainImagePath {
  5717. get {
  5718. try {
  5719. return ((string)(this[this.tableProduct.MainImagePathColumn]));
  5720. }
  5721. catch (global::System.InvalidCastException e) {
  5722. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Product\' равно DBNull.", e);
  5723. }
  5724. }
  5725. set {
  5726. this[this.tableProduct.MainImagePathColumn] = value;
  5727. }
  5728. }
  5729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5731. public bool IsActive {
  5732. get {
  5733. return ((bool)(this[this.tableProduct.IsActiveColumn]));
  5734. }
  5735. set {
  5736. this[this.tableProduct.IsActiveColumn] = value;
  5737. }
  5738. }
  5739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5741. public int ManufacturerID {
  5742. get {
  5743. try {
  5744. return ((int)(this[this.tableProduct.ManufacturerIDColumn]));
  5745. }
  5746. catch (global::System.InvalidCastException e) {
  5747. throw new global::System.Data.StrongTypingException("Значение для столбца \'ManufacturerID\' в таблице \'Product\' равно DBNull.", e);
  5748. }
  5749. }
  5750. set {
  5751. this[this.tableProduct.ManufacturerIDColumn] = value;
  5752. }
  5753. }
  5754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5756. public ManufacturerRow ManufacturerRow {
  5757. get {
  5758. return ((ManufacturerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Manufacturer"])));
  5759. }
  5760. set {
  5761. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Manufacturer"]);
  5762. }
  5763. }
  5764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5766. public bool IsDescriptionNull() {
  5767. return this.IsNull(this.tableProduct.DescriptionColumn);
  5768. }
  5769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5771. public void SetDescriptionNull() {
  5772. this[this.tableProduct.DescriptionColumn] = global::System.Convert.DBNull;
  5773. }
  5774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5776. public bool IsMainImagePathNull() {
  5777. return this.IsNull(this.tableProduct.MainImagePathColumn);
  5778. }
  5779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5781. public void SetMainImagePathNull() {
  5782. this[this.tableProduct.MainImagePathColumn] = global::System.Convert.DBNull;
  5783. }
  5784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5786. public bool IsManufacturerIDNull() {
  5787. return this.IsNull(this.tableProduct.ManufacturerIDColumn);
  5788. }
  5789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5791. public void SetManufacturerIDNull() {
  5792. this[this.tableProduct.ManufacturerIDColumn] = global::System.Convert.DBNull;
  5793. }
  5794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5796. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product() {
  5797. if ((this.Table.ChildRelations["FK_AttachedProduct_Product"] == null)) {
  5798. return new AttachedProductRow[0];
  5799. }
  5800. else {
  5801. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product"])));
  5802. }
  5803. }
  5804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5806. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product1() {
  5807. if ((this.Table.ChildRelations["FK_AttachedProduct_Product1"] == null)) {
  5808. return new AttachedProductRow[0];
  5809. }
  5810. else {
  5811. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product1"])));
  5812. }
  5813. }
  5814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5816. public ProductPhotoRow[] GetProductPhotoRows() {
  5817. if ((this.Table.ChildRelations["FK_ProductPhoto_Product"] == null)) {
  5818. return new ProductPhotoRow[0];
  5819. }
  5820. else {
  5821. return ((ProductPhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPhoto_Product"])));
  5822. }
  5823. }
  5824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5826. public ProductSaleRow[] GetProductSaleRows() {
  5827. if ((this.Table.ChildRelations["FK_ProductSale_Product"] == null)) {
  5828. return new ProductSaleRow[0];
  5829. }
  5830. else {
  5831. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_Product"])));
  5832. }
  5833. }
  5834. }
  5835. /// <summary>
  5836. ///Represents strongly named DataRow class.
  5837. ///</summary>
  5838. public partial class ProductPhotoRow : global::System.Data.DataRow {
  5839. private ProductPhotoDataTable tableProductPhoto;
  5840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5842. internal ProductPhotoRow(global::System.Data.DataRowBuilder rb) :
  5843. base(rb) {
  5844. this.tableProductPhoto = ((ProductPhotoDataTable)(this.Table));
  5845. }
  5846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5848. public int ID {
  5849. get {
  5850. return ((int)(this[this.tableProductPhoto.IDColumn]));
  5851. }
  5852. set {
  5853. this[this.tableProductPhoto.IDColumn] = value;
  5854. }
  5855. }
  5856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5858. public int ProductID {
  5859. get {
  5860. return ((int)(this[this.tableProductPhoto.ProductIDColumn]));
  5861. }
  5862. set {
  5863. this[this.tableProductPhoto.ProductIDColumn] = value;
  5864. }
  5865. }
  5866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5868. public string PhotoPath {
  5869. get {
  5870. return ((string)(this[this.tableProductPhoto.PhotoPathColumn]));
  5871. }
  5872. set {
  5873. this[this.tableProductPhoto.PhotoPathColumn] = value;
  5874. }
  5875. }
  5876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5878. public ProductRow ProductRow {
  5879. get {
  5880. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPhoto_Product"])));
  5881. }
  5882. set {
  5883. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPhoto_Product"]);
  5884. }
  5885. }
  5886. }
  5887. /// <summary>
  5888. ///Represents strongly named DataRow class.
  5889. ///</summary>
  5890. public partial class ProductSaleRow : global::System.Data.DataRow {
  5891. private ProductSaleDataTable tableProductSale;
  5892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5894. internal ProductSaleRow(global::System.Data.DataRowBuilder rb) :
  5895. base(rb) {
  5896. this.tableProductSale = ((ProductSaleDataTable)(this.Table));
  5897. }
  5898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5900. public int ID {
  5901. get {
  5902. return ((int)(this[this.tableProductSale.IDColumn]));
  5903. }
  5904. set {
  5905. this[this.tableProductSale.IDColumn] = value;
  5906. }
  5907. }
  5908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5910. public System.DateTime SaleDate {
  5911. get {
  5912. return ((global::System.DateTime)(this[this.tableProductSale.SaleDateColumn]));
  5913. }
  5914. set {
  5915. this[this.tableProductSale.SaleDateColumn] = value;
  5916. }
  5917. }
  5918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5920. public int ProductID {
  5921. get {
  5922. return ((int)(this[this.tableProductSale.ProductIDColumn]));
  5923. }
  5924. set {
  5925. this[this.tableProductSale.ProductIDColumn] = value;
  5926. }
  5927. }
  5928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5930. public int Quantity {
  5931. get {
  5932. return ((int)(this[this.tableProductSale.QuantityColumn]));
  5933. }
  5934. set {
  5935. this[this.tableProductSale.QuantityColumn] = value;
  5936. }
  5937. }
  5938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5940. public int ClientServiceID {
  5941. get {
  5942. try {
  5943. return ((int)(this[this.tableProductSale.ClientServiceIDColumn]));
  5944. }
  5945. catch (global::System.InvalidCastException e) {
  5946. throw new global::System.Data.StrongTypingException("Значение для столбца \'ClientServiceID\' в таблице \'ProductSale\' равно DBNull.", e);
  5947. }
  5948. }
  5949. set {
  5950. this[this.tableProductSale.ClientServiceIDColumn] = value;
  5951. }
  5952. }
  5953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5955. public ClientServiceRow ClientServiceRow {
  5956. get {
  5957. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_ClientService"])));
  5958. }
  5959. set {
  5960. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_ClientService"]);
  5961. }
  5962. }
  5963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5965. public ProductRow ProductRow {
  5966. get {
  5967. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_Product"])));
  5968. }
  5969. set {
  5970. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_Product"]);
  5971. }
  5972. }
  5973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5975. public bool IsClientServiceIDNull() {
  5976. return this.IsNull(this.tableProductSale.ClientServiceIDColumn);
  5977. }
  5978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5980. public void SetClientServiceIDNull() {
  5981. this[this.tableProductSale.ClientServiceIDColumn] = global::System.Convert.DBNull;
  5982. }
  5983. }
  5984. /// <summary>
  5985. ///Represents strongly named DataRow class.
  5986. ///</summary>
  5987. public partial class ServiceRow : global::System.Data.DataRow {
  5988. private ServiceDataTable tableService;
  5989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5991. internal ServiceRow(global::System.Data.DataRowBuilder rb) :
  5992. base(rb) {
  5993. this.tableService = ((ServiceDataTable)(this.Table));
  5994. }
  5995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5997. public int ID {
  5998. get {
  5999. return ((int)(this[this.tableService.IDColumn]));
  6000. }
  6001. set {
  6002. this[this.tableService.IDColumn] = value;
  6003. }
  6004. }
  6005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6007. public string Title {
  6008. get {
  6009. return ((string)(this[this.tableService.TitleColumn]));
  6010. }
  6011. set {
  6012. this[this.tableService.TitleColumn] = value;
  6013. }
  6014. }
  6015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6017. public decimal Cost {
  6018. get {
  6019. return ((decimal)(this[this.tableService.CostColumn]));
  6020. }
  6021. set {
  6022. this[this.tableService.CostColumn] = value;
  6023. }
  6024. }
  6025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6027. public int DurationInSeconds {
  6028. get {
  6029. return ((int)(this[this.tableService.DurationInSecondsColumn]));
  6030. }
  6031. set {
  6032. this[this.tableService.DurationInSecondsColumn] = value;
  6033. }
  6034. }
  6035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6037. public string Description {
  6038. get {
  6039. try {
  6040. return ((string)(this[this.tableService.DescriptionColumn]));
  6041. }
  6042. catch (global::System.InvalidCastException e) {
  6043. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Service\' равно DBNull.", e);
  6044. }
  6045. }
  6046. set {
  6047. this[this.tableService.DescriptionColumn] = value;
  6048. }
  6049. }
  6050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6052. public double Discount {
  6053. get {
  6054. try {
  6055. return ((double)(this[this.tableService.DiscountColumn]));
  6056. }
  6057. catch (global::System.InvalidCastException e) {
  6058. throw new global::System.Data.StrongTypingException("Значение для столбца \'Discount\' в таблице \'Service\' равно DBNull.", e);
  6059. }
  6060. }
  6061. set {
  6062. this[this.tableService.DiscountColumn] = value;
  6063. }
  6064. }
  6065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6067. public string MainImagePath {
  6068. get {
  6069. try {
  6070. return ((string)(this[this.tableService.MainImagePathColumn]));
  6071. }
  6072. catch (global::System.InvalidCastException e) {
  6073. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Service\' равно DBNull.", e);
  6074. }
  6075. }
  6076. set {
  6077. this[this.tableService.MainImagePathColumn] = value;
  6078. }
  6079. }
  6080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6082. public bool IsDescriptionNull() {
  6083. return this.IsNull(this.tableService.DescriptionColumn);
  6084. }
  6085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6087. public void SetDescriptionNull() {
  6088. this[this.tableService.DescriptionColumn] = global::System.Convert.DBNull;
  6089. }
  6090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6092. public bool IsDiscountNull() {
  6093. return this.IsNull(this.tableService.DiscountColumn);
  6094. }
  6095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6097. public void SetDiscountNull() {
  6098. this[this.tableService.DiscountColumn] = global::System.Convert.DBNull;
  6099. }
  6100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6102. public bool IsMainImagePathNull() {
  6103. return this.IsNull(this.tableService.MainImagePathColumn);
  6104. }
  6105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6107. public void SetMainImagePathNull() {
  6108. this[this.tableService.MainImagePathColumn] = global::System.Convert.DBNull;
  6109. }
  6110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6112. public ClientServiceRow[] GetClientServiceRows() {
  6113. if ((this.Table.ChildRelations["FK_ClientService_Service"] == null)) {
  6114. return new ClientServiceRow[0];
  6115. }
  6116. else {
  6117. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Service"])));
  6118. }
  6119. }
  6120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6122. public ServicePhotoRow[] GetServicePhotoRows() {
  6123. if ((this.Table.ChildRelations["FK_ServicePhoto_Service"] == null)) {
  6124. return new ServicePhotoRow[0];
  6125. }
  6126. else {
  6127. return ((ServicePhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ServicePhoto_Service"])));
  6128. }
  6129. }
  6130. }
  6131. /// <summary>
  6132. ///Represents strongly named DataRow class.
  6133. ///</summary>
  6134. public partial class service_b_importRow : global::System.Data.DataRow {
  6135. private service_b_importDataTable tableservice_b_import;
  6136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6138. internal service_b_importRow(global::System.Data.DataRowBuilder rb) :
  6139. base(rb) {
  6140. this.tableservice_b_import = ((service_b_importDataTable)(this.Table));
  6141. }
  6142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6144. public string Наименование_услуги {
  6145. get {
  6146. return ((string)(this[this.tableservice_b_import.Наименование_услугиColumn]));
  6147. }
  6148. set {
  6149. this[this.tableservice_b_import.Наименование_услугиColumn] = value;
  6150. }
  6151. }
  6152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6154. public string Главное_изображение {
  6155. get {
  6156. return ((string)(this[this.tableservice_b_import.Главное_изображениеColumn]));
  6157. }
  6158. set {
  6159. this[this.tableservice_b_import.Главное_изображениеColumn] = value;
  6160. }
  6161. }
  6162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6164. public string Длительность {
  6165. get {
  6166. return ((string)(this[this.tableservice_b_import.ДлительностьColumn]));
  6167. }
  6168. set {
  6169. this[this.tableservice_b_import.ДлительностьColumn] = value;
  6170. }
  6171. }
  6172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6174. public string Стоимость {
  6175. get {
  6176. return ((string)(this[this.tableservice_b_import.СтоимостьColumn]));
  6177. }
  6178. set {
  6179. this[this.tableservice_b_import.СтоимостьColumn] = value;
  6180. }
  6181. }
  6182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6184. public string Действующая_скидка {
  6185. get {
  6186. return ((string)(this[this.tableservice_b_import.Действующая_скидкаColumn]));
  6187. }
  6188. set {
  6189. this[this.tableservice_b_import.Действующая_скидкаColumn] = value;
  6190. }
  6191. }
  6192. }
  6193. /// <summary>
  6194. ///Represents strongly named DataRow class.
  6195. ///</summary>
  6196. public partial class ServicePhotoRow : global::System.Data.DataRow {
  6197. private ServicePhotoDataTable tableServicePhoto;
  6198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6200. internal ServicePhotoRow(global::System.Data.DataRowBuilder rb) :
  6201. base(rb) {
  6202. this.tableServicePhoto = ((ServicePhotoDataTable)(this.Table));
  6203. }
  6204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6206. public int ID {
  6207. get {
  6208. return ((int)(this[this.tableServicePhoto.IDColumn]));
  6209. }
  6210. set {
  6211. this[this.tableServicePhoto.IDColumn] = value;
  6212. }
  6213. }
  6214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6216. public int ServiceID {
  6217. get {
  6218. return ((int)(this[this.tableServicePhoto.ServiceIDColumn]));
  6219. }
  6220. set {
  6221. this[this.tableServicePhoto.ServiceIDColumn] = value;
  6222. }
  6223. }
  6224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6226. public string PhotoPath {
  6227. get {
  6228. return ((string)(this[this.tableServicePhoto.PhotoPathColumn]));
  6229. }
  6230. set {
  6231. this[this.tableServicePhoto.PhotoPathColumn] = value;
  6232. }
  6233. }
  6234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6236. public ServiceRow ServiceRow {
  6237. get {
  6238. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ServicePhoto_Service"])));
  6239. }
  6240. set {
  6241. this.SetParentRow(value, this.Table.ParentRelations["FK_ServicePhoto_Service"]);
  6242. }
  6243. }
  6244. }
  6245. /// <summary>
  6246. ///Represents strongly named DataRow class.
  6247. ///</summary>
  6248. public partial class TagRow : global::System.Data.DataRow {
  6249. private TagDataTable tableTag;
  6250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6252. internal TagRow(global::System.Data.DataRowBuilder rb) :
  6253. base(rb) {
  6254. this.tableTag = ((TagDataTable)(this.Table));
  6255. }
  6256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6258. public int ID {
  6259. get {
  6260. return ((int)(this[this.tableTag.IDColumn]));
  6261. }
  6262. set {
  6263. this[this.tableTag.IDColumn] = value;
  6264. }
  6265. }
  6266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6268. public string Title {
  6269. get {
  6270. return ((string)(this[this.tableTag.TitleColumn]));
  6271. }
  6272. set {
  6273. this[this.tableTag.TitleColumn] = value;
  6274. }
  6275. }
  6276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6278. public string Color {
  6279. get {
  6280. return ((string)(this[this.tableTag.ColorColumn]));
  6281. }
  6282. set {
  6283. this[this.tableTag.ColorColumn] = value;
  6284. }
  6285. }
  6286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6288. public TagOfClientRow[] GetTagOfClientRows() {
  6289. if ((this.Table.ChildRelations["FK_TagOfClient_Tag"] == null)) {
  6290. return new TagOfClientRow[0];
  6291. }
  6292. else {
  6293. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Tag"])));
  6294. }
  6295. }
  6296. }
  6297. /// <summary>
  6298. ///Represents strongly named DataRow class.
  6299. ///</summary>
  6300. public partial class TagOfClientRow : global::System.Data.DataRow {
  6301. private TagOfClientDataTable tableTagOfClient;
  6302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6304. internal TagOfClientRow(global::System.Data.DataRowBuilder rb) :
  6305. base(rb) {
  6306. this.tableTagOfClient = ((TagOfClientDataTable)(this.Table));
  6307. }
  6308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6310. public int ClientID {
  6311. get {
  6312. return ((int)(this[this.tableTagOfClient.ClientIDColumn]));
  6313. }
  6314. set {
  6315. this[this.tableTagOfClient.ClientIDColumn] = value;
  6316. }
  6317. }
  6318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6320. public int TagID {
  6321. get {
  6322. return ((int)(this[this.tableTagOfClient.TagIDColumn]));
  6323. }
  6324. set {
  6325. this[this.tableTagOfClient.TagIDColumn] = value;
  6326. }
  6327. }
  6328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6330. public ClientRow ClientRow {
  6331. get {
  6332. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Client"])));
  6333. }
  6334. set {
  6335. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Client"]);
  6336. }
  6337. }
  6338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6340. public TagRow TagRow {
  6341. get {
  6342. return ((TagRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Tag"])));
  6343. }
  6344. set {
  6345. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Tag"]);
  6346. }
  6347. }
  6348. }
  6349. /// <summary>
  6350. ///Row event argument class
  6351. ///</summary>
  6352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6353. public class AttachedProductRowChangeEvent : global::System.EventArgs {
  6354. private AttachedProductRow eventRow;
  6355. private global::System.Data.DataRowAction eventAction;
  6356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6358. public AttachedProductRowChangeEvent(AttachedProductRow row, global::System.Data.DataRowAction action) {
  6359. this.eventRow = row;
  6360. this.eventAction = action;
  6361. }
  6362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6364. public AttachedProductRow Row {
  6365. get {
  6366. return this.eventRow;
  6367. }
  6368. }
  6369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6371. public global::System.Data.DataRowAction Action {
  6372. get {
  6373. return this.eventAction;
  6374. }
  6375. }
  6376. }
  6377. /// <summary>
  6378. ///Row event argument class
  6379. ///</summary>
  6380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6381. public class ClientRowChangeEvent : global::System.EventArgs {
  6382. private ClientRow eventRow;
  6383. private global::System.Data.DataRowAction eventAction;
  6384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6386. public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) {
  6387. this.eventRow = row;
  6388. this.eventAction = action;
  6389. }
  6390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6392. public ClientRow Row {
  6393. get {
  6394. return this.eventRow;
  6395. }
  6396. }
  6397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6399. public global::System.Data.DataRowAction Action {
  6400. get {
  6401. return this.eventAction;
  6402. }
  6403. }
  6404. }
  6405. /// <summary>
  6406. ///Row event argument class
  6407. ///</summary>
  6408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6409. public class client_b_importRowChangeEvent : global::System.EventArgs {
  6410. private client_b_importRow eventRow;
  6411. private global::System.Data.DataRowAction eventAction;
  6412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6414. public client_b_importRowChangeEvent(client_b_importRow row, global::System.Data.DataRowAction action) {
  6415. this.eventRow = row;
  6416. this.eventAction = action;
  6417. }
  6418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6420. public client_b_importRow Row {
  6421. get {
  6422. return this.eventRow;
  6423. }
  6424. }
  6425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6427. public global::System.Data.DataRowAction Action {
  6428. get {
  6429. return this.eventAction;
  6430. }
  6431. }
  6432. }
  6433. /// <summary>
  6434. ///Row event argument class
  6435. ///</summary>
  6436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6437. public class ClientServiceRowChangeEvent : global::System.EventArgs {
  6438. private ClientServiceRow eventRow;
  6439. private global::System.Data.DataRowAction eventAction;
  6440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6442. public ClientServiceRowChangeEvent(ClientServiceRow row, global::System.Data.DataRowAction action) {
  6443. this.eventRow = row;
  6444. this.eventAction = action;
  6445. }
  6446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6448. public ClientServiceRow Row {
  6449. get {
  6450. return this.eventRow;
  6451. }
  6452. }
  6453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6455. public global::System.Data.DataRowAction Action {
  6456. get {
  6457. return this.eventAction;
  6458. }
  6459. }
  6460. }
  6461. /// <summary>
  6462. ///Row event argument class
  6463. ///</summary>
  6464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6465. public class DocumentByServiceRowChangeEvent : global::System.EventArgs {
  6466. private DocumentByServiceRow eventRow;
  6467. private global::System.Data.DataRowAction eventAction;
  6468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6470. public DocumentByServiceRowChangeEvent(DocumentByServiceRow row, global::System.Data.DataRowAction action) {
  6471. this.eventRow = row;
  6472. this.eventAction = action;
  6473. }
  6474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6476. public DocumentByServiceRow Row {
  6477. get {
  6478. return this.eventRow;
  6479. }
  6480. }
  6481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6483. public global::System.Data.DataRowAction Action {
  6484. get {
  6485. return this.eventAction;
  6486. }
  6487. }
  6488. }
  6489. /// <summary>
  6490. ///Row event argument class
  6491. ///</summary>
  6492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6493. public class GenderRowChangeEvent : global::System.EventArgs {
  6494. private GenderRow eventRow;
  6495. private global::System.Data.DataRowAction eventAction;
  6496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6498. public GenderRowChangeEvent(GenderRow row, global::System.Data.DataRowAction action) {
  6499. this.eventRow = row;
  6500. this.eventAction = action;
  6501. }
  6502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6504. public GenderRow Row {
  6505. get {
  6506. return this.eventRow;
  6507. }
  6508. }
  6509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6511. public global::System.Data.DataRowAction Action {
  6512. get {
  6513. return this.eventAction;
  6514. }
  6515. }
  6516. }
  6517. /// <summary>
  6518. ///Row event argument class
  6519. ///</summary>
  6520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6521. public class ManufacturerRowChangeEvent : global::System.EventArgs {
  6522. private ManufacturerRow eventRow;
  6523. private global::System.Data.DataRowAction eventAction;
  6524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6526. public ManufacturerRowChangeEvent(ManufacturerRow row, global::System.Data.DataRowAction action) {
  6527. this.eventRow = row;
  6528. this.eventAction = action;
  6529. }
  6530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6532. public ManufacturerRow Row {
  6533. get {
  6534. return this.eventRow;
  6535. }
  6536. }
  6537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6539. public global::System.Data.DataRowAction Action {
  6540. get {
  6541. return this.eventAction;
  6542. }
  6543. }
  6544. }
  6545. /// <summary>
  6546. ///Row event argument class
  6547. ///</summary>
  6548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6549. public class ProductRowChangeEvent : global::System.EventArgs {
  6550. private ProductRow eventRow;
  6551. private global::System.Data.DataRowAction eventAction;
  6552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6554. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  6555. this.eventRow = row;
  6556. this.eventAction = action;
  6557. }
  6558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6560. public ProductRow Row {
  6561. get {
  6562. return this.eventRow;
  6563. }
  6564. }
  6565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6567. public global::System.Data.DataRowAction Action {
  6568. get {
  6569. return this.eventAction;
  6570. }
  6571. }
  6572. }
  6573. /// <summary>
  6574. ///Row event argument class
  6575. ///</summary>
  6576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6577. public class ProductPhotoRowChangeEvent : global::System.EventArgs {
  6578. private ProductPhotoRow eventRow;
  6579. private global::System.Data.DataRowAction eventAction;
  6580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6582. public ProductPhotoRowChangeEvent(ProductPhotoRow row, global::System.Data.DataRowAction action) {
  6583. this.eventRow = row;
  6584. this.eventAction = action;
  6585. }
  6586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6588. public ProductPhotoRow Row {
  6589. get {
  6590. return this.eventRow;
  6591. }
  6592. }
  6593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6595. public global::System.Data.DataRowAction Action {
  6596. get {
  6597. return this.eventAction;
  6598. }
  6599. }
  6600. }
  6601. /// <summary>
  6602. ///Row event argument class
  6603. ///</summary>
  6604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6605. public class ProductSaleRowChangeEvent : global::System.EventArgs {
  6606. private ProductSaleRow eventRow;
  6607. private global::System.Data.DataRowAction eventAction;
  6608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6610. public ProductSaleRowChangeEvent(ProductSaleRow row, global::System.Data.DataRowAction action) {
  6611. this.eventRow = row;
  6612. this.eventAction = action;
  6613. }
  6614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6616. public ProductSaleRow Row {
  6617. get {
  6618. return this.eventRow;
  6619. }
  6620. }
  6621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6623. public global::System.Data.DataRowAction Action {
  6624. get {
  6625. return this.eventAction;
  6626. }
  6627. }
  6628. }
  6629. /// <summary>
  6630. ///Row event argument class
  6631. ///</summary>
  6632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6633. public class ServiceRowChangeEvent : global::System.EventArgs {
  6634. private ServiceRow eventRow;
  6635. private global::System.Data.DataRowAction eventAction;
  6636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6638. public ServiceRowChangeEvent(ServiceRow row, global::System.Data.DataRowAction action) {
  6639. this.eventRow = row;
  6640. this.eventAction = action;
  6641. }
  6642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6644. public ServiceRow Row {
  6645. get {
  6646. return this.eventRow;
  6647. }
  6648. }
  6649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6651. public global::System.Data.DataRowAction Action {
  6652. get {
  6653. return this.eventAction;
  6654. }
  6655. }
  6656. }
  6657. /// <summary>
  6658. ///Row event argument class
  6659. ///</summary>
  6660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6661. public class service_b_importRowChangeEvent : global::System.EventArgs {
  6662. private service_b_importRow eventRow;
  6663. private global::System.Data.DataRowAction eventAction;
  6664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6666. public service_b_importRowChangeEvent(service_b_importRow row, global::System.Data.DataRowAction action) {
  6667. this.eventRow = row;
  6668. this.eventAction = action;
  6669. }
  6670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6672. public service_b_importRow Row {
  6673. get {
  6674. return this.eventRow;
  6675. }
  6676. }
  6677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6679. public global::System.Data.DataRowAction Action {
  6680. get {
  6681. return this.eventAction;
  6682. }
  6683. }
  6684. }
  6685. /// <summary>
  6686. ///Row event argument class
  6687. ///</summary>
  6688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6689. public class ServicePhotoRowChangeEvent : global::System.EventArgs {
  6690. private ServicePhotoRow eventRow;
  6691. private global::System.Data.DataRowAction eventAction;
  6692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6694. public ServicePhotoRowChangeEvent(ServicePhotoRow row, global::System.Data.DataRowAction action) {
  6695. this.eventRow = row;
  6696. this.eventAction = action;
  6697. }
  6698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6700. public ServicePhotoRow Row {
  6701. get {
  6702. return this.eventRow;
  6703. }
  6704. }
  6705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6707. public global::System.Data.DataRowAction Action {
  6708. get {
  6709. return this.eventAction;
  6710. }
  6711. }
  6712. }
  6713. /// <summary>
  6714. ///Row event argument class
  6715. ///</summary>
  6716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6717. public class TagRowChangeEvent : global::System.EventArgs {
  6718. private TagRow eventRow;
  6719. private global::System.Data.DataRowAction eventAction;
  6720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6722. public TagRowChangeEvent(TagRow row, global::System.Data.DataRowAction action) {
  6723. this.eventRow = row;
  6724. this.eventAction = action;
  6725. }
  6726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6728. public TagRow Row {
  6729. get {
  6730. return this.eventRow;
  6731. }
  6732. }
  6733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6735. public global::System.Data.DataRowAction Action {
  6736. get {
  6737. return this.eventAction;
  6738. }
  6739. }
  6740. }
  6741. /// <summary>
  6742. ///Row event argument class
  6743. ///</summary>
  6744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6745. public class TagOfClientRowChangeEvent : global::System.EventArgs {
  6746. private TagOfClientRow eventRow;
  6747. private global::System.Data.DataRowAction eventAction;
  6748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6750. public TagOfClientRowChangeEvent(TagOfClientRow row, global::System.Data.DataRowAction action) {
  6751. this.eventRow = row;
  6752. this.eventAction = action;
  6753. }
  6754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6756. public TagOfClientRow Row {
  6757. get {
  6758. return this.eventRow;
  6759. }
  6760. }
  6761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6763. public global::System.Data.DataRowAction Action {
  6764. get {
  6765. return this.eventAction;
  6766. }
  6767. }
  6768. }
  6769. }
  6770. }
  6771. namespace bobrov2demo.bobrovDemoEgzamenDataSetTableAdapters {
  6772. /// <summary>
  6773. ///Represents the connection and commands used to retrieve and save data.
  6774. ///</summary>
  6775. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6776. [global::System.ComponentModel.ToolboxItem(true)]
  6777. [global::System.ComponentModel.DataObjectAttribute(true)]
  6778. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6779. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6780. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6781. public partial class AttachedProductTableAdapter : global::System.ComponentModel.Component {
  6782. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6783. private global::System.Data.SqlClient.SqlConnection _connection;
  6784. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6785. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6786. private bool _clearBeforeFill;
  6787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6789. public AttachedProductTableAdapter() {
  6790. this.ClearBeforeFill = true;
  6791. }
  6792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6794. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6795. get {
  6796. if ((this._adapter == null)) {
  6797. this.InitAdapter();
  6798. }
  6799. return this._adapter;
  6800. }
  6801. }
  6802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6804. internal global::System.Data.SqlClient.SqlConnection Connection {
  6805. get {
  6806. if ((this._connection == null)) {
  6807. this.InitConnection();
  6808. }
  6809. return this._connection;
  6810. }
  6811. set {
  6812. this._connection = value;
  6813. if ((this.Adapter.InsertCommand != null)) {
  6814. this.Adapter.InsertCommand.Connection = value;
  6815. }
  6816. if ((this.Adapter.DeleteCommand != null)) {
  6817. this.Adapter.DeleteCommand.Connection = value;
  6818. }
  6819. if ((this.Adapter.UpdateCommand != null)) {
  6820. this.Adapter.UpdateCommand.Connection = value;
  6821. }
  6822. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6823. if ((this.CommandCollection[i] != null)) {
  6824. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6825. }
  6826. }
  6827. }
  6828. }
  6829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6831. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6832. get {
  6833. return this._transaction;
  6834. }
  6835. set {
  6836. this._transaction = value;
  6837. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6838. this.CommandCollection[i].Transaction = this._transaction;
  6839. }
  6840. if (((this.Adapter != null)
  6841. && (this.Adapter.DeleteCommand != null))) {
  6842. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6843. }
  6844. if (((this.Adapter != null)
  6845. && (this.Adapter.InsertCommand != null))) {
  6846. this.Adapter.InsertCommand.Transaction = this._transaction;
  6847. }
  6848. if (((this.Adapter != null)
  6849. && (this.Adapter.UpdateCommand != null))) {
  6850. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6851. }
  6852. }
  6853. }
  6854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6856. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6857. get {
  6858. if ((this._commandCollection == null)) {
  6859. this.InitCommandCollection();
  6860. }
  6861. return this._commandCollection;
  6862. }
  6863. }
  6864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6866. public bool ClearBeforeFill {
  6867. get {
  6868. return this._clearBeforeFill;
  6869. }
  6870. set {
  6871. this._clearBeforeFill = value;
  6872. }
  6873. }
  6874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6876. private void InitAdapter() {
  6877. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6878. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6879. tableMapping.SourceTable = "Table";
  6880. tableMapping.DataSetTable = "AttachedProduct";
  6881. tableMapping.ColumnMappings.Add("MainProductID", "MainProductID");
  6882. tableMapping.ColumnMappings.Add("AttachedProductID", "AttachedProductID");
  6883. this._adapter.TableMappings.Add(tableMapping);
  6884. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6885. this._adapter.DeleteCommand.Connection = this.Connection;
  6886. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AttachedProduct] WHERE (([MainProductID] = @Original_MainProdu" +
  6887. "ctID) AND ([AttachedProductID] = @Original_AttachedProductID))";
  6888. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6889. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6890. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AttachedProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AttachedProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6891. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6892. this._adapter.InsertCommand.Connection = this.Connection;
  6893. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AttachedProduct] ([MainProductID], [AttachedProductID]) VALUES (@MainProductID, @AttachedProductID);
  6894. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  6895. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6896. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6897. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AttachedProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AttachedProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6898. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6899. this._adapter.UpdateCommand.Connection = this.Connection;
  6900. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AttachedProduct] SET [MainProductID] = @MainProductID, [AttachedProductID] = @AttachedProductID WHERE (([MainProductID] = @Original_MainProductID) AND ([AttachedProductID] = @Original_AttachedProductID));
  6901. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  6902. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6903. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6904. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AttachedProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AttachedProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6905. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6906. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AttachedProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AttachedProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6907. }
  6908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6910. private void InitConnection() {
  6911. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6912. this._connection.ConnectionString = global::bobrov2demo.Properties.Settings.Default.bobrovDemoEgzamenConnectionString;
  6913. }
  6914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6916. private void InitCommandCollection() {
  6917. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6918. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6919. this._commandCollection[0].Connection = this.Connection;
  6920. this._commandCollection[0].CommandText = "SELECT MainProductID, AttachedProductID FROM dbo.AttachedProduct";
  6921. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6922. }
  6923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6925. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6926. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6927. public virtual int Fill(bobrovDemoEgzamenDataSet.AttachedProductDataTable dataTable) {
  6928. this.Adapter.SelectCommand = this.CommandCollection[0];
  6929. if ((this.ClearBeforeFill == true)) {
  6930. dataTable.Clear();
  6931. }
  6932. int returnValue = this.Adapter.Fill(dataTable);
  6933. return returnValue;
  6934. }
  6935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6937. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6938. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6939. public virtual bobrovDemoEgzamenDataSet.AttachedProductDataTable GetData() {
  6940. this.Adapter.SelectCommand = this.CommandCollection[0];
  6941. bobrovDemoEgzamenDataSet.AttachedProductDataTable dataTable = new bobrovDemoEgzamenDataSet.AttachedProductDataTable();
  6942. this.Adapter.Fill(dataTable);
  6943. return dataTable;
  6944. }
  6945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6947. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6948. public virtual int Update(bobrovDemoEgzamenDataSet.AttachedProductDataTable dataTable) {
  6949. return this.Adapter.Update(dataTable);
  6950. }
  6951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6953. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6954. public virtual int Update(bobrovDemoEgzamenDataSet dataSet) {
  6955. return this.Adapter.Update(dataSet, "AttachedProduct");
  6956. }
  6957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6959. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6960. public virtual int Update(global::System.Data.DataRow dataRow) {
  6961. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6962. dataRow});
  6963. }
  6964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6966. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6967. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6968. return this.Adapter.Update(dataRows);
  6969. }
  6970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6972. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6973. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6974. public virtual int Delete(int Original_MainProductID, int Original_AttachedProductID) {
  6975. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MainProductID));
  6976. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_AttachedProductID));
  6977. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6978. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6979. != global::System.Data.ConnectionState.Open)) {
  6980. this.Adapter.DeleteCommand.Connection.Open();
  6981. }
  6982. try {
  6983. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6984. return returnValue;
  6985. }
  6986. finally {
  6987. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6988. this.Adapter.DeleteCommand.Connection.Close();
  6989. }
  6990. }
  6991. }
  6992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6994. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6995. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6996. public virtual int Insert(int MainProductID, int AttachedProductID) {
  6997. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MainProductID));
  6998. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6999. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7000. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7001. != global::System.Data.ConnectionState.Open)) {
  7002. this.Adapter.InsertCommand.Connection.Open();
  7003. }
  7004. try {
  7005. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7006. return returnValue;
  7007. }
  7008. finally {
  7009. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7010. this.Adapter.InsertCommand.Connection.Close();
  7011. }
  7012. }
  7013. }
  7014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7016. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7017. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7018. public virtual int Update(int MainProductID, int AttachedProductID, int Original_MainProductID, int Original_AttachedProductID) {
  7019. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MainProductID));
  7020. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(AttachedProductID));
  7021. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_MainProductID));
  7022. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_AttachedProductID));
  7023. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7024. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7025. != global::System.Data.ConnectionState.Open)) {
  7026. this.Adapter.UpdateCommand.Connection.Open();
  7027. }
  7028. try {
  7029. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7030. return returnValue;
  7031. }
  7032. finally {
  7033. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7034. this.Adapter.UpdateCommand.Connection.Close();
  7035. }
  7036. }
  7037. }
  7038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7040. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7041. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7042. public virtual int Update(int Original_MainProductID, int Original_AttachedProductID) {
  7043. return this.Update(Original_MainProductID, Original_AttachedProductID, Original_MainProductID, Original_AttachedProductID);
  7044. }
  7045. }
  7046. /// <summary>
  7047. ///Represents the connection and commands used to retrieve and save data.
  7048. ///</summary>
  7049. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7050. [global::System.ComponentModel.ToolboxItem(true)]
  7051. [global::System.ComponentModel.DataObjectAttribute(true)]
  7052. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7053. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7054. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7055. public partial class ClientTableAdapter : global::System.ComponentModel.Component {
  7056. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7057. private global::System.Data.SqlClient.SqlConnection _connection;
  7058. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7059. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7060. private bool _clearBeforeFill;
  7061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7063. public ClientTableAdapter() {
  7064. this.ClearBeforeFill = true;
  7065. }
  7066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7068. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7069. get {
  7070. if ((this._adapter == null)) {
  7071. this.InitAdapter();
  7072. }
  7073. return this._adapter;
  7074. }
  7075. }
  7076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7078. internal global::System.Data.SqlClient.SqlConnection Connection {
  7079. get {
  7080. if ((this._connection == null)) {
  7081. this.InitConnection();
  7082. }
  7083. return this._connection;
  7084. }
  7085. set {
  7086. this._connection = value;
  7087. if ((this.Adapter.InsertCommand != null)) {
  7088. this.Adapter.InsertCommand.Connection = value;
  7089. }
  7090. if ((this.Adapter.DeleteCommand != null)) {
  7091. this.Adapter.DeleteCommand.Connection = value;
  7092. }
  7093. if ((this.Adapter.UpdateCommand != null)) {
  7094. this.Adapter.UpdateCommand.Connection = value;
  7095. }
  7096. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7097. if ((this.CommandCollection[i] != null)) {
  7098. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7099. }
  7100. }
  7101. }
  7102. }
  7103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7105. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7106. get {
  7107. return this._transaction;
  7108. }
  7109. set {
  7110. this._transaction = value;
  7111. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7112. this.CommandCollection[i].Transaction = this._transaction;
  7113. }
  7114. if (((this.Adapter != null)
  7115. && (this.Adapter.DeleteCommand != null))) {
  7116. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7117. }
  7118. if (((this.Adapter != null)
  7119. && (this.Adapter.InsertCommand != null))) {
  7120. this.Adapter.InsertCommand.Transaction = this._transaction;
  7121. }
  7122. if (((this.Adapter != null)
  7123. && (this.Adapter.UpdateCommand != null))) {
  7124. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7125. }
  7126. }
  7127. }
  7128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7130. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7131. get {
  7132. if ((this._commandCollection == null)) {
  7133. this.InitCommandCollection();
  7134. }
  7135. return this._commandCollection;
  7136. }
  7137. }
  7138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7140. public bool ClearBeforeFill {
  7141. get {
  7142. return this._clearBeforeFill;
  7143. }
  7144. set {
  7145. this._clearBeforeFill = value;
  7146. }
  7147. }
  7148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7150. private void InitAdapter() {
  7151. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7152. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7153. tableMapping.SourceTable = "Table";
  7154. tableMapping.DataSetTable = "Client";
  7155. tableMapping.ColumnMappings.Add("ID", "ID");
  7156. tableMapping.ColumnMappings.Add("FirstName", "FirstName");
  7157. tableMapping.ColumnMappings.Add("LastName", "LastName");
  7158. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  7159. tableMapping.ColumnMappings.Add("Birthday", "Birthday");
  7160. tableMapping.ColumnMappings.Add("RegistrationDate", "RegistrationDate");
  7161. tableMapping.ColumnMappings.Add("Email", "Email");
  7162. tableMapping.ColumnMappings.Add("Phone", "Phone");
  7163. tableMapping.ColumnMappings.Add("GenderCode", "GenderCode");
  7164. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  7165. this._adapter.TableMappings.Add(tableMapping);
  7166. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7167. this._adapter.DeleteCommand.Connection = this.Connection;
  7168. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Client] WHERE (([ID] = @Original_ID) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ([RegistrationDate] = @Original_RegistrationDate) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ([GenderCode] = @Original_GenderCode) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)))";
  7169. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7170. 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, "", "", ""));
  7171. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7172. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7173. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7174. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7175. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Birthday", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7176. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Birthday", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7177. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RegistrationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7178. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7179. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7180. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7181. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7182. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PhotoPath", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7183. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7184. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7185. this._adapter.InsertCommand.Connection = this.Connection;
  7186. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Client] ([FirstName], [LastName], [Patronymic], [Birthday], [RegistrationDate], [Email], [Phone], [GenderCode], [PhotoPath]) VALUES (@FirstName, @LastName, @Patronymic, @Birthday, @RegistrationDate, @Email, @Phone, @GenderCode, @PhotoPath);
  7187. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = SCOPE_IDENTITY())";
  7188. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7189. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7190. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7191. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7192. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Birthday", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7193. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RegistrationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7194. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7195. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7196. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7197. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7198. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7199. this._adapter.UpdateCommand.Connection = this.Connection;
  7200. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Client] SET [FirstName] = @FirstName, [LastName] = @LastName, [Patronymic] = @Patronymic, [Birthday] = @Birthday, [RegistrationDate] = @RegistrationDate, [Email] = @Email, [Phone] = @Phone, [GenderCode] = @GenderCode, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ([RegistrationDate] = @Original_RegistrationDate) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ([GenderCode] = @Original_GenderCode) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)));
  7201. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = @ID)";
  7202. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7203. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7204. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7205. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7206. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Birthday", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7207. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RegistrationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7208. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7209. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7210. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7211. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7212. 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, "", "", ""));
  7213. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7214. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7215. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7216. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7217. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Birthday", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7218. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Birthday", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7219. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RegistrationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7220. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7221. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7222. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7223. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7224. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PhotoPath", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7225. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7226. 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, "", "", ""));
  7227. }
  7228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7230. private void InitConnection() {
  7231. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7232. this._connection.ConnectionString = global::bobrov2demo.Properties.Settings.Default.bobrovDemoEgzamenConnectionString;
  7233. }
  7234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7236. private void InitCommandCollection() {
  7237. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7238. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7239. this._commandCollection[0].Connection = this.Connection;
  7240. this._commandCollection[0].CommandText = "SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Ph" +
  7241. "one, GenderCode, PhotoPath FROM dbo.Client";
  7242. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7243. }
  7244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7246. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7247. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7248. public virtual int Fill(bobrovDemoEgzamenDataSet.ClientDataTable dataTable) {
  7249. this.Adapter.SelectCommand = this.CommandCollection[0];
  7250. if ((this.ClearBeforeFill == true)) {
  7251. dataTable.Clear();
  7252. }
  7253. int returnValue = this.Adapter.Fill(dataTable);
  7254. return returnValue;
  7255. }
  7256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7258. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7259. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7260. public virtual bobrovDemoEgzamenDataSet.ClientDataTable GetData() {
  7261. this.Adapter.SelectCommand = this.CommandCollection[0];
  7262. bobrovDemoEgzamenDataSet.ClientDataTable dataTable = new bobrovDemoEgzamenDataSet.ClientDataTable();
  7263. this.Adapter.Fill(dataTable);
  7264. return dataTable;
  7265. }
  7266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7268. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7269. public virtual int Update(bobrovDemoEgzamenDataSet.ClientDataTable dataTable) {
  7270. return this.Adapter.Update(dataTable);
  7271. }
  7272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7274. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7275. public virtual int Update(bobrovDemoEgzamenDataSet dataSet) {
  7276. return this.Adapter.Update(dataSet, "Client");
  7277. }
  7278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7280. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7281. public virtual int Update(global::System.Data.DataRow dataRow) {
  7282. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7283. dataRow});
  7284. }
  7285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7287. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7288. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7289. return this.Adapter.Update(dataRows);
  7290. }
  7291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7293. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7294. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7295. public virtual int Delete(int Original_ID, string Original_FirstName, string Original_LastName, string Original_Patronymic, global::System.Nullable<global::System.DateTime> Original_Birthday, System.DateTime Original_RegistrationDate, string Original_Email, string Original_Phone, string Original_GenderCode, string Original_PhotoPath) {
  7296. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7297. if ((Original_FirstName == null)) {
  7298. throw new global::System.ArgumentNullException("Original_FirstName");
  7299. }
  7300. else {
  7301. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_FirstName));
  7302. }
  7303. if ((Original_LastName == null)) {
  7304. throw new global::System.ArgumentNullException("Original_LastName");
  7305. }
  7306. else {
  7307. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_LastName));
  7308. }
  7309. if ((Original_Patronymic == null)) {
  7310. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7311. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7312. }
  7313. else {
  7314. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7315. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Patronymic));
  7316. }
  7317. if ((Original_Birthday.HasValue == true)) {
  7318. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7319. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Birthday.Value));
  7320. }
  7321. else {
  7322. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7323. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7324. }
  7325. this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_RegistrationDate));
  7326. if ((Original_Email == null)) {
  7327. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
  7328. this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
  7329. }
  7330. else {
  7331. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
  7332. this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_Email));
  7333. }
  7334. if ((Original_Phone == null)) {
  7335. throw new global::System.ArgumentNullException("Original_Phone");
  7336. }
  7337. else {
  7338. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Phone));
  7339. }
  7340. if ((Original_GenderCode == null)) {
  7341. throw new global::System.ArgumentNullException("Original_GenderCode");
  7342. }
  7343. else {
  7344. this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_GenderCode));
  7345. }
  7346. if ((Original_PhotoPath == null)) {
  7347. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1));
  7348. this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value;
  7349. }
  7350. else {
  7351. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0));
  7352. this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_PhotoPath));
  7353. }
  7354. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7355. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7356. != global::System.Data.ConnectionState.Open)) {
  7357. this.Adapter.DeleteCommand.Connection.Open();
  7358. }
  7359. try {
  7360. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7361. return returnValue;
  7362. }
  7363. finally {
  7364. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7365. this.Adapter.DeleteCommand.Connection.Close();
  7366. }
  7367. }
  7368. }
  7369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7371. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7372. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7373. public virtual int Insert(string FirstName, string LastName, string Patronymic, global::System.Nullable<global::System.DateTime> Birthday, System.DateTime RegistrationDate, string Email, string Phone, string GenderCode, string PhotoPath) {
  7374. if ((FirstName == null)) {
  7375. throw new global::System.ArgumentNullException("FirstName");
  7376. }
  7377. else {
  7378. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(FirstName));
  7379. }
  7380. if ((LastName == null)) {
  7381. throw new global::System.ArgumentNullException("LastName");
  7382. }
  7383. else {
  7384. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(LastName));
  7385. }
  7386. if ((Patronymic == null)) {
  7387. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7388. }
  7389. else {
  7390. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  7391. }
  7392. if ((Birthday.HasValue == true)) {
  7393. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  7394. }
  7395. else {
  7396. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7397. }
  7398. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  7399. if ((Email == null)) {
  7400. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  7401. }
  7402. else {
  7403. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Email));
  7404. }
  7405. if ((Phone == null)) {
  7406. throw new global::System.ArgumentNullException("Phone");
  7407. }
  7408. else {
  7409. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  7410. }
  7411. if ((GenderCode == null)) {
  7412. throw new global::System.ArgumentNullException("GenderCode");
  7413. }
  7414. else {
  7415. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(GenderCode));
  7416. }
  7417. if ((PhotoPath == null)) {
  7418. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  7419. }
  7420. else {
  7421. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(PhotoPath));
  7422. }
  7423. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7424. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7425. != global::System.Data.ConnectionState.Open)) {
  7426. this.Adapter.InsertCommand.Connection.Open();
  7427. }
  7428. try {
  7429. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7430. return returnValue;
  7431. }
  7432. finally {
  7433. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7434. this.Adapter.InsertCommand.Connection.Close();
  7435. }
  7436. }
  7437. }
  7438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7440. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7441. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7442. public virtual int Update(
  7443. string FirstName,
  7444. string LastName,
  7445. string Patronymic,
  7446. global::System.Nullable<global::System.DateTime> Birthday,
  7447. System.DateTime RegistrationDate,
  7448. string Email,
  7449. string Phone,
  7450. string GenderCode,
  7451. string PhotoPath,
  7452. int Original_ID,
  7453. string Original_FirstName,
  7454. string Original_LastName,
  7455. string Original_Patronymic,
  7456. global::System.Nullable<global::System.DateTime> Original_Birthday,
  7457. System.DateTime Original_RegistrationDate,
  7458. string Original_Email,
  7459. string Original_Phone,
  7460. string Original_GenderCode,
  7461. string Original_PhotoPath,
  7462. int ID) {
  7463. if ((FirstName == null)) {
  7464. throw new global::System.ArgumentNullException("FirstName");
  7465. }
  7466. else {
  7467. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(FirstName));
  7468. }
  7469. if ((LastName == null)) {
  7470. throw new global::System.ArgumentNullException("LastName");
  7471. }
  7472. else {
  7473. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(LastName));
  7474. }
  7475. if ((Patronymic == null)) {
  7476. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7477. }
  7478. else {
  7479. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  7480. }
  7481. if ((Birthday.HasValue == true)) {
  7482. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  7483. }
  7484. else {
  7485. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7486. }
  7487. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  7488. if ((Email == null)) {
  7489. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7490. }
  7491. else {
  7492. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Email));
  7493. }
  7494. if ((Phone == null)) {
  7495. throw new global::System.ArgumentNullException("Phone");
  7496. }
  7497. else {
  7498. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  7499. }
  7500. if ((GenderCode == null)) {
  7501. throw new global::System.ArgumentNullException("GenderCode");
  7502. }
  7503. else {
  7504. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(GenderCode));
  7505. }
  7506. if ((PhotoPath == null)) {
  7507. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7508. }
  7509. else {
  7510. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(PhotoPath));
  7511. }
  7512. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ID));
  7513. if ((Original_FirstName == null)) {
  7514. throw new global::System.ArgumentNullException("Original_FirstName");
  7515. }
  7516. else {
  7517. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_FirstName));
  7518. }
  7519. if ((Original_LastName == null)) {
  7520. throw new global::System.ArgumentNullException("Original_LastName");
  7521. }
  7522. else {
  7523. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_LastName));
  7524. }
  7525. if ((Original_Patronymic == null)) {
  7526. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  7527. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  7528. }
  7529. else {
  7530. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  7531. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Patronymic));
  7532. }
  7533. if ((Original_Birthday.HasValue == true)) {
  7534. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  7535. this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(Original_Birthday.Value));
  7536. }
  7537. else {
  7538. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  7539. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  7540. }
  7541. this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_RegistrationDate));
  7542. if ((Original_Email == null)) {
  7543. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  7544. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  7545. }
  7546. else {
  7547. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  7548. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Email));
  7549. }
  7550. if ((Original_Phone == null)) {
  7551. throw new global::System.ArgumentNullException("Original_Phone");
  7552. }
  7553. else {
  7554. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Phone));
  7555. }
  7556. if ((Original_GenderCode == null)) {
  7557. throw new global::System.ArgumentNullException("Original_GenderCode");
  7558. }
  7559. else {
  7560. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_GenderCode));
  7561. }
  7562. if ((Original_PhotoPath == null)) {
  7563. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
  7564. this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
  7565. }
  7566. else {
  7567. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  7568. this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_PhotoPath));
  7569. }
  7570. this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(ID));
  7571. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7572. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7573. != global::System.Data.ConnectionState.Open)) {
  7574. this.Adapter.UpdateCommand.Connection.Open();
  7575. }
  7576. try {
  7577. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7578. return returnValue;
  7579. }
  7580. finally {
  7581. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7582. this.Adapter.UpdateCommand.Connection.Close();
  7583. }
  7584. }
  7585. }
  7586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7588. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7589. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7590. public virtual int Update(
  7591. string FirstName,
  7592. string LastName,
  7593. string Patronymic,
  7594. global::System.Nullable<global::System.DateTime> Birthday,
  7595. System.DateTime RegistrationDate,
  7596. string Email,
  7597. string Phone,
  7598. string GenderCode,
  7599. string PhotoPath,
  7600. int Original_ID,
  7601. string Original_FirstName,
  7602. string Original_LastName,
  7603. string Original_Patronymic,
  7604. global::System.Nullable<global::System.DateTime> Original_Birthday,
  7605. System.DateTime Original_RegistrationDate,
  7606. string Original_Email,
  7607. string Original_Phone,
  7608. string Original_GenderCode,
  7609. string Original_PhotoPath) {
  7610. return this.Update(FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath, Original_ID, Original_FirstName, Original_LastName, Original_Patronymic, Original_Birthday, Original_RegistrationDate, Original_Email, Original_Phone, Original_GenderCode, Original_PhotoPath, Original_ID);
  7611. }
  7612. }
  7613. /// <summary>
  7614. ///Represents the connection and commands used to retrieve and save data.
  7615. ///</summary>
  7616. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7617. [global::System.ComponentModel.ToolboxItem(true)]
  7618. [global::System.ComponentModel.DataObjectAttribute(true)]
  7619. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7620. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7621. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7622. public partial class client_b_importTableAdapter : global::System.ComponentModel.Component {
  7623. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7624. private global::System.Data.SqlClient.SqlConnection _connection;
  7625. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7626. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7627. private bool _clearBeforeFill;
  7628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7630. public client_b_importTableAdapter() {
  7631. this.ClearBeforeFill = true;
  7632. }
  7633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7635. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7636. get {
  7637. if ((this._adapter == null)) {
  7638. this.InitAdapter();
  7639. }
  7640. return this._adapter;
  7641. }
  7642. }
  7643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7645. internal global::System.Data.SqlClient.SqlConnection Connection {
  7646. get {
  7647. if ((this._connection == null)) {
  7648. this.InitConnection();
  7649. }
  7650. return this._connection;
  7651. }
  7652. set {
  7653. this._connection = value;
  7654. if ((this.Adapter.InsertCommand != null)) {
  7655. this.Adapter.InsertCommand.Connection = value;
  7656. }
  7657. if ((this.Adapter.DeleteCommand != null)) {
  7658. this.Adapter.DeleteCommand.Connection = value;
  7659. }
  7660. if ((this.Adapter.UpdateCommand != null)) {
  7661. this.Adapter.UpdateCommand.Connection = value;
  7662. }
  7663. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7664. if ((this.CommandCollection[i] != null)) {
  7665. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7666. }
  7667. }
  7668. }
  7669. }
  7670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7672. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7673. get {
  7674. return this._transaction;
  7675. }
  7676. set {
  7677. this._transaction = value;
  7678. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7679. this.CommandCollection[i].Transaction = this._transaction;
  7680. }
  7681. if (((this.Adapter != null)
  7682. && (this.Adapter.DeleteCommand != null))) {
  7683. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7684. }
  7685. if (((this.Adapter != null)
  7686. && (this.Adapter.InsertCommand != null))) {
  7687. this.Adapter.InsertCommand.Transaction = this._transaction;
  7688. }
  7689. if (((this.Adapter != null)
  7690. && (this.Adapter.UpdateCommand != null))) {
  7691. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7692. }
  7693. }
  7694. }
  7695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7697. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7698. get {
  7699. if ((this._commandCollection == null)) {
  7700. this.InitCommandCollection();
  7701. }
  7702. return this._commandCollection;
  7703. }
  7704. }
  7705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7707. public bool ClearBeforeFill {
  7708. get {
  7709. return this._clearBeforeFill;
  7710. }
  7711. set {
  7712. this._clearBeforeFill = value;
  7713. }
  7714. }
  7715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7717. private void InitAdapter() {
  7718. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7719. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7720. tableMapping.SourceTable = "Table";
  7721. tableMapping.DataSetTable = "client_b_import";
  7722. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  7723. tableMapping.ColumnMappings.Add("Имя", "Имя");
  7724. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  7725. tableMapping.ColumnMappings.Add("Пол", "Пол");
  7726. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  7727. tableMapping.ColumnMappings.Add("Дата_рождения", "Дата_рождения");
  7728. tableMapping.ColumnMappings.Add("Email", "Email");
  7729. tableMapping.ColumnMappings.Add("Дата_регистрации", "Дата_регистрации");
  7730. this._adapter.TableMappings.Add(tableMapping);
  7731. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7732. this._adapter.InsertCommand.Connection = this.Connection;
  7733. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[client_b_import] ([Фамилия], [Имя], [Отчество], [Пол], [Телефо" +
  7734. "н], [Дата_рождения], [Email], [Дата_регистрации]) VALUES (@Фамилия, @Имя, @Отчес" +
  7735. "тво, @Пол, @Телефон, @Дата_рождения, @Email, @Дата_регистрации)";
  7736. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7737. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7738. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7739. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7740. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пол", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7741. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7742. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_рождения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_рождения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7743. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7744. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_регистрации", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_регистрации", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7745. }
  7746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7748. private void InitConnection() {
  7749. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7750. this._connection.ConnectionString = global::bobrov2demo.Properties.Settings.Default.bobrovDemoEgzamenConnectionString;
  7751. }
  7752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7754. private void InitCommandCollection() {
  7755. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7756. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7757. this._commandCollection[0].Connection = this.Connection;
  7758. this._commandCollection[0].CommandText = "SELECT Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрац" +
  7759. "ии FROM dbo.client_b_import";
  7760. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7761. }
  7762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7764. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7765. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7766. public virtual int Fill(bobrovDemoEgzamenDataSet.client_b_importDataTable dataTable) {
  7767. this.Adapter.SelectCommand = this.CommandCollection[0];
  7768. if ((this.ClearBeforeFill == true)) {
  7769. dataTable.Clear();
  7770. }
  7771. int returnValue = this.Adapter.Fill(dataTable);
  7772. return returnValue;
  7773. }
  7774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7776. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7777. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7778. public virtual bobrovDemoEgzamenDataSet.client_b_importDataTable GetData() {
  7779. this.Adapter.SelectCommand = this.CommandCollection[0];
  7780. bobrovDemoEgzamenDataSet.client_b_importDataTable dataTable = new bobrovDemoEgzamenDataSet.client_b_importDataTable();
  7781. this.Adapter.Fill(dataTable);
  7782. return dataTable;
  7783. }
  7784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7786. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7787. public virtual int Update(bobrovDemoEgzamenDataSet.client_b_importDataTable dataTable) {
  7788. return this.Adapter.Update(dataTable);
  7789. }
  7790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7792. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7793. public virtual int Update(bobrovDemoEgzamenDataSet dataSet) {
  7794. return this.Adapter.Update(dataSet, "client_b_import");
  7795. }
  7796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7798. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7799. public virtual int Update(global::System.Data.DataRow dataRow) {
  7800. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7801. dataRow});
  7802. }
  7803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7805. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7806. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7807. return this.Adapter.Update(dataRows);
  7808. }
  7809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7811. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7812. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7813. public virtual int Insert(string Фамилия, string Имя, string Отчество, string Пол, string Телефон, System.DateTime Дата_рождения, string Email, System.DateTime Дата_регистрации) {
  7814. if ((Фамилия == null)) {
  7815. throw new global::System.ArgumentNullException("Фамилия");
  7816. }
  7817. else {
  7818. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Фамилия));
  7819. }
  7820. if ((Имя == null)) {
  7821. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7822. }
  7823. else {
  7824. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Имя));
  7825. }
  7826. if ((Отчество == null)) {
  7827. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7828. }
  7829. else {
  7830. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Отчество));
  7831. }
  7832. if ((Пол == null)) {
  7833. throw new global::System.ArgumentNullException("Пол");
  7834. }
  7835. else {
  7836. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Пол));
  7837. }
  7838. if ((Телефон == null)) {
  7839. throw new global::System.ArgumentNullException("Телефон");
  7840. }
  7841. else {
  7842. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Телефон));
  7843. }
  7844. this.Adapter.InsertCommand.Parameters[5].Value = ((System.DateTime)(Дата_рождения));
  7845. if ((Email == null)) {
  7846. throw new global::System.ArgumentNullException("Email");
  7847. }
  7848. else {
  7849. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Email));
  7850. }
  7851. this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(Дата_регистрации));
  7852. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7853. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7854. != global::System.Data.ConnectionState.Open)) {
  7855. this.Adapter.InsertCommand.Connection.Open();
  7856. }
  7857. try {
  7858. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7859. return returnValue;
  7860. }
  7861. finally {
  7862. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7863. this.Adapter.InsertCommand.Connection.Close();
  7864. }
  7865. }
  7866. }
  7867. }
  7868. /// <summary>
  7869. ///Represents the connection and commands used to retrieve and save data.
  7870. ///</summary>
  7871. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7872. [global::System.ComponentModel.ToolboxItem(true)]
  7873. [global::System.ComponentModel.DataObjectAttribute(true)]
  7874. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7875. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7876. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7877. public partial class ClientServiceTableAdapter : global::System.ComponentModel.Component {
  7878. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7879. private global::System.Data.SqlClient.SqlConnection _connection;
  7880. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7881. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7882. private bool _clearBeforeFill;
  7883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7885. public ClientServiceTableAdapter() {
  7886. this.ClearBeforeFill = true;
  7887. }
  7888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7890. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7891. get {
  7892. if ((this._adapter == null)) {
  7893. this.InitAdapter();
  7894. }
  7895. return this._adapter;
  7896. }
  7897. }
  7898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7900. internal global::System.Data.SqlClient.SqlConnection Connection {
  7901. get {
  7902. if ((this._connection == null)) {
  7903. this.InitConnection();
  7904. }
  7905. return this._connection;
  7906. }
  7907. set {
  7908. this._connection = value;
  7909. if ((this.Adapter.InsertCommand != null)) {
  7910. this.Adapter.InsertCommand.Connection = value;
  7911. }
  7912. if ((this.Adapter.DeleteCommand != null)) {
  7913. this.Adapter.DeleteCommand.Connection = value;
  7914. }
  7915. if ((this.Adapter.UpdateCommand != null)) {
  7916. this.Adapter.UpdateCommand.Connection = value;
  7917. }
  7918. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7919. if ((this.CommandCollection[i] != null)) {
  7920. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7921. }
  7922. }
  7923. }
  7924. }
  7925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7927. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7928. get {
  7929. return this._transaction;
  7930. }
  7931. set {
  7932. this._transaction = value;
  7933. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7934. this.CommandCollection[i].Transaction = this._transaction;
  7935. }
  7936. if (((this.Adapter != null)
  7937. && (this.Adapter.DeleteCommand != null))) {
  7938. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7939. }
  7940. if (((this.Adapter != null)
  7941. && (this.Adapter.InsertCommand != null))) {
  7942. this.Adapter.InsertCommand.Transaction = this._transaction;
  7943. }
  7944. if (((this.Adapter != null)
  7945. && (this.Adapter.UpdateCommand != null))) {
  7946. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7947. }
  7948. }
  7949. }
  7950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7952. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7953. get {
  7954. if ((this._commandCollection == null)) {
  7955. this.InitCommandCollection();
  7956. }
  7957. return this._commandCollection;
  7958. }
  7959. }
  7960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7962. public bool ClearBeforeFill {
  7963. get {
  7964. return this._clearBeforeFill;
  7965. }
  7966. set {
  7967. this._clearBeforeFill = value;
  7968. }
  7969. }
  7970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7972. private void InitAdapter() {
  7973. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7974. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7975. tableMapping.SourceTable = "Table";
  7976. tableMapping.DataSetTable = "ClientService";
  7977. tableMapping.ColumnMappings.Add("ID", "ID");
  7978. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  7979. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  7980. tableMapping.ColumnMappings.Add("StartTime", "StartTime");
  7981. tableMapping.ColumnMappings.Add("Comment", "Comment");
  7982. this._adapter.TableMappings.Add(tableMapping);
  7983. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7984. this._adapter.DeleteCommand.Connection = this.Connection;
  7985. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ClientService] WHERE (([ID] = @Original_ID) AND ([ClientID] = " +
  7986. "@Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @" +
  7987. "Original_StartTime))";
  7988. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7989. 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, "", "", ""));
  7990. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7991. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7992. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartTime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7993. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7994. this._adapter.InsertCommand.Connection = this.Connection;
  7995. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ClientService] ([ClientID], [ServiceID], [StartTime], [Comment" +
  7996. "]) VALUES (@ClientID, @ServiceID, @StartTime, @Comment);\r\nSELECT ID, ClientID, S" +
  7997. "erviceID, StartTime, Comment FROM ClientService WHERE (ID = SCOPE_IDENTITY())";
  7998. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7999. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8000. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8001. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartTime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8002. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8003. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8004. this._adapter.UpdateCommand.Connection = this.Connection;
  8005. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ClientService] SET [ClientID] = @ClientID, [ServiceID] = @ServiceID, [StartTime] = @StartTime, [Comment] = @Comment WHERE (([ID] = @Original_ID) AND ([ClientID] = @Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @Original_StartTime));
  8006. SELECT ID, ClientID, ServiceID, StartTime, Comment FROM ClientService WHERE (ID = @ID)";
  8007. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8008. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8009. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8010. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartTime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8011. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8012. 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, "", "", ""));
  8013. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8014. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8015. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartTime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8016. 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, "", "", ""));
  8017. }
  8018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8020. private void InitConnection() {
  8021. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8022. this._connection.ConnectionString = global::bobrov2demo.Properties.Settings.Default.bobrovDemoEgzamenConnectionString;
  8023. }
  8024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8026. private void InitCommandCollection() {
  8027. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8028. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8029. this._commandCollection[0].Connection = this.Connection;
  8030. this._commandCollection[0].CommandText = "SELECT ID, ClientID, ServiceID, StartTime, Comment FROM dbo.ClientService";
  8031. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8032. }
  8033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8035. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8036. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8037. public virtual int Fill(bobrovDemoEgzamenDataSet.ClientServiceDataTable dataTable) {
  8038. this.Adapter.SelectCommand = this.CommandCollection[0];
  8039. if ((this.ClearBeforeFill == true)) {
  8040. dataTable.Clear();
  8041. }
  8042. int returnValue = this.Adapter.Fill(dataTable);
  8043. return returnValue;
  8044. }
  8045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8047. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8048. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8049. public virtual bobrovDemoEgzamenDataSet.ClientServiceDataTable GetData() {
  8050. this.Adapter.SelectCommand = this.CommandCollection[0];
  8051. bobrovDemoEgzamenDataSet.ClientServiceDataTable dataTable = new bobrovDemoEgzamenDataSet.ClientServiceDataTable();
  8052. this.Adapter.Fill(dataTable);
  8053. return dataTable;
  8054. }
  8055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8057. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8058. public virtual int Update(bobrovDemoEgzamenDataSet.ClientServiceDataTable dataTable) {
  8059. return this.Adapter.Update(dataTable);
  8060. }
  8061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8063. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8064. public virtual int Update(bobrovDemoEgzamenDataSet dataSet) {
  8065. return this.Adapter.Update(dataSet, "ClientService");
  8066. }
  8067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8069. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8070. public virtual int Update(global::System.Data.DataRow dataRow) {
  8071. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8072. dataRow});
  8073. }
  8074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8076. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8077. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8078. return this.Adapter.Update(dataRows);
  8079. }
  8080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8082. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8083. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8084. public virtual int Delete(int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime) {
  8085. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8086. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientID));
  8087. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ServiceID));
  8088. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartTime));
  8089. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8090. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8091. != global::System.Data.ConnectionState.Open)) {
  8092. this.Adapter.DeleteCommand.Connection.Open();
  8093. }
  8094. try {
  8095. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8096. return returnValue;
  8097. }
  8098. finally {
  8099. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8100. this.Adapter.DeleteCommand.Connection.Close();
  8101. }
  8102. }
  8103. }
  8104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8106. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8107. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8108. public virtual int Insert(int ClientID, int ServiceID, System.DateTime StartTime, string Comment) {
  8109. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  8110. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ServiceID));
  8111. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  8112. if ((Comment == null)) {
  8113. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8114. }
  8115. else {
  8116. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Comment));
  8117. }
  8118. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8119. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8120. != global::System.Data.ConnectionState.Open)) {
  8121. this.Adapter.InsertCommand.Connection.Open();
  8122. }
  8123. try {
  8124. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8125. return returnValue;
  8126. }
  8127. finally {
  8128. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8129. this.Adapter.InsertCommand.Connection.Close();
  8130. }
  8131. }
  8132. }
  8133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8135. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8136. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8137. public virtual int Update(int ClientID, int ServiceID, System.DateTime StartTime, string Comment, int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime, int ID) {
  8138. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  8139. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ServiceID));
  8140. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  8141. if ((Comment == null)) {
  8142. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8143. }
  8144. else {
  8145. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Comment));
  8146. }
  8147. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  8148. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ClientID));
  8149. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ServiceID));
  8150. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_StartTime));
  8151. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(ID));
  8152. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8153. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8154. != global::System.Data.ConnectionState.Open)) {
  8155. this.Adapter.UpdateCommand.Connection.Open();
  8156. }
  8157. try {
  8158. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8159. return returnValue;
  8160. }
  8161. finally {
  8162. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8163. this.Adapter.UpdateCommand.Connection.Close();
  8164. }
  8165. }
  8166. }
  8167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8169. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8170. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8171. public virtual int Update(int ClientID, int ServiceID, System.DateTime StartTime, string Comment, int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime) {
  8172. return this.Update(ClientID, ServiceID, StartTime, Comment, Original_ID, Original_ClientID, Original_ServiceID, Original_StartTime, Original_ID);
  8173. }
  8174. }
  8175. /// <summary>
  8176. ///Represents the connection and commands used to retrieve and save data.
  8177. ///</summary>
  8178. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8179. [global::System.ComponentModel.ToolboxItem(true)]
  8180. [global::System.ComponentModel.DataObjectAttribute(true)]
  8181. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8182. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8183. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8184. public partial class DocumentByServiceTableAdapter : global::System.ComponentModel.Component {
  8185. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8186. private global::System.Data.SqlClient.SqlConnection _connection;
  8187. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8188. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8189. private bool _clearBeforeFill;
  8190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8192. public DocumentByServiceTableAdapter() {
  8193. this.ClearBeforeFill = true;
  8194. }
  8195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8197. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8198. get {
  8199. if ((this._adapter == null)) {
  8200. this.InitAdapter();
  8201. }
  8202. return this._adapter;
  8203. }
  8204. }
  8205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8207. internal global::System.Data.SqlClient.SqlConnection Connection {
  8208. get {
  8209. if ((this._connection == null)) {
  8210. this.InitConnection();
  8211. }
  8212. return this._connection;
  8213. }
  8214. set {
  8215. this._connection = value;
  8216. if ((this.Adapter.InsertCommand != null)) {
  8217. this.Adapter.InsertCommand.Connection = value;
  8218. }
  8219. if ((this.Adapter.DeleteCommand != null)) {
  8220. this.Adapter.DeleteCommand.Connection = value;
  8221. }
  8222. if ((this.Adapter.UpdateCommand != null)) {
  8223. this.Adapter.UpdateCommand.Connection = value;
  8224. }
  8225. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8226. if ((this.CommandCollection[i] != null)) {
  8227. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8228. }
  8229. }
  8230. }
  8231. }
  8232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8234. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8235. get {
  8236. return this._transaction;
  8237. }
  8238. set {
  8239. this._transaction = value;
  8240. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8241. this.CommandCollection[i].Transaction = this._transaction;
  8242. }
  8243. if (((this.Adapter != null)
  8244. && (this.Adapter.DeleteCommand != null))) {
  8245. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8246. }
  8247. if (((this.Adapter != null)
  8248. && (this.Adapter.InsertCommand != null))) {
  8249. this.Adapter.InsertCommand.Transaction = this._transaction;
  8250. }
  8251. if (((this.Adapter != null)
  8252. && (this.Adapter.UpdateCommand != null))) {
  8253. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8254. }
  8255. }
  8256. }
  8257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8259. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8260. get {
  8261. if ((this._commandCollection == null)) {
  8262. this.InitCommandCollection();
  8263. }
  8264. return this._commandCollection;
  8265. }
  8266. }
  8267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8269. public bool ClearBeforeFill {
  8270. get {
  8271. return this._clearBeforeFill;
  8272. }
  8273. set {
  8274. this._clearBeforeFill = value;
  8275. }
  8276. }
  8277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8279. private void InitAdapter() {
  8280. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8281. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8282. tableMapping.SourceTable = "Table";
  8283. tableMapping.DataSetTable = "DocumentByService";
  8284. tableMapping.ColumnMappings.Add("ID", "ID");
  8285. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  8286. tableMapping.ColumnMappings.Add("DocumentPath", "DocumentPath");
  8287. this._adapter.TableMappings.Add(tableMapping);
  8288. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8289. this._adapter.DeleteCommand.Connection = this.Connection;
  8290. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[DocumentByService] WHERE (([ID] = @Original_ID) AND ([ClientSe" +
  8291. "rviceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPa" +
  8292. "th))";
  8293. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8294. 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, "", "", ""));
  8295. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8296. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DocumentPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DocumentPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8297. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8298. this._adapter.InsertCommand.Connection = this.Connection;
  8299. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[DocumentByService] ([ClientServiceID], [DocumentPath]) VALUES " +
  8300. "(@ClientServiceID, @DocumentPath);\r\nSELECT ID, ClientServiceID, DocumentPath FRO" +
  8301. "M DocumentByService WHERE (ID = SCOPE_IDENTITY())";
  8302. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8303. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8304. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DocumentPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DocumentPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8305. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8306. this._adapter.UpdateCommand.Connection = this.Connection;
  8307. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[DocumentByService] SET [ClientServiceID] = @ClientServiceID, [DocumentPath] = @DocumentPath WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath));
  8308. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = @ID)";
  8309. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8310. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8311. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DocumentPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DocumentPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8312. 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, "", "", ""));
  8313. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8314. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DocumentPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DocumentPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8315. 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, "", "", ""));
  8316. }
  8317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8319. private void InitConnection() {
  8320. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8321. this._connection.ConnectionString = global::bobrov2demo.Properties.Settings.Default.bobrovDemoEgzamenConnectionString;
  8322. }
  8323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8325. private void InitCommandCollection() {
  8326. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8327. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8328. this._commandCollection[0].Connection = this.Connection;
  8329. this._commandCollection[0].CommandText = "SELECT ID, ClientServiceID, DocumentPath FROM dbo.DocumentByService";
  8330. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8331. }
  8332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8334. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8335. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8336. public virtual int Fill(bobrovDemoEgzamenDataSet.DocumentByServiceDataTable dataTable) {
  8337. this.Adapter.SelectCommand = this.CommandCollection[0];
  8338. if ((this.ClearBeforeFill == true)) {
  8339. dataTable.Clear();
  8340. }
  8341. int returnValue = this.Adapter.Fill(dataTable);
  8342. return returnValue;
  8343. }
  8344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8346. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8347. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8348. public virtual bobrovDemoEgzamenDataSet.DocumentByServiceDataTable GetData() {
  8349. this.Adapter.SelectCommand = this.CommandCollection[0];
  8350. bobrovDemoEgzamenDataSet.DocumentByServiceDataTable dataTable = new bobrovDemoEgzamenDataSet.DocumentByServiceDataTable();
  8351. this.Adapter.Fill(dataTable);
  8352. return dataTable;
  8353. }
  8354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8356. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8357. public virtual int Update(bobrovDemoEgzamenDataSet.DocumentByServiceDataTable dataTable) {
  8358. return this.Adapter.Update(dataTable);
  8359. }
  8360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8362. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8363. public virtual int Update(bobrovDemoEgzamenDataSet dataSet) {
  8364. return this.Adapter.Update(dataSet, "DocumentByService");
  8365. }
  8366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8368. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8369. public virtual int Update(global::System.Data.DataRow dataRow) {
  8370. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8371. dataRow});
  8372. }
  8373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8375. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8376. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8377. return this.Adapter.Update(dataRows);
  8378. }
  8379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8381. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8382. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8383. public virtual int Delete(int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  8384. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8385. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientServiceID));
  8386. if ((Original_DocumentPath == null)) {
  8387. throw new global::System.ArgumentNullException("Original_DocumentPath");
  8388. }
  8389. else {
  8390. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DocumentPath));
  8391. }
  8392. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8393. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8394. != global::System.Data.ConnectionState.Open)) {
  8395. this.Adapter.DeleteCommand.Connection.Open();
  8396. }
  8397. try {
  8398. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8399. return returnValue;
  8400. }
  8401. finally {
  8402. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8403. this.Adapter.DeleteCommand.Connection.Close();
  8404. }
  8405. }
  8406. }
  8407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8409. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8410. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8411. public virtual int Insert(int ClientServiceID, string DocumentPath) {
  8412. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientServiceID));
  8413. if ((DocumentPath == null)) {
  8414. throw new global::System.ArgumentNullException("DocumentPath");
  8415. }
  8416. else {
  8417. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DocumentPath));
  8418. }
  8419. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8420. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8421. != global::System.Data.ConnectionState.Open)) {
  8422. this.Adapter.InsertCommand.Connection.Open();
  8423. }
  8424. try {
  8425. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8426. return returnValue;
  8427. }
  8428. finally {
  8429. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8430. this.Adapter.InsertCommand.Connection.Close();
  8431. }
  8432. }
  8433. }
  8434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8436. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8437. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8438. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath, int ID) {
  8439. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientServiceID));
  8440. if ((DocumentPath == null)) {
  8441. throw new global::System.ArgumentNullException("DocumentPath");
  8442. }
  8443. else {
  8444. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DocumentPath));
  8445. }
  8446. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  8447. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ClientServiceID));
  8448. if ((Original_DocumentPath == null)) {
  8449. throw new global::System.ArgumentNullException("Original_DocumentPath");
  8450. }
  8451. else {
  8452. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DocumentPath));
  8453. }
  8454. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  8455. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8456. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8457. != global::System.Data.ConnectionState.Open)) {
  8458. this.Adapter.UpdateCommand.Connection.Open();
  8459. }
  8460. try {
  8461. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8462. return returnValue;
  8463. }
  8464. finally {
  8465. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8466. this.Adapter.UpdateCommand.Connection.Close();
  8467. }
  8468. }
  8469. }
  8470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8472. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8473. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8474. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  8475. return this.Update(ClientServiceID, DocumentPath, Original_ID, Original_ClientServiceID, Original_DocumentPath, Original_ID);
  8476. }
  8477. }
  8478. /// <summary>
  8479. ///Represents the connection and commands used to retrieve and save data.
  8480. ///</summary>
  8481. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8482. [global::System.ComponentModel.ToolboxItem(true)]
  8483. [global::System.ComponentModel.DataObjectAttribute(true)]
  8484. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8485. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8486. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8487. public partial class GenderTableAdapter : global::System.ComponentModel.Component {
  8488. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8489. private global::System.Data.SqlClient.SqlConnection _connection;
  8490. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8491. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8492. private bool _clearBeforeFill;
  8493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8495. public GenderTableAdapter() {
  8496. this.ClearBeforeFill = true;
  8497. }
  8498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8500. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8501. get {
  8502. if ((this._adapter == null)) {
  8503. this.InitAdapter();
  8504. }
  8505. return this._adapter;
  8506. }
  8507. }
  8508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8510. internal global::System.Data.SqlClient.SqlConnection Connection {
  8511. get {
  8512. if ((this._connection == null)) {
  8513. this.InitConnection();
  8514. }
  8515. return this._connection;
  8516. }
  8517. set {
  8518. this._connection = value;
  8519. if ((this.Adapter.InsertCommand != null)) {
  8520. this.Adapter.InsertCommand.Connection = value;
  8521. }
  8522. if ((this.Adapter.DeleteCommand != null)) {
  8523. this.Adapter.DeleteCommand.Connection = value;
  8524. }
  8525. if ((this.Adapter.UpdateCommand != null)) {
  8526. this.Adapter.UpdateCommand.Connection = value;
  8527. }
  8528. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8529. if ((this.CommandCollection[i] != null)) {
  8530. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8531. }
  8532. }
  8533. }
  8534. }
  8535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8537. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8538. get {
  8539. return this._transaction;
  8540. }
  8541. set {
  8542. this._transaction = value;
  8543. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8544. this.CommandCollection[i].Transaction = this._transaction;
  8545. }
  8546. if (((this.Adapter != null)
  8547. && (this.Adapter.DeleteCommand != null))) {
  8548. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8549. }
  8550. if (((this.Adapter != null)
  8551. && (this.Adapter.InsertCommand != null))) {
  8552. this.Adapter.InsertCommand.Transaction = this._transaction;
  8553. }
  8554. if (((this.Adapter != null)
  8555. && (this.Adapter.UpdateCommand != null))) {
  8556. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8557. }
  8558. }
  8559. }
  8560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8562. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8563. get {
  8564. if ((this._commandCollection == null)) {
  8565. this.InitCommandCollection();
  8566. }
  8567. return this._commandCollection;
  8568. }
  8569. }
  8570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8572. public bool ClearBeforeFill {
  8573. get {
  8574. return this._clearBeforeFill;
  8575. }
  8576. set {
  8577. this._clearBeforeFill = value;
  8578. }
  8579. }
  8580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8582. private void InitAdapter() {
  8583. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8584. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8585. tableMapping.SourceTable = "Table";
  8586. tableMapping.DataSetTable = "Gender";
  8587. tableMapping.ColumnMappings.Add("Code", "Code");
  8588. tableMapping.ColumnMappings.Add("Name", "Name");
  8589. this._adapter.TableMappings.Add(tableMapping);
  8590. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8591. this._adapter.DeleteCommand.Connection = this.Connection;
  8592. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Gender] WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = " +
  8593. "1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))";
  8594. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8595. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8596. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8597. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8598. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8599. this._adapter.InsertCommand.Connection = this.Connection;
  8600. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Gender] ([Code], [Name]) VALUES (@Code, @Name);\r\nSELECT Code, " +
  8601. "Name FROM Gender WHERE (Code = @Code)";
  8602. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8603. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8604. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8605. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8606. this._adapter.UpdateCommand.Connection = this.Connection;
  8607. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Gender] SET [Code] = @Code, [Name] = @Name WHERE (([Code] = @Origin" +
  8608. "al_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)" +
  8609. "));\r\nSELECT Code, Name FROM Gender WHERE (Code = @Code)";
  8610. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8611. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8612. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8613. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8614. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8615. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8616. }
  8617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8619. private void InitConnection() {
  8620. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8621. this._connection.ConnectionString = global::bobrov2demo.Properties.Settings.Default.bobrovDemoEgzamenConnectionString;
  8622. }
  8623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8625. private void InitCommandCollection() {
  8626. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8627. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8628. this._commandCollection[0].Connection = this.Connection;
  8629. this._commandCollection[0].CommandText = "SELECT Code, Name FROM dbo.Gender";
  8630. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8631. }
  8632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8634. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8635. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8636. public virtual int Fill(bobrovDemoEgzamenDataSet.GenderDataTable dataTable) {
  8637. this.Adapter.SelectCommand = this.CommandCollection[0];
  8638. if ((this.ClearBeforeFill == true)) {
  8639. dataTable.Clear();
  8640. }
  8641. int returnValue = this.Adapter.Fill(dataTable);
  8642. return returnValue;
  8643. }
  8644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8646. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8647. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8648. public virtual bobrovDemoEgzamenDataSet.GenderDataTable GetData() {
  8649. this.Adapter.SelectCommand = this.CommandCollection[0];
  8650. bobrovDemoEgzamenDataSet.GenderDataTable dataTable = new bobrovDemoEgzamenDataSet.GenderDataTable();
  8651. this.Adapter.Fill(dataTable);
  8652. return dataTable;
  8653. }
  8654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8656. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8657. public virtual int Update(bobrovDemoEgzamenDataSet.GenderDataTable dataTable) {
  8658. return this.Adapter.Update(dataTable);
  8659. }
  8660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8662. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8663. public virtual int Update(bobrovDemoEgzamenDataSet dataSet) {
  8664. return this.Adapter.Update(dataSet, "Gender");
  8665. }
  8666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8668. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8669. public virtual int Update(global::System.Data.DataRow dataRow) {
  8670. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8671. dataRow});
  8672. }
  8673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8675. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8676. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8677. return this.Adapter.Update(dataRows);
  8678. }
  8679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8681. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8682. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8683. public virtual int Delete(string Original_Code, string Original_Name) {
  8684. if ((Original_Code == null)) {
  8685. throw new global::System.ArgumentNullException("Original_Code");
  8686. }
  8687. else {
  8688. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Code));
  8689. }
  8690. if ((Original_Name == null)) {
  8691. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8692. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8693. }
  8694. else {
  8695. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8696. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
  8697. }
  8698. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8699. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8700. != global::System.Data.ConnectionState.Open)) {
  8701. this.Adapter.DeleteCommand.Connection.Open();
  8702. }
  8703. try {
  8704. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8705. return returnValue;
  8706. }
  8707. finally {
  8708. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8709. this.Adapter.DeleteCommand.Connection.Close();
  8710. }
  8711. }
  8712. }
  8713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8715. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8716. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8717. public virtual int Insert(string Code, string Name) {
  8718. if ((Code == null)) {
  8719. throw new global::System.ArgumentNullException("Code");
  8720. }
  8721. else {
  8722. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Code));
  8723. }
  8724. if ((Name == null)) {
  8725. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8726. }
  8727. else {
  8728. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  8729. }
  8730. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8731. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8732. != global::System.Data.ConnectionState.Open)) {
  8733. this.Adapter.InsertCommand.Connection.Open();
  8734. }
  8735. try {
  8736. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8737. return returnValue;
  8738. }
  8739. finally {
  8740. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8741. this.Adapter.InsertCommand.Connection.Close();
  8742. }
  8743. }
  8744. }
  8745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8747. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8748. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8749. public virtual int Update(string Code, string Name, string Original_Code, string Original_Name) {
  8750. if ((Code == null)) {
  8751. throw new global::System.ArgumentNullException("Code");
  8752. }
  8753. else {
  8754. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Code));
  8755. }
  8756. if ((Name == null)) {
  8757. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8758. }
  8759. else {
  8760. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  8761. }
  8762. if ((Original_Code == null)) {
  8763. throw new global::System.ArgumentNullException("Original_Code");
  8764. }
  8765. else {
  8766. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Code));
  8767. }
  8768. if ((Original_Name == null)) {
  8769. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  8770. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  8771. }
  8772. else {
  8773. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  8774. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
  8775. }
  8776. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8777. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8778. != global::System.Data.ConnectionState.Open)) {
  8779. this.Adapter.UpdateCommand.Connection.Open();
  8780. }
  8781. try {
  8782. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8783. return returnValue;
  8784. }
  8785. finally {
  8786. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8787. this.Adapter.UpdateCommand.Connection.Close();
  8788. }
  8789. }
  8790. }
  8791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8793. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8794. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8795. public virtual int Update(string Name, string Original_Code, string Original_Name) {
  8796. return this.Update(Original_Code, Name, Original_Code, Original_Name);
  8797. }
  8798. }
  8799. /// <summary>
  8800. ///Represents the connection and commands used to retrieve and save data.
  8801. ///</summary>
  8802. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8803. [global::System.ComponentModel.ToolboxItem(true)]
  8804. [global::System.ComponentModel.DataObjectAttribute(true)]
  8805. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8806. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8807. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8808. public partial class ManufacturerTableAdapter : global::System.ComponentModel.Component {
  8809. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8810. private global::System.Data.SqlClient.SqlConnection _connection;
  8811. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8812. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8813. private bool _clearBeforeFill;
  8814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8816. public ManufacturerTableAdapter() {
  8817. this.ClearBeforeFill = true;
  8818. }
  8819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8821. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8822. get {
  8823. if ((this._adapter == null)) {
  8824. this.InitAdapter();
  8825. }
  8826. return this._adapter;
  8827. }
  8828. }
  8829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8831. internal global::System.Data.SqlClient.SqlConnection Connection {
  8832. get {
  8833. if ((this._connection == null)) {
  8834. this.InitConnection();
  8835. }
  8836. return this._connection;
  8837. }
  8838. set {
  8839. this._connection = value;
  8840. if ((this.Adapter.InsertCommand != null)) {
  8841. this.Adapter.InsertCommand.Connection = value;
  8842. }
  8843. if ((this.Adapter.DeleteCommand != null)) {
  8844. this.Adapter.DeleteCommand.Connection = value;
  8845. }
  8846. if ((this.Adapter.UpdateCommand != null)) {
  8847. this.Adapter.UpdateCommand.Connection = value;
  8848. }
  8849. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8850. if ((this.CommandCollection[i] != null)) {
  8851. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8852. }
  8853. }
  8854. }
  8855. }
  8856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8858. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8859. get {
  8860. return this._transaction;
  8861. }
  8862. set {
  8863. this._transaction = value;
  8864. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8865. this.CommandCollection[i].Transaction = this._transaction;
  8866. }
  8867. if (((this.Adapter != null)
  8868. && (this.Adapter.DeleteCommand != null))) {
  8869. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8870. }
  8871. if (((this.Adapter != null)
  8872. && (this.Adapter.InsertCommand != null))) {
  8873. this.Adapter.InsertCommand.Transaction = this._transaction;
  8874. }
  8875. if (((this.Adapter != null)
  8876. && (this.Adapter.UpdateCommand != null))) {
  8877. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8878. }
  8879. }
  8880. }
  8881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8883. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8884. get {
  8885. if ((this._commandCollection == null)) {
  8886. this.InitCommandCollection();
  8887. }
  8888. return this._commandCollection;
  8889. }
  8890. }
  8891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8893. public bool ClearBeforeFill {
  8894. get {
  8895. return this._clearBeforeFill;
  8896. }
  8897. set {
  8898. this._clearBeforeFill = value;
  8899. }
  8900. }
  8901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8903. private void InitAdapter() {
  8904. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8905. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8906. tableMapping.SourceTable = "Table";
  8907. tableMapping.DataSetTable = "Manufacturer";
  8908. tableMapping.ColumnMappings.Add("ID", "ID");
  8909. tableMapping.ColumnMappings.Add("Name", "Name");
  8910. tableMapping.ColumnMappings.Add("StartDate", "StartDate");
  8911. this._adapter.TableMappings.Add(tableMapping);
  8912. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8913. this._adapter.DeleteCommand.Connection = this.Connection;
  8914. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Manufacturer] WHERE (([ID] = @Original_ID) AND ([Name] = @Orig" +
  8915. "inal_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] " +
  8916. "= @Original_StartDate)))";
  8917. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8918. 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, "", "", ""));
  8919. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8920. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_StartDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8921. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8922. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8923. this._adapter.InsertCommand.Connection = this.Connection;
  8924. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Manufacturer] ([Name], [StartDate]) VALUES (@Name, @StartDate)" +
  8925. ";\r\nSELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = SCOPE_IDENTITY())";
  8926. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8927. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8928. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8929. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8930. this._adapter.UpdateCommand.Connection = this.Connection;
  8931. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Manufacturer] SET [Name] = @Name, [StartDate] = @StartDate WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] = @Original_StartDate)));
  8932. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = @ID)";
  8933. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8934. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8935. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8936. 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, "", "", ""));
  8937. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8938. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_StartDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8939. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8940. 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, "", "", ""));
  8941. }
  8942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8944. private void InitConnection() {
  8945. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8946. this._connection.ConnectionString = global::bobrov2demo.Properties.Settings.Default.bobrovDemoEgzamenConnectionString;
  8947. }
  8948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8950. private void InitCommandCollection() {
  8951. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8952. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8953. this._commandCollection[0].Connection = this.Connection;
  8954. this._commandCollection[0].CommandText = "SELECT ID, Name, StartDate FROM dbo.Manufacturer";
  8955. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8956. }
  8957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8959. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8960. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8961. public virtual int Fill(bobrovDemoEgzamenDataSet.ManufacturerDataTable dataTable) {
  8962. this.Adapter.SelectCommand = this.CommandCollection[0];
  8963. if ((this.ClearBeforeFill == true)) {
  8964. dataTable.Clear();
  8965. }
  8966. int returnValue = this.Adapter.Fill(dataTable);
  8967. return returnValue;
  8968. }
  8969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8971. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8972. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8973. public virtual bobrovDemoEgzamenDataSet.ManufacturerDataTable GetData() {
  8974. this.Adapter.SelectCommand = this.CommandCollection[0];
  8975. bobrovDemoEgzamenDataSet.ManufacturerDataTable dataTable = new bobrovDemoEgzamenDataSet.ManufacturerDataTable();
  8976. this.Adapter.Fill(dataTable);
  8977. return dataTable;
  8978. }
  8979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8981. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8982. public virtual int Update(bobrovDemoEgzamenDataSet.ManufacturerDataTable dataTable) {
  8983. return this.Adapter.Update(dataTable);
  8984. }
  8985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8987. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8988. public virtual int Update(bobrovDemoEgzamenDataSet dataSet) {
  8989. return this.Adapter.Update(dataSet, "Manufacturer");
  8990. }
  8991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8993. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8994. public virtual int Update(global::System.Data.DataRow dataRow) {
  8995. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8996. dataRow});
  8997. }
  8998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9000. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9001. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9002. return this.Adapter.Update(dataRows);
  9003. }
  9004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9006. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9007. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9008. public virtual int Delete(int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  9009. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9010. if ((Original_Name == null)) {
  9011. throw new global::System.ArgumentNullException("Original_Name");
  9012. }
  9013. else {
  9014. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  9015. }
  9016. if ((Original_StartDate.HasValue == true)) {
  9017. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  9018. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartDate.Value));
  9019. }
  9020. else {
  9021. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  9022. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  9023. }
  9024. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9025. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9026. != global::System.Data.ConnectionState.Open)) {
  9027. this.Adapter.DeleteCommand.Connection.Open();
  9028. }
  9029. try {
  9030. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9031. return returnValue;
  9032. }
  9033. finally {
  9034. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9035. this.Adapter.DeleteCommand.Connection.Close();
  9036. }
  9037. }
  9038. }
  9039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9041. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9042. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9043. public virtual int Insert(string Name, global::System.Nullable<global::System.DateTime> StartDate) {
  9044. if ((Name == null)) {
  9045. throw new global::System.ArgumentNullException("Name");
  9046. }
  9047. else {
  9048. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
  9049. }
  9050. if ((StartDate.HasValue == true)) {
  9051. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  9052. }
  9053. else {
  9054. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9055. }
  9056. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9057. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9058. != global::System.Data.ConnectionState.Open)) {
  9059. this.Adapter.InsertCommand.Connection.Open();
  9060. }
  9061. try {
  9062. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9063. return returnValue;
  9064. }
  9065. finally {
  9066. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9067. this.Adapter.InsertCommand.Connection.Close();
  9068. }
  9069. }
  9070. }
  9071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9073. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9074. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9075. public virtual int Update(string Name, global::System.Nullable<global::System.DateTime> StartDate, int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate, int ID) {
  9076. if ((Name == null)) {
  9077. throw new global::System.ArgumentNullException("Name");
  9078. }
  9079. else {
  9080. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
  9081. }
  9082. if ((StartDate.HasValue == true)) {
  9083. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  9084. }
  9085. else {
  9086. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9087. }
  9088. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9089. if ((Original_Name == null)) {
  9090. throw new global::System.ArgumentNullException("Original_Name");
  9091. }
  9092. else {
  9093. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Name));
  9094. }
  9095. if ((Original_StartDate.HasValue == true)) {
  9096. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  9097. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_StartDate.Value));
  9098. }
  9099. else {
  9100. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  9101. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9102. }
  9103. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID));
  9104. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9105. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9106. != global::System.Data.ConnectionState.Open)) {
  9107. this.Adapter.UpdateCommand.Connection.Open();
  9108. }
  9109. try {
  9110. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9111. return returnValue;
  9112. }
  9113. finally {
  9114. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9115. this.Adapter.UpdateCommand.Connection.Close();
  9116. }
  9117. }
  9118. }
  9119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9121. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9122. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9123. public virtual int Update(string Name, global::System.Nullable<global::System.DateTime> StartDate, int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  9124. return this.Update(Name, StartDate, Original_ID, Original_Name, Original_StartDate, Original_ID);
  9125. }
  9126. }
  9127. /// <summary>
  9128. ///Represents the connection and commands used to retrieve and save data.
  9129. ///</summary>
  9130. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9131. [global::System.ComponentModel.ToolboxItem(true)]
  9132. [global::System.ComponentModel.DataObjectAttribute(true)]
  9133. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9134. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9135. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9136. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  9137. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9138. private global::System.Data.SqlClient.SqlConnection _connection;
  9139. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9140. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9141. private bool _clearBeforeFill;
  9142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9144. public ProductTableAdapter() {
  9145. this.ClearBeforeFill = true;
  9146. }
  9147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9149. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9150. get {
  9151. if ((this._adapter == null)) {
  9152. this.InitAdapter();
  9153. }
  9154. return this._adapter;
  9155. }
  9156. }
  9157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9159. internal global::System.Data.SqlClient.SqlConnection Connection {
  9160. get {
  9161. if ((this._connection == null)) {
  9162. this.InitConnection();
  9163. }
  9164. return this._connection;
  9165. }
  9166. set {
  9167. this._connection = value;
  9168. if ((this.Adapter.InsertCommand != null)) {
  9169. this.Adapter.InsertCommand.Connection = value;
  9170. }
  9171. if ((this.Adapter.DeleteCommand != null)) {
  9172. this.Adapter.DeleteCommand.Connection = value;
  9173. }
  9174. if ((this.Adapter.UpdateCommand != null)) {
  9175. this.Adapter.UpdateCommand.Connection = value;
  9176. }
  9177. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9178. if ((this.CommandCollection[i] != null)) {
  9179. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9180. }
  9181. }
  9182. }
  9183. }
  9184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9186. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9187. get {
  9188. return this._transaction;
  9189. }
  9190. set {
  9191. this._transaction = value;
  9192. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9193. this.CommandCollection[i].Transaction = this._transaction;
  9194. }
  9195. if (((this.Adapter != null)
  9196. && (this.Adapter.DeleteCommand != null))) {
  9197. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9198. }
  9199. if (((this.Adapter != null)
  9200. && (this.Adapter.InsertCommand != null))) {
  9201. this.Adapter.InsertCommand.Transaction = this._transaction;
  9202. }
  9203. if (((this.Adapter != null)
  9204. && (this.Adapter.UpdateCommand != null))) {
  9205. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9206. }
  9207. }
  9208. }
  9209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9211. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9212. get {
  9213. if ((this._commandCollection == null)) {
  9214. this.InitCommandCollection();
  9215. }
  9216. return this._commandCollection;
  9217. }
  9218. }
  9219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9221. public bool ClearBeforeFill {
  9222. get {
  9223. return this._clearBeforeFill;
  9224. }
  9225. set {
  9226. this._clearBeforeFill = value;
  9227. }
  9228. }
  9229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9231. private void InitAdapter() {
  9232. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9233. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9234. tableMapping.SourceTable = "Table";
  9235. tableMapping.DataSetTable = "Product";
  9236. tableMapping.ColumnMappings.Add("ID", "ID");
  9237. tableMapping.ColumnMappings.Add("Title", "Title");
  9238. tableMapping.ColumnMappings.Add("Cost", "Cost");
  9239. tableMapping.ColumnMappings.Add("Description", "Description");
  9240. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  9241. tableMapping.ColumnMappings.Add("IsActive", "IsActive");
  9242. tableMapping.ColumnMappings.Add("ManufacturerID", "ManufacturerID");
  9243. this._adapter.TableMappings.Add(tableMapping);
  9244. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9245. this._adapter.DeleteCommand.Connection = this.Connection;
  9246. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Product] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)) AND ([IsActive] = @Original_IsActive) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)))";
  9247. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9248. 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, "", "", ""));
  9249. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9250. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9251. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MainImagePath", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9252. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9253. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IsActive", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsActive", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9254. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9255. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9256. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9257. this._adapter.InsertCommand.Connection = this.Connection;
  9258. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([Title], [Cost], [Description], [MainImagePath], [IsActive], [ManufacturerID]) VALUES (@Title, @Cost, @Description, @MainImagePath, @IsActive, @ManufacturerID);
  9259. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = SCOPE_IDENTITY())";
  9260. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9261. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9262. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9263. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9264. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9265. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsActive", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsActive", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9266. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9267. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9268. this._adapter.UpdateCommand.Connection = this.Connection;
  9269. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Product] SET [Title] = @Title, [Cost] = @Cost, [Description] = @Description, [MainImagePath] = @MainImagePath, [IsActive] = @IsActive, [ManufacturerID] = @ManufacturerID WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)) AND ([IsActive] = @Original_IsActive) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)));
  9270. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = @ID)";
  9271. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9272. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9273. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9274. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9275. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9276. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsActive", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsActive", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9277. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9278. 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, "", "", ""));
  9279. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9280. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9281. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MainImagePath", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9282. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9283. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IsActive", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsActive", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9284. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9285. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9286. 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, "", "", ""));
  9287. }
  9288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9290. private void InitConnection() {
  9291. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9292. this._connection.ConnectionString = global::bobrov2demo.Properties.Settings.Default.bobrovDemoEgzamenConnectionString;
  9293. }
  9294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9296. private void InitCommandCollection() {
  9297. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9298. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9299. this._commandCollection[0].Connection = this.Connection;
  9300. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM" +
  9301. " dbo.Product";
  9302. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9303. }
  9304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9306. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9307. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9308. public virtual int Fill(bobrovDemoEgzamenDataSet.ProductDataTable dataTable) {
  9309. this.Adapter.SelectCommand = this.CommandCollection[0];
  9310. if ((this.ClearBeforeFill == true)) {
  9311. dataTable.Clear();
  9312. }
  9313. int returnValue = this.Adapter.Fill(dataTable);
  9314. return returnValue;
  9315. }
  9316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9318. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9319. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9320. public virtual bobrovDemoEgzamenDataSet.ProductDataTable GetData() {
  9321. this.Adapter.SelectCommand = this.CommandCollection[0];
  9322. bobrovDemoEgzamenDataSet.ProductDataTable dataTable = new bobrovDemoEgzamenDataSet.ProductDataTable();
  9323. this.Adapter.Fill(dataTable);
  9324. return dataTable;
  9325. }
  9326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9328. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9329. public virtual int Update(bobrovDemoEgzamenDataSet.ProductDataTable dataTable) {
  9330. return this.Adapter.Update(dataTable);
  9331. }
  9332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9334. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9335. public virtual int Update(bobrovDemoEgzamenDataSet dataSet) {
  9336. return this.Adapter.Update(dataSet, "Product");
  9337. }
  9338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9340. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9341. public virtual int Update(global::System.Data.DataRow dataRow) {
  9342. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9343. dataRow});
  9344. }
  9345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9347. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9348. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9349. return this.Adapter.Update(dataRows);
  9350. }
  9351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9353. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9354. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9355. public virtual int Delete(int Original_ID, string Original_Title, decimal Original_Cost, string Original_MainImagePath, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID) {
  9356. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9357. if ((Original_Title == null)) {
  9358. throw new global::System.ArgumentNullException("Original_Title");
  9359. }
  9360. else {
  9361. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  9362. }
  9363. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  9364. if ((Original_MainImagePath == null)) {
  9365. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  9366. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  9367. }
  9368. else {
  9369. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  9370. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_MainImagePath));
  9371. }
  9372. this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_IsActive));
  9373. if ((Original_ManufacturerID.HasValue == true)) {
  9374. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  9375. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_ManufacturerID.Value));
  9376. }
  9377. else {
  9378. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  9379. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  9380. }
  9381. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9382. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9383. != global::System.Data.ConnectionState.Open)) {
  9384. this.Adapter.DeleteCommand.Connection.Open();
  9385. }
  9386. try {
  9387. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9388. return returnValue;
  9389. }
  9390. finally {
  9391. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9392. this.Adapter.DeleteCommand.Connection.Close();
  9393. }
  9394. }
  9395. }
  9396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9398. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9399. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9400. public virtual int Insert(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID) {
  9401. if ((Title == null)) {
  9402. throw new global::System.ArgumentNullException("Title");
  9403. }
  9404. else {
  9405. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  9406. }
  9407. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  9408. if ((Description == null)) {
  9409. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  9410. }
  9411. else {
  9412. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Description));
  9413. }
  9414. if ((MainImagePath == null)) {
  9415. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9416. }
  9417. else {
  9418. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(MainImagePath));
  9419. }
  9420. this.Adapter.InsertCommand.Parameters[4].Value = ((bool)(IsActive));
  9421. if ((ManufacturerID.HasValue == true)) {
  9422. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  9423. }
  9424. else {
  9425. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  9426. }
  9427. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9428. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9429. != global::System.Data.ConnectionState.Open)) {
  9430. this.Adapter.InsertCommand.Connection.Open();
  9431. }
  9432. try {
  9433. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9434. return returnValue;
  9435. }
  9436. finally {
  9437. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9438. this.Adapter.InsertCommand.Connection.Close();
  9439. }
  9440. }
  9441. }
  9442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9444. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9445. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9446. public virtual int Update(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID, int Original_ID, string Original_Title, decimal Original_Cost, string Original_MainImagePath, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID, int ID) {
  9447. if ((Title == null)) {
  9448. throw new global::System.ArgumentNullException("Title");
  9449. }
  9450. else {
  9451. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  9452. }
  9453. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  9454. if ((Description == null)) {
  9455. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  9456. }
  9457. else {
  9458. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Description));
  9459. }
  9460. if ((MainImagePath == null)) {
  9461. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9462. }
  9463. else {
  9464. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(MainImagePath));
  9465. }
  9466. this.Adapter.UpdateCommand.Parameters[4].Value = ((bool)(IsActive));
  9467. if ((ManufacturerID.HasValue == true)) {
  9468. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  9469. }
  9470. else {
  9471. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9472. }
  9473. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  9474. if ((Original_Title == null)) {
  9475. throw new global::System.ArgumentNullException("Original_Title");
  9476. }
  9477. else {
  9478. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  9479. }
  9480. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  9481. if ((Original_MainImagePath == null)) {
  9482. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  9483. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  9484. }
  9485. else {
  9486. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  9487. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_MainImagePath));
  9488. }
  9489. this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_IsActive));
  9490. if ((Original_ManufacturerID.HasValue == true)) {
  9491. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  9492. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_ManufacturerID.Value));
  9493. }
  9494. else {
  9495. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  9496. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  9497. }
  9498. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  9499. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9500. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9501. != global::System.Data.ConnectionState.Open)) {
  9502. this.Adapter.UpdateCommand.Connection.Open();
  9503. }
  9504. try {
  9505. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9506. return returnValue;
  9507. }
  9508. finally {
  9509. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9510. this.Adapter.UpdateCommand.Connection.Close();
  9511. }
  9512. }
  9513. }
  9514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9516. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9517. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9518. public virtual int Update(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID, int Original_ID, string Original_Title, decimal Original_Cost, string Original_MainImagePath, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID) {
  9519. return this.Update(Title, Cost, Description, MainImagePath, IsActive, ManufacturerID, Original_ID, Original_Title, Original_Cost, Original_MainImagePath, Original_IsActive, Original_ManufacturerID, Original_ID);
  9520. }
  9521. }
  9522. /// <summary>
  9523. ///Represents the connection and commands used to retrieve and save data.
  9524. ///</summary>
  9525. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9526. [global::System.ComponentModel.ToolboxItem(true)]
  9527. [global::System.ComponentModel.DataObjectAttribute(true)]
  9528. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9529. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9530. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9531. public partial class ProductPhotoTableAdapter : global::System.ComponentModel.Component {
  9532. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9533. private global::System.Data.SqlClient.SqlConnection _connection;
  9534. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9535. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9536. private bool _clearBeforeFill;
  9537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9539. public ProductPhotoTableAdapter() {
  9540. this.ClearBeforeFill = true;
  9541. }
  9542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9544. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9545. get {
  9546. if ((this._adapter == null)) {
  9547. this.InitAdapter();
  9548. }
  9549. return this._adapter;
  9550. }
  9551. }
  9552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9554. internal global::System.Data.SqlClient.SqlConnection Connection {
  9555. get {
  9556. if ((this._connection == null)) {
  9557. this.InitConnection();
  9558. }
  9559. return this._connection;
  9560. }
  9561. set {
  9562. this._connection = value;
  9563. if ((this.Adapter.InsertCommand != null)) {
  9564. this.Adapter.InsertCommand.Connection = value;
  9565. }
  9566. if ((this.Adapter.DeleteCommand != null)) {
  9567. this.Adapter.DeleteCommand.Connection = value;
  9568. }
  9569. if ((this.Adapter.UpdateCommand != null)) {
  9570. this.Adapter.UpdateCommand.Connection = value;
  9571. }
  9572. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9573. if ((this.CommandCollection[i] != null)) {
  9574. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9575. }
  9576. }
  9577. }
  9578. }
  9579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9581. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9582. get {
  9583. return this._transaction;
  9584. }
  9585. set {
  9586. this._transaction = value;
  9587. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9588. this.CommandCollection[i].Transaction = this._transaction;
  9589. }
  9590. if (((this.Adapter != null)
  9591. && (this.Adapter.DeleteCommand != null))) {
  9592. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9593. }
  9594. if (((this.Adapter != null)
  9595. && (this.Adapter.InsertCommand != null))) {
  9596. this.Adapter.InsertCommand.Transaction = this._transaction;
  9597. }
  9598. if (((this.Adapter != null)
  9599. && (this.Adapter.UpdateCommand != null))) {
  9600. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9601. }
  9602. }
  9603. }
  9604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9606. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9607. get {
  9608. if ((this._commandCollection == null)) {
  9609. this.InitCommandCollection();
  9610. }
  9611. return this._commandCollection;
  9612. }
  9613. }
  9614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9616. public bool ClearBeforeFill {
  9617. get {
  9618. return this._clearBeforeFill;
  9619. }
  9620. set {
  9621. this._clearBeforeFill = value;
  9622. }
  9623. }
  9624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9626. private void InitAdapter() {
  9627. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9628. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9629. tableMapping.SourceTable = "Table";
  9630. tableMapping.DataSetTable = "ProductPhoto";
  9631. tableMapping.ColumnMappings.Add("ID", "ID");
  9632. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  9633. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  9634. this._adapter.TableMappings.Add(tableMapping);
  9635. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9636. this._adapter.DeleteCommand.Connection = this.Connection;
  9637. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProductPhoto] WHERE (([ID] = @Original_ID) AND ([ProductID] = " +
  9638. "@Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath))";
  9639. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9640. 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, "", "", ""));
  9641. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9642. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9643. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9644. this._adapter.InsertCommand.Connection = this.Connection;
  9645. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductPhoto] ([ProductID], [PhotoPath]) VALUES (@ProductID, @" +
  9646. "PhotoPath);\r\nSELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = SCOPE" +
  9647. "_IDENTITY())";
  9648. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9649. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9650. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9651. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9652. this._adapter.UpdateCommand.Connection = this.Connection;
  9653. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductPhoto] SET [ProductID] = @ProductID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath));
  9654. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = @ID)";
  9655. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9656. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9657. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9658. 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, "", "", ""));
  9659. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9660. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9661. 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, "", "", ""));
  9662. }
  9663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9665. private void InitConnection() {
  9666. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9667. this._connection.ConnectionString = global::bobrov2demo.Properties.Settings.Default.bobrovDemoEgzamenConnectionString;
  9668. }
  9669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9671. private void InitCommandCollection() {
  9672. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9673. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9674. this._commandCollection[0].Connection = this.Connection;
  9675. this._commandCollection[0].CommandText = "SELECT ID, ProductID, PhotoPath FROM dbo.ProductPhoto";
  9676. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9677. }
  9678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9680. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9681. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9682. public virtual int Fill(bobrovDemoEgzamenDataSet.ProductPhotoDataTable dataTable) {
  9683. this.Adapter.SelectCommand = this.CommandCollection[0];
  9684. if ((this.ClearBeforeFill == true)) {
  9685. dataTable.Clear();
  9686. }
  9687. int returnValue = this.Adapter.Fill(dataTable);
  9688. return returnValue;
  9689. }
  9690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9692. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9693. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9694. public virtual bobrovDemoEgzamenDataSet.ProductPhotoDataTable GetData() {
  9695. this.Adapter.SelectCommand = this.CommandCollection[0];
  9696. bobrovDemoEgzamenDataSet.ProductPhotoDataTable dataTable = new bobrovDemoEgzamenDataSet.ProductPhotoDataTable();
  9697. this.Adapter.Fill(dataTable);
  9698. return dataTable;
  9699. }
  9700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9702. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9703. public virtual int Update(bobrovDemoEgzamenDataSet.ProductPhotoDataTable dataTable) {
  9704. return this.Adapter.Update(dataTable);
  9705. }
  9706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9708. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9709. public virtual int Update(bobrovDemoEgzamenDataSet dataSet) {
  9710. return this.Adapter.Update(dataSet, "ProductPhoto");
  9711. }
  9712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9714. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9715. public virtual int Update(global::System.Data.DataRow dataRow) {
  9716. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9717. dataRow});
  9718. }
  9719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9721. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9722. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9723. return this.Adapter.Update(dataRows);
  9724. }
  9725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9727. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9728. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9729. public virtual int Delete(int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  9730. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9731. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ProductID));
  9732. if ((Original_PhotoPath == null)) {
  9733. throw new global::System.ArgumentNullException("Original_PhotoPath");
  9734. }
  9735. else {
  9736. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  9737. }
  9738. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9739. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9740. != global::System.Data.ConnectionState.Open)) {
  9741. this.Adapter.DeleteCommand.Connection.Open();
  9742. }
  9743. try {
  9744. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9745. return returnValue;
  9746. }
  9747. finally {
  9748. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9749. this.Adapter.DeleteCommand.Connection.Close();
  9750. }
  9751. }
  9752. }
  9753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9755. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9756. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9757. public virtual int Insert(int ProductID, string PhotoPath) {
  9758. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ProductID));
  9759. if ((PhotoPath == null)) {
  9760. throw new global::System.ArgumentNullException("PhotoPath");
  9761. }
  9762. else {
  9763. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  9764. }
  9765. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9766. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9767. != global::System.Data.ConnectionState.Open)) {
  9768. this.Adapter.InsertCommand.Connection.Open();
  9769. }
  9770. try {
  9771. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9772. return returnValue;
  9773. }
  9774. finally {
  9775. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9776. this.Adapter.InsertCommand.Connection.Close();
  9777. }
  9778. }
  9779. }
  9780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9782. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9783. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9784. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath, int ID) {
  9785. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ProductID));
  9786. if ((PhotoPath == null)) {
  9787. throw new global::System.ArgumentNullException("PhotoPath");
  9788. }
  9789. else {
  9790. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  9791. }
  9792. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9793. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ProductID));
  9794. if ((Original_PhotoPath == null)) {
  9795. throw new global::System.ArgumentNullException("Original_PhotoPath");
  9796. }
  9797. else {
  9798. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  9799. }
  9800. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  9801. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9802. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9803. != global::System.Data.ConnectionState.Open)) {
  9804. this.Adapter.UpdateCommand.Connection.Open();
  9805. }
  9806. try {
  9807. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9808. return returnValue;
  9809. }
  9810. finally {
  9811. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9812. this.Adapter.UpdateCommand.Connection.Close();
  9813. }
  9814. }
  9815. }
  9816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9818. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9819. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9820. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  9821. return this.Update(ProductID, PhotoPath, Original_ID, Original_ProductID, Original_PhotoPath, Original_ID);
  9822. }
  9823. }
  9824. /// <summary>
  9825. ///Represents the connection and commands used to retrieve and save data.
  9826. ///</summary>
  9827. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9828. [global::System.ComponentModel.ToolboxItem(true)]
  9829. [global::System.ComponentModel.DataObjectAttribute(true)]
  9830. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9831. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9832. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9833. public partial class ProductSaleTableAdapter : global::System.ComponentModel.Component {
  9834. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9835. private global::System.Data.SqlClient.SqlConnection _connection;
  9836. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9837. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9838. private bool _clearBeforeFill;
  9839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9841. public ProductSaleTableAdapter() {
  9842. this.ClearBeforeFill = true;
  9843. }
  9844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9846. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9847. get {
  9848. if ((this._adapter == null)) {
  9849. this.InitAdapter();
  9850. }
  9851. return this._adapter;
  9852. }
  9853. }
  9854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9856. internal global::System.Data.SqlClient.SqlConnection Connection {
  9857. get {
  9858. if ((this._connection == null)) {
  9859. this.InitConnection();
  9860. }
  9861. return this._connection;
  9862. }
  9863. set {
  9864. this._connection = value;
  9865. if ((this.Adapter.InsertCommand != null)) {
  9866. this.Adapter.InsertCommand.Connection = value;
  9867. }
  9868. if ((this.Adapter.DeleteCommand != null)) {
  9869. this.Adapter.DeleteCommand.Connection = value;
  9870. }
  9871. if ((this.Adapter.UpdateCommand != null)) {
  9872. this.Adapter.UpdateCommand.Connection = value;
  9873. }
  9874. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9875. if ((this.CommandCollection[i] != null)) {
  9876. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9877. }
  9878. }
  9879. }
  9880. }
  9881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9883. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9884. get {
  9885. return this._transaction;
  9886. }
  9887. set {
  9888. this._transaction = value;
  9889. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9890. this.CommandCollection[i].Transaction = this._transaction;
  9891. }
  9892. if (((this.Adapter != null)
  9893. && (this.Adapter.DeleteCommand != null))) {
  9894. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9895. }
  9896. if (((this.Adapter != null)
  9897. && (this.Adapter.InsertCommand != null))) {
  9898. this.Adapter.InsertCommand.Transaction = this._transaction;
  9899. }
  9900. if (((this.Adapter != null)
  9901. && (this.Adapter.UpdateCommand != null))) {
  9902. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9903. }
  9904. }
  9905. }
  9906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9908. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9909. get {
  9910. if ((this._commandCollection == null)) {
  9911. this.InitCommandCollection();
  9912. }
  9913. return this._commandCollection;
  9914. }
  9915. }
  9916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9918. public bool ClearBeforeFill {
  9919. get {
  9920. return this._clearBeforeFill;
  9921. }
  9922. set {
  9923. this._clearBeforeFill = value;
  9924. }
  9925. }
  9926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9928. private void InitAdapter() {
  9929. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9930. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9931. tableMapping.SourceTable = "Table";
  9932. tableMapping.DataSetTable = "ProductSale";
  9933. tableMapping.ColumnMappings.Add("ID", "ID");
  9934. tableMapping.ColumnMappings.Add("SaleDate", "SaleDate");
  9935. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  9936. tableMapping.ColumnMappings.Add("Quantity", "Quantity");
  9937. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  9938. this._adapter.TableMappings.Add(tableMapping);
  9939. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9940. this._adapter.DeleteCommand.Connection = this.Connection;
  9941. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ProductSale] WHERE (([ID] = @Original_ID) AND ([SaleDate] = @Original_SaleDate) AND ([ProductID] = @Original_ProductID) AND ([Quantity] = @Original_Quantity) AND ((@IsNull_ClientServiceID = 1 AND [ClientServiceID] IS NULL) OR ([ClientServiceID] = @Original_ClientServiceID)))";
  9942. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9943. 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, "", "", ""));
  9944. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SaleDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9945. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9946. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9947. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9948. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9949. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9950. this._adapter.InsertCommand.Connection = this.Connection;
  9951. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductSale] ([SaleDate], [ProductID], [Quantity], [ClientServ" +
  9952. "iceID]) VALUES (@SaleDate, @ProductID, @Quantity, @ClientServiceID);\r\nSELECT ID," +
  9953. " SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = SCO" +
  9954. "PE_IDENTITY())";
  9955. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9956. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SaleDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9957. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9958. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9959. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9960. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9961. this._adapter.UpdateCommand.Connection = this.Connection;
  9962. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductSale] SET [SaleDate] = @SaleDate, [ProductID] = @ProductID, [Quantity] = @Quantity, [ClientServiceID] = @ClientServiceID WHERE (([ID] = @Original_ID) AND ([SaleDate] = @Original_SaleDate) AND ([ProductID] = @Original_ProductID) AND ([Quantity] = @Original_Quantity) AND ((@IsNull_ClientServiceID = 1 AND [ClientServiceID] IS NULL) OR ([ClientServiceID] = @Original_ClientServiceID)));
  9963. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = @ID)";
  9964. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9965. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SaleDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9966. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9967. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9968. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9969. 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, "", "", ""));
  9970. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SaleDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9971. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9972. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9973. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9974. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9975. 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, "", "", ""));
  9976. }
  9977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9979. private void InitConnection() {
  9980. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9981. this._connection.ConnectionString = global::bobrov2demo.Properties.Settings.Default.bobrovDemoEgzamenConnectionString;
  9982. }
  9983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9985. private void InitCommandCollection() {
  9986. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9987. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9988. this._commandCollection[0].Connection = this.Connection;
  9989. this._commandCollection[0].CommandText = "SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM dbo.ProductSale";
  9990. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9991. }
  9992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9994. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9995. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9996. public virtual int Fill(bobrovDemoEgzamenDataSet.ProductSaleDataTable dataTable) {
  9997. this.Adapter.SelectCommand = this.CommandCollection[0];
  9998. if ((this.ClearBeforeFill == true)) {
  9999. dataTable.Clear();
  10000. }
  10001. int returnValue = this.Adapter.Fill(dataTable);
  10002. return returnValue;
  10003. }
  10004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10006. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10007. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10008. public virtual bobrovDemoEgzamenDataSet.ProductSaleDataTable GetData() {
  10009. this.Adapter.SelectCommand = this.CommandCollection[0];
  10010. bobrovDemoEgzamenDataSet.ProductSaleDataTable dataTable = new bobrovDemoEgzamenDataSet.ProductSaleDataTable();
  10011. this.Adapter.Fill(dataTable);
  10012. return dataTable;
  10013. }
  10014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10016. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10017. public virtual int Update(bobrovDemoEgzamenDataSet.ProductSaleDataTable dataTable) {
  10018. return this.Adapter.Update(dataTable);
  10019. }
  10020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10022. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10023. public virtual int Update(bobrovDemoEgzamenDataSet dataSet) {
  10024. return this.Adapter.Update(dataSet, "ProductSale");
  10025. }
  10026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10028. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10029. public virtual int Update(global::System.Data.DataRow dataRow) {
  10030. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10031. dataRow});
  10032. }
  10033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10035. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10036. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10037. return this.Adapter.Update(dataRows);
  10038. }
  10039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10041. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10042. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10043. public virtual int Delete(int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID) {
  10044. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  10045. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_SaleDate));
  10046. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ProductID));
  10047. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Quantity));
  10048. if ((Original_ClientServiceID.HasValue == true)) {
  10049. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  10050. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_ClientServiceID.Value));
  10051. }
  10052. else {
  10053. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  10054. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  10055. }
  10056. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10057. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10058. != global::System.Data.ConnectionState.Open)) {
  10059. this.Adapter.DeleteCommand.Connection.Open();
  10060. }
  10061. try {
  10062. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10063. return returnValue;
  10064. }
  10065. finally {
  10066. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10067. this.Adapter.DeleteCommand.Connection.Close();
  10068. }
  10069. }
  10070. }
  10071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10073. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10074. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10075. public virtual int Insert(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID) {
  10076. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  10077. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ProductID));
  10078. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Quantity));
  10079. if ((ClientServiceID.HasValue == true)) {
  10080. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  10081. }
  10082. else {
  10083. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  10084. }
  10085. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10086. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10087. != global::System.Data.ConnectionState.Open)) {
  10088. this.Adapter.InsertCommand.Connection.Open();
  10089. }
  10090. try {
  10091. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10092. return returnValue;
  10093. }
  10094. finally {
  10095. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10096. this.Adapter.InsertCommand.Connection.Close();
  10097. }
  10098. }
  10099. }
  10100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10102. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10103. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10104. public virtual int Update(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID, int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID, int ID) {
  10105. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  10106. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ProductID));
  10107. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Quantity));
  10108. if ((ClientServiceID.HasValue == true)) {
  10109. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  10110. }
  10111. else {
  10112. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  10113. }
  10114. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  10115. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_SaleDate));
  10116. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ProductID));
  10117. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Quantity));
  10118. if ((Original_ClientServiceID.HasValue == true)) {
  10119. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  10120. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ClientServiceID.Value));
  10121. }
  10122. else {
  10123. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  10124. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  10125. }
  10126. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID));
  10127. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10128. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10129. != global::System.Data.ConnectionState.Open)) {
  10130. this.Adapter.UpdateCommand.Connection.Open();
  10131. }
  10132. try {
  10133. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10134. return returnValue;
  10135. }
  10136. finally {
  10137. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10138. this.Adapter.UpdateCommand.Connection.Close();
  10139. }
  10140. }
  10141. }
  10142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10144. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10145. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10146. public virtual int Update(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID, int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID) {
  10147. return this.Update(SaleDate, ProductID, Quantity, ClientServiceID, Original_ID, Original_SaleDate, Original_ProductID, Original_Quantity, Original_ClientServiceID, Original_ID);
  10148. }
  10149. }
  10150. /// <summary>
  10151. ///Represents the connection and commands used to retrieve and save data.
  10152. ///</summary>
  10153. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10154. [global::System.ComponentModel.ToolboxItem(true)]
  10155. [global::System.ComponentModel.DataObjectAttribute(true)]
  10156. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10157. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10158. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10159. public partial class ServiceTableAdapter : global::System.ComponentModel.Component {
  10160. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10161. private global::System.Data.SqlClient.SqlConnection _connection;
  10162. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10163. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10164. private bool _clearBeforeFill;
  10165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10167. public ServiceTableAdapter() {
  10168. this.ClearBeforeFill = true;
  10169. }
  10170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10172. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10173. get {
  10174. if ((this._adapter == null)) {
  10175. this.InitAdapter();
  10176. }
  10177. return this._adapter;
  10178. }
  10179. }
  10180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10182. internal global::System.Data.SqlClient.SqlConnection Connection {
  10183. get {
  10184. if ((this._connection == null)) {
  10185. this.InitConnection();
  10186. }
  10187. return this._connection;
  10188. }
  10189. set {
  10190. this._connection = value;
  10191. if ((this.Adapter.InsertCommand != null)) {
  10192. this.Adapter.InsertCommand.Connection = value;
  10193. }
  10194. if ((this.Adapter.DeleteCommand != null)) {
  10195. this.Adapter.DeleteCommand.Connection = value;
  10196. }
  10197. if ((this.Adapter.UpdateCommand != null)) {
  10198. this.Adapter.UpdateCommand.Connection = value;
  10199. }
  10200. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10201. if ((this.CommandCollection[i] != null)) {
  10202. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10203. }
  10204. }
  10205. }
  10206. }
  10207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10209. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10210. get {
  10211. return this._transaction;
  10212. }
  10213. set {
  10214. this._transaction = value;
  10215. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10216. this.CommandCollection[i].Transaction = this._transaction;
  10217. }
  10218. if (((this.Adapter != null)
  10219. && (this.Adapter.DeleteCommand != null))) {
  10220. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10221. }
  10222. if (((this.Adapter != null)
  10223. && (this.Adapter.InsertCommand != null))) {
  10224. this.Adapter.InsertCommand.Transaction = this._transaction;
  10225. }
  10226. if (((this.Adapter != null)
  10227. && (this.Adapter.UpdateCommand != null))) {
  10228. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10229. }
  10230. }
  10231. }
  10232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10234. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10235. get {
  10236. if ((this._commandCollection == null)) {
  10237. this.InitCommandCollection();
  10238. }
  10239. return this._commandCollection;
  10240. }
  10241. }
  10242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10244. public bool ClearBeforeFill {
  10245. get {
  10246. return this._clearBeforeFill;
  10247. }
  10248. set {
  10249. this._clearBeforeFill = value;
  10250. }
  10251. }
  10252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10254. private void InitAdapter() {
  10255. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10256. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10257. tableMapping.SourceTable = "Table";
  10258. tableMapping.DataSetTable = "Service";
  10259. tableMapping.ColumnMappings.Add("ID", "ID");
  10260. tableMapping.ColumnMappings.Add("Title", "Title");
  10261. tableMapping.ColumnMappings.Add("Cost", "Cost");
  10262. tableMapping.ColumnMappings.Add("DurationInSeconds", "DurationInSeconds");
  10263. tableMapping.ColumnMappings.Add("Description", "Description");
  10264. tableMapping.ColumnMappings.Add("Discount", "Discount");
  10265. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  10266. this._adapter.TableMappings.Add(tableMapping);
  10267. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10268. this._adapter.DeleteCommand.Connection = this.Connection;
  10269. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Service] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ([DurationInSeconds] = @Original_DurationInSeconds) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)))";
  10270. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10271. 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, "", "", ""));
  10272. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10273. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10274. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10275. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Discount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10276. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10277. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MainImagePath", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10278. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10279. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10280. this._adapter.InsertCommand.Connection = this.Connection;
  10281. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Service] ([Title], [Cost], [DurationInSeconds], [Description], [Discount], [MainImagePath]) VALUES (@Title, @Cost, @DurationInSeconds, @Description, @Discount, @MainImagePath);
  10282. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM Service WHERE (ID = SCOPE_IDENTITY())";
  10283. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10284. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10285. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10286. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10287. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10288. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10289. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10290. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10291. this._adapter.UpdateCommand.Connection = this.Connection;
  10292. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Service] SET [Title] = @Title, [Cost] = @Cost, [DurationInSeconds] = @DurationInSeconds, [Description] = @Description, [Discount] = @Discount, [MainImagePath] = @MainImagePath WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ([DurationInSeconds] = @Original_DurationInSeconds) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)));
  10293. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM Service WHERE (ID = @ID)";
  10294. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10295. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10296. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10297. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10298. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10299. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10300. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10301. 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, "", "", ""));
  10302. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10303. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10304. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10305. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Discount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10306. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10307. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MainImagePath", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10308. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10309. 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, "", "", ""));
  10310. }
  10311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10313. private void InitConnection() {
  10314. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10315. this._connection.ConnectionString = global::bobrov2demo.Properties.Settings.Default.bobrovDemoEgzamenConnectionString;
  10316. }
  10317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10319. private void InitCommandCollection() {
  10320. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10321. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10322. this._commandCollection[0].Connection = this.Connection;
  10323. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath F" +
  10324. "ROM dbo.Service";
  10325. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10326. }
  10327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10329. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10330. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10331. public virtual int Fill(bobrovDemoEgzamenDataSet.ServiceDataTable dataTable) {
  10332. this.Adapter.SelectCommand = this.CommandCollection[0];
  10333. if ((this.ClearBeforeFill == true)) {
  10334. dataTable.Clear();
  10335. }
  10336. int returnValue = this.Adapter.Fill(dataTable);
  10337. return returnValue;
  10338. }
  10339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10341. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10342. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10343. public virtual bobrovDemoEgzamenDataSet.ServiceDataTable GetData() {
  10344. this.Adapter.SelectCommand = this.CommandCollection[0];
  10345. bobrovDemoEgzamenDataSet.ServiceDataTable dataTable = new bobrovDemoEgzamenDataSet.ServiceDataTable();
  10346. this.Adapter.Fill(dataTable);
  10347. return dataTable;
  10348. }
  10349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10351. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10352. public virtual int Update(bobrovDemoEgzamenDataSet.ServiceDataTable dataTable) {
  10353. return this.Adapter.Update(dataTable);
  10354. }
  10355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10357. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10358. public virtual int Update(bobrovDemoEgzamenDataSet dataSet) {
  10359. return this.Adapter.Update(dataSet, "Service");
  10360. }
  10361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10363. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10364. public virtual int Update(global::System.Data.DataRow dataRow) {
  10365. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10366. dataRow});
  10367. }
  10368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10370. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10371. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10372. return this.Adapter.Update(dataRows);
  10373. }
  10374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10376. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10377. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10378. public virtual int Delete(int Original_ID, string Original_Title, decimal Original_Cost, int Original_DurationInSeconds, global::System.Nullable<double> Original_Discount, string Original_MainImagePath) {
  10379. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  10380. if ((Original_Title == null)) {
  10381. throw new global::System.ArgumentNullException("Original_Title");
  10382. }
  10383. else {
  10384. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  10385. }
  10386. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  10387. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_DurationInSeconds));
  10388. if ((Original_Discount.HasValue == true)) {
  10389. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  10390. this.Adapter.DeleteCommand.Parameters[5].Value = ((double)(Original_Discount.Value));
  10391. }
  10392. else {
  10393. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  10394. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  10395. }
  10396. if ((Original_MainImagePath == null)) {
  10397. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  10398. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  10399. }
  10400. else {
  10401. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  10402. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_MainImagePath));
  10403. }
  10404. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10405. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10406. != global::System.Data.ConnectionState.Open)) {
  10407. this.Adapter.DeleteCommand.Connection.Open();
  10408. }
  10409. try {
  10410. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10411. return returnValue;
  10412. }
  10413. finally {
  10414. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10415. this.Adapter.DeleteCommand.Connection.Close();
  10416. }
  10417. }
  10418. }
  10419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10421. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10422. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10423. public virtual int Insert(string Title, decimal Cost, int DurationInSeconds, string Description, global::System.Nullable<double> Discount, string MainImagePath) {
  10424. if ((Title == null)) {
  10425. throw new global::System.ArgumentNullException("Title");
  10426. }
  10427. else {
  10428. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  10429. }
  10430. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  10431. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(DurationInSeconds));
  10432. if ((Description == null)) {
  10433. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  10434. }
  10435. else {
  10436. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Description));
  10437. }
  10438. if ((Discount.HasValue == true)) {
  10439. this.Adapter.InsertCommand.Parameters[4].Value = ((double)(Discount.Value));
  10440. }
  10441. else {
  10442. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  10443. }
  10444. if ((MainImagePath == null)) {
  10445. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  10446. }
  10447. else {
  10448. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(MainImagePath));
  10449. }
  10450. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10451. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10452. != global::System.Data.ConnectionState.Open)) {
  10453. this.Adapter.InsertCommand.Connection.Open();
  10454. }
  10455. try {
  10456. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10457. return returnValue;
  10458. }
  10459. finally {
  10460. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10461. this.Adapter.InsertCommand.Connection.Close();
  10462. }
  10463. }
  10464. }
  10465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10467. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10468. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10469. public virtual int Update(string Title, decimal Cost, int DurationInSeconds, string Description, global::System.Nullable<double> Discount, string MainImagePath, int Original_ID, string Original_Title, decimal Original_Cost, int Original_DurationInSeconds, global::System.Nullable<double> Original_Discount, string Original_MainImagePath, int ID) {
  10470. if ((Title == null)) {
  10471. throw new global::System.ArgumentNullException("Title");
  10472. }
  10473. else {
  10474. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  10475. }
  10476. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  10477. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(DurationInSeconds));
  10478. if ((Description == null)) {
  10479. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  10480. }
  10481. else {
  10482. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Description));
  10483. }
  10484. if ((Discount.HasValue == true)) {
  10485. this.Adapter.UpdateCommand.Parameters[4].Value = ((double)(Discount.Value));
  10486. }
  10487. else {
  10488. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  10489. }
  10490. if ((MainImagePath == null)) {
  10491. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  10492. }
  10493. else {
  10494. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(MainImagePath));
  10495. }
  10496. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  10497. if ((Original_Title == null)) {
  10498. throw new global::System.ArgumentNullException("Original_Title");
  10499. }
  10500. else {
  10501. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  10502. }
  10503. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  10504. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_DurationInSeconds));
  10505. if ((Original_Discount.HasValue == true)) {
  10506. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  10507. this.Adapter.UpdateCommand.Parameters[11].Value = ((double)(Original_Discount.Value));
  10508. }
  10509. else {
  10510. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  10511. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  10512. }
  10513. if ((Original_MainImagePath == null)) {
  10514. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  10515. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  10516. }
  10517. else {
  10518. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  10519. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_MainImagePath));
  10520. }
  10521. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  10522. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10523. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10524. != global::System.Data.ConnectionState.Open)) {
  10525. this.Adapter.UpdateCommand.Connection.Open();
  10526. }
  10527. try {
  10528. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10529. return returnValue;
  10530. }
  10531. finally {
  10532. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10533. this.Adapter.UpdateCommand.Connection.Close();
  10534. }
  10535. }
  10536. }
  10537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10539. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10540. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10541. public virtual int Update(string Title, decimal Cost, int DurationInSeconds, string Description, global::System.Nullable<double> Discount, string MainImagePath, int Original_ID, string Original_Title, decimal Original_Cost, int Original_DurationInSeconds, global::System.Nullable<double> Original_Discount, string Original_MainImagePath) {
  10542. return this.Update(Title, Cost, DurationInSeconds, Description, Discount, MainImagePath, Original_ID, Original_Title, Original_Cost, Original_DurationInSeconds, Original_Discount, Original_MainImagePath, Original_ID);
  10543. }
  10544. }
  10545. /// <summary>
  10546. ///Represents the connection and commands used to retrieve and save data.
  10547. ///</summary>
  10548. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10549. [global::System.ComponentModel.ToolboxItem(true)]
  10550. [global::System.ComponentModel.DataObjectAttribute(true)]
  10551. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10552. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10553. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10554. public partial class service_b_importTableAdapter : global::System.ComponentModel.Component {
  10555. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10556. private global::System.Data.SqlClient.SqlConnection _connection;
  10557. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10558. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10559. private bool _clearBeforeFill;
  10560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10562. public service_b_importTableAdapter() {
  10563. this.ClearBeforeFill = true;
  10564. }
  10565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10567. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10568. get {
  10569. if ((this._adapter == null)) {
  10570. this.InitAdapter();
  10571. }
  10572. return this._adapter;
  10573. }
  10574. }
  10575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10577. internal global::System.Data.SqlClient.SqlConnection Connection {
  10578. get {
  10579. if ((this._connection == null)) {
  10580. this.InitConnection();
  10581. }
  10582. return this._connection;
  10583. }
  10584. set {
  10585. this._connection = value;
  10586. if ((this.Adapter.InsertCommand != null)) {
  10587. this.Adapter.InsertCommand.Connection = value;
  10588. }
  10589. if ((this.Adapter.DeleteCommand != null)) {
  10590. this.Adapter.DeleteCommand.Connection = value;
  10591. }
  10592. if ((this.Adapter.UpdateCommand != null)) {
  10593. this.Adapter.UpdateCommand.Connection = value;
  10594. }
  10595. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10596. if ((this.CommandCollection[i] != null)) {
  10597. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10598. }
  10599. }
  10600. }
  10601. }
  10602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10604. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10605. get {
  10606. return this._transaction;
  10607. }
  10608. set {
  10609. this._transaction = value;
  10610. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10611. this.CommandCollection[i].Transaction = this._transaction;
  10612. }
  10613. if (((this.Adapter != null)
  10614. && (this.Adapter.DeleteCommand != null))) {
  10615. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10616. }
  10617. if (((this.Adapter != null)
  10618. && (this.Adapter.InsertCommand != null))) {
  10619. this.Adapter.InsertCommand.Transaction = this._transaction;
  10620. }
  10621. if (((this.Adapter != null)
  10622. && (this.Adapter.UpdateCommand != null))) {
  10623. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10624. }
  10625. }
  10626. }
  10627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10629. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10630. get {
  10631. if ((this._commandCollection == null)) {
  10632. this.InitCommandCollection();
  10633. }
  10634. return this._commandCollection;
  10635. }
  10636. }
  10637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10639. public bool ClearBeforeFill {
  10640. get {
  10641. return this._clearBeforeFill;
  10642. }
  10643. set {
  10644. this._clearBeforeFill = value;
  10645. }
  10646. }
  10647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10649. private void InitAdapter() {
  10650. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10651. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10652. tableMapping.SourceTable = "Table";
  10653. tableMapping.DataSetTable = "service_b_import";
  10654. tableMapping.ColumnMappings.Add("Наименование_услуги", "Наименование_услуги");
  10655. tableMapping.ColumnMappings.Add("Главное_изображение", "Главное_изображение");
  10656. tableMapping.ColumnMappings.Add("Длительность", "Длительность");
  10657. tableMapping.ColumnMappings.Add("Стоимость", "Стоимость");
  10658. tableMapping.ColumnMappings.Add("Действующая_скидка", "Действующая_скидка");
  10659. this._adapter.TableMappings.Add(tableMapping);
  10660. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10661. this._adapter.DeleteCommand.Connection = this.Connection;
  10662. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[service_b_import] WHERE (([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка))";
  10663. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10664. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10665. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10666. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10667. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10668. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10669. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10670. this._adapter.InsertCommand.Connection = this.Connection;
  10671. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[service_b_import] ([Наименование_услуги], [Главное_изображение], [Длительность], [Стоимость], [Действующая_скидка]) VALUES (@Наименование_услуги, @Главное_изображение, @Длительность, @Стоимость, @Действующая_скидка);
  10672. SELECT Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM service_b_import WHERE (Наименование_услуги = @Наименование_услуги)";
  10673. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10674. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10675. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10676. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10677. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10678. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10679. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10680. this._adapter.UpdateCommand.Connection = this.Connection;
  10681. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[service_b_import] SET [Наименование_услуги] = @Наименование_услуги, [Главное_изображение] = @Главное_изображение, [Длительность] = @Длительность, [Стоимость] = @Стоимость, [Действующая_скидка] = @Действующая_скидка WHERE (([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка));
  10682. SELECT Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM service_b_import WHERE (Наименование_услуги = @Наименование_услуги)";
  10683. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10684. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10685. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10686. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10687. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10688. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10689. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10690. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10691. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10692. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10693. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10694. }
  10695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10697. private void InitConnection() {
  10698. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10699. this._connection.ConnectionString = global::bobrov2demo.Properties.Settings.Default.bobrovDemoEgzamenConnectionString;
  10700. }
  10701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10703. private void InitCommandCollection() {
  10704. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10705. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10706. this._commandCollection[0].Connection = this.Connection;
  10707. this._commandCollection[0].CommandText = "SELECT Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действу" +
  10708. "ющая_скидка FROM dbo.service_b_import";
  10709. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10710. }
  10711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10713. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10714. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10715. public virtual int Fill(bobrovDemoEgzamenDataSet.service_b_importDataTable dataTable) {
  10716. this.Adapter.SelectCommand = this.CommandCollection[0];
  10717. if ((this.ClearBeforeFill == true)) {
  10718. dataTable.Clear();
  10719. }
  10720. int returnValue = this.Adapter.Fill(dataTable);
  10721. return returnValue;
  10722. }
  10723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10725. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10726. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10727. public virtual bobrovDemoEgzamenDataSet.service_b_importDataTable GetData() {
  10728. this.Adapter.SelectCommand = this.CommandCollection[0];
  10729. bobrovDemoEgzamenDataSet.service_b_importDataTable dataTable = new bobrovDemoEgzamenDataSet.service_b_importDataTable();
  10730. this.Adapter.Fill(dataTable);
  10731. return dataTable;
  10732. }
  10733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10735. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10736. public virtual int Update(bobrovDemoEgzamenDataSet.service_b_importDataTable dataTable) {
  10737. return this.Adapter.Update(dataTable);
  10738. }
  10739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10741. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10742. public virtual int Update(bobrovDemoEgzamenDataSet dataSet) {
  10743. return this.Adapter.Update(dataSet, "service_b_import");
  10744. }
  10745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10747. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10748. public virtual int Update(global::System.Data.DataRow dataRow) {
  10749. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10750. dataRow});
  10751. }
  10752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10754. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10755. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10756. return this.Adapter.Update(dataRows);
  10757. }
  10758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10760. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10761. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10762. public virtual int Delete(string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка) {
  10763. if ((Original_Наименование_услуги == null)) {
  10764. throw new global::System.ArgumentNullException("Original_Наименование_услуги");
  10765. }
  10766. else {
  10767. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Наименование_услуги));
  10768. }
  10769. if ((Original_Главное_изображение == null)) {
  10770. throw new global::System.ArgumentNullException("Original_Главное_изображение");
  10771. }
  10772. else {
  10773. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Главное_изображение));
  10774. }
  10775. if ((Original_Длительность == null)) {
  10776. throw new global::System.ArgumentNullException("Original_Длительность");
  10777. }
  10778. else {
  10779. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Длительность));
  10780. }
  10781. if ((Original_Стоимость == null)) {
  10782. throw new global::System.ArgumentNullException("Original_Стоимость");
  10783. }
  10784. else {
  10785. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Стоимость));
  10786. }
  10787. if ((Original_Действующая_скидка == null)) {
  10788. throw new global::System.ArgumentNullException("Original_Действующая_скидка");
  10789. }
  10790. else {
  10791. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Действующая_скидка));
  10792. }
  10793. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10794. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10795. != global::System.Data.ConnectionState.Open)) {
  10796. this.Adapter.DeleteCommand.Connection.Open();
  10797. }
  10798. try {
  10799. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10800. return returnValue;
  10801. }
  10802. finally {
  10803. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10804. this.Adapter.DeleteCommand.Connection.Close();
  10805. }
  10806. }
  10807. }
  10808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10810. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10811. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10812. public virtual int Insert(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка) {
  10813. if ((Наименование_услуги == null)) {
  10814. throw new global::System.ArgumentNullException("Наименование_услуги");
  10815. }
  10816. else {
  10817. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Наименование_услуги));
  10818. }
  10819. if ((Главное_изображение == null)) {
  10820. throw new global::System.ArgumentNullException("Главное_изображение");
  10821. }
  10822. else {
  10823. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Главное_изображение));
  10824. }
  10825. if ((Длительность == null)) {
  10826. throw new global::System.ArgumentNullException("Длительность");
  10827. }
  10828. else {
  10829. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Длительность));
  10830. }
  10831. if ((Стоимость == null)) {
  10832. throw new global::System.ArgumentNullException("Стоимость");
  10833. }
  10834. else {
  10835. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Стоимость));
  10836. }
  10837. if ((Действующая_скидка == null)) {
  10838. throw new global::System.ArgumentNullException("Действующая_скидка");
  10839. }
  10840. else {
  10841. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Действующая_скидка));
  10842. }
  10843. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10844. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10845. != global::System.Data.ConnectionState.Open)) {
  10846. this.Adapter.InsertCommand.Connection.Open();
  10847. }
  10848. try {
  10849. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10850. return returnValue;
  10851. }
  10852. finally {
  10853. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10854. this.Adapter.InsertCommand.Connection.Close();
  10855. }
  10856. }
  10857. }
  10858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10860. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10861. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10862. public virtual int Update(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка) {
  10863. if ((Наименование_услуги == null)) {
  10864. throw new global::System.ArgumentNullException("Наименование_услуги");
  10865. }
  10866. else {
  10867. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Наименование_услуги));
  10868. }
  10869. if ((Главное_изображение == null)) {
  10870. throw new global::System.ArgumentNullException("Главное_изображение");
  10871. }
  10872. else {
  10873. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Главное_изображение));
  10874. }
  10875. if ((Длительность == null)) {
  10876. throw new global::System.ArgumentNullException("Длительность");
  10877. }
  10878. else {
  10879. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Длительность));
  10880. }
  10881. if ((Стоимость == null)) {
  10882. throw new global::System.ArgumentNullException("Стоимость");
  10883. }
  10884. else {
  10885. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Стоимость));
  10886. }
  10887. if ((Действующая_скидка == null)) {
  10888. throw new global::System.ArgumentNullException("Действующая_скидка");
  10889. }
  10890. else {
  10891. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Действующая_скидка));
  10892. }
  10893. if ((Original_Наименование_услуги == null)) {
  10894. throw new global::System.ArgumentNullException("Original_Наименование_услуги");
  10895. }
  10896. else {
  10897. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Наименование_услуги));
  10898. }
  10899. if ((Original_Главное_изображение == null)) {
  10900. throw new global::System.ArgumentNullException("Original_Главное_изображение");
  10901. }
  10902. else {
  10903. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Главное_изображение));
  10904. }
  10905. if ((Original_Длительность == null)) {
  10906. throw new global::System.ArgumentNullException("Original_Длительность");
  10907. }
  10908. else {
  10909. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Длительность));
  10910. }
  10911. if ((Original_Стоимость == null)) {
  10912. throw new global::System.ArgumentNullException("Original_Стоимость");
  10913. }
  10914. else {
  10915. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Стоимость));
  10916. }
  10917. if ((Original_Действующая_скидка == null)) {
  10918. throw new global::System.ArgumentNullException("Original_Действующая_скидка");
  10919. }
  10920. else {
  10921. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Действующая_скидка));
  10922. }
  10923. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10924. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10925. != global::System.Data.ConnectionState.Open)) {
  10926. this.Adapter.UpdateCommand.Connection.Open();
  10927. }
  10928. try {
  10929. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10930. return returnValue;
  10931. }
  10932. finally {
  10933. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10934. this.Adapter.UpdateCommand.Connection.Close();
  10935. }
  10936. }
  10937. }
  10938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10940. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10941. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10942. public virtual int Update(string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка) {
  10943. return this.Update(Original_Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка, Original_Наименование_услуги, Original_Главное_изображение, Original_Длительность, Original_Стоимость, Original_Действующая_скидка);
  10944. }
  10945. }
  10946. /// <summary>
  10947. ///Represents the connection and commands used to retrieve and save data.
  10948. ///</summary>
  10949. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10950. [global::System.ComponentModel.ToolboxItem(true)]
  10951. [global::System.ComponentModel.DataObjectAttribute(true)]
  10952. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10953. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10954. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10955. public partial class ServicePhotoTableAdapter : global::System.ComponentModel.Component {
  10956. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10957. private global::System.Data.SqlClient.SqlConnection _connection;
  10958. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10959. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10960. private bool _clearBeforeFill;
  10961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10963. public ServicePhotoTableAdapter() {
  10964. this.ClearBeforeFill = true;
  10965. }
  10966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10968. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10969. get {
  10970. if ((this._adapter == null)) {
  10971. this.InitAdapter();
  10972. }
  10973. return this._adapter;
  10974. }
  10975. }
  10976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10978. internal global::System.Data.SqlClient.SqlConnection Connection {
  10979. get {
  10980. if ((this._connection == null)) {
  10981. this.InitConnection();
  10982. }
  10983. return this._connection;
  10984. }
  10985. set {
  10986. this._connection = value;
  10987. if ((this.Adapter.InsertCommand != null)) {
  10988. this.Adapter.InsertCommand.Connection = value;
  10989. }
  10990. if ((this.Adapter.DeleteCommand != null)) {
  10991. this.Adapter.DeleteCommand.Connection = value;
  10992. }
  10993. if ((this.Adapter.UpdateCommand != null)) {
  10994. this.Adapter.UpdateCommand.Connection = value;
  10995. }
  10996. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10997. if ((this.CommandCollection[i] != null)) {
  10998. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10999. }
  11000. }
  11001. }
  11002. }
  11003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11005. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11006. get {
  11007. return this._transaction;
  11008. }
  11009. set {
  11010. this._transaction = value;
  11011. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11012. this.CommandCollection[i].Transaction = this._transaction;
  11013. }
  11014. if (((this.Adapter != null)
  11015. && (this.Adapter.DeleteCommand != null))) {
  11016. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11017. }
  11018. if (((this.Adapter != null)
  11019. && (this.Adapter.InsertCommand != null))) {
  11020. this.Adapter.InsertCommand.Transaction = this._transaction;
  11021. }
  11022. if (((this.Adapter != null)
  11023. && (this.Adapter.UpdateCommand != null))) {
  11024. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11025. }
  11026. }
  11027. }
  11028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11030. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11031. get {
  11032. if ((this._commandCollection == null)) {
  11033. this.InitCommandCollection();
  11034. }
  11035. return this._commandCollection;
  11036. }
  11037. }
  11038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11040. public bool ClearBeforeFill {
  11041. get {
  11042. return this._clearBeforeFill;
  11043. }
  11044. set {
  11045. this._clearBeforeFill = value;
  11046. }
  11047. }
  11048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11050. private void InitAdapter() {
  11051. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11052. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11053. tableMapping.SourceTable = "Table";
  11054. tableMapping.DataSetTable = "ServicePhoto";
  11055. tableMapping.ColumnMappings.Add("ID", "ID");
  11056. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  11057. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  11058. this._adapter.TableMappings.Add(tableMapping);
  11059. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11060. this._adapter.DeleteCommand.Connection = this.Connection;
  11061. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ServicePhoto] WHERE (([ID] = @Original_ID) AND ([ServiceID] = " +
  11062. "@Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath))";
  11063. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11064. 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, "", "", ""));
  11065. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11066. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11067. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11068. this._adapter.InsertCommand.Connection = this.Connection;
  11069. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ServicePhoto] ([ServiceID], [PhotoPath]) VALUES (@ServiceID, @" +
  11070. "PhotoPath);\r\nSELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = SCOPE" +
  11071. "_IDENTITY())";
  11072. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11073. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11074. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11075. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11076. this._adapter.UpdateCommand.Connection = this.Connection;
  11077. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ServicePhoto] SET [ServiceID] = @ServiceID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath));
  11078. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = @ID)";
  11079. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11080. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11081. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11082. 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, "", "", ""));
  11083. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11084. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11085. 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, "", "", ""));
  11086. }
  11087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11089. private void InitConnection() {
  11090. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11091. this._connection.ConnectionString = global::bobrov2demo.Properties.Settings.Default.bobrovDemoEgzamenConnectionString;
  11092. }
  11093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11095. private void InitCommandCollection() {
  11096. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11097. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11098. this._commandCollection[0].Connection = this.Connection;
  11099. this._commandCollection[0].CommandText = "SELECT ID, ServiceID, PhotoPath FROM dbo.ServicePhoto";
  11100. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11101. }
  11102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11104. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11105. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11106. public virtual int Fill(bobrovDemoEgzamenDataSet.ServicePhotoDataTable dataTable) {
  11107. this.Adapter.SelectCommand = this.CommandCollection[0];
  11108. if ((this.ClearBeforeFill == true)) {
  11109. dataTable.Clear();
  11110. }
  11111. int returnValue = this.Adapter.Fill(dataTable);
  11112. return returnValue;
  11113. }
  11114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11116. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11117. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11118. public virtual bobrovDemoEgzamenDataSet.ServicePhotoDataTable GetData() {
  11119. this.Adapter.SelectCommand = this.CommandCollection[0];
  11120. bobrovDemoEgzamenDataSet.ServicePhotoDataTable dataTable = new bobrovDemoEgzamenDataSet.ServicePhotoDataTable();
  11121. this.Adapter.Fill(dataTable);
  11122. return dataTable;
  11123. }
  11124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11126. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11127. public virtual int Update(bobrovDemoEgzamenDataSet.ServicePhotoDataTable dataTable) {
  11128. return this.Adapter.Update(dataTable);
  11129. }
  11130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11132. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11133. public virtual int Update(bobrovDemoEgzamenDataSet dataSet) {
  11134. return this.Adapter.Update(dataSet, "ServicePhoto");
  11135. }
  11136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11138. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11139. public virtual int Update(global::System.Data.DataRow dataRow) {
  11140. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11141. dataRow});
  11142. }
  11143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11145. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11146. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11147. return this.Adapter.Update(dataRows);
  11148. }
  11149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11151. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11152. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11153. public virtual int Delete(int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  11154. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  11155. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ServiceID));
  11156. if ((Original_PhotoPath == null)) {
  11157. throw new global::System.ArgumentNullException("Original_PhotoPath");
  11158. }
  11159. else {
  11160. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  11161. }
  11162. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11163. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11164. != global::System.Data.ConnectionState.Open)) {
  11165. this.Adapter.DeleteCommand.Connection.Open();
  11166. }
  11167. try {
  11168. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11169. return returnValue;
  11170. }
  11171. finally {
  11172. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11173. this.Adapter.DeleteCommand.Connection.Close();
  11174. }
  11175. }
  11176. }
  11177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11179. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11180. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11181. public virtual int Insert(int ServiceID, string PhotoPath) {
  11182. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ServiceID));
  11183. if ((PhotoPath == null)) {
  11184. throw new global::System.ArgumentNullException("PhotoPath");
  11185. }
  11186. else {
  11187. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  11188. }
  11189. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11190. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11191. != global::System.Data.ConnectionState.Open)) {
  11192. this.Adapter.InsertCommand.Connection.Open();
  11193. }
  11194. try {
  11195. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11196. return returnValue;
  11197. }
  11198. finally {
  11199. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11200. this.Adapter.InsertCommand.Connection.Close();
  11201. }
  11202. }
  11203. }
  11204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11206. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11207. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11208. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath, int ID) {
  11209. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ServiceID));
  11210. if ((PhotoPath == null)) {
  11211. throw new global::System.ArgumentNullException("PhotoPath");
  11212. }
  11213. else {
  11214. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  11215. }
  11216. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  11217. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ServiceID));
  11218. if ((Original_PhotoPath == null)) {
  11219. throw new global::System.ArgumentNullException("Original_PhotoPath");
  11220. }
  11221. else {
  11222. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  11223. }
  11224. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  11225. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11226. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11227. != global::System.Data.ConnectionState.Open)) {
  11228. this.Adapter.UpdateCommand.Connection.Open();
  11229. }
  11230. try {
  11231. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11232. return returnValue;
  11233. }
  11234. finally {
  11235. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11236. this.Adapter.UpdateCommand.Connection.Close();
  11237. }
  11238. }
  11239. }
  11240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11242. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11243. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11244. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  11245. return this.Update(ServiceID, PhotoPath, Original_ID, Original_ServiceID, Original_PhotoPath, Original_ID);
  11246. }
  11247. }
  11248. /// <summary>
  11249. ///Represents the connection and commands used to retrieve and save data.
  11250. ///</summary>
  11251. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11252. [global::System.ComponentModel.ToolboxItem(true)]
  11253. [global::System.ComponentModel.DataObjectAttribute(true)]
  11254. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11255. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11256. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11257. public partial class TagTableAdapter : global::System.ComponentModel.Component {
  11258. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11259. private global::System.Data.SqlClient.SqlConnection _connection;
  11260. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11261. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11262. private bool _clearBeforeFill;
  11263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11265. public TagTableAdapter() {
  11266. this.ClearBeforeFill = true;
  11267. }
  11268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11270. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11271. get {
  11272. if ((this._adapter == null)) {
  11273. this.InitAdapter();
  11274. }
  11275. return this._adapter;
  11276. }
  11277. }
  11278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11280. internal global::System.Data.SqlClient.SqlConnection Connection {
  11281. get {
  11282. if ((this._connection == null)) {
  11283. this.InitConnection();
  11284. }
  11285. return this._connection;
  11286. }
  11287. set {
  11288. this._connection = value;
  11289. if ((this.Adapter.InsertCommand != null)) {
  11290. this.Adapter.InsertCommand.Connection = value;
  11291. }
  11292. if ((this.Adapter.DeleteCommand != null)) {
  11293. this.Adapter.DeleteCommand.Connection = value;
  11294. }
  11295. if ((this.Adapter.UpdateCommand != null)) {
  11296. this.Adapter.UpdateCommand.Connection = value;
  11297. }
  11298. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11299. if ((this.CommandCollection[i] != null)) {
  11300. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11301. }
  11302. }
  11303. }
  11304. }
  11305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11307. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11308. get {
  11309. return this._transaction;
  11310. }
  11311. set {
  11312. this._transaction = value;
  11313. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11314. this.CommandCollection[i].Transaction = this._transaction;
  11315. }
  11316. if (((this.Adapter != null)
  11317. && (this.Adapter.DeleteCommand != null))) {
  11318. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11319. }
  11320. if (((this.Adapter != null)
  11321. && (this.Adapter.InsertCommand != null))) {
  11322. this.Adapter.InsertCommand.Transaction = this._transaction;
  11323. }
  11324. if (((this.Adapter != null)
  11325. && (this.Adapter.UpdateCommand != null))) {
  11326. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11327. }
  11328. }
  11329. }
  11330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11332. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11333. get {
  11334. if ((this._commandCollection == null)) {
  11335. this.InitCommandCollection();
  11336. }
  11337. return this._commandCollection;
  11338. }
  11339. }
  11340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11342. public bool ClearBeforeFill {
  11343. get {
  11344. return this._clearBeforeFill;
  11345. }
  11346. set {
  11347. this._clearBeforeFill = value;
  11348. }
  11349. }
  11350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11352. private void InitAdapter() {
  11353. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11354. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11355. tableMapping.SourceTable = "Table";
  11356. tableMapping.DataSetTable = "Tag";
  11357. tableMapping.ColumnMappings.Add("ID", "ID");
  11358. tableMapping.ColumnMappings.Add("Title", "Title");
  11359. tableMapping.ColumnMappings.Add("Color", "Color");
  11360. this._adapter.TableMappings.Add(tableMapping);
  11361. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11362. this._adapter.DeleteCommand.Connection = this.Connection;
  11363. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tag] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Tit" +
  11364. "le) AND ([Color] = @Original_Color))";
  11365. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11366. 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, "", "", ""));
  11367. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11368. 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, "", "", ""));
  11369. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11370. this._adapter.InsertCommand.Connection = this.Connection;
  11371. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tag] ([Title], [Color]) VALUES (@Title, @Color);\r\nSELECT ID, T" +
  11372. "itle, Color FROM Tag WHERE (ID = SCOPE_IDENTITY())";
  11373. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11374. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11375. 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, "", "", ""));
  11376. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11377. this._adapter.UpdateCommand.Connection = this.Connection;
  11378. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Tag] SET [Title] = @Title, [Color] = @Color WHERE (([ID] = @Origina" +
  11379. "l_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color));\r\nSELECT " +
  11380. "ID, Title, Color FROM Tag WHERE (ID = @ID)";
  11381. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11382. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11383. 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, "", "", ""));
  11384. 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, "", "", ""));
  11385. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11386. 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, "", "", ""));
  11387. 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, "", "", ""));
  11388. }
  11389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11391. private void InitConnection() {
  11392. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11393. this._connection.ConnectionString = global::bobrov2demo.Properties.Settings.Default.bobrovDemoEgzamenConnectionString;
  11394. }
  11395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11397. private void InitCommandCollection() {
  11398. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11399. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11400. this._commandCollection[0].Connection = this.Connection;
  11401. this._commandCollection[0].CommandText = "SELECT ID, Title, Color FROM dbo.Tag";
  11402. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11403. }
  11404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11406. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11407. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11408. public virtual int Fill(bobrovDemoEgzamenDataSet.TagDataTable dataTable) {
  11409. this.Adapter.SelectCommand = this.CommandCollection[0];
  11410. if ((this.ClearBeforeFill == true)) {
  11411. dataTable.Clear();
  11412. }
  11413. int returnValue = this.Adapter.Fill(dataTable);
  11414. return returnValue;
  11415. }
  11416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11418. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11419. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11420. public virtual bobrovDemoEgzamenDataSet.TagDataTable GetData() {
  11421. this.Adapter.SelectCommand = this.CommandCollection[0];
  11422. bobrovDemoEgzamenDataSet.TagDataTable dataTable = new bobrovDemoEgzamenDataSet.TagDataTable();
  11423. this.Adapter.Fill(dataTable);
  11424. return dataTable;
  11425. }
  11426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11428. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11429. public virtual int Update(bobrovDemoEgzamenDataSet.TagDataTable dataTable) {
  11430. return this.Adapter.Update(dataTable);
  11431. }
  11432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11434. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11435. public virtual int Update(bobrovDemoEgzamenDataSet dataSet) {
  11436. return this.Adapter.Update(dataSet, "Tag");
  11437. }
  11438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11440. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11441. public virtual int Update(global::System.Data.DataRow dataRow) {
  11442. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11443. dataRow});
  11444. }
  11445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11447. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11448. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11449. return this.Adapter.Update(dataRows);
  11450. }
  11451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11453. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11454. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11455. public virtual int Delete(int Original_ID, string Original_Title, string Original_Color) {
  11456. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  11457. if ((Original_Title == null)) {
  11458. throw new global::System.ArgumentNullException("Original_Title");
  11459. }
  11460. else {
  11461. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  11462. }
  11463. if ((Original_Color == null)) {
  11464. throw new global::System.ArgumentNullException("Original_Color");
  11465. }
  11466. else {
  11467. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Color));
  11468. }
  11469. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11470. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11471. != global::System.Data.ConnectionState.Open)) {
  11472. this.Adapter.DeleteCommand.Connection.Open();
  11473. }
  11474. try {
  11475. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11476. return returnValue;
  11477. }
  11478. finally {
  11479. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11480. this.Adapter.DeleteCommand.Connection.Close();
  11481. }
  11482. }
  11483. }
  11484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11486. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11487. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11488. public virtual int Insert(string Title, string Color) {
  11489. if ((Title == null)) {
  11490. throw new global::System.ArgumentNullException("Title");
  11491. }
  11492. else {
  11493. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  11494. }
  11495. if ((Color == null)) {
  11496. throw new global::System.ArgumentNullException("Color");
  11497. }
  11498. else {
  11499. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Color));
  11500. }
  11501. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11502. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11503. != global::System.Data.ConnectionState.Open)) {
  11504. this.Adapter.InsertCommand.Connection.Open();
  11505. }
  11506. try {
  11507. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11508. return returnValue;
  11509. }
  11510. finally {
  11511. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11512. this.Adapter.InsertCommand.Connection.Close();
  11513. }
  11514. }
  11515. }
  11516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11518. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11519. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11520. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color, int ID) {
  11521. if ((Title == null)) {
  11522. throw new global::System.ArgumentNullException("Title");
  11523. }
  11524. else {
  11525. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  11526. }
  11527. if ((Color == null)) {
  11528. throw new global::System.ArgumentNullException("Color");
  11529. }
  11530. else {
  11531. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Color));
  11532. }
  11533. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  11534. if ((Original_Title == null)) {
  11535. throw new global::System.ArgumentNullException("Original_Title");
  11536. }
  11537. else {
  11538. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  11539. }
  11540. if ((Original_Color == null)) {
  11541. throw new global::System.ArgumentNullException("Original_Color");
  11542. }
  11543. else {
  11544. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Color));
  11545. }
  11546. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  11547. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11548. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11549. != global::System.Data.ConnectionState.Open)) {
  11550. this.Adapter.UpdateCommand.Connection.Open();
  11551. }
  11552. try {
  11553. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11554. return returnValue;
  11555. }
  11556. finally {
  11557. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11558. this.Adapter.UpdateCommand.Connection.Close();
  11559. }
  11560. }
  11561. }
  11562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11564. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11565. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11566. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color) {
  11567. return this.Update(Title, Color, Original_ID, Original_Title, Original_Color, Original_ID);
  11568. }
  11569. }
  11570. /// <summary>
  11571. ///Represents the connection and commands used to retrieve and save data.
  11572. ///</summary>
  11573. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11574. [global::System.ComponentModel.ToolboxItem(true)]
  11575. [global::System.ComponentModel.DataObjectAttribute(true)]
  11576. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11577. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11578. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11579. public partial class TagOfClientTableAdapter : global::System.ComponentModel.Component {
  11580. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11581. private global::System.Data.SqlClient.SqlConnection _connection;
  11582. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11583. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11584. private bool _clearBeforeFill;
  11585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11587. public TagOfClientTableAdapter() {
  11588. this.ClearBeforeFill = true;
  11589. }
  11590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11592. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11593. get {
  11594. if ((this._adapter == null)) {
  11595. this.InitAdapter();
  11596. }
  11597. return this._adapter;
  11598. }
  11599. }
  11600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11602. internal global::System.Data.SqlClient.SqlConnection Connection {
  11603. get {
  11604. if ((this._connection == null)) {
  11605. this.InitConnection();
  11606. }
  11607. return this._connection;
  11608. }
  11609. set {
  11610. this._connection = value;
  11611. if ((this.Adapter.InsertCommand != null)) {
  11612. this.Adapter.InsertCommand.Connection = value;
  11613. }
  11614. if ((this.Adapter.DeleteCommand != null)) {
  11615. this.Adapter.DeleteCommand.Connection = value;
  11616. }
  11617. if ((this.Adapter.UpdateCommand != null)) {
  11618. this.Adapter.UpdateCommand.Connection = value;
  11619. }
  11620. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11621. if ((this.CommandCollection[i] != null)) {
  11622. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11623. }
  11624. }
  11625. }
  11626. }
  11627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11629. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11630. get {
  11631. return this._transaction;
  11632. }
  11633. set {
  11634. this._transaction = value;
  11635. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11636. this.CommandCollection[i].Transaction = this._transaction;
  11637. }
  11638. if (((this.Adapter != null)
  11639. && (this.Adapter.DeleteCommand != null))) {
  11640. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11641. }
  11642. if (((this.Adapter != null)
  11643. && (this.Adapter.InsertCommand != null))) {
  11644. this.Adapter.InsertCommand.Transaction = this._transaction;
  11645. }
  11646. if (((this.Adapter != null)
  11647. && (this.Adapter.UpdateCommand != null))) {
  11648. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11649. }
  11650. }
  11651. }
  11652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11654. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11655. get {
  11656. if ((this._commandCollection == null)) {
  11657. this.InitCommandCollection();
  11658. }
  11659. return this._commandCollection;
  11660. }
  11661. }
  11662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11664. public bool ClearBeforeFill {
  11665. get {
  11666. return this._clearBeforeFill;
  11667. }
  11668. set {
  11669. this._clearBeforeFill = value;
  11670. }
  11671. }
  11672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11674. private void InitAdapter() {
  11675. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11676. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11677. tableMapping.SourceTable = "Table";
  11678. tableMapping.DataSetTable = "TagOfClient";
  11679. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  11680. tableMapping.ColumnMappings.Add("TagID", "TagID");
  11681. this._adapter.TableMappings.Add(tableMapping);
  11682. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11683. this._adapter.DeleteCommand.Connection = this.Connection;
  11684. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TagOfClient] WHERE (([ClientID] = @Original_ClientID) AND ([Ta" +
  11685. "gID] = @Original_TagID))";
  11686. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11687. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11688. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11689. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11690. this._adapter.InsertCommand.Connection = this.Connection;
  11691. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TagOfClient] ([ClientID], [TagID]) VALUES (@ClientID, @TagID);" +
  11692. "\r\nSELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagI" +
  11693. "D = @TagID)";
  11694. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11695. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11696. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11697. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11698. this._adapter.UpdateCommand.Connection = this.Connection;
  11699. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TagOfClient] SET [ClientID] = @ClientID, [TagID] = @TagID WHERE (([" +
  11700. "ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID));\r\nSELECT Client" +
  11701. "ID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)";
  11702. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11703. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11704. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11705. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11706. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11707. }
  11708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11710. private void InitConnection() {
  11711. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11712. this._connection.ConnectionString = global::bobrov2demo.Properties.Settings.Default.bobrovDemoEgzamenConnectionString;
  11713. }
  11714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11716. private void InitCommandCollection() {
  11717. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11718. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11719. this._commandCollection[0].Connection = this.Connection;
  11720. this._commandCollection[0].CommandText = "SELECT ClientID, TagID FROM dbo.TagOfClient";
  11721. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11722. }
  11723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11725. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11726. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11727. public virtual int Fill(bobrovDemoEgzamenDataSet.TagOfClientDataTable dataTable) {
  11728. this.Adapter.SelectCommand = this.CommandCollection[0];
  11729. if ((this.ClearBeforeFill == true)) {
  11730. dataTable.Clear();
  11731. }
  11732. int returnValue = this.Adapter.Fill(dataTable);
  11733. return returnValue;
  11734. }
  11735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11737. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11738. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11739. public virtual bobrovDemoEgzamenDataSet.TagOfClientDataTable GetData() {
  11740. this.Adapter.SelectCommand = this.CommandCollection[0];
  11741. bobrovDemoEgzamenDataSet.TagOfClientDataTable dataTable = new bobrovDemoEgzamenDataSet.TagOfClientDataTable();
  11742. this.Adapter.Fill(dataTable);
  11743. return dataTable;
  11744. }
  11745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11747. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11748. public virtual int Update(bobrovDemoEgzamenDataSet.TagOfClientDataTable dataTable) {
  11749. return this.Adapter.Update(dataTable);
  11750. }
  11751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11753. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11754. public virtual int Update(bobrovDemoEgzamenDataSet dataSet) {
  11755. return this.Adapter.Update(dataSet, "TagOfClient");
  11756. }
  11757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11759. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11760. public virtual int Update(global::System.Data.DataRow dataRow) {
  11761. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11762. dataRow});
  11763. }
  11764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11766. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11767. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11768. return this.Adapter.Update(dataRows);
  11769. }
  11770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11772. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11773. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11774. public virtual int Delete(int Original_ClientID, int Original_TagID) {
  11775. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ClientID));
  11776. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_TagID));
  11777. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11778. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11779. != global::System.Data.ConnectionState.Open)) {
  11780. this.Adapter.DeleteCommand.Connection.Open();
  11781. }
  11782. try {
  11783. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11784. return returnValue;
  11785. }
  11786. finally {
  11787. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11788. this.Adapter.DeleteCommand.Connection.Close();
  11789. }
  11790. }
  11791. }
  11792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11794. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11795. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11796. public virtual int Insert(int ClientID, int TagID) {
  11797. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  11798. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(TagID));
  11799. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11800. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11801. != global::System.Data.ConnectionState.Open)) {
  11802. this.Adapter.InsertCommand.Connection.Open();
  11803. }
  11804. try {
  11805. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11806. return returnValue;
  11807. }
  11808. finally {
  11809. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11810. this.Adapter.InsertCommand.Connection.Close();
  11811. }
  11812. }
  11813. }
  11814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11816. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11817. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11818. public virtual int Update(int ClientID, int TagID, int Original_ClientID, int Original_TagID) {
  11819. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  11820. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(TagID));
  11821. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ClientID));
  11822. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_TagID));
  11823. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11824. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11825. != global::System.Data.ConnectionState.Open)) {
  11826. this.Adapter.UpdateCommand.Connection.Open();
  11827. }
  11828. try {
  11829. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11830. return returnValue;
  11831. }
  11832. finally {
  11833. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11834. this.Adapter.UpdateCommand.Connection.Close();
  11835. }
  11836. }
  11837. }
  11838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11840. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11841. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11842. public virtual int Update(int Original_ClientID, int Original_TagID) {
  11843. return this.Update(Original_ClientID, Original_TagID, Original_ClientID, Original_TagID);
  11844. }
  11845. }
  11846. /// <summary>
  11847. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  11848. ///</summary>
  11849. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11850. [global::System.ComponentModel.ToolboxItem(true)]
  11851. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  11852. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11853. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  11854. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  11855. private UpdateOrderOption _updateOrder;
  11856. private AttachedProductTableAdapter _attachedProductTableAdapter;
  11857. private ClientTableAdapter _clientTableAdapter;
  11858. private client_b_importTableAdapter _client_b_importTableAdapter;
  11859. private ClientServiceTableAdapter _clientServiceTableAdapter;
  11860. private DocumentByServiceTableAdapter _documentByServiceTableAdapter;
  11861. private GenderTableAdapter _genderTableAdapter;
  11862. private ManufacturerTableAdapter _manufacturerTableAdapter;
  11863. private ProductTableAdapter _productTableAdapter;
  11864. private ProductPhotoTableAdapter _productPhotoTableAdapter;
  11865. private ProductSaleTableAdapter _productSaleTableAdapter;
  11866. private ServiceTableAdapter _serviceTableAdapter;
  11867. private service_b_importTableAdapter _service_b_importTableAdapter;
  11868. private ServicePhotoTableAdapter _servicePhotoTableAdapter;
  11869. private TagTableAdapter _tagTableAdapter;
  11870. private TagOfClientTableAdapter _tagOfClientTableAdapter;
  11871. private bool _backupDataSetBeforeUpdate;
  11872. private global::System.Data.IDbConnection _connection;
  11873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11875. public UpdateOrderOption UpdateOrder {
  11876. get {
  11877. return this._updateOrder;
  11878. }
  11879. set {
  11880. this._updateOrder = value;
  11881. }
  11882. }
  11883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11885. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11886. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11887. "a", "System.Drawing.Design.UITypeEditor")]
  11888. public AttachedProductTableAdapter AttachedProductTableAdapter {
  11889. get {
  11890. return this._attachedProductTableAdapter;
  11891. }
  11892. set {
  11893. this._attachedProductTableAdapter = value;
  11894. }
  11895. }
  11896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11898. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11899. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11900. "a", "System.Drawing.Design.UITypeEditor")]
  11901. public ClientTableAdapter ClientTableAdapter {
  11902. get {
  11903. return this._clientTableAdapter;
  11904. }
  11905. set {
  11906. this._clientTableAdapter = value;
  11907. }
  11908. }
  11909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11911. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11912. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11913. "a", "System.Drawing.Design.UITypeEditor")]
  11914. public client_b_importTableAdapter client_b_importTableAdapter {
  11915. get {
  11916. return this._client_b_importTableAdapter;
  11917. }
  11918. set {
  11919. this._client_b_importTableAdapter = value;
  11920. }
  11921. }
  11922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11924. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11925. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11926. "a", "System.Drawing.Design.UITypeEditor")]
  11927. public ClientServiceTableAdapter ClientServiceTableAdapter {
  11928. get {
  11929. return this._clientServiceTableAdapter;
  11930. }
  11931. set {
  11932. this._clientServiceTableAdapter = value;
  11933. }
  11934. }
  11935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11937. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11938. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11939. "a", "System.Drawing.Design.UITypeEditor")]
  11940. public DocumentByServiceTableAdapter DocumentByServiceTableAdapter {
  11941. get {
  11942. return this._documentByServiceTableAdapter;
  11943. }
  11944. set {
  11945. this._documentByServiceTableAdapter = value;
  11946. }
  11947. }
  11948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11950. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11951. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11952. "a", "System.Drawing.Design.UITypeEditor")]
  11953. public GenderTableAdapter GenderTableAdapter {
  11954. get {
  11955. return this._genderTableAdapter;
  11956. }
  11957. set {
  11958. this._genderTableAdapter = value;
  11959. }
  11960. }
  11961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11963. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11964. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11965. "a", "System.Drawing.Design.UITypeEditor")]
  11966. public ManufacturerTableAdapter ManufacturerTableAdapter {
  11967. get {
  11968. return this._manufacturerTableAdapter;
  11969. }
  11970. set {
  11971. this._manufacturerTableAdapter = value;
  11972. }
  11973. }
  11974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11976. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11977. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11978. "a", "System.Drawing.Design.UITypeEditor")]
  11979. public ProductTableAdapter ProductTableAdapter {
  11980. get {
  11981. return this._productTableAdapter;
  11982. }
  11983. set {
  11984. this._productTableAdapter = value;
  11985. }
  11986. }
  11987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11989. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11990. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11991. "a", "System.Drawing.Design.UITypeEditor")]
  11992. public ProductPhotoTableAdapter ProductPhotoTableAdapter {
  11993. get {
  11994. return this._productPhotoTableAdapter;
  11995. }
  11996. set {
  11997. this._productPhotoTableAdapter = value;
  11998. }
  11999. }
  12000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12002. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12003. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12004. "a", "System.Drawing.Design.UITypeEditor")]
  12005. public ProductSaleTableAdapter ProductSaleTableAdapter {
  12006. get {
  12007. return this._productSaleTableAdapter;
  12008. }
  12009. set {
  12010. this._productSaleTableAdapter = value;
  12011. }
  12012. }
  12013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12015. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12016. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12017. "a", "System.Drawing.Design.UITypeEditor")]
  12018. public ServiceTableAdapter ServiceTableAdapter {
  12019. get {
  12020. return this._serviceTableAdapter;
  12021. }
  12022. set {
  12023. this._serviceTableAdapter = value;
  12024. }
  12025. }
  12026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12028. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12029. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12030. "a", "System.Drawing.Design.UITypeEditor")]
  12031. public service_b_importTableAdapter service_b_importTableAdapter {
  12032. get {
  12033. return this._service_b_importTableAdapter;
  12034. }
  12035. set {
  12036. this._service_b_importTableAdapter = value;
  12037. }
  12038. }
  12039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12041. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12042. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12043. "a", "System.Drawing.Design.UITypeEditor")]
  12044. public ServicePhotoTableAdapter ServicePhotoTableAdapter {
  12045. get {
  12046. return this._servicePhotoTableAdapter;
  12047. }
  12048. set {
  12049. this._servicePhotoTableAdapter = value;
  12050. }
  12051. }
  12052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12054. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12055. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12056. "a", "System.Drawing.Design.UITypeEditor")]
  12057. public TagTableAdapter TagTableAdapter {
  12058. get {
  12059. return this._tagTableAdapter;
  12060. }
  12061. set {
  12062. this._tagTableAdapter = value;
  12063. }
  12064. }
  12065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12067. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12068. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12069. "a", "System.Drawing.Design.UITypeEditor")]
  12070. public TagOfClientTableAdapter TagOfClientTableAdapter {
  12071. get {
  12072. return this._tagOfClientTableAdapter;
  12073. }
  12074. set {
  12075. this._tagOfClientTableAdapter = value;
  12076. }
  12077. }
  12078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12080. public bool BackupDataSetBeforeUpdate {
  12081. get {
  12082. return this._backupDataSetBeforeUpdate;
  12083. }
  12084. set {
  12085. this._backupDataSetBeforeUpdate = value;
  12086. }
  12087. }
  12088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12090. [global::System.ComponentModel.Browsable(false)]
  12091. public global::System.Data.IDbConnection Connection {
  12092. get {
  12093. if ((this._connection != null)) {
  12094. return this._connection;
  12095. }
  12096. if (((this._attachedProductTableAdapter != null)
  12097. && (this._attachedProductTableAdapter.Connection != null))) {
  12098. return this._attachedProductTableAdapter.Connection;
  12099. }
  12100. if (((this._clientTableAdapter != null)
  12101. && (this._clientTableAdapter.Connection != null))) {
  12102. return this._clientTableAdapter.Connection;
  12103. }
  12104. if (((this._client_b_importTableAdapter != null)
  12105. && (this._client_b_importTableAdapter.Connection != null))) {
  12106. return this._client_b_importTableAdapter.Connection;
  12107. }
  12108. if (((this._clientServiceTableAdapter != null)
  12109. && (this._clientServiceTableAdapter.Connection != null))) {
  12110. return this._clientServiceTableAdapter.Connection;
  12111. }
  12112. if (((this._documentByServiceTableAdapter != null)
  12113. && (this._documentByServiceTableAdapter.Connection != null))) {
  12114. return this._documentByServiceTableAdapter.Connection;
  12115. }
  12116. if (((this._genderTableAdapter != null)
  12117. && (this._genderTableAdapter.Connection != null))) {
  12118. return this._genderTableAdapter.Connection;
  12119. }
  12120. if (((this._manufacturerTableAdapter != null)
  12121. && (this._manufacturerTableAdapter.Connection != null))) {
  12122. return this._manufacturerTableAdapter.Connection;
  12123. }
  12124. if (((this._productTableAdapter != null)
  12125. && (this._productTableAdapter.Connection != null))) {
  12126. return this._productTableAdapter.Connection;
  12127. }
  12128. if (((this._productPhotoTableAdapter != null)
  12129. && (this._productPhotoTableAdapter.Connection != null))) {
  12130. return this._productPhotoTableAdapter.Connection;
  12131. }
  12132. if (((this._productSaleTableAdapter != null)
  12133. && (this._productSaleTableAdapter.Connection != null))) {
  12134. return this._productSaleTableAdapter.Connection;
  12135. }
  12136. if (((this._serviceTableAdapter != null)
  12137. && (this._serviceTableAdapter.Connection != null))) {
  12138. return this._serviceTableAdapter.Connection;
  12139. }
  12140. if (((this._service_b_importTableAdapter != null)
  12141. && (this._service_b_importTableAdapter.Connection != null))) {
  12142. return this._service_b_importTableAdapter.Connection;
  12143. }
  12144. if (((this._servicePhotoTableAdapter != null)
  12145. && (this._servicePhotoTableAdapter.Connection != null))) {
  12146. return this._servicePhotoTableAdapter.Connection;
  12147. }
  12148. if (((this._tagTableAdapter != null)
  12149. && (this._tagTableAdapter.Connection != null))) {
  12150. return this._tagTableAdapter.Connection;
  12151. }
  12152. if (((this._tagOfClientTableAdapter != null)
  12153. && (this._tagOfClientTableAdapter.Connection != null))) {
  12154. return this._tagOfClientTableAdapter.Connection;
  12155. }
  12156. return null;
  12157. }
  12158. set {
  12159. this._connection = value;
  12160. }
  12161. }
  12162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12164. [global::System.ComponentModel.Browsable(false)]
  12165. public int TableAdapterInstanceCount {
  12166. get {
  12167. int count = 0;
  12168. if ((this._attachedProductTableAdapter != null)) {
  12169. count = (count + 1);
  12170. }
  12171. if ((this._clientTableAdapter != null)) {
  12172. count = (count + 1);
  12173. }
  12174. if ((this._client_b_importTableAdapter != null)) {
  12175. count = (count + 1);
  12176. }
  12177. if ((this._clientServiceTableAdapter != null)) {
  12178. count = (count + 1);
  12179. }
  12180. if ((this._documentByServiceTableAdapter != null)) {
  12181. count = (count + 1);
  12182. }
  12183. if ((this._genderTableAdapter != null)) {
  12184. count = (count + 1);
  12185. }
  12186. if ((this._manufacturerTableAdapter != null)) {
  12187. count = (count + 1);
  12188. }
  12189. if ((this._productTableAdapter != null)) {
  12190. count = (count + 1);
  12191. }
  12192. if ((this._productPhotoTableAdapter != null)) {
  12193. count = (count + 1);
  12194. }
  12195. if ((this._productSaleTableAdapter != null)) {
  12196. count = (count + 1);
  12197. }
  12198. if ((this._serviceTableAdapter != null)) {
  12199. count = (count + 1);
  12200. }
  12201. if ((this._service_b_importTableAdapter != null)) {
  12202. count = (count + 1);
  12203. }
  12204. if ((this._servicePhotoTableAdapter != null)) {
  12205. count = (count + 1);
  12206. }
  12207. if ((this._tagTableAdapter != null)) {
  12208. count = (count + 1);
  12209. }
  12210. if ((this._tagOfClientTableAdapter != null)) {
  12211. count = (count + 1);
  12212. }
  12213. return count;
  12214. }
  12215. }
  12216. /// <summary>
  12217. ///Update rows in top-down order.
  12218. ///</summary>
  12219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12221. private int UpdateUpdatedRows(bobrovDemoEgzamenDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  12222. int result = 0;
  12223. if ((this._genderTableAdapter != null)) {
  12224. global::System.Data.DataRow[] updatedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12225. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12226. if (((updatedRows != null)
  12227. && (0 < updatedRows.Length))) {
  12228. result = (result + this._genderTableAdapter.Update(updatedRows));
  12229. allChangedRows.AddRange(updatedRows);
  12230. }
  12231. }
  12232. if ((this._clientTableAdapter != null)) {
  12233. global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12234. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12235. if (((updatedRows != null)
  12236. && (0 < updatedRows.Length))) {
  12237. result = (result + this._clientTableAdapter.Update(updatedRows));
  12238. allChangedRows.AddRange(updatedRows);
  12239. }
  12240. }
  12241. if ((this._manufacturerTableAdapter != null)) {
  12242. global::System.Data.DataRow[] updatedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12243. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12244. if (((updatedRows != null)
  12245. && (0 < updatedRows.Length))) {
  12246. result = (result + this._manufacturerTableAdapter.Update(updatedRows));
  12247. allChangedRows.AddRange(updatedRows);
  12248. }
  12249. }
  12250. if ((this._serviceTableAdapter != null)) {
  12251. global::System.Data.DataRow[] updatedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12252. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12253. if (((updatedRows != null)
  12254. && (0 < updatedRows.Length))) {
  12255. result = (result + this._serviceTableAdapter.Update(updatedRows));
  12256. allChangedRows.AddRange(updatedRows);
  12257. }
  12258. }
  12259. if ((this._clientServiceTableAdapter != null)) {
  12260. global::System.Data.DataRow[] updatedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12261. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12262. if (((updatedRows != null)
  12263. && (0 < updatedRows.Length))) {
  12264. result = (result + this._clientServiceTableAdapter.Update(updatedRows));
  12265. allChangedRows.AddRange(updatedRows);
  12266. }
  12267. }
  12268. if ((this._productTableAdapter != null)) {
  12269. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12270. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12271. if (((updatedRows != null)
  12272. && (0 < updatedRows.Length))) {
  12273. result = (result + this._productTableAdapter.Update(updatedRows));
  12274. allChangedRows.AddRange(updatedRows);
  12275. }
  12276. }
  12277. if ((this._tagTableAdapter != null)) {
  12278. global::System.Data.DataRow[] updatedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12279. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12280. if (((updatedRows != null)
  12281. && (0 < updatedRows.Length))) {
  12282. result = (result + this._tagTableAdapter.Update(updatedRows));
  12283. allChangedRows.AddRange(updatedRows);
  12284. }
  12285. }
  12286. if ((this._attachedProductTableAdapter != null)) {
  12287. global::System.Data.DataRow[] updatedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12288. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12289. if (((updatedRows != null)
  12290. && (0 < updatedRows.Length))) {
  12291. result = (result + this._attachedProductTableAdapter.Update(updatedRows));
  12292. allChangedRows.AddRange(updatedRows);
  12293. }
  12294. }
  12295. if ((this._client_b_importTableAdapter != null)) {
  12296. global::System.Data.DataRow[] updatedRows = dataSet.client_b_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12297. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12298. if (((updatedRows != null)
  12299. && (0 < updatedRows.Length))) {
  12300. result = (result + this._client_b_importTableAdapter.Update(updatedRows));
  12301. allChangedRows.AddRange(updatedRows);
  12302. }
  12303. }
  12304. if ((this._documentByServiceTableAdapter != null)) {
  12305. global::System.Data.DataRow[] updatedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12306. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12307. if (((updatedRows != null)
  12308. && (0 < updatedRows.Length))) {
  12309. result = (result + this._documentByServiceTableAdapter.Update(updatedRows));
  12310. allChangedRows.AddRange(updatedRows);
  12311. }
  12312. }
  12313. if ((this._productPhotoTableAdapter != null)) {
  12314. global::System.Data.DataRow[] updatedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12315. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12316. if (((updatedRows != null)
  12317. && (0 < updatedRows.Length))) {
  12318. result = (result + this._productPhotoTableAdapter.Update(updatedRows));
  12319. allChangedRows.AddRange(updatedRows);
  12320. }
  12321. }
  12322. if ((this._productSaleTableAdapter != null)) {
  12323. global::System.Data.DataRow[] updatedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12324. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12325. if (((updatedRows != null)
  12326. && (0 < updatedRows.Length))) {
  12327. result = (result + this._productSaleTableAdapter.Update(updatedRows));
  12328. allChangedRows.AddRange(updatedRows);
  12329. }
  12330. }
  12331. if ((this._service_b_importTableAdapter != null)) {
  12332. global::System.Data.DataRow[] updatedRows = dataSet.service_b_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12333. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12334. if (((updatedRows != null)
  12335. && (0 < updatedRows.Length))) {
  12336. result = (result + this._service_b_importTableAdapter.Update(updatedRows));
  12337. allChangedRows.AddRange(updatedRows);
  12338. }
  12339. }
  12340. if ((this._servicePhotoTableAdapter != null)) {
  12341. global::System.Data.DataRow[] updatedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12342. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12343. if (((updatedRows != null)
  12344. && (0 < updatedRows.Length))) {
  12345. result = (result + this._servicePhotoTableAdapter.Update(updatedRows));
  12346. allChangedRows.AddRange(updatedRows);
  12347. }
  12348. }
  12349. if ((this._tagOfClientTableAdapter != null)) {
  12350. global::System.Data.DataRow[] updatedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12351. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12352. if (((updatedRows != null)
  12353. && (0 < updatedRows.Length))) {
  12354. result = (result + this._tagOfClientTableAdapter.Update(updatedRows));
  12355. allChangedRows.AddRange(updatedRows);
  12356. }
  12357. }
  12358. return result;
  12359. }
  12360. /// <summary>
  12361. ///Insert rows in top-down order.
  12362. ///</summary>
  12363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12365. private int UpdateInsertedRows(bobrovDemoEgzamenDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  12366. int result = 0;
  12367. if ((this._genderTableAdapter != null)) {
  12368. global::System.Data.DataRow[] addedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Added);
  12369. if (((addedRows != null)
  12370. && (0 < addedRows.Length))) {
  12371. result = (result + this._genderTableAdapter.Update(addedRows));
  12372. allAddedRows.AddRange(addedRows);
  12373. }
  12374. }
  12375. if ((this._clientTableAdapter != null)) {
  12376. global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
  12377. if (((addedRows != null)
  12378. && (0 < addedRows.Length))) {
  12379. result = (result + this._clientTableAdapter.Update(addedRows));
  12380. allAddedRows.AddRange(addedRows);
  12381. }
  12382. }
  12383. if ((this._manufacturerTableAdapter != null)) {
  12384. global::System.Data.DataRow[] addedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Added);
  12385. if (((addedRows != null)
  12386. && (0 < addedRows.Length))) {
  12387. result = (result + this._manufacturerTableAdapter.Update(addedRows));
  12388. allAddedRows.AddRange(addedRows);
  12389. }
  12390. }
  12391. if ((this._serviceTableAdapter != null)) {
  12392. global::System.Data.DataRow[] addedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Added);
  12393. if (((addedRows != null)
  12394. && (0 < addedRows.Length))) {
  12395. result = (result + this._serviceTableAdapter.Update(addedRows));
  12396. allAddedRows.AddRange(addedRows);
  12397. }
  12398. }
  12399. if ((this._clientServiceTableAdapter != null)) {
  12400. global::System.Data.DataRow[] addedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Added);
  12401. if (((addedRows != null)
  12402. && (0 < addedRows.Length))) {
  12403. result = (result + this._clientServiceTableAdapter.Update(addedRows));
  12404. allAddedRows.AddRange(addedRows);
  12405. }
  12406. }
  12407. if ((this._productTableAdapter != null)) {
  12408. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  12409. if (((addedRows != null)
  12410. && (0 < addedRows.Length))) {
  12411. result = (result + this._productTableAdapter.Update(addedRows));
  12412. allAddedRows.AddRange(addedRows);
  12413. }
  12414. }
  12415. if ((this._tagTableAdapter != null)) {
  12416. global::System.Data.DataRow[] addedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Added);
  12417. if (((addedRows != null)
  12418. && (0 < addedRows.Length))) {
  12419. result = (result + this._tagTableAdapter.Update(addedRows));
  12420. allAddedRows.AddRange(addedRows);
  12421. }
  12422. }
  12423. if ((this._attachedProductTableAdapter != null)) {
  12424. global::System.Data.DataRow[] addedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  12425. if (((addedRows != null)
  12426. && (0 < addedRows.Length))) {
  12427. result = (result + this._attachedProductTableAdapter.Update(addedRows));
  12428. allAddedRows.AddRange(addedRows);
  12429. }
  12430. }
  12431. if ((this._client_b_importTableAdapter != null)) {
  12432. global::System.Data.DataRow[] addedRows = dataSet.client_b_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  12433. if (((addedRows != null)
  12434. && (0 < addedRows.Length))) {
  12435. result = (result + this._client_b_importTableAdapter.Update(addedRows));
  12436. allAddedRows.AddRange(addedRows);
  12437. }
  12438. }
  12439. if ((this._documentByServiceTableAdapter != null)) {
  12440. global::System.Data.DataRow[] addedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Added);
  12441. if (((addedRows != null)
  12442. && (0 < addedRows.Length))) {
  12443. result = (result + this._documentByServiceTableAdapter.Update(addedRows));
  12444. allAddedRows.AddRange(addedRows);
  12445. }
  12446. }
  12447. if ((this._productPhotoTableAdapter != null)) {
  12448. global::System.Data.DataRow[] addedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  12449. if (((addedRows != null)
  12450. && (0 < addedRows.Length))) {
  12451. result = (result + this._productPhotoTableAdapter.Update(addedRows));
  12452. allAddedRows.AddRange(addedRows);
  12453. }
  12454. }
  12455. if ((this._productSaleTableAdapter != null)) {
  12456. global::System.Data.DataRow[] addedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Added);
  12457. if (((addedRows != null)
  12458. && (0 < addedRows.Length))) {
  12459. result = (result + this._productSaleTableAdapter.Update(addedRows));
  12460. allAddedRows.AddRange(addedRows);
  12461. }
  12462. }
  12463. if ((this._service_b_importTableAdapter != null)) {
  12464. global::System.Data.DataRow[] addedRows = dataSet.service_b_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  12465. if (((addedRows != null)
  12466. && (0 < addedRows.Length))) {
  12467. result = (result + this._service_b_importTableAdapter.Update(addedRows));
  12468. allAddedRows.AddRange(addedRows);
  12469. }
  12470. }
  12471. if ((this._servicePhotoTableAdapter != null)) {
  12472. global::System.Data.DataRow[] addedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  12473. if (((addedRows != null)
  12474. && (0 < addedRows.Length))) {
  12475. result = (result + this._servicePhotoTableAdapter.Update(addedRows));
  12476. allAddedRows.AddRange(addedRows);
  12477. }
  12478. }
  12479. if ((this._tagOfClientTableAdapter != null)) {
  12480. global::System.Data.DataRow[] addedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Added);
  12481. if (((addedRows != null)
  12482. && (0 < addedRows.Length))) {
  12483. result = (result + this._tagOfClientTableAdapter.Update(addedRows));
  12484. allAddedRows.AddRange(addedRows);
  12485. }
  12486. }
  12487. return result;
  12488. }
  12489. /// <summary>
  12490. ///Delete rows in bottom-up order.
  12491. ///</summary>
  12492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12494. private int UpdateDeletedRows(bobrovDemoEgzamenDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  12495. int result = 0;
  12496. if ((this._tagOfClientTableAdapter != null)) {
  12497. global::System.Data.DataRow[] deletedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12498. if (((deletedRows != null)
  12499. && (0 < deletedRows.Length))) {
  12500. result = (result + this._tagOfClientTableAdapter.Update(deletedRows));
  12501. allChangedRows.AddRange(deletedRows);
  12502. }
  12503. }
  12504. if ((this._servicePhotoTableAdapter != null)) {
  12505. global::System.Data.DataRow[] deletedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12506. if (((deletedRows != null)
  12507. && (0 < deletedRows.Length))) {
  12508. result = (result + this._servicePhotoTableAdapter.Update(deletedRows));
  12509. allChangedRows.AddRange(deletedRows);
  12510. }
  12511. }
  12512. if ((this._service_b_importTableAdapter != null)) {
  12513. global::System.Data.DataRow[] deletedRows = dataSet.service_b_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12514. if (((deletedRows != null)
  12515. && (0 < deletedRows.Length))) {
  12516. result = (result + this._service_b_importTableAdapter.Update(deletedRows));
  12517. allChangedRows.AddRange(deletedRows);
  12518. }
  12519. }
  12520. if ((this._productSaleTableAdapter != null)) {
  12521. global::System.Data.DataRow[] deletedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12522. if (((deletedRows != null)
  12523. && (0 < deletedRows.Length))) {
  12524. result = (result + this._productSaleTableAdapter.Update(deletedRows));
  12525. allChangedRows.AddRange(deletedRows);
  12526. }
  12527. }
  12528. if ((this._productPhotoTableAdapter != null)) {
  12529. global::System.Data.DataRow[] deletedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12530. if (((deletedRows != null)
  12531. && (0 < deletedRows.Length))) {
  12532. result = (result + this._productPhotoTableAdapter.Update(deletedRows));
  12533. allChangedRows.AddRange(deletedRows);
  12534. }
  12535. }
  12536. if ((this._documentByServiceTableAdapter != null)) {
  12537. global::System.Data.DataRow[] deletedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12538. if (((deletedRows != null)
  12539. && (0 < deletedRows.Length))) {
  12540. result = (result + this._documentByServiceTableAdapter.Update(deletedRows));
  12541. allChangedRows.AddRange(deletedRows);
  12542. }
  12543. }
  12544. if ((this._client_b_importTableAdapter != null)) {
  12545. global::System.Data.DataRow[] deletedRows = dataSet.client_b_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12546. if (((deletedRows != null)
  12547. && (0 < deletedRows.Length))) {
  12548. result = (result + this._client_b_importTableAdapter.Update(deletedRows));
  12549. allChangedRows.AddRange(deletedRows);
  12550. }
  12551. }
  12552. if ((this._attachedProductTableAdapter != null)) {
  12553. global::System.Data.DataRow[] deletedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12554. if (((deletedRows != null)
  12555. && (0 < deletedRows.Length))) {
  12556. result = (result + this._attachedProductTableAdapter.Update(deletedRows));
  12557. allChangedRows.AddRange(deletedRows);
  12558. }
  12559. }
  12560. if ((this._tagTableAdapter != null)) {
  12561. global::System.Data.DataRow[] deletedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12562. if (((deletedRows != null)
  12563. && (0 < deletedRows.Length))) {
  12564. result = (result + this._tagTableAdapter.Update(deletedRows));
  12565. allChangedRows.AddRange(deletedRows);
  12566. }
  12567. }
  12568. if ((this._productTableAdapter != null)) {
  12569. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12570. if (((deletedRows != null)
  12571. && (0 < deletedRows.Length))) {
  12572. result = (result + this._productTableAdapter.Update(deletedRows));
  12573. allChangedRows.AddRange(deletedRows);
  12574. }
  12575. }
  12576. if ((this._clientServiceTableAdapter != null)) {
  12577. global::System.Data.DataRow[] deletedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12578. if (((deletedRows != null)
  12579. && (0 < deletedRows.Length))) {
  12580. result = (result + this._clientServiceTableAdapter.Update(deletedRows));
  12581. allChangedRows.AddRange(deletedRows);
  12582. }
  12583. }
  12584. if ((this._serviceTableAdapter != null)) {
  12585. global::System.Data.DataRow[] deletedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12586. if (((deletedRows != null)
  12587. && (0 < deletedRows.Length))) {
  12588. result = (result + this._serviceTableAdapter.Update(deletedRows));
  12589. allChangedRows.AddRange(deletedRows);
  12590. }
  12591. }
  12592. if ((this._manufacturerTableAdapter != null)) {
  12593. global::System.Data.DataRow[] deletedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12594. if (((deletedRows != null)
  12595. && (0 < deletedRows.Length))) {
  12596. result = (result + this._manufacturerTableAdapter.Update(deletedRows));
  12597. allChangedRows.AddRange(deletedRows);
  12598. }
  12599. }
  12600. if ((this._clientTableAdapter != null)) {
  12601. global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12602. if (((deletedRows != null)
  12603. && (0 < deletedRows.Length))) {
  12604. result = (result + this._clientTableAdapter.Update(deletedRows));
  12605. allChangedRows.AddRange(deletedRows);
  12606. }
  12607. }
  12608. if ((this._genderTableAdapter != null)) {
  12609. global::System.Data.DataRow[] deletedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12610. if (((deletedRows != null)
  12611. && (0 < deletedRows.Length))) {
  12612. result = (result + this._genderTableAdapter.Update(deletedRows));
  12613. allChangedRows.AddRange(deletedRows);
  12614. }
  12615. }
  12616. return result;
  12617. }
  12618. /// <summary>
  12619. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  12620. ///</summary>
  12621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12623. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  12624. if (((updatedRows == null)
  12625. || (updatedRows.Length < 1))) {
  12626. return updatedRows;
  12627. }
  12628. if (((allAddedRows == null)
  12629. || (allAddedRows.Count < 1))) {
  12630. return updatedRows;
  12631. }
  12632. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  12633. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  12634. global::System.Data.DataRow row = updatedRows[i];
  12635. if ((allAddedRows.Contains(row) == false)) {
  12636. realUpdatedRows.Add(row);
  12637. }
  12638. }
  12639. return realUpdatedRows.ToArray();
  12640. }
  12641. /// <summary>
  12642. ///Update all changes to the dataset.
  12643. ///</summary>
  12644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12646. public virtual int UpdateAll(bobrovDemoEgzamenDataSet dataSet) {
  12647. if ((dataSet == null)) {
  12648. throw new global::System.ArgumentNullException("dataSet");
  12649. }
  12650. if ((dataSet.HasChanges() == false)) {
  12651. return 0;
  12652. }
  12653. if (((this._attachedProductTableAdapter != null)
  12654. && (this.MatchTableAdapterConnection(this._attachedProductTableAdapter.Connection) == false))) {
  12655. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12656. "r, должны использовать одинаковую строку подключения.");
  12657. }
  12658. if (((this._clientTableAdapter != null)
  12659. && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
  12660. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12661. "r, должны использовать одинаковую строку подключения.");
  12662. }
  12663. if (((this._client_b_importTableAdapter != null)
  12664. && (this.MatchTableAdapterConnection(this._client_b_importTableAdapter.Connection) == false))) {
  12665. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12666. "r, должны использовать одинаковую строку подключения.");
  12667. }
  12668. if (((this._clientServiceTableAdapter != null)
  12669. && (this.MatchTableAdapterConnection(this._clientServiceTableAdapter.Connection) == false))) {
  12670. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12671. "r, должны использовать одинаковую строку подключения.");
  12672. }
  12673. if (((this._documentByServiceTableAdapter != null)
  12674. && (this.MatchTableAdapterConnection(this._documentByServiceTableAdapter.Connection) == false))) {
  12675. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12676. "r, должны использовать одинаковую строку подключения.");
  12677. }
  12678. if (((this._genderTableAdapter != null)
  12679. && (this.MatchTableAdapterConnection(this._genderTableAdapter.Connection) == false))) {
  12680. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12681. "r, должны использовать одинаковую строку подключения.");
  12682. }
  12683. if (((this._manufacturerTableAdapter != null)
  12684. && (this.MatchTableAdapterConnection(this._manufacturerTableAdapter.Connection) == false))) {
  12685. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12686. "r, должны использовать одинаковую строку подключения.");
  12687. }
  12688. if (((this._productTableAdapter != null)
  12689. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  12690. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12691. "r, должны использовать одинаковую строку подключения.");
  12692. }
  12693. if (((this._productPhotoTableAdapter != null)
  12694. && (this.MatchTableAdapterConnection(this._productPhotoTableAdapter.Connection) == false))) {
  12695. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12696. "r, должны использовать одинаковую строку подключения.");
  12697. }
  12698. if (((this._productSaleTableAdapter != null)
  12699. && (this.MatchTableAdapterConnection(this._productSaleTableAdapter.Connection) == false))) {
  12700. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12701. "r, должны использовать одинаковую строку подключения.");
  12702. }
  12703. if (((this._serviceTableAdapter != null)
  12704. && (this.MatchTableAdapterConnection(this._serviceTableAdapter.Connection) == false))) {
  12705. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12706. "r, должны использовать одинаковую строку подключения.");
  12707. }
  12708. if (((this._service_b_importTableAdapter != null)
  12709. && (this.MatchTableAdapterConnection(this._service_b_importTableAdapter.Connection) == false))) {
  12710. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12711. "r, должны использовать одинаковую строку подключения.");
  12712. }
  12713. if (((this._servicePhotoTableAdapter != null)
  12714. && (this.MatchTableAdapterConnection(this._servicePhotoTableAdapter.Connection) == false))) {
  12715. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12716. "r, должны использовать одинаковую строку подключения.");
  12717. }
  12718. if (((this._tagTableAdapter != null)
  12719. && (this.MatchTableAdapterConnection(this._tagTableAdapter.Connection) == false))) {
  12720. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12721. "r, должны использовать одинаковую строку подключения.");
  12722. }
  12723. if (((this._tagOfClientTableAdapter != null)
  12724. && (this.MatchTableAdapterConnection(this._tagOfClientTableAdapter.Connection) == false))) {
  12725. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12726. "r, должны использовать одинаковую строку подключения.");
  12727. }
  12728. global::System.Data.IDbConnection workConnection = this.Connection;
  12729. if ((workConnection == null)) {
  12730. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  12731. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  12732. }
  12733. bool workConnOpened = false;
  12734. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  12735. == global::System.Data.ConnectionState.Broken)) {
  12736. workConnection.Close();
  12737. }
  12738. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  12739. workConnection.Open();
  12740. workConnOpened = true;
  12741. }
  12742. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  12743. if ((workTransaction == null)) {
  12744. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  12745. "и или текущее состояние не позволяет начать транзакцию.");
  12746. }
  12747. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  12748. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  12749. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  12750. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  12751. int result = 0;
  12752. global::System.Data.DataSet backupDataSet = null;
  12753. if (this.BackupDataSetBeforeUpdate) {
  12754. backupDataSet = new global::System.Data.DataSet();
  12755. backupDataSet.Merge(dataSet);
  12756. }
  12757. try {
  12758. // ---- Prepare for update -----------
  12759. //
  12760. if ((this._attachedProductTableAdapter != null)) {
  12761. revertConnections.Add(this._attachedProductTableAdapter, this._attachedProductTableAdapter.Connection);
  12762. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12763. this._attachedProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12764. if (this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12765. this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12766. adaptersWithAcceptChangesDuringUpdate.Add(this._attachedProductTableAdapter.Adapter);
  12767. }
  12768. }
  12769. if ((this._clientTableAdapter != null)) {
  12770. revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
  12771. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12772. this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12773. if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12774. this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12775. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
  12776. }
  12777. }
  12778. if ((this._client_b_importTableAdapter != null)) {
  12779. revertConnections.Add(this._client_b_importTableAdapter, this._client_b_importTableAdapter.Connection);
  12780. this._client_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12781. this._client_b_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12782. if (this._client_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12783. this._client_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12784. adaptersWithAcceptChangesDuringUpdate.Add(this._client_b_importTableAdapter.Adapter);
  12785. }
  12786. }
  12787. if ((this._clientServiceTableAdapter != null)) {
  12788. revertConnections.Add(this._clientServiceTableAdapter, this._clientServiceTableAdapter.Connection);
  12789. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12790. this._clientServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12791. if (this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12792. this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12793. adaptersWithAcceptChangesDuringUpdate.Add(this._clientServiceTableAdapter.Adapter);
  12794. }
  12795. }
  12796. if ((this._documentByServiceTableAdapter != null)) {
  12797. revertConnections.Add(this._documentByServiceTableAdapter, this._documentByServiceTableAdapter.Connection);
  12798. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12799. this._documentByServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12800. if (this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12801. this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12802. adaptersWithAcceptChangesDuringUpdate.Add(this._documentByServiceTableAdapter.Adapter);
  12803. }
  12804. }
  12805. if ((this._genderTableAdapter != null)) {
  12806. revertConnections.Add(this._genderTableAdapter, this._genderTableAdapter.Connection);
  12807. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12808. this._genderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12809. if (this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12810. this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12811. adaptersWithAcceptChangesDuringUpdate.Add(this._genderTableAdapter.Adapter);
  12812. }
  12813. }
  12814. if ((this._manufacturerTableAdapter != null)) {
  12815. revertConnections.Add(this._manufacturerTableAdapter, this._manufacturerTableAdapter.Connection);
  12816. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12817. this._manufacturerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12818. if (this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12819. this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12820. adaptersWithAcceptChangesDuringUpdate.Add(this._manufacturerTableAdapter.Adapter);
  12821. }
  12822. }
  12823. if ((this._productTableAdapter != null)) {
  12824. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  12825. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12826. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12827. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12828. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12829. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  12830. }
  12831. }
  12832. if ((this._productPhotoTableAdapter != null)) {
  12833. revertConnections.Add(this._productPhotoTableAdapter, this._productPhotoTableAdapter.Connection);
  12834. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12835. this._productPhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12836. if (this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12837. this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12838. adaptersWithAcceptChangesDuringUpdate.Add(this._productPhotoTableAdapter.Adapter);
  12839. }
  12840. }
  12841. if ((this._productSaleTableAdapter != null)) {
  12842. revertConnections.Add(this._productSaleTableAdapter, this._productSaleTableAdapter.Connection);
  12843. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12844. this._productSaleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12845. if (this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12846. this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12847. adaptersWithAcceptChangesDuringUpdate.Add(this._productSaleTableAdapter.Adapter);
  12848. }
  12849. }
  12850. if ((this._serviceTableAdapter != null)) {
  12851. revertConnections.Add(this._serviceTableAdapter, this._serviceTableAdapter.Connection);
  12852. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12853. this._serviceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12854. if (this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12855. this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12856. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceTableAdapter.Adapter);
  12857. }
  12858. }
  12859. if ((this._service_b_importTableAdapter != null)) {
  12860. revertConnections.Add(this._service_b_importTableAdapter, this._service_b_importTableAdapter.Connection);
  12861. this._service_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12862. this._service_b_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12863. if (this._service_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12864. this._service_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12865. adaptersWithAcceptChangesDuringUpdate.Add(this._service_b_importTableAdapter.Adapter);
  12866. }
  12867. }
  12868. if ((this._servicePhotoTableAdapter != null)) {
  12869. revertConnections.Add(this._servicePhotoTableAdapter, this._servicePhotoTableAdapter.Connection);
  12870. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12871. this._servicePhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12872. if (this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12873. this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12874. adaptersWithAcceptChangesDuringUpdate.Add(this._servicePhotoTableAdapter.Adapter);
  12875. }
  12876. }
  12877. if ((this._tagTableAdapter != null)) {
  12878. revertConnections.Add(this._tagTableAdapter, this._tagTableAdapter.Connection);
  12879. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12880. this._tagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12881. if (this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12882. this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12883. adaptersWithAcceptChangesDuringUpdate.Add(this._tagTableAdapter.Adapter);
  12884. }
  12885. }
  12886. if ((this._tagOfClientTableAdapter != null)) {
  12887. revertConnections.Add(this._tagOfClientTableAdapter, this._tagOfClientTableAdapter.Connection);
  12888. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12889. this._tagOfClientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12890. if (this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12891. this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12892. adaptersWithAcceptChangesDuringUpdate.Add(this._tagOfClientTableAdapter.Adapter);
  12893. }
  12894. }
  12895. //
  12896. //---- Perform updates -----------
  12897. //
  12898. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  12899. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  12900. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  12901. }
  12902. else {
  12903. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  12904. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  12905. }
  12906. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  12907. //
  12908. //---- Commit updates -----------
  12909. //
  12910. workTransaction.Commit();
  12911. if ((0 < allAddedRows.Count)) {
  12912. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  12913. allAddedRows.CopyTo(rows);
  12914. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  12915. global::System.Data.DataRow row = rows[i];
  12916. row.AcceptChanges();
  12917. }
  12918. }
  12919. if ((0 < allChangedRows.Count)) {
  12920. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  12921. allChangedRows.CopyTo(rows);
  12922. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  12923. global::System.Data.DataRow row = rows[i];
  12924. row.AcceptChanges();
  12925. }
  12926. }
  12927. }
  12928. catch (global::System.Exception ex) {
  12929. workTransaction.Rollback();
  12930. // ---- Restore the dataset -----------
  12931. if (this.BackupDataSetBeforeUpdate) {
  12932. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  12933. dataSet.Clear();
  12934. dataSet.Merge(backupDataSet);
  12935. }
  12936. else {
  12937. if ((0 < allAddedRows.Count)) {
  12938. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  12939. allAddedRows.CopyTo(rows);
  12940. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  12941. global::System.Data.DataRow row = rows[i];
  12942. row.AcceptChanges();
  12943. row.SetAdded();
  12944. }
  12945. }
  12946. }
  12947. throw ex;
  12948. }
  12949. finally {
  12950. if (workConnOpened) {
  12951. workConnection.Close();
  12952. }
  12953. if ((this._attachedProductTableAdapter != null)) {
  12954. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._attachedProductTableAdapter]));
  12955. this._attachedProductTableAdapter.Transaction = null;
  12956. }
  12957. if ((this._clientTableAdapter != null)) {
  12958. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
  12959. this._clientTableAdapter.Transaction = null;
  12960. }
  12961. if ((this._client_b_importTableAdapter != null)) {
  12962. this._client_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._client_b_importTableAdapter]));
  12963. this._client_b_importTableAdapter.Transaction = null;
  12964. }
  12965. if ((this._clientServiceTableAdapter != null)) {
  12966. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientServiceTableAdapter]));
  12967. this._clientServiceTableAdapter.Transaction = null;
  12968. }
  12969. if ((this._documentByServiceTableAdapter != null)) {
  12970. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._documentByServiceTableAdapter]));
  12971. this._documentByServiceTableAdapter.Transaction = null;
  12972. }
  12973. if ((this._genderTableAdapter != null)) {
  12974. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._genderTableAdapter]));
  12975. this._genderTableAdapter.Transaction = null;
  12976. }
  12977. if ((this._manufacturerTableAdapter != null)) {
  12978. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufacturerTableAdapter]));
  12979. this._manufacturerTableAdapter.Transaction = null;
  12980. }
  12981. if ((this._productTableAdapter != null)) {
  12982. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  12983. this._productTableAdapter.Transaction = null;
  12984. }
  12985. if ((this._productPhotoTableAdapter != null)) {
  12986. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productPhotoTableAdapter]));
  12987. this._productPhotoTableAdapter.Transaction = null;
  12988. }
  12989. if ((this._productSaleTableAdapter != null)) {
  12990. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productSaleTableAdapter]));
  12991. this._productSaleTableAdapter.Transaction = null;
  12992. }
  12993. if ((this._serviceTableAdapter != null)) {
  12994. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceTableAdapter]));
  12995. this._serviceTableAdapter.Transaction = null;
  12996. }
  12997. if ((this._service_b_importTableAdapter != null)) {
  12998. this._service_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._service_b_importTableAdapter]));
  12999. this._service_b_importTableAdapter.Transaction = null;
  13000. }
  13001. if ((this._servicePhotoTableAdapter != null)) {
  13002. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._servicePhotoTableAdapter]));
  13003. this._servicePhotoTableAdapter.Transaction = null;
  13004. }
  13005. if ((this._tagTableAdapter != null)) {
  13006. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagTableAdapter]));
  13007. this._tagTableAdapter.Transaction = null;
  13008. }
  13009. if ((this._tagOfClientTableAdapter != null)) {
  13010. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagOfClientTableAdapter]));
  13011. this._tagOfClientTableAdapter.Transaction = null;
  13012. }
  13013. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  13014. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  13015. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  13016. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  13017. global::System.Data.Common.DataAdapter adapter = adapters[i];
  13018. adapter.AcceptChangesDuringUpdate = true;
  13019. }
  13020. }
  13021. }
  13022. return result;
  13023. }
  13024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13026. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  13027. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  13028. }
  13029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13031. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  13032. if ((this._connection != null)) {
  13033. return true;
  13034. }
  13035. if (((this.Connection == null)
  13036. || (inputConnection == null))) {
  13037. return true;
  13038. }
  13039. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  13040. return true;
  13041. }
  13042. return false;
  13043. }
  13044. /// <summary>
  13045. ///Update Order Option
  13046. ///</summary>
  13047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13048. public enum UpdateOrderOption {
  13049. InsertUpdateDelete = 0,
  13050. UpdateInsertDelete = 1,
  13051. }
  13052. /// <summary>
  13053. ///Used to sort self-referenced table's rows
  13054. ///</summary>
  13055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13056. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  13057. private global::System.Data.DataRelation _relation;
  13058. private int _childFirst;
  13059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13061. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  13062. this._relation = relation;
  13063. if (childFirst) {
  13064. this._childFirst = -1;
  13065. }
  13066. else {
  13067. this._childFirst = 1;
  13068. }
  13069. }
  13070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13072. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  13073. global::System.Diagnostics.Debug.Assert((row != null));
  13074. global::System.Data.DataRow root = row;
  13075. distance = 0;
  13076. 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>();
  13077. traversedRows[row] = row;
  13078. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  13079. for (
  13080. ; ((parent != null)
  13081. && (traversedRows.ContainsKey(parent) == false));
  13082. ) {
  13083. distance = (distance + 1);
  13084. root = parent;
  13085. traversedRows[parent] = parent;
  13086. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  13087. }
  13088. if ((distance == 0)) {
  13089. traversedRows.Clear();
  13090. traversedRows[row] = row;
  13091. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  13092. for (
  13093. ; ((parent != null)
  13094. && (traversedRows.ContainsKey(parent) == false));
  13095. ) {
  13096. distance = (distance + 1);
  13097. root = parent;
  13098. traversedRows[parent] = parent;
  13099. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  13100. }
  13101. }
  13102. return root;
  13103. }
  13104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13106. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  13107. if (object.ReferenceEquals(row1, row2)) {
  13108. return 0;
  13109. }
  13110. if ((row1 == null)) {
  13111. return -1;
  13112. }
  13113. if ((row2 == null)) {
  13114. return 1;
  13115. }
  13116. int distance1 = 0;
  13117. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  13118. int distance2 = 0;
  13119. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  13120. if (object.ReferenceEquals(root1, root2)) {
  13121. return (this._childFirst * distance1.CompareTo(distance2));
  13122. }
  13123. else {
  13124. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  13125. && (root2.Table != null)));
  13126. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  13127. return -1;
  13128. }
  13129. else {
  13130. return 1;
  13131. }
  13132. }
  13133. }
  13134. }
  13135. }
  13136. }
  13137. #pragma warning restore 1591