SaloonKrasoti02DataSet.Designer.cs 759 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace SalonKrasoti02 {
  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("SaloonKrasoti02DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class SaloonKrasoti02DataSet : global::System.Data.DataSet {
  22. private AttachedProductDataTable tableAttachedProduct;
  23. private ClientDataTable tableClient;
  24. private ClientServiceDataTable tableClientService;
  25. private DocumentByServiceDataTable tableDocumentByService;
  26. private GenderDataTable tableGender;
  27. private ManufacturerDataTable tableManufacturer;
  28. private ProductDataTable tableProduct;
  29. private ProductPhotoDataTable tableProductPhoto;
  30. private ProductSaleDataTable tableProductSale;
  31. private ServiceDataTable tableService;
  32. private ServicePhotoDataTable tableServicePhoto;
  33. private TagDataTable tableTag;
  34. private TagOfClientDataTable tableTagOfClient;
  35. private global::System.Data.DataRelation relationFK_AttachedProduct_Product;
  36. private global::System.Data.DataRelation relationFK_AttachedProduct_Product1;
  37. private global::System.Data.DataRelation relationFK_Client_Gender;
  38. private global::System.Data.DataRelation relationFK_ClientService_Client;
  39. private global::System.Data.DataRelation relationFK_ClientService_Service;
  40. private global::System.Data.DataRelation relationFK_DocumentByService_ClientService;
  41. private global::System.Data.DataRelation relationFK_Product_Manufacturer;
  42. private global::System.Data.DataRelation relationFK_ProductPhoto_Product;
  43. private global::System.Data.DataRelation relationFK_ProductSale_ClientService;
  44. private global::System.Data.DataRelation relationFK_ProductSale_Product;
  45. private global::System.Data.DataRelation relationFK_ServicePhoto_Service;
  46. private global::System.Data.DataRelation relationFK_TagOfClient_Client;
  47. private global::System.Data.DataRelation relationFK_TagOfClient_Tag;
  48. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  49. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  50. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  51. public SaloonKrasoti02DataSet() {
  52. this.BeginInit();
  53. this.InitClass();
  54. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  55. base.Tables.CollectionChanged += schemaChangedHandler;
  56. base.Relations.CollectionChanged += schemaChangedHandler;
  57. this.EndInit();
  58. }
  59. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  60. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  61. protected SaloonKrasoti02DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  62. base(info, context, false) {
  63. if ((this.IsBinarySerialized(info, context) == true)) {
  64. this.InitVars(false);
  65. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  66. this.Tables.CollectionChanged += schemaChangedHandler1;
  67. this.Relations.CollectionChanged += schemaChangedHandler1;
  68. return;
  69. }
  70. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  71. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  72. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  73. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  74. if ((ds.Tables["AttachedProduct"] != null)) {
  75. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  76. }
  77. if ((ds.Tables["Client"] != null)) {
  78. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  79. }
  80. if ((ds.Tables["ClientService"] != null)) {
  81. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  82. }
  83. if ((ds.Tables["DocumentByService"] != null)) {
  84. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  85. }
  86. if ((ds.Tables["Gender"] != null)) {
  87. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  88. }
  89. if ((ds.Tables["Manufacturer"] != null)) {
  90. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  91. }
  92. if ((ds.Tables["Product"] != null)) {
  93. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  94. }
  95. if ((ds.Tables["ProductPhoto"] != null)) {
  96. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  97. }
  98. if ((ds.Tables["ProductSale"] != null)) {
  99. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  100. }
  101. if ((ds.Tables["Service"] != null)) {
  102. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  103. }
  104. if ((ds.Tables["ServicePhoto"] != null)) {
  105. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  106. }
  107. if ((ds.Tables["Tag"] != null)) {
  108. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  109. }
  110. if ((ds.Tables["TagOfClient"] != null)) {
  111. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  112. }
  113. this.DataSetName = ds.DataSetName;
  114. this.Prefix = ds.Prefix;
  115. this.Namespace = ds.Namespace;
  116. this.Locale = ds.Locale;
  117. this.CaseSensitive = ds.CaseSensitive;
  118. this.EnforceConstraints = ds.EnforceConstraints;
  119. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  120. this.InitVars();
  121. }
  122. else {
  123. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  124. }
  125. this.GetSerializationData(info, context);
  126. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  127. base.Tables.CollectionChanged += schemaChangedHandler;
  128. this.Relations.CollectionChanged += schemaChangedHandler;
  129. }
  130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  132. [global::System.ComponentModel.Browsable(false)]
  133. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  134. public AttachedProductDataTable AttachedProduct {
  135. get {
  136. return this.tableAttachedProduct;
  137. }
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  141. [global::System.ComponentModel.Browsable(false)]
  142. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  143. public ClientDataTable Client {
  144. get {
  145. return this.tableClient;
  146. }
  147. }
  148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  150. [global::System.ComponentModel.Browsable(false)]
  151. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  152. public ClientServiceDataTable ClientService {
  153. get {
  154. return this.tableClientService;
  155. }
  156. }
  157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  159. [global::System.ComponentModel.Browsable(false)]
  160. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  161. public DocumentByServiceDataTable DocumentByService {
  162. get {
  163. return this.tableDocumentByService;
  164. }
  165. }
  166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  168. [global::System.ComponentModel.Browsable(false)]
  169. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  170. public GenderDataTable Gender {
  171. get {
  172. return this.tableGender;
  173. }
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  177. [global::System.ComponentModel.Browsable(false)]
  178. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  179. public ManufacturerDataTable Manufacturer {
  180. get {
  181. return this.tableManufacturer;
  182. }
  183. }
  184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  186. [global::System.ComponentModel.Browsable(false)]
  187. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  188. public ProductDataTable Product {
  189. get {
  190. return this.tableProduct;
  191. }
  192. }
  193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  195. [global::System.ComponentModel.Browsable(false)]
  196. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  197. public ProductPhotoDataTable ProductPhoto {
  198. get {
  199. return this.tableProductPhoto;
  200. }
  201. }
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  204. [global::System.ComponentModel.Browsable(false)]
  205. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  206. public ProductSaleDataTable ProductSale {
  207. get {
  208. return this.tableProductSale;
  209. }
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  213. [global::System.ComponentModel.Browsable(false)]
  214. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  215. public ServiceDataTable Service {
  216. get {
  217. return this.tableService;
  218. }
  219. }
  220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  222. [global::System.ComponentModel.Browsable(false)]
  223. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  224. public ServicePhotoDataTable ServicePhoto {
  225. get {
  226. return this.tableServicePhoto;
  227. }
  228. }
  229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  231. [global::System.ComponentModel.Browsable(false)]
  232. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  233. public TagDataTable Tag {
  234. get {
  235. return this.tableTag;
  236. }
  237. }
  238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  240. [global::System.ComponentModel.Browsable(false)]
  241. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  242. public TagOfClientDataTable TagOfClient {
  243. get {
  244. return this.tableTagOfClient;
  245. }
  246. }
  247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  249. [global::System.ComponentModel.BrowsableAttribute(true)]
  250. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  251. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  252. get {
  253. return this._schemaSerializationMode;
  254. }
  255. set {
  256. this._schemaSerializationMode = value;
  257. }
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  261. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  262. public new global::System.Data.DataTableCollection Tables {
  263. get {
  264. return base.Tables;
  265. }
  266. }
  267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  269. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  270. public new global::System.Data.DataRelationCollection Relations {
  271. get {
  272. return base.Relations;
  273. }
  274. }
  275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  277. protected override void InitializeDerivedDataSet() {
  278. this.BeginInit();
  279. this.InitClass();
  280. this.EndInit();
  281. }
  282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  284. public override global::System.Data.DataSet Clone() {
  285. SaloonKrasoti02DataSet cln = ((SaloonKrasoti02DataSet)(base.Clone()));
  286. cln.InitVars();
  287. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  288. return cln;
  289. }
  290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  292. protected override bool ShouldSerializeTables() {
  293. return false;
  294. }
  295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  297. protected override bool ShouldSerializeRelations() {
  298. return false;
  299. }
  300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  302. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  303. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  304. this.Reset();
  305. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  306. ds.ReadXml(reader);
  307. if ((ds.Tables["AttachedProduct"] != null)) {
  308. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  309. }
  310. if ((ds.Tables["Client"] != null)) {
  311. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  312. }
  313. if ((ds.Tables["ClientService"] != null)) {
  314. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  315. }
  316. if ((ds.Tables["DocumentByService"] != null)) {
  317. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  318. }
  319. if ((ds.Tables["Gender"] != null)) {
  320. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  321. }
  322. if ((ds.Tables["Manufacturer"] != null)) {
  323. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  324. }
  325. if ((ds.Tables["Product"] != null)) {
  326. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  327. }
  328. if ((ds.Tables["ProductPhoto"] != null)) {
  329. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  330. }
  331. if ((ds.Tables["ProductSale"] != null)) {
  332. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  333. }
  334. if ((ds.Tables["Service"] != null)) {
  335. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  336. }
  337. if ((ds.Tables["ServicePhoto"] != null)) {
  338. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  339. }
  340. if ((ds.Tables["Tag"] != null)) {
  341. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  342. }
  343. if ((ds.Tables["TagOfClient"] != null)) {
  344. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  345. }
  346. this.DataSetName = ds.DataSetName;
  347. this.Prefix = ds.Prefix;
  348. this.Namespace = ds.Namespace;
  349. this.Locale = ds.Locale;
  350. this.CaseSensitive = ds.CaseSensitive;
  351. this.EnforceConstraints = ds.EnforceConstraints;
  352. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  353. this.InitVars();
  354. }
  355. else {
  356. this.ReadXml(reader);
  357. this.InitVars();
  358. }
  359. }
  360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  362. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  363. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  364. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  365. stream.Position = 0;
  366. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  367. }
  368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  370. internal void InitVars() {
  371. this.InitVars(true);
  372. }
  373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  375. internal void InitVars(bool initTable) {
  376. this.tableAttachedProduct = ((AttachedProductDataTable)(base.Tables["AttachedProduct"]));
  377. if ((initTable == true)) {
  378. if ((this.tableAttachedProduct != null)) {
  379. this.tableAttachedProduct.InitVars();
  380. }
  381. }
  382. this.tableClient = ((ClientDataTable)(base.Tables["Client"]));
  383. if ((initTable == true)) {
  384. if ((this.tableClient != null)) {
  385. this.tableClient.InitVars();
  386. }
  387. }
  388. this.tableClientService = ((ClientServiceDataTable)(base.Tables["ClientService"]));
  389. if ((initTable == true)) {
  390. if ((this.tableClientService != null)) {
  391. this.tableClientService.InitVars();
  392. }
  393. }
  394. this.tableDocumentByService = ((DocumentByServiceDataTable)(base.Tables["DocumentByService"]));
  395. if ((initTable == true)) {
  396. if ((this.tableDocumentByService != null)) {
  397. this.tableDocumentByService.InitVars();
  398. }
  399. }
  400. this.tableGender = ((GenderDataTable)(base.Tables["Gender"]));
  401. if ((initTable == true)) {
  402. if ((this.tableGender != null)) {
  403. this.tableGender.InitVars();
  404. }
  405. }
  406. this.tableManufacturer = ((ManufacturerDataTable)(base.Tables["Manufacturer"]));
  407. if ((initTable == true)) {
  408. if ((this.tableManufacturer != null)) {
  409. this.tableManufacturer.InitVars();
  410. }
  411. }
  412. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  413. if ((initTable == true)) {
  414. if ((this.tableProduct != null)) {
  415. this.tableProduct.InitVars();
  416. }
  417. }
  418. this.tableProductPhoto = ((ProductPhotoDataTable)(base.Tables["ProductPhoto"]));
  419. if ((initTable == true)) {
  420. if ((this.tableProductPhoto != null)) {
  421. this.tableProductPhoto.InitVars();
  422. }
  423. }
  424. this.tableProductSale = ((ProductSaleDataTable)(base.Tables["ProductSale"]));
  425. if ((initTable == true)) {
  426. if ((this.tableProductSale != null)) {
  427. this.tableProductSale.InitVars();
  428. }
  429. }
  430. this.tableService = ((ServiceDataTable)(base.Tables["Service"]));
  431. if ((initTable == true)) {
  432. if ((this.tableService != null)) {
  433. this.tableService.InitVars();
  434. }
  435. }
  436. this.tableServicePhoto = ((ServicePhotoDataTable)(base.Tables["ServicePhoto"]));
  437. if ((initTable == true)) {
  438. if ((this.tableServicePhoto != null)) {
  439. this.tableServicePhoto.InitVars();
  440. }
  441. }
  442. this.tableTag = ((TagDataTable)(base.Tables["Tag"]));
  443. if ((initTable == true)) {
  444. if ((this.tableTag != null)) {
  445. this.tableTag.InitVars();
  446. }
  447. }
  448. this.tableTagOfClient = ((TagOfClientDataTable)(base.Tables["TagOfClient"]));
  449. if ((initTable == true)) {
  450. if ((this.tableTagOfClient != null)) {
  451. this.tableTagOfClient.InitVars();
  452. }
  453. }
  454. this.relationFK_AttachedProduct_Product = this.Relations["FK_AttachedProduct_Product"];
  455. this.relationFK_AttachedProduct_Product1 = this.Relations["FK_AttachedProduct_Product1"];
  456. this.relationFK_Client_Gender = this.Relations["FK_Client_Gender"];
  457. this.relationFK_ClientService_Client = this.Relations["FK_ClientService_Client"];
  458. this.relationFK_ClientService_Service = this.Relations["FK_ClientService_Service"];
  459. this.relationFK_DocumentByService_ClientService = this.Relations["FK_DocumentByService_ClientService"];
  460. this.relationFK_Product_Manufacturer = this.Relations["FK_Product_Manufacturer"];
  461. this.relationFK_ProductPhoto_Product = this.Relations["FK_ProductPhoto_Product"];
  462. this.relationFK_ProductSale_ClientService = this.Relations["FK_ProductSale_ClientService"];
  463. this.relationFK_ProductSale_Product = this.Relations["FK_ProductSale_Product"];
  464. this.relationFK_ServicePhoto_Service = this.Relations["FK_ServicePhoto_Service"];
  465. this.relationFK_TagOfClient_Client = this.Relations["FK_TagOfClient_Client"];
  466. this.relationFK_TagOfClient_Tag = this.Relations["FK_TagOfClient_Tag"];
  467. }
  468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  470. private void InitClass() {
  471. this.DataSetName = "SaloonKrasoti02DataSet";
  472. this.Prefix = "";
  473. this.Namespace = "http://tempuri.org/SaloonKrasoti02DataSet.xsd";
  474. this.EnforceConstraints = true;
  475. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  476. this.tableAttachedProduct = new AttachedProductDataTable();
  477. base.Tables.Add(this.tableAttachedProduct);
  478. this.tableClient = new ClientDataTable();
  479. base.Tables.Add(this.tableClient);
  480. this.tableClientService = new ClientServiceDataTable();
  481. base.Tables.Add(this.tableClientService);
  482. this.tableDocumentByService = new DocumentByServiceDataTable();
  483. base.Tables.Add(this.tableDocumentByService);
  484. this.tableGender = new GenderDataTable();
  485. base.Tables.Add(this.tableGender);
  486. this.tableManufacturer = new ManufacturerDataTable();
  487. base.Tables.Add(this.tableManufacturer);
  488. this.tableProduct = new ProductDataTable();
  489. base.Tables.Add(this.tableProduct);
  490. this.tableProductPhoto = new ProductPhotoDataTable();
  491. base.Tables.Add(this.tableProductPhoto);
  492. this.tableProductSale = new ProductSaleDataTable();
  493. base.Tables.Add(this.tableProductSale);
  494. this.tableService = new ServiceDataTable();
  495. base.Tables.Add(this.tableService);
  496. this.tableServicePhoto = new ServicePhotoDataTable();
  497. base.Tables.Add(this.tableServicePhoto);
  498. this.tableTag = new TagDataTable();
  499. base.Tables.Add(this.tableTag);
  500. this.tableTagOfClient = new TagOfClientDataTable();
  501. base.Tables.Add(this.tableTagOfClient);
  502. this.relationFK_AttachedProduct_Product = new global::System.Data.DataRelation("FK_AttachedProduct_Product", new global::System.Data.DataColumn[] {
  503. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  504. this.tableAttachedProduct.MainProductIDColumn}, false);
  505. this.Relations.Add(this.relationFK_AttachedProduct_Product);
  506. this.relationFK_AttachedProduct_Product1 = new global::System.Data.DataRelation("FK_AttachedProduct_Product1", new global::System.Data.DataColumn[] {
  507. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  508. this.tableAttachedProduct.AttachedProductIDColumn}, false);
  509. this.Relations.Add(this.relationFK_AttachedProduct_Product1);
  510. this.relationFK_Client_Gender = new global::System.Data.DataRelation("FK_Client_Gender", new global::System.Data.DataColumn[] {
  511. this.tableGender.CodeColumn}, new global::System.Data.DataColumn[] {
  512. this.tableClient.GenderCodeColumn}, false);
  513. this.Relations.Add(this.relationFK_Client_Gender);
  514. this.relationFK_ClientService_Client = new global::System.Data.DataRelation("FK_ClientService_Client", new global::System.Data.DataColumn[] {
  515. this.tableClient.IDColumn}, new global::System.Data.DataColumn[] {
  516. this.tableClientService.ClientIDColumn}, false);
  517. this.Relations.Add(this.relationFK_ClientService_Client);
  518. this.relationFK_ClientService_Service = new global::System.Data.DataRelation("FK_ClientService_Service", new global::System.Data.DataColumn[] {
  519. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  520. this.tableClientService.ServiceIDColumn}, false);
  521. this.Relations.Add(this.relationFK_ClientService_Service);
  522. this.relationFK_DocumentByService_ClientService = new global::System.Data.DataRelation("FK_DocumentByService_ClientService", new global::System.Data.DataColumn[] {
  523. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  524. this.tableDocumentByService.ClientServiceIDColumn}, false);
  525. this.Relations.Add(this.relationFK_DocumentByService_ClientService);
  526. this.relationFK_Product_Manufacturer = new global::System.Data.DataRelation("FK_Product_Manufacturer", new global::System.Data.DataColumn[] {
  527. this.tableManufacturer.IDColumn}, new global::System.Data.DataColumn[] {
  528. this.tableProduct.ManufacturerIDColumn}, false);
  529. this.Relations.Add(this.relationFK_Product_Manufacturer);
  530. this.relationFK_ProductPhoto_Product = new global::System.Data.DataRelation("FK_ProductPhoto_Product", new global::System.Data.DataColumn[] {
  531. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  532. this.tableProductPhoto.ProductIDColumn}, false);
  533. this.Relations.Add(this.relationFK_ProductPhoto_Product);
  534. this.relationFK_ProductSale_ClientService = new global::System.Data.DataRelation("FK_ProductSale_ClientService", new global::System.Data.DataColumn[] {
  535. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  536. this.tableProductSale.ClientServiceIDColumn}, false);
  537. this.Relations.Add(this.relationFK_ProductSale_ClientService);
  538. this.relationFK_ProductSale_Product = new global::System.Data.DataRelation("FK_ProductSale_Product", new global::System.Data.DataColumn[] {
  539. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  540. this.tableProductSale.ProductIDColumn}, false);
  541. this.Relations.Add(this.relationFK_ProductSale_Product);
  542. this.relationFK_ServicePhoto_Service = new global::System.Data.DataRelation("FK_ServicePhoto_Service", new global::System.Data.DataColumn[] {
  543. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  544. this.tableServicePhoto.ServiceIDColumn}, false);
  545. this.Relations.Add(this.relationFK_ServicePhoto_Service);
  546. this.relationFK_TagOfClient_Client = new global::System.Data.DataRelation("FK_TagOfClient_Client", new global::System.Data.DataColumn[] {
  547. this.tableClient.IDColumn}, new global::System.Data.DataColumn[] {
  548. this.tableTagOfClient.ClientIDColumn}, false);
  549. this.Relations.Add(this.relationFK_TagOfClient_Client);
  550. this.relationFK_TagOfClient_Tag = new global::System.Data.DataRelation("FK_TagOfClient_Tag", new global::System.Data.DataColumn[] {
  551. this.tableTag.IDColumn}, new global::System.Data.DataColumn[] {
  552. this.tableTagOfClient.TagIDColumn}, false);
  553. this.Relations.Add(this.relationFK_TagOfClient_Tag);
  554. }
  555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  557. private bool ShouldSerializeAttachedProduct() {
  558. return false;
  559. }
  560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  562. private bool ShouldSerializeClient() {
  563. return false;
  564. }
  565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  567. private bool ShouldSerializeClientService() {
  568. return false;
  569. }
  570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  572. private bool ShouldSerializeDocumentByService() {
  573. return false;
  574. }
  575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  577. private bool ShouldSerializeGender() {
  578. return false;
  579. }
  580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  582. private bool ShouldSerializeManufacturer() {
  583. return false;
  584. }
  585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  587. private bool ShouldSerializeProduct() {
  588. return false;
  589. }
  590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  592. private bool ShouldSerializeProductPhoto() {
  593. return false;
  594. }
  595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  597. private bool ShouldSerializeProductSale() {
  598. return false;
  599. }
  600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  602. private bool ShouldSerializeService() {
  603. return false;
  604. }
  605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  607. private bool ShouldSerializeServicePhoto() {
  608. return false;
  609. }
  610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  612. private bool ShouldSerializeTag() {
  613. return false;
  614. }
  615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  617. private bool ShouldSerializeTagOfClient() {
  618. return false;
  619. }
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  622. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  623. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  624. this.InitVars();
  625. }
  626. }
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  629. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  630. SaloonKrasoti02DataSet ds = new SaloonKrasoti02DataSet();
  631. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  632. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  633. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  634. any.Namespace = ds.Namespace;
  635. sequence.Items.Add(any);
  636. type.Particle = sequence;
  637. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  638. if (xs.Contains(dsSchema.TargetNamespace)) {
  639. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  640. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  641. try {
  642. global::System.Xml.Schema.XmlSchema schema = null;
  643. dsSchema.Write(s1);
  644. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  645. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  646. s2.SetLength(0);
  647. schema.Write(s2);
  648. if ((s1.Length == s2.Length)) {
  649. s1.Position = 0;
  650. s2.Position = 0;
  651. for (; ((s1.Position != s1.Length)
  652. && (s1.ReadByte() == s2.ReadByte())); ) {
  653. ;
  654. }
  655. if ((s1.Position == s1.Length)) {
  656. return type;
  657. }
  658. }
  659. }
  660. }
  661. finally {
  662. if ((s1 != null)) {
  663. s1.Close();
  664. }
  665. if ((s2 != null)) {
  666. s2.Close();
  667. }
  668. }
  669. }
  670. xs.Add(dsSchema);
  671. return type;
  672. }
  673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  674. public delegate void AttachedProductRowChangeEventHandler(object sender, AttachedProductRowChangeEvent e);
  675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  676. public delegate void ClientRowChangeEventHandler(object sender, ClientRowChangeEvent e);
  677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  678. public delegate void ClientServiceRowChangeEventHandler(object sender, ClientServiceRowChangeEvent e);
  679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  680. public delegate void DocumentByServiceRowChangeEventHandler(object sender, DocumentByServiceRowChangeEvent e);
  681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  682. public delegate void GenderRowChangeEventHandler(object sender, GenderRowChangeEvent e);
  683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  684. public delegate void ManufacturerRowChangeEventHandler(object sender, ManufacturerRowChangeEvent e);
  685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  686. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  688. public delegate void ProductPhotoRowChangeEventHandler(object sender, ProductPhotoRowChangeEvent e);
  689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  690. public delegate void ProductSaleRowChangeEventHandler(object sender, ProductSaleRowChangeEvent e);
  691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  692. public delegate void ServiceRowChangeEventHandler(object sender, ServiceRowChangeEvent e);
  693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  694. public delegate void ServicePhotoRowChangeEventHandler(object sender, ServicePhotoRowChangeEvent e);
  695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  696. public delegate void TagRowChangeEventHandler(object sender, TagRowChangeEvent e);
  697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  698. public delegate void TagOfClientRowChangeEventHandler(object sender, TagOfClientRowChangeEvent e);
  699. /// <summary>
  700. ///Represents the strongly named DataTable class.
  701. ///</summary>
  702. [global::System.Serializable()]
  703. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  704. public partial class AttachedProductDataTable : global::System.Data.TypedTableBase<AttachedProductRow> {
  705. private global::System.Data.DataColumn columnMainProductID;
  706. private global::System.Data.DataColumn columnAttachedProductID;
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  709. public AttachedProductDataTable() {
  710. this.TableName = "AttachedProduct";
  711. this.BeginInit();
  712. this.InitClass();
  713. this.EndInit();
  714. }
  715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  717. internal AttachedProductDataTable(global::System.Data.DataTable table) {
  718. this.TableName = table.TableName;
  719. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  720. this.CaseSensitive = table.CaseSensitive;
  721. }
  722. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  723. this.Locale = table.Locale;
  724. }
  725. if ((table.Namespace != table.DataSet.Namespace)) {
  726. this.Namespace = table.Namespace;
  727. }
  728. this.Prefix = table.Prefix;
  729. this.MinimumCapacity = table.MinimumCapacity;
  730. }
  731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  733. protected AttachedProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  734. base(info, context) {
  735. this.InitVars();
  736. }
  737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  739. public global::System.Data.DataColumn MainProductIDColumn {
  740. get {
  741. return this.columnMainProductID;
  742. }
  743. }
  744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  746. public global::System.Data.DataColumn AttachedProductIDColumn {
  747. get {
  748. return this.columnAttachedProductID;
  749. }
  750. }
  751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  753. [global::System.ComponentModel.Browsable(false)]
  754. public int Count {
  755. get {
  756. return this.Rows.Count;
  757. }
  758. }
  759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  761. public AttachedProductRow this[int index] {
  762. get {
  763. return ((AttachedProductRow)(this.Rows[index]));
  764. }
  765. }
  766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  767. public event AttachedProductRowChangeEventHandler AttachedProductRowChanging;
  768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  769. public event AttachedProductRowChangeEventHandler AttachedProductRowChanged;
  770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  771. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleting;
  772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  773. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleted;
  774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  776. public void AddAttachedProductRow(AttachedProductRow row) {
  777. this.Rows.Add(row);
  778. }
  779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  781. public AttachedProductRow AddAttachedProductRow(ProductRow parentProductRowByFK_AttachedProduct_Product, ProductRow parentProductRowByFK_AttachedProduct_Product1) {
  782. AttachedProductRow rowAttachedProductRow = ((AttachedProductRow)(this.NewRow()));
  783. object[] columnValuesArray = new object[] {
  784. null,
  785. null};
  786. if ((parentProductRowByFK_AttachedProduct_Product != null)) {
  787. columnValuesArray[0] = parentProductRowByFK_AttachedProduct_Product[0];
  788. }
  789. if ((parentProductRowByFK_AttachedProduct_Product1 != null)) {
  790. columnValuesArray[1] = parentProductRowByFK_AttachedProduct_Product1[0];
  791. }
  792. rowAttachedProductRow.ItemArray = columnValuesArray;
  793. this.Rows.Add(rowAttachedProductRow);
  794. return rowAttachedProductRow;
  795. }
  796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  798. public AttachedProductRow FindByMainProductIDAttachedProductID(int MainProductID, int AttachedProductID) {
  799. return ((AttachedProductRow)(this.Rows.Find(new object[] {
  800. MainProductID,
  801. AttachedProductID})));
  802. }
  803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  805. public override global::System.Data.DataTable Clone() {
  806. AttachedProductDataTable cln = ((AttachedProductDataTable)(base.Clone()));
  807. cln.InitVars();
  808. return cln;
  809. }
  810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  812. protected override global::System.Data.DataTable CreateInstance() {
  813. return new AttachedProductDataTable();
  814. }
  815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  817. internal void InitVars() {
  818. this.columnMainProductID = base.Columns["MainProductID"];
  819. this.columnAttachedProductID = base.Columns["AttachedProductID"];
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  823. private void InitClass() {
  824. this.columnMainProductID = new global::System.Data.DataColumn("MainProductID", typeof(int), null, global::System.Data.MappingType.Element);
  825. base.Columns.Add(this.columnMainProductID);
  826. this.columnAttachedProductID = new global::System.Data.DataColumn("AttachedProductID", typeof(int), null, global::System.Data.MappingType.Element);
  827. base.Columns.Add(this.columnAttachedProductID);
  828. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  829. this.columnMainProductID,
  830. this.columnAttachedProductID}, true));
  831. this.columnMainProductID.AllowDBNull = false;
  832. this.columnAttachedProductID.AllowDBNull = false;
  833. }
  834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  836. public AttachedProductRow NewAttachedProductRow() {
  837. return ((AttachedProductRow)(this.NewRow()));
  838. }
  839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  841. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  842. return new AttachedProductRow(builder);
  843. }
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  846. protected override global::System.Type GetRowType() {
  847. return typeof(AttachedProductRow);
  848. }
  849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  851. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  852. base.OnRowChanged(e);
  853. if ((this.AttachedProductRowChanged != null)) {
  854. this.AttachedProductRowChanged(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  855. }
  856. }
  857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  859. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  860. base.OnRowChanging(e);
  861. if ((this.AttachedProductRowChanging != null)) {
  862. this.AttachedProductRowChanging(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  863. }
  864. }
  865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  867. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  868. base.OnRowDeleted(e);
  869. if ((this.AttachedProductRowDeleted != null)) {
  870. this.AttachedProductRowDeleted(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  871. }
  872. }
  873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  875. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  876. base.OnRowDeleting(e);
  877. if ((this.AttachedProductRowDeleting != null)) {
  878. this.AttachedProductRowDeleting(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  879. }
  880. }
  881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  883. public void RemoveAttachedProductRow(AttachedProductRow row) {
  884. this.Rows.Remove(row);
  885. }
  886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  888. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  889. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  890. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  891. SaloonKrasoti02DataSet ds = new SaloonKrasoti02DataSet();
  892. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  893. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  894. any1.MinOccurs = new decimal(0);
  895. any1.MaxOccurs = decimal.MaxValue;
  896. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  897. sequence.Items.Add(any1);
  898. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  899. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  900. any2.MinOccurs = new decimal(1);
  901. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  902. sequence.Items.Add(any2);
  903. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  904. attribute1.Name = "namespace";
  905. attribute1.FixedValue = ds.Namespace;
  906. type.Attributes.Add(attribute1);
  907. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  908. attribute2.Name = "tableTypeName";
  909. attribute2.FixedValue = "AttachedProductDataTable";
  910. type.Attributes.Add(attribute2);
  911. type.Particle = sequence;
  912. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  913. if (xs.Contains(dsSchema.TargetNamespace)) {
  914. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  915. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  916. try {
  917. global::System.Xml.Schema.XmlSchema schema = null;
  918. dsSchema.Write(s1);
  919. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  920. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  921. s2.SetLength(0);
  922. schema.Write(s2);
  923. if ((s1.Length == s2.Length)) {
  924. s1.Position = 0;
  925. s2.Position = 0;
  926. for (; ((s1.Position != s1.Length)
  927. && (s1.ReadByte() == s2.ReadByte())); ) {
  928. ;
  929. }
  930. if ((s1.Position == s1.Length)) {
  931. return type;
  932. }
  933. }
  934. }
  935. }
  936. finally {
  937. if ((s1 != null)) {
  938. s1.Close();
  939. }
  940. if ((s2 != null)) {
  941. s2.Close();
  942. }
  943. }
  944. }
  945. xs.Add(dsSchema);
  946. return type;
  947. }
  948. }
  949. /// <summary>
  950. ///Represents the strongly named DataTable class.
  951. ///</summary>
  952. [global::System.Serializable()]
  953. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  954. public partial class ClientDataTable : global::System.Data.TypedTableBase<ClientRow> {
  955. private global::System.Data.DataColumn columnID;
  956. private global::System.Data.DataColumn columnLastName;
  957. private global::System.Data.DataColumn columnFirstName;
  958. private global::System.Data.DataColumn columnPatronymic;
  959. private global::System.Data.DataColumn columnBirthday;
  960. private global::System.Data.DataColumn columnRegistrationDate;
  961. private global::System.Data.DataColumn columnEmail;
  962. private global::System.Data.DataColumn columnPhone;
  963. private global::System.Data.DataColumn columnGenderCode;
  964. private global::System.Data.DataColumn columnPhotoPath;
  965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  967. public ClientDataTable() {
  968. this.TableName = "Client";
  969. this.BeginInit();
  970. this.InitClass();
  971. this.EndInit();
  972. }
  973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  975. internal ClientDataTable(global::System.Data.DataTable table) {
  976. this.TableName = table.TableName;
  977. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  978. this.CaseSensitive = table.CaseSensitive;
  979. }
  980. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  981. this.Locale = table.Locale;
  982. }
  983. if ((table.Namespace != table.DataSet.Namespace)) {
  984. this.Namespace = table.Namespace;
  985. }
  986. this.Prefix = table.Prefix;
  987. this.MinimumCapacity = table.MinimumCapacity;
  988. }
  989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  991. protected ClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  992. base(info, context) {
  993. this.InitVars();
  994. }
  995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  997. public global::System.Data.DataColumn IDColumn {
  998. get {
  999. return this.columnID;
  1000. }
  1001. }
  1002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1004. public global::System.Data.DataColumn LastNameColumn {
  1005. get {
  1006. return this.columnLastName;
  1007. }
  1008. }
  1009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1011. public global::System.Data.DataColumn FirstNameColumn {
  1012. get {
  1013. return this.columnFirstName;
  1014. }
  1015. }
  1016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1018. public global::System.Data.DataColumn PatronymicColumn {
  1019. get {
  1020. return this.columnPatronymic;
  1021. }
  1022. }
  1023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1025. public global::System.Data.DataColumn BirthdayColumn {
  1026. get {
  1027. return this.columnBirthday;
  1028. }
  1029. }
  1030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1032. public global::System.Data.DataColumn RegistrationDateColumn {
  1033. get {
  1034. return this.columnRegistrationDate;
  1035. }
  1036. }
  1037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1039. public global::System.Data.DataColumn EmailColumn {
  1040. get {
  1041. return this.columnEmail;
  1042. }
  1043. }
  1044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1046. public global::System.Data.DataColumn PhoneColumn {
  1047. get {
  1048. return this.columnPhone;
  1049. }
  1050. }
  1051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1053. public global::System.Data.DataColumn GenderCodeColumn {
  1054. get {
  1055. return this.columnGenderCode;
  1056. }
  1057. }
  1058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1060. public global::System.Data.DataColumn PhotoPathColumn {
  1061. get {
  1062. return this.columnPhotoPath;
  1063. }
  1064. }
  1065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1067. [global::System.ComponentModel.Browsable(false)]
  1068. public int Count {
  1069. get {
  1070. return this.Rows.Count;
  1071. }
  1072. }
  1073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1075. public ClientRow this[int index] {
  1076. get {
  1077. return ((ClientRow)(this.Rows[index]));
  1078. }
  1079. }
  1080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1081. public event ClientRowChangeEventHandler ClientRowChanging;
  1082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1083. public event ClientRowChangeEventHandler ClientRowChanged;
  1084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1085. public event ClientRowChangeEventHandler ClientRowDeleting;
  1086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1087. public event ClientRowChangeEventHandler ClientRowDeleted;
  1088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1090. public void AddClientRow(ClientRow row) {
  1091. this.Rows.Add(row);
  1092. }
  1093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1095. public ClientRow AddClientRow(string LastName, string FirstName, string Patronymic, System.DateTime Birthday, System.DateTime RegistrationDate, string Email, string Phone, GenderRow parentGenderRowByFK_Client_Gender, string PhotoPath) {
  1096. ClientRow rowClientRow = ((ClientRow)(this.NewRow()));
  1097. object[] columnValuesArray = new object[] {
  1098. null,
  1099. LastName,
  1100. FirstName,
  1101. Patronymic,
  1102. Birthday,
  1103. RegistrationDate,
  1104. Email,
  1105. Phone,
  1106. null,
  1107. PhotoPath};
  1108. if ((parentGenderRowByFK_Client_Gender != null)) {
  1109. columnValuesArray[8] = parentGenderRowByFK_Client_Gender[0];
  1110. }
  1111. rowClientRow.ItemArray = columnValuesArray;
  1112. this.Rows.Add(rowClientRow);
  1113. return rowClientRow;
  1114. }
  1115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1117. public ClientRow FindByID(int ID) {
  1118. return ((ClientRow)(this.Rows.Find(new object[] {
  1119. ID})));
  1120. }
  1121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1123. public override global::System.Data.DataTable Clone() {
  1124. ClientDataTable cln = ((ClientDataTable)(base.Clone()));
  1125. cln.InitVars();
  1126. return cln;
  1127. }
  1128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1130. protected override global::System.Data.DataTable CreateInstance() {
  1131. return new ClientDataTable();
  1132. }
  1133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1135. internal void InitVars() {
  1136. this.columnID = base.Columns["ID"];
  1137. this.columnLastName = base.Columns["LastName"];
  1138. this.columnFirstName = base.Columns["FirstName"];
  1139. this.columnPatronymic = base.Columns["Patronymic"];
  1140. this.columnBirthday = base.Columns["Birthday"];
  1141. this.columnRegistrationDate = base.Columns["RegistrationDate"];
  1142. this.columnEmail = base.Columns["Email"];
  1143. this.columnPhone = base.Columns["Phone"];
  1144. this.columnGenderCode = base.Columns["GenderCode"];
  1145. this.columnPhotoPath = base.Columns["PhotoPath"];
  1146. }
  1147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1149. private void InitClass() {
  1150. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1151. base.Columns.Add(this.columnID);
  1152. this.columnLastName = new global::System.Data.DataColumn("LastName", typeof(string), null, global::System.Data.MappingType.Element);
  1153. base.Columns.Add(this.columnLastName);
  1154. this.columnFirstName = new global::System.Data.DataColumn("FirstName", typeof(string), null, global::System.Data.MappingType.Element);
  1155. base.Columns.Add(this.columnFirstName);
  1156. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  1157. base.Columns.Add(this.columnPatronymic);
  1158. this.columnBirthday = new global::System.Data.DataColumn("Birthday", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1159. base.Columns.Add(this.columnBirthday);
  1160. this.columnRegistrationDate = new global::System.Data.DataColumn("RegistrationDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1161. base.Columns.Add(this.columnRegistrationDate);
  1162. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1163. base.Columns.Add(this.columnEmail);
  1164. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1165. base.Columns.Add(this.columnPhone);
  1166. this.columnGenderCode = new global::System.Data.DataColumn("GenderCode", typeof(string), null, global::System.Data.MappingType.Element);
  1167. base.Columns.Add(this.columnGenderCode);
  1168. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  1169. base.Columns.Add(this.columnPhotoPath);
  1170. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1171. this.columnID}, true));
  1172. this.columnID.AutoIncrement = true;
  1173. this.columnID.AutoIncrementSeed = -1;
  1174. this.columnID.AutoIncrementStep = -1;
  1175. this.columnID.AllowDBNull = false;
  1176. this.columnID.ReadOnly = true;
  1177. this.columnID.Unique = true;
  1178. this.columnLastName.AllowDBNull = false;
  1179. this.columnLastName.MaxLength = 50;
  1180. this.columnFirstName.AllowDBNull = false;
  1181. this.columnFirstName.MaxLength = 50;
  1182. this.columnPatronymic.MaxLength = 50;
  1183. this.columnRegistrationDate.AllowDBNull = false;
  1184. this.columnEmail.MaxLength = 255;
  1185. this.columnPhone.AllowDBNull = false;
  1186. this.columnPhone.MaxLength = 20;
  1187. this.columnGenderCode.AllowDBNull = false;
  1188. this.columnGenderCode.MaxLength = 1;
  1189. this.columnPhotoPath.MaxLength = 1000;
  1190. }
  1191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1193. public ClientRow NewClientRow() {
  1194. return ((ClientRow)(this.NewRow()));
  1195. }
  1196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1198. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1199. return new ClientRow(builder);
  1200. }
  1201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1203. protected override global::System.Type GetRowType() {
  1204. return typeof(ClientRow);
  1205. }
  1206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1208. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1209. base.OnRowChanged(e);
  1210. if ((this.ClientRowChanged != null)) {
  1211. this.ClientRowChanged(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1212. }
  1213. }
  1214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1216. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1217. base.OnRowChanging(e);
  1218. if ((this.ClientRowChanging != null)) {
  1219. this.ClientRowChanging(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1220. }
  1221. }
  1222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1224. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1225. base.OnRowDeleted(e);
  1226. if ((this.ClientRowDeleted != null)) {
  1227. this.ClientRowDeleted(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1228. }
  1229. }
  1230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1232. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1233. base.OnRowDeleting(e);
  1234. if ((this.ClientRowDeleting != null)) {
  1235. this.ClientRowDeleting(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1236. }
  1237. }
  1238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1240. public void RemoveClientRow(ClientRow row) {
  1241. this.Rows.Remove(row);
  1242. }
  1243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1245. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1246. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1247. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1248. SaloonKrasoti02DataSet ds = new SaloonKrasoti02DataSet();
  1249. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1250. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1251. any1.MinOccurs = new decimal(0);
  1252. any1.MaxOccurs = decimal.MaxValue;
  1253. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1254. sequence.Items.Add(any1);
  1255. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1256. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1257. any2.MinOccurs = new decimal(1);
  1258. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1259. sequence.Items.Add(any2);
  1260. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1261. attribute1.Name = "namespace";
  1262. attribute1.FixedValue = ds.Namespace;
  1263. type.Attributes.Add(attribute1);
  1264. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1265. attribute2.Name = "tableTypeName";
  1266. attribute2.FixedValue = "ClientDataTable";
  1267. type.Attributes.Add(attribute2);
  1268. type.Particle = sequence;
  1269. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1270. if (xs.Contains(dsSchema.TargetNamespace)) {
  1271. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1272. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1273. try {
  1274. global::System.Xml.Schema.XmlSchema schema = null;
  1275. dsSchema.Write(s1);
  1276. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1277. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1278. s2.SetLength(0);
  1279. schema.Write(s2);
  1280. if ((s1.Length == s2.Length)) {
  1281. s1.Position = 0;
  1282. s2.Position = 0;
  1283. for (; ((s1.Position != s1.Length)
  1284. && (s1.ReadByte() == s2.ReadByte())); ) {
  1285. ;
  1286. }
  1287. if ((s1.Position == s1.Length)) {
  1288. return type;
  1289. }
  1290. }
  1291. }
  1292. }
  1293. finally {
  1294. if ((s1 != null)) {
  1295. s1.Close();
  1296. }
  1297. if ((s2 != null)) {
  1298. s2.Close();
  1299. }
  1300. }
  1301. }
  1302. xs.Add(dsSchema);
  1303. return type;
  1304. }
  1305. }
  1306. /// <summary>
  1307. ///Represents the strongly named DataTable class.
  1308. ///</summary>
  1309. [global::System.Serializable()]
  1310. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1311. public partial class ClientServiceDataTable : global::System.Data.TypedTableBase<ClientServiceRow> {
  1312. private global::System.Data.DataColumn columnID;
  1313. private global::System.Data.DataColumn columnClientID;
  1314. private global::System.Data.DataColumn columnServiceID;
  1315. private global::System.Data.DataColumn columnStartTime;
  1316. private global::System.Data.DataColumn columnComment;
  1317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1319. public ClientServiceDataTable() {
  1320. this.TableName = "ClientService";
  1321. this.BeginInit();
  1322. this.InitClass();
  1323. this.EndInit();
  1324. }
  1325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1327. internal ClientServiceDataTable(global::System.Data.DataTable table) {
  1328. this.TableName = table.TableName;
  1329. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1330. this.CaseSensitive = table.CaseSensitive;
  1331. }
  1332. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1333. this.Locale = table.Locale;
  1334. }
  1335. if ((table.Namespace != table.DataSet.Namespace)) {
  1336. this.Namespace = table.Namespace;
  1337. }
  1338. this.Prefix = table.Prefix;
  1339. this.MinimumCapacity = table.MinimumCapacity;
  1340. }
  1341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1343. protected ClientServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1344. base(info, context) {
  1345. this.InitVars();
  1346. }
  1347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1349. public global::System.Data.DataColumn IDColumn {
  1350. get {
  1351. return this.columnID;
  1352. }
  1353. }
  1354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1356. public global::System.Data.DataColumn ClientIDColumn {
  1357. get {
  1358. return this.columnClientID;
  1359. }
  1360. }
  1361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1363. public global::System.Data.DataColumn ServiceIDColumn {
  1364. get {
  1365. return this.columnServiceID;
  1366. }
  1367. }
  1368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1370. public global::System.Data.DataColumn StartTimeColumn {
  1371. get {
  1372. return this.columnStartTime;
  1373. }
  1374. }
  1375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1377. public global::System.Data.DataColumn CommentColumn {
  1378. get {
  1379. return this.columnComment;
  1380. }
  1381. }
  1382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1384. [global::System.ComponentModel.Browsable(false)]
  1385. public int Count {
  1386. get {
  1387. return this.Rows.Count;
  1388. }
  1389. }
  1390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1392. public ClientServiceRow this[int index] {
  1393. get {
  1394. return ((ClientServiceRow)(this.Rows[index]));
  1395. }
  1396. }
  1397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1398. public event ClientServiceRowChangeEventHandler ClientServiceRowChanging;
  1399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1400. public event ClientServiceRowChangeEventHandler ClientServiceRowChanged;
  1401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1402. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleting;
  1403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1404. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleted;
  1405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1407. public void AddClientServiceRow(ClientServiceRow row) {
  1408. this.Rows.Add(row);
  1409. }
  1410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1412. public ClientServiceRow AddClientServiceRow(ClientRow parentClientRowByFK_ClientService_Client, ServiceRow parentServiceRowByFK_ClientService_Service, System.DateTime StartTime, string Comment) {
  1413. ClientServiceRow rowClientServiceRow = ((ClientServiceRow)(this.NewRow()));
  1414. object[] columnValuesArray = new object[] {
  1415. null,
  1416. null,
  1417. null,
  1418. StartTime,
  1419. Comment};
  1420. if ((parentClientRowByFK_ClientService_Client != null)) {
  1421. columnValuesArray[1] = parentClientRowByFK_ClientService_Client[0];
  1422. }
  1423. if ((parentServiceRowByFK_ClientService_Service != null)) {
  1424. columnValuesArray[2] = parentServiceRowByFK_ClientService_Service[0];
  1425. }
  1426. rowClientServiceRow.ItemArray = columnValuesArray;
  1427. this.Rows.Add(rowClientServiceRow);
  1428. return rowClientServiceRow;
  1429. }
  1430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1432. public ClientServiceRow FindByID(int ID) {
  1433. return ((ClientServiceRow)(this.Rows.Find(new object[] {
  1434. ID})));
  1435. }
  1436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1438. public override global::System.Data.DataTable Clone() {
  1439. ClientServiceDataTable cln = ((ClientServiceDataTable)(base.Clone()));
  1440. cln.InitVars();
  1441. return cln;
  1442. }
  1443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1445. protected override global::System.Data.DataTable CreateInstance() {
  1446. return new ClientServiceDataTable();
  1447. }
  1448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1450. internal void InitVars() {
  1451. this.columnID = base.Columns["ID"];
  1452. this.columnClientID = base.Columns["ClientID"];
  1453. this.columnServiceID = base.Columns["ServiceID"];
  1454. this.columnStartTime = base.Columns["StartTime"];
  1455. this.columnComment = base.Columns["Comment"];
  1456. }
  1457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1459. private void InitClass() {
  1460. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1461. base.Columns.Add(this.columnID);
  1462. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  1463. base.Columns.Add(this.columnClientID);
  1464. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  1465. base.Columns.Add(this.columnServiceID);
  1466. this.columnStartTime = new global::System.Data.DataColumn("StartTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1467. base.Columns.Add(this.columnStartTime);
  1468. this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element);
  1469. base.Columns.Add(this.columnComment);
  1470. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1471. this.columnID}, true));
  1472. this.columnID.AutoIncrement = true;
  1473. this.columnID.AutoIncrementSeed = -1;
  1474. this.columnID.AutoIncrementStep = -1;
  1475. this.columnID.AllowDBNull = false;
  1476. this.columnID.ReadOnly = true;
  1477. this.columnID.Unique = true;
  1478. this.columnClientID.AllowDBNull = false;
  1479. this.columnServiceID.AllowDBNull = false;
  1480. this.columnStartTime.AllowDBNull = false;
  1481. this.columnComment.MaxLength = 2147483647;
  1482. }
  1483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1485. public ClientServiceRow NewClientServiceRow() {
  1486. return ((ClientServiceRow)(this.NewRow()));
  1487. }
  1488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1490. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1491. return new ClientServiceRow(builder);
  1492. }
  1493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1495. protected override global::System.Type GetRowType() {
  1496. return typeof(ClientServiceRow);
  1497. }
  1498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1500. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1501. base.OnRowChanged(e);
  1502. if ((this.ClientServiceRowChanged != null)) {
  1503. this.ClientServiceRowChanged(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1504. }
  1505. }
  1506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1508. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1509. base.OnRowChanging(e);
  1510. if ((this.ClientServiceRowChanging != null)) {
  1511. this.ClientServiceRowChanging(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1512. }
  1513. }
  1514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1516. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1517. base.OnRowDeleted(e);
  1518. if ((this.ClientServiceRowDeleted != null)) {
  1519. this.ClientServiceRowDeleted(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1520. }
  1521. }
  1522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1524. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1525. base.OnRowDeleting(e);
  1526. if ((this.ClientServiceRowDeleting != null)) {
  1527. this.ClientServiceRowDeleting(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1528. }
  1529. }
  1530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1532. public void RemoveClientServiceRow(ClientServiceRow row) {
  1533. this.Rows.Remove(row);
  1534. }
  1535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1537. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1538. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1539. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1540. SaloonKrasoti02DataSet ds = new SaloonKrasoti02DataSet();
  1541. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1542. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1543. any1.MinOccurs = new decimal(0);
  1544. any1.MaxOccurs = decimal.MaxValue;
  1545. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1546. sequence.Items.Add(any1);
  1547. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1548. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1549. any2.MinOccurs = new decimal(1);
  1550. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1551. sequence.Items.Add(any2);
  1552. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1553. attribute1.Name = "namespace";
  1554. attribute1.FixedValue = ds.Namespace;
  1555. type.Attributes.Add(attribute1);
  1556. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1557. attribute2.Name = "tableTypeName";
  1558. attribute2.FixedValue = "ClientServiceDataTable";
  1559. type.Attributes.Add(attribute2);
  1560. type.Particle = sequence;
  1561. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1562. if (xs.Contains(dsSchema.TargetNamespace)) {
  1563. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1564. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1565. try {
  1566. global::System.Xml.Schema.XmlSchema schema = null;
  1567. dsSchema.Write(s1);
  1568. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1569. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1570. s2.SetLength(0);
  1571. schema.Write(s2);
  1572. if ((s1.Length == s2.Length)) {
  1573. s1.Position = 0;
  1574. s2.Position = 0;
  1575. for (; ((s1.Position != s1.Length)
  1576. && (s1.ReadByte() == s2.ReadByte())); ) {
  1577. ;
  1578. }
  1579. if ((s1.Position == s1.Length)) {
  1580. return type;
  1581. }
  1582. }
  1583. }
  1584. }
  1585. finally {
  1586. if ((s1 != null)) {
  1587. s1.Close();
  1588. }
  1589. if ((s2 != null)) {
  1590. s2.Close();
  1591. }
  1592. }
  1593. }
  1594. xs.Add(dsSchema);
  1595. return type;
  1596. }
  1597. }
  1598. /// <summary>
  1599. ///Represents the strongly named DataTable class.
  1600. ///</summary>
  1601. [global::System.Serializable()]
  1602. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1603. public partial class DocumentByServiceDataTable : global::System.Data.TypedTableBase<DocumentByServiceRow> {
  1604. private global::System.Data.DataColumn columnID;
  1605. private global::System.Data.DataColumn columnClientServiceID;
  1606. private global::System.Data.DataColumn columnDocumentPath;
  1607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1609. public DocumentByServiceDataTable() {
  1610. this.TableName = "DocumentByService";
  1611. this.BeginInit();
  1612. this.InitClass();
  1613. this.EndInit();
  1614. }
  1615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1617. internal DocumentByServiceDataTable(global::System.Data.DataTable table) {
  1618. this.TableName = table.TableName;
  1619. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1620. this.CaseSensitive = table.CaseSensitive;
  1621. }
  1622. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1623. this.Locale = table.Locale;
  1624. }
  1625. if ((table.Namespace != table.DataSet.Namespace)) {
  1626. this.Namespace = table.Namespace;
  1627. }
  1628. this.Prefix = table.Prefix;
  1629. this.MinimumCapacity = table.MinimumCapacity;
  1630. }
  1631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1633. protected DocumentByServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1634. base(info, context) {
  1635. this.InitVars();
  1636. }
  1637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1639. public global::System.Data.DataColumn IDColumn {
  1640. get {
  1641. return this.columnID;
  1642. }
  1643. }
  1644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1646. public global::System.Data.DataColumn ClientServiceIDColumn {
  1647. get {
  1648. return this.columnClientServiceID;
  1649. }
  1650. }
  1651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1653. public global::System.Data.DataColumn DocumentPathColumn {
  1654. get {
  1655. return this.columnDocumentPath;
  1656. }
  1657. }
  1658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1660. [global::System.ComponentModel.Browsable(false)]
  1661. public int Count {
  1662. get {
  1663. return this.Rows.Count;
  1664. }
  1665. }
  1666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1668. public DocumentByServiceRow this[int index] {
  1669. get {
  1670. return ((DocumentByServiceRow)(this.Rows[index]));
  1671. }
  1672. }
  1673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1674. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanging;
  1675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1676. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanged;
  1677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1678. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleting;
  1679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1680. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleted;
  1681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1683. public void AddDocumentByServiceRow(DocumentByServiceRow row) {
  1684. this.Rows.Add(row);
  1685. }
  1686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1688. public DocumentByServiceRow AddDocumentByServiceRow(ClientServiceRow parentClientServiceRowByFK_DocumentByService_ClientService, string DocumentPath) {
  1689. DocumentByServiceRow rowDocumentByServiceRow = ((DocumentByServiceRow)(this.NewRow()));
  1690. object[] columnValuesArray = new object[] {
  1691. null,
  1692. null,
  1693. DocumentPath};
  1694. if ((parentClientServiceRowByFK_DocumentByService_ClientService != null)) {
  1695. columnValuesArray[1] = parentClientServiceRowByFK_DocumentByService_ClientService[0];
  1696. }
  1697. rowDocumentByServiceRow.ItemArray = columnValuesArray;
  1698. this.Rows.Add(rowDocumentByServiceRow);
  1699. return rowDocumentByServiceRow;
  1700. }
  1701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1703. public DocumentByServiceRow FindByID(int ID) {
  1704. return ((DocumentByServiceRow)(this.Rows.Find(new object[] {
  1705. ID})));
  1706. }
  1707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1709. public override global::System.Data.DataTable Clone() {
  1710. DocumentByServiceDataTable cln = ((DocumentByServiceDataTable)(base.Clone()));
  1711. cln.InitVars();
  1712. return cln;
  1713. }
  1714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1716. protected override global::System.Data.DataTable CreateInstance() {
  1717. return new DocumentByServiceDataTable();
  1718. }
  1719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1721. internal void InitVars() {
  1722. this.columnID = base.Columns["ID"];
  1723. this.columnClientServiceID = base.Columns["ClientServiceID"];
  1724. this.columnDocumentPath = base.Columns["DocumentPath"];
  1725. }
  1726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1728. private void InitClass() {
  1729. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1730. base.Columns.Add(this.columnID);
  1731. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  1732. base.Columns.Add(this.columnClientServiceID);
  1733. this.columnDocumentPath = new global::System.Data.DataColumn("DocumentPath", typeof(string), null, global::System.Data.MappingType.Element);
  1734. base.Columns.Add(this.columnDocumentPath);
  1735. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1736. this.columnID}, true));
  1737. this.columnID.AutoIncrement = true;
  1738. this.columnID.AutoIncrementSeed = -1;
  1739. this.columnID.AutoIncrementStep = -1;
  1740. this.columnID.AllowDBNull = false;
  1741. this.columnID.ReadOnly = true;
  1742. this.columnID.Unique = true;
  1743. this.columnClientServiceID.AllowDBNull = false;
  1744. this.columnDocumentPath.AllowDBNull = false;
  1745. this.columnDocumentPath.MaxLength = 1000;
  1746. }
  1747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1749. public DocumentByServiceRow NewDocumentByServiceRow() {
  1750. return ((DocumentByServiceRow)(this.NewRow()));
  1751. }
  1752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1754. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1755. return new DocumentByServiceRow(builder);
  1756. }
  1757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1759. protected override global::System.Type GetRowType() {
  1760. return typeof(DocumentByServiceRow);
  1761. }
  1762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1764. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1765. base.OnRowChanged(e);
  1766. if ((this.DocumentByServiceRowChanged != null)) {
  1767. this.DocumentByServiceRowChanged(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1768. }
  1769. }
  1770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1772. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1773. base.OnRowChanging(e);
  1774. if ((this.DocumentByServiceRowChanging != null)) {
  1775. this.DocumentByServiceRowChanging(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1776. }
  1777. }
  1778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1780. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1781. base.OnRowDeleted(e);
  1782. if ((this.DocumentByServiceRowDeleted != null)) {
  1783. this.DocumentByServiceRowDeleted(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1784. }
  1785. }
  1786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1788. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1789. base.OnRowDeleting(e);
  1790. if ((this.DocumentByServiceRowDeleting != null)) {
  1791. this.DocumentByServiceRowDeleting(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1792. }
  1793. }
  1794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1796. public void RemoveDocumentByServiceRow(DocumentByServiceRow row) {
  1797. this.Rows.Remove(row);
  1798. }
  1799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1801. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1802. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1803. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1804. SaloonKrasoti02DataSet ds = new SaloonKrasoti02DataSet();
  1805. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1806. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1807. any1.MinOccurs = new decimal(0);
  1808. any1.MaxOccurs = decimal.MaxValue;
  1809. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1810. sequence.Items.Add(any1);
  1811. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1812. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1813. any2.MinOccurs = new decimal(1);
  1814. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1815. sequence.Items.Add(any2);
  1816. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1817. attribute1.Name = "namespace";
  1818. attribute1.FixedValue = ds.Namespace;
  1819. type.Attributes.Add(attribute1);
  1820. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1821. attribute2.Name = "tableTypeName";
  1822. attribute2.FixedValue = "DocumentByServiceDataTable";
  1823. type.Attributes.Add(attribute2);
  1824. type.Particle = sequence;
  1825. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1826. if (xs.Contains(dsSchema.TargetNamespace)) {
  1827. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1828. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1829. try {
  1830. global::System.Xml.Schema.XmlSchema schema = null;
  1831. dsSchema.Write(s1);
  1832. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1833. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1834. s2.SetLength(0);
  1835. schema.Write(s2);
  1836. if ((s1.Length == s2.Length)) {
  1837. s1.Position = 0;
  1838. s2.Position = 0;
  1839. for (; ((s1.Position != s1.Length)
  1840. && (s1.ReadByte() == s2.ReadByte())); ) {
  1841. ;
  1842. }
  1843. if ((s1.Position == s1.Length)) {
  1844. return type;
  1845. }
  1846. }
  1847. }
  1848. }
  1849. finally {
  1850. if ((s1 != null)) {
  1851. s1.Close();
  1852. }
  1853. if ((s2 != null)) {
  1854. s2.Close();
  1855. }
  1856. }
  1857. }
  1858. xs.Add(dsSchema);
  1859. return type;
  1860. }
  1861. }
  1862. /// <summary>
  1863. ///Represents the strongly named DataTable class.
  1864. ///</summary>
  1865. [global::System.Serializable()]
  1866. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1867. public partial class GenderDataTable : global::System.Data.TypedTableBase<GenderRow> {
  1868. private global::System.Data.DataColumn columnCode;
  1869. private global::System.Data.DataColumn columnName;
  1870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1872. public GenderDataTable() {
  1873. this.TableName = "Gender";
  1874. this.BeginInit();
  1875. this.InitClass();
  1876. this.EndInit();
  1877. }
  1878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1880. internal GenderDataTable(global::System.Data.DataTable table) {
  1881. this.TableName = table.TableName;
  1882. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1883. this.CaseSensitive = table.CaseSensitive;
  1884. }
  1885. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1886. this.Locale = table.Locale;
  1887. }
  1888. if ((table.Namespace != table.DataSet.Namespace)) {
  1889. this.Namespace = table.Namespace;
  1890. }
  1891. this.Prefix = table.Prefix;
  1892. this.MinimumCapacity = table.MinimumCapacity;
  1893. }
  1894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1896. protected GenderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1897. base(info, context) {
  1898. this.InitVars();
  1899. }
  1900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1902. public global::System.Data.DataColumn CodeColumn {
  1903. get {
  1904. return this.columnCode;
  1905. }
  1906. }
  1907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1909. public global::System.Data.DataColumn NameColumn {
  1910. get {
  1911. return this.columnName;
  1912. }
  1913. }
  1914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1916. [global::System.ComponentModel.Browsable(false)]
  1917. public int Count {
  1918. get {
  1919. return this.Rows.Count;
  1920. }
  1921. }
  1922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1924. public GenderRow this[int index] {
  1925. get {
  1926. return ((GenderRow)(this.Rows[index]));
  1927. }
  1928. }
  1929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1930. public event GenderRowChangeEventHandler GenderRowChanging;
  1931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1932. public event GenderRowChangeEventHandler GenderRowChanged;
  1933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1934. public event GenderRowChangeEventHandler GenderRowDeleting;
  1935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1936. public event GenderRowChangeEventHandler GenderRowDeleted;
  1937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1939. public void AddGenderRow(GenderRow row) {
  1940. this.Rows.Add(row);
  1941. }
  1942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1944. public GenderRow AddGenderRow(string Code, string Name) {
  1945. GenderRow rowGenderRow = ((GenderRow)(this.NewRow()));
  1946. object[] columnValuesArray = new object[] {
  1947. Code,
  1948. Name};
  1949. rowGenderRow.ItemArray = columnValuesArray;
  1950. this.Rows.Add(rowGenderRow);
  1951. return rowGenderRow;
  1952. }
  1953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1955. public GenderRow FindByCode(string Code) {
  1956. return ((GenderRow)(this.Rows.Find(new object[] {
  1957. Code})));
  1958. }
  1959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1961. public override global::System.Data.DataTable Clone() {
  1962. GenderDataTable cln = ((GenderDataTable)(base.Clone()));
  1963. cln.InitVars();
  1964. return cln;
  1965. }
  1966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1968. protected override global::System.Data.DataTable CreateInstance() {
  1969. return new GenderDataTable();
  1970. }
  1971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1973. internal void InitVars() {
  1974. this.columnCode = base.Columns["Code"];
  1975. this.columnName = base.Columns["Name"];
  1976. }
  1977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1979. private void InitClass() {
  1980. this.columnCode = new global::System.Data.DataColumn("Code", typeof(string), null, global::System.Data.MappingType.Element);
  1981. base.Columns.Add(this.columnCode);
  1982. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1983. base.Columns.Add(this.columnName);
  1984. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1985. this.columnCode}, true));
  1986. this.columnCode.AllowDBNull = false;
  1987. this.columnCode.Unique = true;
  1988. this.columnCode.MaxLength = 1;
  1989. this.columnName.MaxLength = 10;
  1990. }
  1991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1993. public GenderRow NewGenderRow() {
  1994. return ((GenderRow)(this.NewRow()));
  1995. }
  1996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1998. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1999. return new GenderRow(builder);
  2000. }
  2001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2003. protected override global::System.Type GetRowType() {
  2004. return typeof(GenderRow);
  2005. }
  2006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2008. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2009. base.OnRowChanged(e);
  2010. if ((this.GenderRowChanged != null)) {
  2011. this.GenderRowChanged(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2012. }
  2013. }
  2014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2016. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2017. base.OnRowChanging(e);
  2018. if ((this.GenderRowChanging != null)) {
  2019. this.GenderRowChanging(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2020. }
  2021. }
  2022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2024. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2025. base.OnRowDeleted(e);
  2026. if ((this.GenderRowDeleted != null)) {
  2027. this.GenderRowDeleted(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2028. }
  2029. }
  2030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2032. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2033. base.OnRowDeleting(e);
  2034. if ((this.GenderRowDeleting != null)) {
  2035. this.GenderRowDeleting(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2036. }
  2037. }
  2038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2040. public void RemoveGenderRow(GenderRow row) {
  2041. this.Rows.Remove(row);
  2042. }
  2043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2045. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2046. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2047. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2048. SaloonKrasoti02DataSet ds = new SaloonKrasoti02DataSet();
  2049. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2050. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2051. any1.MinOccurs = new decimal(0);
  2052. any1.MaxOccurs = decimal.MaxValue;
  2053. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2054. sequence.Items.Add(any1);
  2055. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2056. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2057. any2.MinOccurs = new decimal(1);
  2058. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2059. sequence.Items.Add(any2);
  2060. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2061. attribute1.Name = "namespace";
  2062. attribute1.FixedValue = ds.Namespace;
  2063. type.Attributes.Add(attribute1);
  2064. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2065. attribute2.Name = "tableTypeName";
  2066. attribute2.FixedValue = "GenderDataTable";
  2067. type.Attributes.Add(attribute2);
  2068. type.Particle = sequence;
  2069. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2070. if (xs.Contains(dsSchema.TargetNamespace)) {
  2071. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2072. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2073. try {
  2074. global::System.Xml.Schema.XmlSchema schema = null;
  2075. dsSchema.Write(s1);
  2076. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2077. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2078. s2.SetLength(0);
  2079. schema.Write(s2);
  2080. if ((s1.Length == s2.Length)) {
  2081. s1.Position = 0;
  2082. s2.Position = 0;
  2083. for (; ((s1.Position != s1.Length)
  2084. && (s1.ReadByte() == s2.ReadByte())); ) {
  2085. ;
  2086. }
  2087. if ((s1.Position == s1.Length)) {
  2088. return type;
  2089. }
  2090. }
  2091. }
  2092. }
  2093. finally {
  2094. if ((s1 != null)) {
  2095. s1.Close();
  2096. }
  2097. if ((s2 != null)) {
  2098. s2.Close();
  2099. }
  2100. }
  2101. }
  2102. xs.Add(dsSchema);
  2103. return type;
  2104. }
  2105. }
  2106. /// <summary>
  2107. ///Represents the strongly named DataTable class.
  2108. ///</summary>
  2109. [global::System.Serializable()]
  2110. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2111. public partial class ManufacturerDataTable : global::System.Data.TypedTableBase<ManufacturerRow> {
  2112. private global::System.Data.DataColumn columnID;
  2113. private global::System.Data.DataColumn columnName;
  2114. private global::System.Data.DataColumn columnStartDate;
  2115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2117. public ManufacturerDataTable() {
  2118. this.TableName = "Manufacturer";
  2119. this.BeginInit();
  2120. this.InitClass();
  2121. this.EndInit();
  2122. }
  2123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2125. internal ManufacturerDataTable(global::System.Data.DataTable table) {
  2126. this.TableName = table.TableName;
  2127. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2128. this.CaseSensitive = table.CaseSensitive;
  2129. }
  2130. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2131. this.Locale = table.Locale;
  2132. }
  2133. if ((table.Namespace != table.DataSet.Namespace)) {
  2134. this.Namespace = table.Namespace;
  2135. }
  2136. this.Prefix = table.Prefix;
  2137. this.MinimumCapacity = table.MinimumCapacity;
  2138. }
  2139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2141. protected ManufacturerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2142. base(info, context) {
  2143. this.InitVars();
  2144. }
  2145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2147. public global::System.Data.DataColumn IDColumn {
  2148. get {
  2149. return this.columnID;
  2150. }
  2151. }
  2152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2154. public global::System.Data.DataColumn NameColumn {
  2155. get {
  2156. return this.columnName;
  2157. }
  2158. }
  2159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2161. public global::System.Data.DataColumn StartDateColumn {
  2162. get {
  2163. return this.columnStartDate;
  2164. }
  2165. }
  2166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2168. [global::System.ComponentModel.Browsable(false)]
  2169. public int Count {
  2170. get {
  2171. return this.Rows.Count;
  2172. }
  2173. }
  2174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2176. public ManufacturerRow this[int index] {
  2177. get {
  2178. return ((ManufacturerRow)(this.Rows[index]));
  2179. }
  2180. }
  2181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2182. public event ManufacturerRowChangeEventHandler ManufacturerRowChanging;
  2183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2184. public event ManufacturerRowChangeEventHandler ManufacturerRowChanged;
  2185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2186. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleting;
  2187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2188. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleted;
  2189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2191. public void AddManufacturerRow(ManufacturerRow row) {
  2192. this.Rows.Add(row);
  2193. }
  2194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2196. public ManufacturerRow AddManufacturerRow(string Name, System.DateTime StartDate) {
  2197. ManufacturerRow rowManufacturerRow = ((ManufacturerRow)(this.NewRow()));
  2198. object[] columnValuesArray = new object[] {
  2199. null,
  2200. Name,
  2201. StartDate};
  2202. rowManufacturerRow.ItemArray = columnValuesArray;
  2203. this.Rows.Add(rowManufacturerRow);
  2204. return rowManufacturerRow;
  2205. }
  2206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2208. public ManufacturerRow FindByID(int ID) {
  2209. return ((ManufacturerRow)(this.Rows.Find(new object[] {
  2210. ID})));
  2211. }
  2212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2214. public override global::System.Data.DataTable Clone() {
  2215. ManufacturerDataTable cln = ((ManufacturerDataTable)(base.Clone()));
  2216. cln.InitVars();
  2217. return cln;
  2218. }
  2219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2221. protected override global::System.Data.DataTable CreateInstance() {
  2222. return new ManufacturerDataTable();
  2223. }
  2224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2226. internal void InitVars() {
  2227. this.columnID = base.Columns["ID"];
  2228. this.columnName = base.Columns["Name"];
  2229. this.columnStartDate = base.Columns["StartDate"];
  2230. }
  2231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2233. private void InitClass() {
  2234. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2235. base.Columns.Add(this.columnID);
  2236. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2237. base.Columns.Add(this.columnName);
  2238. this.columnStartDate = new global::System.Data.DataColumn("StartDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2239. base.Columns.Add(this.columnStartDate);
  2240. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2241. this.columnID}, true));
  2242. this.columnID.AutoIncrement = true;
  2243. this.columnID.AutoIncrementSeed = -1;
  2244. this.columnID.AutoIncrementStep = -1;
  2245. this.columnID.AllowDBNull = false;
  2246. this.columnID.ReadOnly = true;
  2247. this.columnID.Unique = true;
  2248. this.columnName.AllowDBNull = false;
  2249. this.columnName.MaxLength = 100;
  2250. }
  2251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2253. public ManufacturerRow NewManufacturerRow() {
  2254. return ((ManufacturerRow)(this.NewRow()));
  2255. }
  2256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2258. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2259. return new ManufacturerRow(builder);
  2260. }
  2261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2263. protected override global::System.Type GetRowType() {
  2264. return typeof(ManufacturerRow);
  2265. }
  2266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2268. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2269. base.OnRowChanged(e);
  2270. if ((this.ManufacturerRowChanged != null)) {
  2271. this.ManufacturerRowChanged(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2272. }
  2273. }
  2274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2276. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2277. base.OnRowChanging(e);
  2278. if ((this.ManufacturerRowChanging != null)) {
  2279. this.ManufacturerRowChanging(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2280. }
  2281. }
  2282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2284. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2285. base.OnRowDeleted(e);
  2286. if ((this.ManufacturerRowDeleted != null)) {
  2287. this.ManufacturerRowDeleted(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2288. }
  2289. }
  2290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2292. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2293. base.OnRowDeleting(e);
  2294. if ((this.ManufacturerRowDeleting != null)) {
  2295. this.ManufacturerRowDeleting(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2296. }
  2297. }
  2298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2300. public void RemoveManufacturerRow(ManufacturerRow row) {
  2301. this.Rows.Remove(row);
  2302. }
  2303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2305. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2306. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2307. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2308. SaloonKrasoti02DataSet ds = new SaloonKrasoti02DataSet();
  2309. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2310. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2311. any1.MinOccurs = new decimal(0);
  2312. any1.MaxOccurs = decimal.MaxValue;
  2313. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2314. sequence.Items.Add(any1);
  2315. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2316. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2317. any2.MinOccurs = new decimal(1);
  2318. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2319. sequence.Items.Add(any2);
  2320. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2321. attribute1.Name = "namespace";
  2322. attribute1.FixedValue = ds.Namespace;
  2323. type.Attributes.Add(attribute1);
  2324. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2325. attribute2.Name = "tableTypeName";
  2326. attribute2.FixedValue = "ManufacturerDataTable";
  2327. type.Attributes.Add(attribute2);
  2328. type.Particle = sequence;
  2329. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2330. if (xs.Contains(dsSchema.TargetNamespace)) {
  2331. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2332. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2333. try {
  2334. global::System.Xml.Schema.XmlSchema schema = null;
  2335. dsSchema.Write(s1);
  2336. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2337. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2338. s2.SetLength(0);
  2339. schema.Write(s2);
  2340. if ((s1.Length == s2.Length)) {
  2341. s1.Position = 0;
  2342. s2.Position = 0;
  2343. for (; ((s1.Position != s1.Length)
  2344. && (s1.ReadByte() == s2.ReadByte())); ) {
  2345. ;
  2346. }
  2347. if ((s1.Position == s1.Length)) {
  2348. return type;
  2349. }
  2350. }
  2351. }
  2352. }
  2353. finally {
  2354. if ((s1 != null)) {
  2355. s1.Close();
  2356. }
  2357. if ((s2 != null)) {
  2358. s2.Close();
  2359. }
  2360. }
  2361. }
  2362. xs.Add(dsSchema);
  2363. return type;
  2364. }
  2365. }
  2366. /// <summary>
  2367. ///Represents the strongly named DataTable class.
  2368. ///</summary>
  2369. [global::System.Serializable()]
  2370. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2371. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  2372. private global::System.Data.DataColumn columnID;
  2373. private global::System.Data.DataColumn columnTitle;
  2374. private global::System.Data.DataColumn columnCost;
  2375. private global::System.Data.DataColumn columnDescription;
  2376. private global::System.Data.DataColumn columnMainImagePath;
  2377. private global::System.Data.DataColumn columnIsActive;
  2378. private global::System.Data.DataColumn columnManufacturerID;
  2379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2381. public ProductDataTable() {
  2382. this.TableName = "Product";
  2383. this.BeginInit();
  2384. this.InitClass();
  2385. this.EndInit();
  2386. }
  2387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2389. internal ProductDataTable(global::System.Data.DataTable table) {
  2390. this.TableName = table.TableName;
  2391. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2392. this.CaseSensitive = table.CaseSensitive;
  2393. }
  2394. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2395. this.Locale = table.Locale;
  2396. }
  2397. if ((table.Namespace != table.DataSet.Namespace)) {
  2398. this.Namespace = table.Namespace;
  2399. }
  2400. this.Prefix = table.Prefix;
  2401. this.MinimumCapacity = table.MinimumCapacity;
  2402. }
  2403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2405. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2406. base(info, context) {
  2407. this.InitVars();
  2408. }
  2409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2411. public global::System.Data.DataColumn IDColumn {
  2412. get {
  2413. return this.columnID;
  2414. }
  2415. }
  2416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2418. public global::System.Data.DataColumn TitleColumn {
  2419. get {
  2420. return this.columnTitle;
  2421. }
  2422. }
  2423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2425. public global::System.Data.DataColumn CostColumn {
  2426. get {
  2427. return this.columnCost;
  2428. }
  2429. }
  2430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2432. public global::System.Data.DataColumn DescriptionColumn {
  2433. get {
  2434. return this.columnDescription;
  2435. }
  2436. }
  2437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2439. public global::System.Data.DataColumn MainImagePathColumn {
  2440. get {
  2441. return this.columnMainImagePath;
  2442. }
  2443. }
  2444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2446. public global::System.Data.DataColumn IsActiveColumn {
  2447. get {
  2448. return this.columnIsActive;
  2449. }
  2450. }
  2451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2453. public global::System.Data.DataColumn ManufacturerIDColumn {
  2454. get {
  2455. return this.columnManufacturerID;
  2456. }
  2457. }
  2458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2460. [global::System.ComponentModel.Browsable(false)]
  2461. public int Count {
  2462. get {
  2463. return this.Rows.Count;
  2464. }
  2465. }
  2466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2468. public ProductRow this[int index] {
  2469. get {
  2470. return ((ProductRow)(this.Rows[index]));
  2471. }
  2472. }
  2473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2474. public event ProductRowChangeEventHandler ProductRowChanging;
  2475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2476. public event ProductRowChangeEventHandler ProductRowChanged;
  2477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2478. public event ProductRowChangeEventHandler ProductRowDeleting;
  2479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2480. public event ProductRowChangeEventHandler ProductRowDeleted;
  2481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2483. public void AddProductRow(ProductRow row) {
  2484. this.Rows.Add(row);
  2485. }
  2486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2488. public ProductRow AddProductRow(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, ManufacturerRow parentManufacturerRowByFK_Product_Manufacturer) {
  2489. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  2490. object[] columnValuesArray = new object[] {
  2491. null,
  2492. Title,
  2493. Cost,
  2494. Description,
  2495. MainImagePath,
  2496. IsActive,
  2497. null};
  2498. if ((parentManufacturerRowByFK_Product_Manufacturer != null)) {
  2499. columnValuesArray[6] = parentManufacturerRowByFK_Product_Manufacturer[0];
  2500. }
  2501. rowProductRow.ItemArray = columnValuesArray;
  2502. this.Rows.Add(rowProductRow);
  2503. return rowProductRow;
  2504. }
  2505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2507. public ProductRow FindByID(int ID) {
  2508. return ((ProductRow)(this.Rows.Find(new object[] {
  2509. ID})));
  2510. }
  2511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2513. public override global::System.Data.DataTable Clone() {
  2514. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  2515. cln.InitVars();
  2516. return cln;
  2517. }
  2518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2520. protected override global::System.Data.DataTable CreateInstance() {
  2521. return new ProductDataTable();
  2522. }
  2523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2525. internal void InitVars() {
  2526. this.columnID = base.Columns["ID"];
  2527. this.columnTitle = base.Columns["Title"];
  2528. this.columnCost = base.Columns["Cost"];
  2529. this.columnDescription = base.Columns["Description"];
  2530. this.columnMainImagePath = base.Columns["MainImagePath"];
  2531. this.columnIsActive = base.Columns["IsActive"];
  2532. this.columnManufacturerID = base.Columns["ManufacturerID"];
  2533. }
  2534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2536. private void InitClass() {
  2537. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2538. base.Columns.Add(this.columnID);
  2539. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2540. base.Columns.Add(this.columnTitle);
  2541. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2542. base.Columns.Add(this.columnCost);
  2543. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  2544. base.Columns.Add(this.columnDescription);
  2545. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  2546. base.Columns.Add(this.columnMainImagePath);
  2547. this.columnIsActive = new global::System.Data.DataColumn("IsActive", typeof(bool), null, global::System.Data.MappingType.Element);
  2548. base.Columns.Add(this.columnIsActive);
  2549. this.columnManufacturerID = new global::System.Data.DataColumn("ManufacturerID", typeof(int), null, global::System.Data.MappingType.Element);
  2550. base.Columns.Add(this.columnManufacturerID);
  2551. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2552. this.columnID}, true));
  2553. this.columnID.AutoIncrement = true;
  2554. this.columnID.AutoIncrementSeed = -1;
  2555. this.columnID.AutoIncrementStep = -1;
  2556. this.columnID.AllowDBNull = false;
  2557. this.columnID.ReadOnly = true;
  2558. this.columnID.Unique = true;
  2559. this.columnTitle.AllowDBNull = false;
  2560. this.columnTitle.MaxLength = 100;
  2561. this.columnCost.AllowDBNull = false;
  2562. this.columnDescription.MaxLength = 2147483647;
  2563. this.columnMainImagePath.MaxLength = 1000;
  2564. this.columnIsActive.AllowDBNull = false;
  2565. }
  2566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2568. public ProductRow NewProductRow() {
  2569. return ((ProductRow)(this.NewRow()));
  2570. }
  2571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2573. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2574. return new ProductRow(builder);
  2575. }
  2576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2578. protected override global::System.Type GetRowType() {
  2579. return typeof(ProductRow);
  2580. }
  2581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2583. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2584. base.OnRowChanged(e);
  2585. if ((this.ProductRowChanged != null)) {
  2586. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2587. }
  2588. }
  2589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2591. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2592. base.OnRowChanging(e);
  2593. if ((this.ProductRowChanging != null)) {
  2594. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2595. }
  2596. }
  2597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2599. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2600. base.OnRowDeleted(e);
  2601. if ((this.ProductRowDeleted != null)) {
  2602. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2603. }
  2604. }
  2605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2607. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2608. base.OnRowDeleting(e);
  2609. if ((this.ProductRowDeleting != null)) {
  2610. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2611. }
  2612. }
  2613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2615. public void RemoveProductRow(ProductRow row) {
  2616. this.Rows.Remove(row);
  2617. }
  2618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2620. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2621. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2622. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2623. SaloonKrasoti02DataSet ds = new SaloonKrasoti02DataSet();
  2624. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2625. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2626. any1.MinOccurs = new decimal(0);
  2627. any1.MaxOccurs = decimal.MaxValue;
  2628. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2629. sequence.Items.Add(any1);
  2630. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2631. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2632. any2.MinOccurs = new decimal(1);
  2633. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2634. sequence.Items.Add(any2);
  2635. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2636. attribute1.Name = "namespace";
  2637. attribute1.FixedValue = ds.Namespace;
  2638. type.Attributes.Add(attribute1);
  2639. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2640. attribute2.Name = "tableTypeName";
  2641. attribute2.FixedValue = "ProductDataTable";
  2642. type.Attributes.Add(attribute2);
  2643. type.Particle = sequence;
  2644. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2645. if (xs.Contains(dsSchema.TargetNamespace)) {
  2646. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2647. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2648. try {
  2649. global::System.Xml.Schema.XmlSchema schema = null;
  2650. dsSchema.Write(s1);
  2651. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2652. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2653. s2.SetLength(0);
  2654. schema.Write(s2);
  2655. if ((s1.Length == s2.Length)) {
  2656. s1.Position = 0;
  2657. s2.Position = 0;
  2658. for (; ((s1.Position != s1.Length)
  2659. && (s1.ReadByte() == s2.ReadByte())); ) {
  2660. ;
  2661. }
  2662. if ((s1.Position == s1.Length)) {
  2663. return type;
  2664. }
  2665. }
  2666. }
  2667. }
  2668. finally {
  2669. if ((s1 != null)) {
  2670. s1.Close();
  2671. }
  2672. if ((s2 != null)) {
  2673. s2.Close();
  2674. }
  2675. }
  2676. }
  2677. xs.Add(dsSchema);
  2678. return type;
  2679. }
  2680. }
  2681. /// <summary>
  2682. ///Represents the strongly named DataTable class.
  2683. ///</summary>
  2684. [global::System.Serializable()]
  2685. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2686. public partial class ProductPhotoDataTable : global::System.Data.TypedTableBase<ProductPhotoRow> {
  2687. private global::System.Data.DataColumn columnID;
  2688. private global::System.Data.DataColumn columnProductID;
  2689. private global::System.Data.DataColumn columnPhotoPath;
  2690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2692. public ProductPhotoDataTable() {
  2693. this.TableName = "ProductPhoto";
  2694. this.BeginInit();
  2695. this.InitClass();
  2696. this.EndInit();
  2697. }
  2698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2700. internal ProductPhotoDataTable(global::System.Data.DataTable table) {
  2701. this.TableName = table.TableName;
  2702. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2703. this.CaseSensitive = table.CaseSensitive;
  2704. }
  2705. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2706. this.Locale = table.Locale;
  2707. }
  2708. if ((table.Namespace != table.DataSet.Namespace)) {
  2709. this.Namespace = table.Namespace;
  2710. }
  2711. this.Prefix = table.Prefix;
  2712. this.MinimumCapacity = table.MinimumCapacity;
  2713. }
  2714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2716. protected ProductPhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2717. base(info, context) {
  2718. this.InitVars();
  2719. }
  2720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2722. public global::System.Data.DataColumn IDColumn {
  2723. get {
  2724. return this.columnID;
  2725. }
  2726. }
  2727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2729. public global::System.Data.DataColumn ProductIDColumn {
  2730. get {
  2731. return this.columnProductID;
  2732. }
  2733. }
  2734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2736. public global::System.Data.DataColumn PhotoPathColumn {
  2737. get {
  2738. return this.columnPhotoPath;
  2739. }
  2740. }
  2741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2743. [global::System.ComponentModel.Browsable(false)]
  2744. public int Count {
  2745. get {
  2746. return this.Rows.Count;
  2747. }
  2748. }
  2749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2751. public ProductPhotoRow this[int index] {
  2752. get {
  2753. return ((ProductPhotoRow)(this.Rows[index]));
  2754. }
  2755. }
  2756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2757. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanging;
  2758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2759. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanged;
  2760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2761. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleting;
  2762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2763. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleted;
  2764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2766. public void AddProductPhotoRow(ProductPhotoRow row) {
  2767. this.Rows.Add(row);
  2768. }
  2769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2771. public ProductPhotoRow AddProductPhotoRow(ProductRow parentProductRowByFK_ProductPhoto_Product, string PhotoPath) {
  2772. ProductPhotoRow rowProductPhotoRow = ((ProductPhotoRow)(this.NewRow()));
  2773. object[] columnValuesArray = new object[] {
  2774. null,
  2775. null,
  2776. PhotoPath};
  2777. if ((parentProductRowByFK_ProductPhoto_Product != null)) {
  2778. columnValuesArray[1] = parentProductRowByFK_ProductPhoto_Product[0];
  2779. }
  2780. rowProductPhotoRow.ItemArray = columnValuesArray;
  2781. this.Rows.Add(rowProductPhotoRow);
  2782. return rowProductPhotoRow;
  2783. }
  2784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2786. public ProductPhotoRow FindByID(int ID) {
  2787. return ((ProductPhotoRow)(this.Rows.Find(new object[] {
  2788. ID})));
  2789. }
  2790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2792. public override global::System.Data.DataTable Clone() {
  2793. ProductPhotoDataTable cln = ((ProductPhotoDataTable)(base.Clone()));
  2794. cln.InitVars();
  2795. return cln;
  2796. }
  2797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2799. protected override global::System.Data.DataTable CreateInstance() {
  2800. return new ProductPhotoDataTable();
  2801. }
  2802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2804. internal void InitVars() {
  2805. this.columnID = base.Columns["ID"];
  2806. this.columnProductID = base.Columns["ProductID"];
  2807. this.columnPhotoPath = base.Columns["PhotoPath"];
  2808. }
  2809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2811. private void InitClass() {
  2812. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2813. base.Columns.Add(this.columnID);
  2814. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  2815. base.Columns.Add(this.columnProductID);
  2816. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  2817. base.Columns.Add(this.columnPhotoPath);
  2818. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2819. this.columnID}, true));
  2820. this.columnID.AutoIncrement = true;
  2821. this.columnID.AutoIncrementSeed = -1;
  2822. this.columnID.AutoIncrementStep = -1;
  2823. this.columnID.AllowDBNull = false;
  2824. this.columnID.ReadOnly = true;
  2825. this.columnID.Unique = true;
  2826. this.columnProductID.AllowDBNull = false;
  2827. this.columnPhotoPath.AllowDBNull = false;
  2828. this.columnPhotoPath.MaxLength = 1000;
  2829. }
  2830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2832. public ProductPhotoRow NewProductPhotoRow() {
  2833. return ((ProductPhotoRow)(this.NewRow()));
  2834. }
  2835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2837. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2838. return new ProductPhotoRow(builder);
  2839. }
  2840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2842. protected override global::System.Type GetRowType() {
  2843. return typeof(ProductPhotoRow);
  2844. }
  2845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2847. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2848. base.OnRowChanged(e);
  2849. if ((this.ProductPhotoRowChanged != null)) {
  2850. this.ProductPhotoRowChanged(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2851. }
  2852. }
  2853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2855. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2856. base.OnRowChanging(e);
  2857. if ((this.ProductPhotoRowChanging != null)) {
  2858. this.ProductPhotoRowChanging(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2859. }
  2860. }
  2861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2863. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2864. base.OnRowDeleted(e);
  2865. if ((this.ProductPhotoRowDeleted != null)) {
  2866. this.ProductPhotoRowDeleted(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2867. }
  2868. }
  2869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2871. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2872. base.OnRowDeleting(e);
  2873. if ((this.ProductPhotoRowDeleting != null)) {
  2874. this.ProductPhotoRowDeleting(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2875. }
  2876. }
  2877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2879. public void RemoveProductPhotoRow(ProductPhotoRow row) {
  2880. this.Rows.Remove(row);
  2881. }
  2882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2884. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2885. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2886. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2887. SaloonKrasoti02DataSet ds = new SaloonKrasoti02DataSet();
  2888. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2889. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2890. any1.MinOccurs = new decimal(0);
  2891. any1.MaxOccurs = decimal.MaxValue;
  2892. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2893. sequence.Items.Add(any1);
  2894. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2895. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2896. any2.MinOccurs = new decimal(1);
  2897. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2898. sequence.Items.Add(any2);
  2899. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2900. attribute1.Name = "namespace";
  2901. attribute1.FixedValue = ds.Namespace;
  2902. type.Attributes.Add(attribute1);
  2903. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2904. attribute2.Name = "tableTypeName";
  2905. attribute2.FixedValue = "ProductPhotoDataTable";
  2906. type.Attributes.Add(attribute2);
  2907. type.Particle = sequence;
  2908. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2909. if (xs.Contains(dsSchema.TargetNamespace)) {
  2910. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2911. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2912. try {
  2913. global::System.Xml.Schema.XmlSchema schema = null;
  2914. dsSchema.Write(s1);
  2915. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2916. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2917. s2.SetLength(0);
  2918. schema.Write(s2);
  2919. if ((s1.Length == s2.Length)) {
  2920. s1.Position = 0;
  2921. s2.Position = 0;
  2922. for (; ((s1.Position != s1.Length)
  2923. && (s1.ReadByte() == s2.ReadByte())); ) {
  2924. ;
  2925. }
  2926. if ((s1.Position == s1.Length)) {
  2927. return type;
  2928. }
  2929. }
  2930. }
  2931. }
  2932. finally {
  2933. if ((s1 != null)) {
  2934. s1.Close();
  2935. }
  2936. if ((s2 != null)) {
  2937. s2.Close();
  2938. }
  2939. }
  2940. }
  2941. xs.Add(dsSchema);
  2942. return type;
  2943. }
  2944. }
  2945. /// <summary>
  2946. ///Represents the strongly named DataTable class.
  2947. ///</summary>
  2948. [global::System.Serializable()]
  2949. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2950. public partial class ProductSaleDataTable : global::System.Data.TypedTableBase<ProductSaleRow> {
  2951. private global::System.Data.DataColumn columnID;
  2952. private global::System.Data.DataColumn columnSaleDate;
  2953. private global::System.Data.DataColumn columnProductID;
  2954. private global::System.Data.DataColumn columnQuantity;
  2955. private global::System.Data.DataColumn columnClientServiceID;
  2956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2958. public ProductSaleDataTable() {
  2959. this.TableName = "ProductSale";
  2960. this.BeginInit();
  2961. this.InitClass();
  2962. this.EndInit();
  2963. }
  2964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2966. internal ProductSaleDataTable(global::System.Data.DataTable table) {
  2967. this.TableName = table.TableName;
  2968. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2969. this.CaseSensitive = table.CaseSensitive;
  2970. }
  2971. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2972. this.Locale = table.Locale;
  2973. }
  2974. if ((table.Namespace != table.DataSet.Namespace)) {
  2975. this.Namespace = table.Namespace;
  2976. }
  2977. this.Prefix = table.Prefix;
  2978. this.MinimumCapacity = table.MinimumCapacity;
  2979. }
  2980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2982. protected ProductSaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2983. base(info, context) {
  2984. this.InitVars();
  2985. }
  2986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2988. public global::System.Data.DataColumn IDColumn {
  2989. get {
  2990. return this.columnID;
  2991. }
  2992. }
  2993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2995. public global::System.Data.DataColumn SaleDateColumn {
  2996. get {
  2997. return this.columnSaleDate;
  2998. }
  2999. }
  3000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3002. public global::System.Data.DataColumn ProductIDColumn {
  3003. get {
  3004. return this.columnProductID;
  3005. }
  3006. }
  3007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3009. public global::System.Data.DataColumn QuantityColumn {
  3010. get {
  3011. return this.columnQuantity;
  3012. }
  3013. }
  3014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3016. public global::System.Data.DataColumn ClientServiceIDColumn {
  3017. get {
  3018. return this.columnClientServiceID;
  3019. }
  3020. }
  3021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3023. [global::System.ComponentModel.Browsable(false)]
  3024. public int Count {
  3025. get {
  3026. return this.Rows.Count;
  3027. }
  3028. }
  3029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3031. public ProductSaleRow this[int index] {
  3032. get {
  3033. return ((ProductSaleRow)(this.Rows[index]));
  3034. }
  3035. }
  3036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3037. public event ProductSaleRowChangeEventHandler ProductSaleRowChanging;
  3038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3039. public event ProductSaleRowChangeEventHandler ProductSaleRowChanged;
  3040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3041. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleting;
  3042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3043. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleted;
  3044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3046. public void AddProductSaleRow(ProductSaleRow row) {
  3047. this.Rows.Add(row);
  3048. }
  3049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3051. public ProductSaleRow AddProductSaleRow(System.DateTime SaleDate, ProductRow parentProductRowByFK_ProductSale_Product, int Quantity, ClientServiceRow parentClientServiceRowByFK_ProductSale_ClientService) {
  3052. ProductSaleRow rowProductSaleRow = ((ProductSaleRow)(this.NewRow()));
  3053. object[] columnValuesArray = new object[] {
  3054. null,
  3055. SaleDate,
  3056. null,
  3057. Quantity,
  3058. null};
  3059. if ((parentProductRowByFK_ProductSale_Product != null)) {
  3060. columnValuesArray[2] = parentProductRowByFK_ProductSale_Product[0];
  3061. }
  3062. if ((parentClientServiceRowByFK_ProductSale_ClientService != null)) {
  3063. columnValuesArray[4] = parentClientServiceRowByFK_ProductSale_ClientService[0];
  3064. }
  3065. rowProductSaleRow.ItemArray = columnValuesArray;
  3066. this.Rows.Add(rowProductSaleRow);
  3067. return rowProductSaleRow;
  3068. }
  3069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3071. public ProductSaleRow FindByID(int ID) {
  3072. return ((ProductSaleRow)(this.Rows.Find(new object[] {
  3073. ID})));
  3074. }
  3075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3077. public override global::System.Data.DataTable Clone() {
  3078. ProductSaleDataTable cln = ((ProductSaleDataTable)(base.Clone()));
  3079. cln.InitVars();
  3080. return cln;
  3081. }
  3082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3084. protected override global::System.Data.DataTable CreateInstance() {
  3085. return new ProductSaleDataTable();
  3086. }
  3087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3089. internal void InitVars() {
  3090. this.columnID = base.Columns["ID"];
  3091. this.columnSaleDate = base.Columns["SaleDate"];
  3092. this.columnProductID = base.Columns["ProductID"];
  3093. this.columnQuantity = base.Columns["Quantity"];
  3094. this.columnClientServiceID = base.Columns["ClientServiceID"];
  3095. }
  3096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3098. private void InitClass() {
  3099. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3100. base.Columns.Add(this.columnID);
  3101. this.columnSaleDate = new global::System.Data.DataColumn("SaleDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3102. base.Columns.Add(this.columnSaleDate);
  3103. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3104. base.Columns.Add(this.columnProductID);
  3105. this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
  3106. base.Columns.Add(this.columnQuantity);
  3107. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3108. base.Columns.Add(this.columnClientServiceID);
  3109. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3110. this.columnID}, true));
  3111. this.columnID.AutoIncrement = true;
  3112. this.columnID.AutoIncrementSeed = -1;
  3113. this.columnID.AutoIncrementStep = -1;
  3114. this.columnID.AllowDBNull = false;
  3115. this.columnID.ReadOnly = true;
  3116. this.columnID.Unique = true;
  3117. this.columnSaleDate.AllowDBNull = false;
  3118. this.columnProductID.AllowDBNull = false;
  3119. this.columnQuantity.AllowDBNull = false;
  3120. }
  3121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3123. public ProductSaleRow NewProductSaleRow() {
  3124. return ((ProductSaleRow)(this.NewRow()));
  3125. }
  3126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3128. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3129. return new ProductSaleRow(builder);
  3130. }
  3131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3133. protected override global::System.Type GetRowType() {
  3134. return typeof(ProductSaleRow);
  3135. }
  3136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3138. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3139. base.OnRowChanged(e);
  3140. if ((this.ProductSaleRowChanged != null)) {
  3141. this.ProductSaleRowChanged(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3142. }
  3143. }
  3144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3146. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3147. base.OnRowChanging(e);
  3148. if ((this.ProductSaleRowChanging != null)) {
  3149. this.ProductSaleRowChanging(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3150. }
  3151. }
  3152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3154. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3155. base.OnRowDeleted(e);
  3156. if ((this.ProductSaleRowDeleted != null)) {
  3157. this.ProductSaleRowDeleted(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3158. }
  3159. }
  3160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3162. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3163. base.OnRowDeleting(e);
  3164. if ((this.ProductSaleRowDeleting != null)) {
  3165. this.ProductSaleRowDeleting(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3166. }
  3167. }
  3168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3170. public void RemoveProductSaleRow(ProductSaleRow row) {
  3171. this.Rows.Remove(row);
  3172. }
  3173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3175. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3176. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3177. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3178. SaloonKrasoti02DataSet ds = new SaloonKrasoti02DataSet();
  3179. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3180. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3181. any1.MinOccurs = new decimal(0);
  3182. any1.MaxOccurs = decimal.MaxValue;
  3183. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3184. sequence.Items.Add(any1);
  3185. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3186. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3187. any2.MinOccurs = new decimal(1);
  3188. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3189. sequence.Items.Add(any2);
  3190. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3191. attribute1.Name = "namespace";
  3192. attribute1.FixedValue = ds.Namespace;
  3193. type.Attributes.Add(attribute1);
  3194. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3195. attribute2.Name = "tableTypeName";
  3196. attribute2.FixedValue = "ProductSaleDataTable";
  3197. type.Attributes.Add(attribute2);
  3198. type.Particle = sequence;
  3199. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3200. if (xs.Contains(dsSchema.TargetNamespace)) {
  3201. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3202. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3203. try {
  3204. global::System.Xml.Schema.XmlSchema schema = null;
  3205. dsSchema.Write(s1);
  3206. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3207. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3208. s2.SetLength(0);
  3209. schema.Write(s2);
  3210. if ((s1.Length == s2.Length)) {
  3211. s1.Position = 0;
  3212. s2.Position = 0;
  3213. for (; ((s1.Position != s1.Length)
  3214. && (s1.ReadByte() == s2.ReadByte())); ) {
  3215. ;
  3216. }
  3217. if ((s1.Position == s1.Length)) {
  3218. return type;
  3219. }
  3220. }
  3221. }
  3222. }
  3223. finally {
  3224. if ((s1 != null)) {
  3225. s1.Close();
  3226. }
  3227. if ((s2 != null)) {
  3228. s2.Close();
  3229. }
  3230. }
  3231. }
  3232. xs.Add(dsSchema);
  3233. return type;
  3234. }
  3235. }
  3236. /// <summary>
  3237. ///Represents the strongly named DataTable class.
  3238. ///</summary>
  3239. [global::System.Serializable()]
  3240. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3241. public partial class ServiceDataTable : global::System.Data.TypedTableBase<ServiceRow> {
  3242. private global::System.Data.DataColumn columnID;
  3243. private global::System.Data.DataColumn columnTitle;
  3244. private global::System.Data.DataColumn columnCost;
  3245. private global::System.Data.DataColumn columnDescription;
  3246. private global::System.Data.DataColumn columnDiscount;
  3247. private global::System.Data.DataColumn columnMainImagePath;
  3248. private global::System.Data.DataColumn columnServicePhoto;
  3249. private global::System.Data.DataColumn columnPhormatPhoto;
  3250. private global::System.Data.DataColumn columnDurationInMinutes;
  3251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3253. public ServiceDataTable() {
  3254. this.TableName = "Service";
  3255. this.BeginInit();
  3256. this.InitClass();
  3257. this.EndInit();
  3258. }
  3259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3261. internal ServiceDataTable(global::System.Data.DataTable table) {
  3262. this.TableName = table.TableName;
  3263. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3264. this.CaseSensitive = table.CaseSensitive;
  3265. }
  3266. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3267. this.Locale = table.Locale;
  3268. }
  3269. if ((table.Namespace != table.DataSet.Namespace)) {
  3270. this.Namespace = table.Namespace;
  3271. }
  3272. this.Prefix = table.Prefix;
  3273. this.MinimumCapacity = table.MinimumCapacity;
  3274. }
  3275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3277. protected ServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3278. base(info, context) {
  3279. this.InitVars();
  3280. }
  3281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3283. public global::System.Data.DataColumn IDColumn {
  3284. get {
  3285. return this.columnID;
  3286. }
  3287. }
  3288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3290. public global::System.Data.DataColumn TitleColumn {
  3291. get {
  3292. return this.columnTitle;
  3293. }
  3294. }
  3295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3297. public global::System.Data.DataColumn CostColumn {
  3298. get {
  3299. return this.columnCost;
  3300. }
  3301. }
  3302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3304. public global::System.Data.DataColumn DescriptionColumn {
  3305. get {
  3306. return this.columnDescription;
  3307. }
  3308. }
  3309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3311. public global::System.Data.DataColumn DiscountColumn {
  3312. get {
  3313. return this.columnDiscount;
  3314. }
  3315. }
  3316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3318. public global::System.Data.DataColumn MainImagePathColumn {
  3319. get {
  3320. return this.columnMainImagePath;
  3321. }
  3322. }
  3323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3325. public global::System.Data.DataColumn ServicePhotoColumn {
  3326. get {
  3327. return this.columnServicePhoto;
  3328. }
  3329. }
  3330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3332. public global::System.Data.DataColumn PhormatPhotoColumn {
  3333. get {
  3334. return this.columnPhormatPhoto;
  3335. }
  3336. }
  3337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3339. public global::System.Data.DataColumn DurationInMinutesColumn {
  3340. get {
  3341. return this.columnDurationInMinutes;
  3342. }
  3343. }
  3344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3346. [global::System.ComponentModel.Browsable(false)]
  3347. public int Count {
  3348. get {
  3349. return this.Rows.Count;
  3350. }
  3351. }
  3352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3354. public ServiceRow this[int index] {
  3355. get {
  3356. return ((ServiceRow)(this.Rows[index]));
  3357. }
  3358. }
  3359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3360. public event ServiceRowChangeEventHandler ServiceRowChanging;
  3361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3362. public event ServiceRowChangeEventHandler ServiceRowChanged;
  3363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3364. public event ServiceRowChangeEventHandler ServiceRowDeleting;
  3365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3366. public event ServiceRowChangeEventHandler ServiceRowDeleted;
  3367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3369. public void AddServiceRow(ServiceRow row) {
  3370. this.Rows.Add(row);
  3371. }
  3372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3374. public ServiceRow AddServiceRow(string Title, decimal Cost, string Description, string Discount, string MainImagePath, byte[] ServicePhoto, string PhormatPhoto, string DurationInMinutes) {
  3375. ServiceRow rowServiceRow = ((ServiceRow)(this.NewRow()));
  3376. object[] columnValuesArray = new object[] {
  3377. null,
  3378. Title,
  3379. Cost,
  3380. Description,
  3381. Discount,
  3382. MainImagePath,
  3383. ServicePhoto,
  3384. PhormatPhoto,
  3385. DurationInMinutes};
  3386. rowServiceRow.ItemArray = columnValuesArray;
  3387. this.Rows.Add(rowServiceRow);
  3388. return rowServiceRow;
  3389. }
  3390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3392. public ServiceRow FindByID(int ID) {
  3393. return ((ServiceRow)(this.Rows.Find(new object[] {
  3394. ID})));
  3395. }
  3396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3398. public override global::System.Data.DataTable Clone() {
  3399. ServiceDataTable cln = ((ServiceDataTable)(base.Clone()));
  3400. cln.InitVars();
  3401. return cln;
  3402. }
  3403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3405. protected override global::System.Data.DataTable CreateInstance() {
  3406. return new ServiceDataTable();
  3407. }
  3408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3410. internal void InitVars() {
  3411. this.columnID = base.Columns["ID"];
  3412. this.columnTitle = base.Columns["Title"];
  3413. this.columnCost = base.Columns["Cost"];
  3414. this.columnDescription = base.Columns["Description"];
  3415. this.columnDiscount = base.Columns["Discount"];
  3416. this.columnMainImagePath = base.Columns["MainImagePath"];
  3417. this.columnServicePhoto = base.Columns["ServicePhoto"];
  3418. this.columnPhormatPhoto = base.Columns["PhormatPhoto"];
  3419. this.columnDurationInMinutes = base.Columns["DurationInMinutes"];
  3420. }
  3421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3423. private void InitClass() {
  3424. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3425. base.Columns.Add(this.columnID);
  3426. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3427. base.Columns.Add(this.columnTitle);
  3428. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  3429. base.Columns.Add(this.columnCost);
  3430. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  3431. base.Columns.Add(this.columnDescription);
  3432. this.columnDiscount = new global::System.Data.DataColumn("Discount", typeof(string), null, global::System.Data.MappingType.Element);
  3433. base.Columns.Add(this.columnDiscount);
  3434. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  3435. base.Columns.Add(this.columnMainImagePath);
  3436. this.columnServicePhoto = new global::System.Data.DataColumn("ServicePhoto", typeof(byte[]), null, global::System.Data.MappingType.Element);
  3437. base.Columns.Add(this.columnServicePhoto);
  3438. this.columnPhormatPhoto = new global::System.Data.DataColumn("PhormatPhoto", typeof(string), null, global::System.Data.MappingType.Element);
  3439. base.Columns.Add(this.columnPhormatPhoto);
  3440. this.columnDurationInMinutes = new global::System.Data.DataColumn("DurationInMinutes", typeof(string), null, global::System.Data.MappingType.Element);
  3441. base.Columns.Add(this.columnDurationInMinutes);
  3442. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3443. this.columnID}, true));
  3444. this.columnID.AutoIncrement = true;
  3445. this.columnID.AutoIncrementSeed = -1;
  3446. this.columnID.AutoIncrementStep = -1;
  3447. this.columnID.AllowDBNull = false;
  3448. this.columnID.ReadOnly = true;
  3449. this.columnID.Unique = true;
  3450. this.columnTitle.MaxLength = 2147483647;
  3451. this.columnDescription.MaxLength = 2147483647;
  3452. this.columnDiscount.MaxLength = 2147483647;
  3453. this.columnMainImagePath.MaxLength = 2147483647;
  3454. this.columnPhormatPhoto.MaxLength = 2147483647;
  3455. this.columnDurationInMinutes.MaxLength = 2147483647;
  3456. }
  3457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3459. public ServiceRow NewServiceRow() {
  3460. return ((ServiceRow)(this.NewRow()));
  3461. }
  3462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3464. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3465. return new ServiceRow(builder);
  3466. }
  3467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3469. protected override global::System.Type GetRowType() {
  3470. return typeof(ServiceRow);
  3471. }
  3472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3474. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3475. base.OnRowChanged(e);
  3476. if ((this.ServiceRowChanged != null)) {
  3477. this.ServiceRowChanged(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3478. }
  3479. }
  3480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3482. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3483. base.OnRowChanging(e);
  3484. if ((this.ServiceRowChanging != null)) {
  3485. this.ServiceRowChanging(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3486. }
  3487. }
  3488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3490. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3491. base.OnRowDeleted(e);
  3492. if ((this.ServiceRowDeleted != null)) {
  3493. this.ServiceRowDeleted(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3494. }
  3495. }
  3496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3498. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3499. base.OnRowDeleting(e);
  3500. if ((this.ServiceRowDeleting != null)) {
  3501. this.ServiceRowDeleting(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3502. }
  3503. }
  3504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3506. public void RemoveServiceRow(ServiceRow row) {
  3507. this.Rows.Remove(row);
  3508. }
  3509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3511. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3512. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3513. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3514. SaloonKrasoti02DataSet ds = new SaloonKrasoti02DataSet();
  3515. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3516. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3517. any1.MinOccurs = new decimal(0);
  3518. any1.MaxOccurs = decimal.MaxValue;
  3519. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3520. sequence.Items.Add(any1);
  3521. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3522. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3523. any2.MinOccurs = new decimal(1);
  3524. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3525. sequence.Items.Add(any2);
  3526. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3527. attribute1.Name = "namespace";
  3528. attribute1.FixedValue = ds.Namespace;
  3529. type.Attributes.Add(attribute1);
  3530. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3531. attribute2.Name = "tableTypeName";
  3532. attribute2.FixedValue = "ServiceDataTable";
  3533. type.Attributes.Add(attribute2);
  3534. type.Particle = sequence;
  3535. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3536. if (xs.Contains(dsSchema.TargetNamespace)) {
  3537. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3538. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3539. try {
  3540. global::System.Xml.Schema.XmlSchema schema = null;
  3541. dsSchema.Write(s1);
  3542. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3543. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3544. s2.SetLength(0);
  3545. schema.Write(s2);
  3546. if ((s1.Length == s2.Length)) {
  3547. s1.Position = 0;
  3548. s2.Position = 0;
  3549. for (; ((s1.Position != s1.Length)
  3550. && (s1.ReadByte() == s2.ReadByte())); ) {
  3551. ;
  3552. }
  3553. if ((s1.Position == s1.Length)) {
  3554. return type;
  3555. }
  3556. }
  3557. }
  3558. }
  3559. finally {
  3560. if ((s1 != null)) {
  3561. s1.Close();
  3562. }
  3563. if ((s2 != null)) {
  3564. s2.Close();
  3565. }
  3566. }
  3567. }
  3568. xs.Add(dsSchema);
  3569. return type;
  3570. }
  3571. }
  3572. /// <summary>
  3573. ///Represents the strongly named DataTable class.
  3574. ///</summary>
  3575. [global::System.Serializable()]
  3576. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3577. public partial class ServicePhotoDataTable : global::System.Data.TypedTableBase<ServicePhotoRow> {
  3578. private global::System.Data.DataColumn columnID;
  3579. private global::System.Data.DataColumn columnServiceID;
  3580. private global::System.Data.DataColumn columnPhotoPath;
  3581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3583. public ServicePhotoDataTable() {
  3584. this.TableName = "ServicePhoto";
  3585. this.BeginInit();
  3586. this.InitClass();
  3587. this.EndInit();
  3588. }
  3589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3591. internal ServicePhotoDataTable(global::System.Data.DataTable table) {
  3592. this.TableName = table.TableName;
  3593. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3594. this.CaseSensitive = table.CaseSensitive;
  3595. }
  3596. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3597. this.Locale = table.Locale;
  3598. }
  3599. if ((table.Namespace != table.DataSet.Namespace)) {
  3600. this.Namespace = table.Namespace;
  3601. }
  3602. this.Prefix = table.Prefix;
  3603. this.MinimumCapacity = table.MinimumCapacity;
  3604. }
  3605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3607. protected ServicePhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3608. base(info, context) {
  3609. this.InitVars();
  3610. }
  3611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3613. public global::System.Data.DataColumn IDColumn {
  3614. get {
  3615. return this.columnID;
  3616. }
  3617. }
  3618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3620. public global::System.Data.DataColumn ServiceIDColumn {
  3621. get {
  3622. return this.columnServiceID;
  3623. }
  3624. }
  3625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3627. public global::System.Data.DataColumn PhotoPathColumn {
  3628. get {
  3629. return this.columnPhotoPath;
  3630. }
  3631. }
  3632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3634. [global::System.ComponentModel.Browsable(false)]
  3635. public int Count {
  3636. get {
  3637. return this.Rows.Count;
  3638. }
  3639. }
  3640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3642. public ServicePhotoRow this[int index] {
  3643. get {
  3644. return ((ServicePhotoRow)(this.Rows[index]));
  3645. }
  3646. }
  3647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3648. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanging;
  3649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3650. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanged;
  3651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3652. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleting;
  3653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3654. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleted;
  3655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3657. public void AddServicePhotoRow(ServicePhotoRow row) {
  3658. this.Rows.Add(row);
  3659. }
  3660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3662. public ServicePhotoRow AddServicePhotoRow(ServiceRow parentServiceRowByFK_ServicePhoto_Service, string PhotoPath) {
  3663. ServicePhotoRow rowServicePhotoRow = ((ServicePhotoRow)(this.NewRow()));
  3664. object[] columnValuesArray = new object[] {
  3665. null,
  3666. null,
  3667. PhotoPath};
  3668. if ((parentServiceRowByFK_ServicePhoto_Service != null)) {
  3669. columnValuesArray[1] = parentServiceRowByFK_ServicePhoto_Service[0];
  3670. }
  3671. rowServicePhotoRow.ItemArray = columnValuesArray;
  3672. this.Rows.Add(rowServicePhotoRow);
  3673. return rowServicePhotoRow;
  3674. }
  3675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3677. public ServicePhotoRow FindByID(int ID) {
  3678. return ((ServicePhotoRow)(this.Rows.Find(new object[] {
  3679. ID})));
  3680. }
  3681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3683. public override global::System.Data.DataTable Clone() {
  3684. ServicePhotoDataTable cln = ((ServicePhotoDataTable)(base.Clone()));
  3685. cln.InitVars();
  3686. return cln;
  3687. }
  3688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3690. protected override global::System.Data.DataTable CreateInstance() {
  3691. return new ServicePhotoDataTable();
  3692. }
  3693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3695. internal void InitVars() {
  3696. this.columnID = base.Columns["ID"];
  3697. this.columnServiceID = base.Columns["ServiceID"];
  3698. this.columnPhotoPath = base.Columns["PhotoPath"];
  3699. }
  3700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3702. private void InitClass() {
  3703. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3704. base.Columns.Add(this.columnID);
  3705. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3706. base.Columns.Add(this.columnServiceID);
  3707. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  3708. base.Columns.Add(this.columnPhotoPath);
  3709. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3710. this.columnID}, true));
  3711. this.columnID.AutoIncrement = true;
  3712. this.columnID.AutoIncrementSeed = -1;
  3713. this.columnID.AutoIncrementStep = -1;
  3714. this.columnID.AllowDBNull = false;
  3715. this.columnID.ReadOnly = true;
  3716. this.columnID.Unique = true;
  3717. this.columnServiceID.AllowDBNull = false;
  3718. this.columnPhotoPath.AllowDBNull = false;
  3719. this.columnPhotoPath.MaxLength = 1000;
  3720. }
  3721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3723. public ServicePhotoRow NewServicePhotoRow() {
  3724. return ((ServicePhotoRow)(this.NewRow()));
  3725. }
  3726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3728. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3729. return new ServicePhotoRow(builder);
  3730. }
  3731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3733. protected override global::System.Type GetRowType() {
  3734. return typeof(ServicePhotoRow);
  3735. }
  3736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3738. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3739. base.OnRowChanged(e);
  3740. if ((this.ServicePhotoRowChanged != null)) {
  3741. this.ServicePhotoRowChanged(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3742. }
  3743. }
  3744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3746. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3747. base.OnRowChanging(e);
  3748. if ((this.ServicePhotoRowChanging != null)) {
  3749. this.ServicePhotoRowChanging(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3750. }
  3751. }
  3752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3754. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3755. base.OnRowDeleted(e);
  3756. if ((this.ServicePhotoRowDeleted != null)) {
  3757. this.ServicePhotoRowDeleted(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3758. }
  3759. }
  3760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3762. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3763. base.OnRowDeleting(e);
  3764. if ((this.ServicePhotoRowDeleting != null)) {
  3765. this.ServicePhotoRowDeleting(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3766. }
  3767. }
  3768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3770. public void RemoveServicePhotoRow(ServicePhotoRow row) {
  3771. this.Rows.Remove(row);
  3772. }
  3773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3775. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3776. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3777. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3778. SaloonKrasoti02DataSet ds = new SaloonKrasoti02DataSet();
  3779. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3780. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3781. any1.MinOccurs = new decimal(0);
  3782. any1.MaxOccurs = decimal.MaxValue;
  3783. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3784. sequence.Items.Add(any1);
  3785. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3786. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3787. any2.MinOccurs = new decimal(1);
  3788. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3789. sequence.Items.Add(any2);
  3790. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3791. attribute1.Name = "namespace";
  3792. attribute1.FixedValue = ds.Namespace;
  3793. type.Attributes.Add(attribute1);
  3794. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3795. attribute2.Name = "tableTypeName";
  3796. attribute2.FixedValue = "ServicePhotoDataTable";
  3797. type.Attributes.Add(attribute2);
  3798. type.Particle = sequence;
  3799. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3800. if (xs.Contains(dsSchema.TargetNamespace)) {
  3801. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3802. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3803. try {
  3804. global::System.Xml.Schema.XmlSchema schema = null;
  3805. dsSchema.Write(s1);
  3806. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3807. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3808. s2.SetLength(0);
  3809. schema.Write(s2);
  3810. if ((s1.Length == s2.Length)) {
  3811. s1.Position = 0;
  3812. s2.Position = 0;
  3813. for (; ((s1.Position != s1.Length)
  3814. && (s1.ReadByte() == s2.ReadByte())); ) {
  3815. ;
  3816. }
  3817. if ((s1.Position == s1.Length)) {
  3818. return type;
  3819. }
  3820. }
  3821. }
  3822. }
  3823. finally {
  3824. if ((s1 != null)) {
  3825. s1.Close();
  3826. }
  3827. if ((s2 != null)) {
  3828. s2.Close();
  3829. }
  3830. }
  3831. }
  3832. xs.Add(dsSchema);
  3833. return type;
  3834. }
  3835. }
  3836. /// <summary>
  3837. ///Represents the strongly named DataTable class.
  3838. ///</summary>
  3839. [global::System.Serializable()]
  3840. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3841. public partial class TagDataTable : global::System.Data.TypedTableBase<TagRow> {
  3842. private global::System.Data.DataColumn columnID;
  3843. private global::System.Data.DataColumn columnTitle;
  3844. private global::System.Data.DataColumn columnColor;
  3845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3847. public TagDataTable() {
  3848. this.TableName = "Tag";
  3849. this.BeginInit();
  3850. this.InitClass();
  3851. this.EndInit();
  3852. }
  3853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3855. internal TagDataTable(global::System.Data.DataTable table) {
  3856. this.TableName = table.TableName;
  3857. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3858. this.CaseSensitive = table.CaseSensitive;
  3859. }
  3860. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3861. this.Locale = table.Locale;
  3862. }
  3863. if ((table.Namespace != table.DataSet.Namespace)) {
  3864. this.Namespace = table.Namespace;
  3865. }
  3866. this.Prefix = table.Prefix;
  3867. this.MinimumCapacity = table.MinimumCapacity;
  3868. }
  3869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3871. protected TagDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3872. base(info, context) {
  3873. this.InitVars();
  3874. }
  3875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3877. public global::System.Data.DataColumn IDColumn {
  3878. get {
  3879. return this.columnID;
  3880. }
  3881. }
  3882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3884. public global::System.Data.DataColumn TitleColumn {
  3885. get {
  3886. return this.columnTitle;
  3887. }
  3888. }
  3889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3891. public global::System.Data.DataColumn ColorColumn {
  3892. get {
  3893. return this.columnColor;
  3894. }
  3895. }
  3896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3898. [global::System.ComponentModel.Browsable(false)]
  3899. public int Count {
  3900. get {
  3901. return this.Rows.Count;
  3902. }
  3903. }
  3904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3906. public TagRow this[int index] {
  3907. get {
  3908. return ((TagRow)(this.Rows[index]));
  3909. }
  3910. }
  3911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3912. public event TagRowChangeEventHandler TagRowChanging;
  3913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3914. public event TagRowChangeEventHandler TagRowChanged;
  3915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3916. public event TagRowChangeEventHandler TagRowDeleting;
  3917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3918. public event TagRowChangeEventHandler TagRowDeleted;
  3919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3921. public void AddTagRow(TagRow row) {
  3922. this.Rows.Add(row);
  3923. }
  3924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3926. public TagRow AddTagRow(string Title, string Color) {
  3927. TagRow rowTagRow = ((TagRow)(this.NewRow()));
  3928. object[] columnValuesArray = new object[] {
  3929. null,
  3930. Title,
  3931. Color};
  3932. rowTagRow.ItemArray = columnValuesArray;
  3933. this.Rows.Add(rowTagRow);
  3934. return rowTagRow;
  3935. }
  3936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3938. public TagRow FindByID(int ID) {
  3939. return ((TagRow)(this.Rows.Find(new object[] {
  3940. ID})));
  3941. }
  3942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3944. public override global::System.Data.DataTable Clone() {
  3945. TagDataTable cln = ((TagDataTable)(base.Clone()));
  3946. cln.InitVars();
  3947. return cln;
  3948. }
  3949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3951. protected override global::System.Data.DataTable CreateInstance() {
  3952. return new TagDataTable();
  3953. }
  3954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3956. internal void InitVars() {
  3957. this.columnID = base.Columns["ID"];
  3958. this.columnTitle = base.Columns["Title"];
  3959. this.columnColor = base.Columns["Color"];
  3960. }
  3961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3963. private void InitClass() {
  3964. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3965. base.Columns.Add(this.columnID);
  3966. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3967. base.Columns.Add(this.columnTitle);
  3968. this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
  3969. base.Columns.Add(this.columnColor);
  3970. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3971. this.columnID}, true));
  3972. this.columnID.AutoIncrement = true;
  3973. this.columnID.AutoIncrementSeed = -1;
  3974. this.columnID.AutoIncrementStep = -1;
  3975. this.columnID.AllowDBNull = false;
  3976. this.columnID.ReadOnly = true;
  3977. this.columnID.Unique = true;
  3978. this.columnTitle.AllowDBNull = false;
  3979. this.columnTitle.MaxLength = 30;
  3980. this.columnColor.AllowDBNull = false;
  3981. this.columnColor.MaxLength = 6;
  3982. }
  3983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3985. public TagRow NewTagRow() {
  3986. return ((TagRow)(this.NewRow()));
  3987. }
  3988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3990. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3991. return new TagRow(builder);
  3992. }
  3993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3995. protected override global::System.Type GetRowType() {
  3996. return typeof(TagRow);
  3997. }
  3998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4000. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4001. base.OnRowChanged(e);
  4002. if ((this.TagRowChanged != null)) {
  4003. this.TagRowChanged(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4004. }
  4005. }
  4006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4008. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4009. base.OnRowChanging(e);
  4010. if ((this.TagRowChanging != null)) {
  4011. this.TagRowChanging(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4012. }
  4013. }
  4014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4016. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4017. base.OnRowDeleted(e);
  4018. if ((this.TagRowDeleted != null)) {
  4019. this.TagRowDeleted(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4020. }
  4021. }
  4022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4024. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4025. base.OnRowDeleting(e);
  4026. if ((this.TagRowDeleting != null)) {
  4027. this.TagRowDeleting(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4028. }
  4029. }
  4030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4032. public void RemoveTagRow(TagRow row) {
  4033. this.Rows.Remove(row);
  4034. }
  4035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4037. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4038. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4039. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4040. SaloonKrasoti02DataSet ds = new SaloonKrasoti02DataSet();
  4041. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4042. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4043. any1.MinOccurs = new decimal(0);
  4044. any1.MaxOccurs = decimal.MaxValue;
  4045. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4046. sequence.Items.Add(any1);
  4047. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4048. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4049. any2.MinOccurs = new decimal(1);
  4050. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4051. sequence.Items.Add(any2);
  4052. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4053. attribute1.Name = "namespace";
  4054. attribute1.FixedValue = ds.Namespace;
  4055. type.Attributes.Add(attribute1);
  4056. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4057. attribute2.Name = "tableTypeName";
  4058. attribute2.FixedValue = "TagDataTable";
  4059. type.Attributes.Add(attribute2);
  4060. type.Particle = sequence;
  4061. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4062. if (xs.Contains(dsSchema.TargetNamespace)) {
  4063. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4064. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4065. try {
  4066. global::System.Xml.Schema.XmlSchema schema = null;
  4067. dsSchema.Write(s1);
  4068. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4069. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4070. s2.SetLength(0);
  4071. schema.Write(s2);
  4072. if ((s1.Length == s2.Length)) {
  4073. s1.Position = 0;
  4074. s2.Position = 0;
  4075. for (; ((s1.Position != s1.Length)
  4076. && (s1.ReadByte() == s2.ReadByte())); ) {
  4077. ;
  4078. }
  4079. if ((s1.Position == s1.Length)) {
  4080. return type;
  4081. }
  4082. }
  4083. }
  4084. }
  4085. finally {
  4086. if ((s1 != null)) {
  4087. s1.Close();
  4088. }
  4089. if ((s2 != null)) {
  4090. s2.Close();
  4091. }
  4092. }
  4093. }
  4094. xs.Add(dsSchema);
  4095. return type;
  4096. }
  4097. }
  4098. /// <summary>
  4099. ///Represents the strongly named DataTable class.
  4100. ///</summary>
  4101. [global::System.Serializable()]
  4102. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4103. public partial class TagOfClientDataTable : global::System.Data.TypedTableBase<TagOfClientRow> {
  4104. private global::System.Data.DataColumn columnClientID;
  4105. private global::System.Data.DataColumn columnTagID;
  4106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4108. public TagOfClientDataTable() {
  4109. this.TableName = "TagOfClient";
  4110. this.BeginInit();
  4111. this.InitClass();
  4112. this.EndInit();
  4113. }
  4114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4116. internal TagOfClientDataTable(global::System.Data.DataTable table) {
  4117. this.TableName = table.TableName;
  4118. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4119. this.CaseSensitive = table.CaseSensitive;
  4120. }
  4121. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4122. this.Locale = table.Locale;
  4123. }
  4124. if ((table.Namespace != table.DataSet.Namespace)) {
  4125. this.Namespace = table.Namespace;
  4126. }
  4127. this.Prefix = table.Prefix;
  4128. this.MinimumCapacity = table.MinimumCapacity;
  4129. }
  4130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4132. protected TagOfClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4133. base(info, context) {
  4134. this.InitVars();
  4135. }
  4136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4138. public global::System.Data.DataColumn ClientIDColumn {
  4139. get {
  4140. return this.columnClientID;
  4141. }
  4142. }
  4143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4145. public global::System.Data.DataColumn TagIDColumn {
  4146. get {
  4147. return this.columnTagID;
  4148. }
  4149. }
  4150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4152. [global::System.ComponentModel.Browsable(false)]
  4153. public int Count {
  4154. get {
  4155. return this.Rows.Count;
  4156. }
  4157. }
  4158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4160. public TagOfClientRow this[int index] {
  4161. get {
  4162. return ((TagOfClientRow)(this.Rows[index]));
  4163. }
  4164. }
  4165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4166. public event TagOfClientRowChangeEventHandler TagOfClientRowChanging;
  4167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4168. public event TagOfClientRowChangeEventHandler TagOfClientRowChanged;
  4169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4170. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleting;
  4171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4172. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleted;
  4173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4175. public void AddTagOfClientRow(TagOfClientRow row) {
  4176. this.Rows.Add(row);
  4177. }
  4178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4180. public TagOfClientRow AddTagOfClientRow(ClientRow parentClientRowByFK_TagOfClient_Client, TagRow parentTagRowByFK_TagOfClient_Tag) {
  4181. TagOfClientRow rowTagOfClientRow = ((TagOfClientRow)(this.NewRow()));
  4182. object[] columnValuesArray = new object[] {
  4183. null,
  4184. null};
  4185. if ((parentClientRowByFK_TagOfClient_Client != null)) {
  4186. columnValuesArray[0] = parentClientRowByFK_TagOfClient_Client[0];
  4187. }
  4188. if ((parentTagRowByFK_TagOfClient_Tag != null)) {
  4189. columnValuesArray[1] = parentTagRowByFK_TagOfClient_Tag[0];
  4190. }
  4191. rowTagOfClientRow.ItemArray = columnValuesArray;
  4192. this.Rows.Add(rowTagOfClientRow);
  4193. return rowTagOfClientRow;
  4194. }
  4195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4197. public TagOfClientRow FindByClientIDTagID(int ClientID, int TagID) {
  4198. return ((TagOfClientRow)(this.Rows.Find(new object[] {
  4199. ClientID,
  4200. TagID})));
  4201. }
  4202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4204. public override global::System.Data.DataTable Clone() {
  4205. TagOfClientDataTable cln = ((TagOfClientDataTable)(base.Clone()));
  4206. cln.InitVars();
  4207. return cln;
  4208. }
  4209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4211. protected override global::System.Data.DataTable CreateInstance() {
  4212. return new TagOfClientDataTable();
  4213. }
  4214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4216. internal void InitVars() {
  4217. this.columnClientID = base.Columns["ClientID"];
  4218. this.columnTagID = base.Columns["TagID"];
  4219. }
  4220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4222. private void InitClass() {
  4223. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  4224. base.Columns.Add(this.columnClientID);
  4225. this.columnTagID = new global::System.Data.DataColumn("TagID", typeof(int), null, global::System.Data.MappingType.Element);
  4226. base.Columns.Add(this.columnTagID);
  4227. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4228. this.columnClientID,
  4229. this.columnTagID}, true));
  4230. this.columnClientID.AllowDBNull = false;
  4231. this.columnTagID.AllowDBNull = false;
  4232. }
  4233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4235. public TagOfClientRow NewTagOfClientRow() {
  4236. return ((TagOfClientRow)(this.NewRow()));
  4237. }
  4238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4240. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4241. return new TagOfClientRow(builder);
  4242. }
  4243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4245. protected override global::System.Type GetRowType() {
  4246. return typeof(TagOfClientRow);
  4247. }
  4248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4250. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4251. base.OnRowChanged(e);
  4252. if ((this.TagOfClientRowChanged != null)) {
  4253. this.TagOfClientRowChanged(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4254. }
  4255. }
  4256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4258. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4259. base.OnRowChanging(e);
  4260. if ((this.TagOfClientRowChanging != null)) {
  4261. this.TagOfClientRowChanging(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4262. }
  4263. }
  4264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4266. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4267. base.OnRowDeleted(e);
  4268. if ((this.TagOfClientRowDeleted != null)) {
  4269. this.TagOfClientRowDeleted(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4270. }
  4271. }
  4272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4274. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4275. base.OnRowDeleting(e);
  4276. if ((this.TagOfClientRowDeleting != null)) {
  4277. this.TagOfClientRowDeleting(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4278. }
  4279. }
  4280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4282. public void RemoveTagOfClientRow(TagOfClientRow row) {
  4283. this.Rows.Remove(row);
  4284. }
  4285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4287. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4288. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4289. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4290. SaloonKrasoti02DataSet ds = new SaloonKrasoti02DataSet();
  4291. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4292. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4293. any1.MinOccurs = new decimal(0);
  4294. any1.MaxOccurs = decimal.MaxValue;
  4295. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4296. sequence.Items.Add(any1);
  4297. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4298. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4299. any2.MinOccurs = new decimal(1);
  4300. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4301. sequence.Items.Add(any2);
  4302. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4303. attribute1.Name = "namespace";
  4304. attribute1.FixedValue = ds.Namespace;
  4305. type.Attributes.Add(attribute1);
  4306. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4307. attribute2.Name = "tableTypeName";
  4308. attribute2.FixedValue = "TagOfClientDataTable";
  4309. type.Attributes.Add(attribute2);
  4310. type.Particle = sequence;
  4311. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4312. if (xs.Contains(dsSchema.TargetNamespace)) {
  4313. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4314. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4315. try {
  4316. global::System.Xml.Schema.XmlSchema schema = null;
  4317. dsSchema.Write(s1);
  4318. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4319. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4320. s2.SetLength(0);
  4321. schema.Write(s2);
  4322. if ((s1.Length == s2.Length)) {
  4323. s1.Position = 0;
  4324. s2.Position = 0;
  4325. for (; ((s1.Position != s1.Length)
  4326. && (s1.ReadByte() == s2.ReadByte())); ) {
  4327. ;
  4328. }
  4329. if ((s1.Position == s1.Length)) {
  4330. return type;
  4331. }
  4332. }
  4333. }
  4334. }
  4335. finally {
  4336. if ((s1 != null)) {
  4337. s1.Close();
  4338. }
  4339. if ((s2 != null)) {
  4340. s2.Close();
  4341. }
  4342. }
  4343. }
  4344. xs.Add(dsSchema);
  4345. return type;
  4346. }
  4347. }
  4348. /// <summary>
  4349. ///Represents strongly named DataRow class.
  4350. ///</summary>
  4351. public partial class AttachedProductRow : global::System.Data.DataRow {
  4352. private AttachedProductDataTable tableAttachedProduct;
  4353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4355. internal AttachedProductRow(global::System.Data.DataRowBuilder rb) :
  4356. base(rb) {
  4357. this.tableAttachedProduct = ((AttachedProductDataTable)(this.Table));
  4358. }
  4359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4361. public int MainProductID {
  4362. get {
  4363. return ((int)(this[this.tableAttachedProduct.MainProductIDColumn]));
  4364. }
  4365. set {
  4366. this[this.tableAttachedProduct.MainProductIDColumn] = value;
  4367. }
  4368. }
  4369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4371. public int AttachedProductID {
  4372. get {
  4373. return ((int)(this[this.tableAttachedProduct.AttachedProductIDColumn]));
  4374. }
  4375. set {
  4376. this[this.tableAttachedProduct.AttachedProductIDColumn] = value;
  4377. }
  4378. }
  4379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4381. public ProductRow ProductRowByFK_AttachedProduct_Product {
  4382. get {
  4383. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product"])));
  4384. }
  4385. set {
  4386. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product"]);
  4387. }
  4388. }
  4389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4391. public ProductRow ProductRowByFK_AttachedProduct_Product1 {
  4392. get {
  4393. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product1"])));
  4394. }
  4395. set {
  4396. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product1"]);
  4397. }
  4398. }
  4399. }
  4400. /// <summary>
  4401. ///Represents strongly named DataRow class.
  4402. ///</summary>
  4403. public partial class ClientRow : global::System.Data.DataRow {
  4404. private ClientDataTable tableClient;
  4405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4407. internal ClientRow(global::System.Data.DataRowBuilder rb) :
  4408. base(rb) {
  4409. this.tableClient = ((ClientDataTable)(this.Table));
  4410. }
  4411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4413. public int ID {
  4414. get {
  4415. return ((int)(this[this.tableClient.IDColumn]));
  4416. }
  4417. set {
  4418. this[this.tableClient.IDColumn] = value;
  4419. }
  4420. }
  4421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4423. public string LastName {
  4424. get {
  4425. return ((string)(this[this.tableClient.LastNameColumn]));
  4426. }
  4427. set {
  4428. this[this.tableClient.LastNameColumn] = value;
  4429. }
  4430. }
  4431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4433. public string FirstName {
  4434. get {
  4435. return ((string)(this[this.tableClient.FirstNameColumn]));
  4436. }
  4437. set {
  4438. this[this.tableClient.FirstNameColumn] = value;
  4439. }
  4440. }
  4441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4443. public string Patronymic {
  4444. get {
  4445. try {
  4446. return ((string)(this[this.tableClient.PatronymicColumn]));
  4447. }
  4448. catch (global::System.InvalidCastException e) {
  4449. throw new global::System.Data.StrongTypingException("Значение для столбца \'Patronymic\' в таблице \'Client\' равно DBNull.", e);
  4450. }
  4451. }
  4452. set {
  4453. this[this.tableClient.PatronymicColumn] = value;
  4454. }
  4455. }
  4456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4458. public System.DateTime Birthday {
  4459. get {
  4460. try {
  4461. return ((global::System.DateTime)(this[this.tableClient.BirthdayColumn]));
  4462. }
  4463. catch (global::System.InvalidCastException e) {
  4464. throw new global::System.Data.StrongTypingException("Значение для столбца \'Birthday\' в таблице \'Client\' равно DBNull.", e);
  4465. }
  4466. }
  4467. set {
  4468. this[this.tableClient.BirthdayColumn] = value;
  4469. }
  4470. }
  4471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4473. public System.DateTime RegistrationDate {
  4474. get {
  4475. return ((global::System.DateTime)(this[this.tableClient.RegistrationDateColumn]));
  4476. }
  4477. set {
  4478. this[this.tableClient.RegistrationDateColumn] = value;
  4479. }
  4480. }
  4481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4483. public string Email {
  4484. get {
  4485. try {
  4486. return ((string)(this[this.tableClient.EmailColumn]));
  4487. }
  4488. catch (global::System.InvalidCastException e) {
  4489. throw new global::System.Data.StrongTypingException("Значение для столбца \'Email\' в таблице \'Client\' равно DBNull.", e);
  4490. }
  4491. }
  4492. set {
  4493. this[this.tableClient.EmailColumn] = value;
  4494. }
  4495. }
  4496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4498. public string Phone {
  4499. get {
  4500. return ((string)(this[this.tableClient.PhoneColumn]));
  4501. }
  4502. set {
  4503. this[this.tableClient.PhoneColumn] = value;
  4504. }
  4505. }
  4506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4508. public string GenderCode {
  4509. get {
  4510. return ((string)(this[this.tableClient.GenderCodeColumn]));
  4511. }
  4512. set {
  4513. this[this.tableClient.GenderCodeColumn] = value;
  4514. }
  4515. }
  4516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4518. public string PhotoPath {
  4519. get {
  4520. try {
  4521. return ((string)(this[this.tableClient.PhotoPathColumn]));
  4522. }
  4523. catch (global::System.InvalidCastException e) {
  4524. throw new global::System.Data.StrongTypingException("Значение для столбца \'PhotoPath\' в таблице \'Client\' равно DBNull.", e);
  4525. }
  4526. }
  4527. set {
  4528. this[this.tableClient.PhotoPathColumn] = value;
  4529. }
  4530. }
  4531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4533. public GenderRow GenderRow {
  4534. get {
  4535. return ((GenderRow)(this.GetParentRow(this.Table.ParentRelations["FK_Client_Gender"])));
  4536. }
  4537. set {
  4538. this.SetParentRow(value, this.Table.ParentRelations["FK_Client_Gender"]);
  4539. }
  4540. }
  4541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4543. public bool IsPatronymicNull() {
  4544. return this.IsNull(this.tableClient.PatronymicColumn);
  4545. }
  4546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4548. public void SetPatronymicNull() {
  4549. this[this.tableClient.PatronymicColumn] = global::System.Convert.DBNull;
  4550. }
  4551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4553. public bool IsBirthdayNull() {
  4554. return this.IsNull(this.tableClient.BirthdayColumn);
  4555. }
  4556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4558. public void SetBirthdayNull() {
  4559. this[this.tableClient.BirthdayColumn] = global::System.Convert.DBNull;
  4560. }
  4561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4563. public bool IsEmailNull() {
  4564. return this.IsNull(this.tableClient.EmailColumn);
  4565. }
  4566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4568. public void SetEmailNull() {
  4569. this[this.tableClient.EmailColumn] = global::System.Convert.DBNull;
  4570. }
  4571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4573. public bool IsPhotoPathNull() {
  4574. return this.IsNull(this.tableClient.PhotoPathColumn);
  4575. }
  4576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4578. public void SetPhotoPathNull() {
  4579. this[this.tableClient.PhotoPathColumn] = global::System.Convert.DBNull;
  4580. }
  4581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4583. public ClientServiceRow[] GetClientServiceRows() {
  4584. if ((this.Table.ChildRelations["FK_ClientService_Client"] == null)) {
  4585. return new ClientServiceRow[0];
  4586. }
  4587. else {
  4588. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Client"])));
  4589. }
  4590. }
  4591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4593. public TagOfClientRow[] GetTagOfClientRows() {
  4594. if ((this.Table.ChildRelations["FK_TagOfClient_Client"] == null)) {
  4595. return new TagOfClientRow[0];
  4596. }
  4597. else {
  4598. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Client"])));
  4599. }
  4600. }
  4601. }
  4602. /// <summary>
  4603. ///Represents strongly named DataRow class.
  4604. ///</summary>
  4605. public partial class ClientServiceRow : global::System.Data.DataRow {
  4606. private ClientServiceDataTable tableClientService;
  4607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4609. internal ClientServiceRow(global::System.Data.DataRowBuilder rb) :
  4610. base(rb) {
  4611. this.tableClientService = ((ClientServiceDataTable)(this.Table));
  4612. }
  4613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4615. public int ID {
  4616. get {
  4617. return ((int)(this[this.tableClientService.IDColumn]));
  4618. }
  4619. set {
  4620. this[this.tableClientService.IDColumn] = value;
  4621. }
  4622. }
  4623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4625. public int ClientID {
  4626. get {
  4627. return ((int)(this[this.tableClientService.ClientIDColumn]));
  4628. }
  4629. set {
  4630. this[this.tableClientService.ClientIDColumn] = value;
  4631. }
  4632. }
  4633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4635. public int ServiceID {
  4636. get {
  4637. return ((int)(this[this.tableClientService.ServiceIDColumn]));
  4638. }
  4639. set {
  4640. this[this.tableClientService.ServiceIDColumn] = value;
  4641. }
  4642. }
  4643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4645. public System.DateTime StartTime {
  4646. get {
  4647. return ((global::System.DateTime)(this[this.tableClientService.StartTimeColumn]));
  4648. }
  4649. set {
  4650. this[this.tableClientService.StartTimeColumn] = value;
  4651. }
  4652. }
  4653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4655. public string Comment {
  4656. get {
  4657. try {
  4658. return ((string)(this[this.tableClientService.CommentColumn]));
  4659. }
  4660. catch (global::System.InvalidCastException e) {
  4661. throw new global::System.Data.StrongTypingException("Значение для столбца \'Comment\' в таблице \'ClientService\' равно DBNull.", e);
  4662. }
  4663. }
  4664. set {
  4665. this[this.tableClientService.CommentColumn] = value;
  4666. }
  4667. }
  4668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4670. public ClientRow ClientRow {
  4671. get {
  4672. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Client"])));
  4673. }
  4674. set {
  4675. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Client"]);
  4676. }
  4677. }
  4678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4680. public ServiceRow ServiceRow {
  4681. get {
  4682. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Service"])));
  4683. }
  4684. set {
  4685. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Service"]);
  4686. }
  4687. }
  4688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4690. public bool IsCommentNull() {
  4691. return this.IsNull(this.tableClientService.CommentColumn);
  4692. }
  4693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4695. public void SetCommentNull() {
  4696. this[this.tableClientService.CommentColumn] = global::System.Convert.DBNull;
  4697. }
  4698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4700. public DocumentByServiceRow[] GetDocumentByServiceRows() {
  4701. if ((this.Table.ChildRelations["FK_DocumentByService_ClientService"] == null)) {
  4702. return new DocumentByServiceRow[0];
  4703. }
  4704. else {
  4705. return ((DocumentByServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_DocumentByService_ClientService"])));
  4706. }
  4707. }
  4708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4710. public ProductSaleRow[] GetProductSaleRows() {
  4711. if ((this.Table.ChildRelations["FK_ProductSale_ClientService"] == null)) {
  4712. return new ProductSaleRow[0];
  4713. }
  4714. else {
  4715. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_ClientService"])));
  4716. }
  4717. }
  4718. }
  4719. /// <summary>
  4720. ///Represents strongly named DataRow class.
  4721. ///</summary>
  4722. public partial class DocumentByServiceRow : global::System.Data.DataRow {
  4723. private DocumentByServiceDataTable tableDocumentByService;
  4724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4726. internal DocumentByServiceRow(global::System.Data.DataRowBuilder rb) :
  4727. base(rb) {
  4728. this.tableDocumentByService = ((DocumentByServiceDataTable)(this.Table));
  4729. }
  4730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4732. public int ID {
  4733. get {
  4734. return ((int)(this[this.tableDocumentByService.IDColumn]));
  4735. }
  4736. set {
  4737. this[this.tableDocumentByService.IDColumn] = value;
  4738. }
  4739. }
  4740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4742. public int ClientServiceID {
  4743. get {
  4744. return ((int)(this[this.tableDocumentByService.ClientServiceIDColumn]));
  4745. }
  4746. set {
  4747. this[this.tableDocumentByService.ClientServiceIDColumn] = value;
  4748. }
  4749. }
  4750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4752. public string DocumentPath {
  4753. get {
  4754. return ((string)(this[this.tableDocumentByService.DocumentPathColumn]));
  4755. }
  4756. set {
  4757. this[this.tableDocumentByService.DocumentPathColumn] = value;
  4758. }
  4759. }
  4760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4762. public ClientServiceRow ClientServiceRow {
  4763. get {
  4764. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_DocumentByService_ClientService"])));
  4765. }
  4766. set {
  4767. this.SetParentRow(value, this.Table.ParentRelations["FK_DocumentByService_ClientService"]);
  4768. }
  4769. }
  4770. }
  4771. /// <summary>
  4772. ///Represents strongly named DataRow class.
  4773. ///</summary>
  4774. public partial class GenderRow : global::System.Data.DataRow {
  4775. private GenderDataTable tableGender;
  4776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4778. internal GenderRow(global::System.Data.DataRowBuilder rb) :
  4779. base(rb) {
  4780. this.tableGender = ((GenderDataTable)(this.Table));
  4781. }
  4782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4784. public string Code {
  4785. get {
  4786. return ((string)(this[this.tableGender.CodeColumn]));
  4787. }
  4788. set {
  4789. this[this.tableGender.CodeColumn] = value;
  4790. }
  4791. }
  4792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4794. public string Name {
  4795. get {
  4796. try {
  4797. return ((string)(this[this.tableGender.NameColumn]));
  4798. }
  4799. catch (global::System.InvalidCastException e) {
  4800. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Gender\' равно DBNull.", e);
  4801. }
  4802. }
  4803. set {
  4804. this[this.tableGender.NameColumn] = value;
  4805. }
  4806. }
  4807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4809. public bool IsNameNull() {
  4810. return this.IsNull(this.tableGender.NameColumn);
  4811. }
  4812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4814. public void SetNameNull() {
  4815. this[this.tableGender.NameColumn] = global::System.Convert.DBNull;
  4816. }
  4817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4819. public ClientRow[] GetClientRows() {
  4820. if ((this.Table.ChildRelations["FK_Client_Gender"] == null)) {
  4821. return new ClientRow[0];
  4822. }
  4823. else {
  4824. return ((ClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Client_Gender"])));
  4825. }
  4826. }
  4827. }
  4828. /// <summary>
  4829. ///Represents strongly named DataRow class.
  4830. ///</summary>
  4831. public partial class ManufacturerRow : global::System.Data.DataRow {
  4832. private ManufacturerDataTable tableManufacturer;
  4833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4835. internal ManufacturerRow(global::System.Data.DataRowBuilder rb) :
  4836. base(rb) {
  4837. this.tableManufacturer = ((ManufacturerDataTable)(this.Table));
  4838. }
  4839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4841. public int ID {
  4842. get {
  4843. return ((int)(this[this.tableManufacturer.IDColumn]));
  4844. }
  4845. set {
  4846. this[this.tableManufacturer.IDColumn] = value;
  4847. }
  4848. }
  4849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4851. public string Name {
  4852. get {
  4853. return ((string)(this[this.tableManufacturer.NameColumn]));
  4854. }
  4855. set {
  4856. this[this.tableManufacturer.NameColumn] = value;
  4857. }
  4858. }
  4859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4861. public System.DateTime StartDate {
  4862. get {
  4863. try {
  4864. return ((global::System.DateTime)(this[this.tableManufacturer.StartDateColumn]));
  4865. }
  4866. catch (global::System.InvalidCastException e) {
  4867. throw new global::System.Data.StrongTypingException("Значение для столбца \'StartDate\' в таблице \'Manufacturer\' равно DBNull.", e);
  4868. }
  4869. }
  4870. set {
  4871. this[this.tableManufacturer.StartDateColumn] = value;
  4872. }
  4873. }
  4874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4876. public bool IsStartDateNull() {
  4877. return this.IsNull(this.tableManufacturer.StartDateColumn);
  4878. }
  4879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4881. public void SetStartDateNull() {
  4882. this[this.tableManufacturer.StartDateColumn] = global::System.Convert.DBNull;
  4883. }
  4884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4886. public ProductRow[] GetProductRows() {
  4887. if ((this.Table.ChildRelations["FK_Product_Manufacturer"] == null)) {
  4888. return new ProductRow[0];
  4889. }
  4890. else {
  4891. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Manufacturer"])));
  4892. }
  4893. }
  4894. }
  4895. /// <summary>
  4896. ///Represents strongly named DataRow class.
  4897. ///</summary>
  4898. public partial class ProductRow : global::System.Data.DataRow {
  4899. private ProductDataTable tableProduct;
  4900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4902. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  4903. base(rb) {
  4904. this.tableProduct = ((ProductDataTable)(this.Table));
  4905. }
  4906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4908. public int ID {
  4909. get {
  4910. return ((int)(this[this.tableProduct.IDColumn]));
  4911. }
  4912. set {
  4913. this[this.tableProduct.IDColumn] = value;
  4914. }
  4915. }
  4916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4918. public string Title {
  4919. get {
  4920. return ((string)(this[this.tableProduct.TitleColumn]));
  4921. }
  4922. set {
  4923. this[this.tableProduct.TitleColumn] = value;
  4924. }
  4925. }
  4926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4928. public decimal Cost {
  4929. get {
  4930. return ((decimal)(this[this.tableProduct.CostColumn]));
  4931. }
  4932. set {
  4933. this[this.tableProduct.CostColumn] = value;
  4934. }
  4935. }
  4936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4938. public string Description {
  4939. get {
  4940. try {
  4941. return ((string)(this[this.tableProduct.DescriptionColumn]));
  4942. }
  4943. catch (global::System.InvalidCastException e) {
  4944. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Product\' равно DBNull.", e);
  4945. }
  4946. }
  4947. set {
  4948. this[this.tableProduct.DescriptionColumn] = value;
  4949. }
  4950. }
  4951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4953. public string MainImagePath {
  4954. get {
  4955. try {
  4956. return ((string)(this[this.tableProduct.MainImagePathColumn]));
  4957. }
  4958. catch (global::System.InvalidCastException e) {
  4959. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Product\' равно DBNull.", e);
  4960. }
  4961. }
  4962. set {
  4963. this[this.tableProduct.MainImagePathColumn] = value;
  4964. }
  4965. }
  4966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4968. public bool IsActive {
  4969. get {
  4970. return ((bool)(this[this.tableProduct.IsActiveColumn]));
  4971. }
  4972. set {
  4973. this[this.tableProduct.IsActiveColumn] = value;
  4974. }
  4975. }
  4976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4978. public int ManufacturerID {
  4979. get {
  4980. try {
  4981. return ((int)(this[this.tableProduct.ManufacturerIDColumn]));
  4982. }
  4983. catch (global::System.InvalidCastException e) {
  4984. throw new global::System.Data.StrongTypingException("Значение для столбца \'ManufacturerID\' в таблице \'Product\' равно DBNull.", e);
  4985. }
  4986. }
  4987. set {
  4988. this[this.tableProduct.ManufacturerIDColumn] = value;
  4989. }
  4990. }
  4991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4993. public ManufacturerRow ManufacturerRow {
  4994. get {
  4995. return ((ManufacturerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Manufacturer"])));
  4996. }
  4997. set {
  4998. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Manufacturer"]);
  4999. }
  5000. }
  5001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5003. public bool IsDescriptionNull() {
  5004. return this.IsNull(this.tableProduct.DescriptionColumn);
  5005. }
  5006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5008. public void SetDescriptionNull() {
  5009. this[this.tableProduct.DescriptionColumn] = global::System.Convert.DBNull;
  5010. }
  5011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5013. public bool IsMainImagePathNull() {
  5014. return this.IsNull(this.tableProduct.MainImagePathColumn);
  5015. }
  5016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5018. public void SetMainImagePathNull() {
  5019. this[this.tableProduct.MainImagePathColumn] = global::System.Convert.DBNull;
  5020. }
  5021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5023. public bool IsManufacturerIDNull() {
  5024. return this.IsNull(this.tableProduct.ManufacturerIDColumn);
  5025. }
  5026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5028. public void SetManufacturerIDNull() {
  5029. this[this.tableProduct.ManufacturerIDColumn] = global::System.Convert.DBNull;
  5030. }
  5031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5033. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product() {
  5034. if ((this.Table.ChildRelations["FK_AttachedProduct_Product"] == null)) {
  5035. return new AttachedProductRow[0];
  5036. }
  5037. else {
  5038. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product"])));
  5039. }
  5040. }
  5041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5043. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product1() {
  5044. if ((this.Table.ChildRelations["FK_AttachedProduct_Product1"] == null)) {
  5045. return new AttachedProductRow[0];
  5046. }
  5047. else {
  5048. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product1"])));
  5049. }
  5050. }
  5051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5053. public ProductPhotoRow[] GetProductPhotoRows() {
  5054. if ((this.Table.ChildRelations["FK_ProductPhoto_Product"] == null)) {
  5055. return new ProductPhotoRow[0];
  5056. }
  5057. else {
  5058. return ((ProductPhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPhoto_Product"])));
  5059. }
  5060. }
  5061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5063. public ProductSaleRow[] GetProductSaleRows() {
  5064. if ((this.Table.ChildRelations["FK_ProductSale_Product"] == null)) {
  5065. return new ProductSaleRow[0];
  5066. }
  5067. else {
  5068. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_Product"])));
  5069. }
  5070. }
  5071. }
  5072. /// <summary>
  5073. ///Represents strongly named DataRow class.
  5074. ///</summary>
  5075. public partial class ProductPhotoRow : global::System.Data.DataRow {
  5076. private ProductPhotoDataTable tableProductPhoto;
  5077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5079. internal ProductPhotoRow(global::System.Data.DataRowBuilder rb) :
  5080. base(rb) {
  5081. this.tableProductPhoto = ((ProductPhotoDataTable)(this.Table));
  5082. }
  5083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5085. public int ID {
  5086. get {
  5087. return ((int)(this[this.tableProductPhoto.IDColumn]));
  5088. }
  5089. set {
  5090. this[this.tableProductPhoto.IDColumn] = value;
  5091. }
  5092. }
  5093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5095. public int ProductID {
  5096. get {
  5097. return ((int)(this[this.tableProductPhoto.ProductIDColumn]));
  5098. }
  5099. set {
  5100. this[this.tableProductPhoto.ProductIDColumn] = value;
  5101. }
  5102. }
  5103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5105. public string PhotoPath {
  5106. get {
  5107. return ((string)(this[this.tableProductPhoto.PhotoPathColumn]));
  5108. }
  5109. set {
  5110. this[this.tableProductPhoto.PhotoPathColumn] = value;
  5111. }
  5112. }
  5113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5115. public ProductRow ProductRow {
  5116. get {
  5117. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPhoto_Product"])));
  5118. }
  5119. set {
  5120. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPhoto_Product"]);
  5121. }
  5122. }
  5123. }
  5124. /// <summary>
  5125. ///Represents strongly named DataRow class.
  5126. ///</summary>
  5127. public partial class ProductSaleRow : global::System.Data.DataRow {
  5128. private ProductSaleDataTable tableProductSale;
  5129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5131. internal ProductSaleRow(global::System.Data.DataRowBuilder rb) :
  5132. base(rb) {
  5133. this.tableProductSale = ((ProductSaleDataTable)(this.Table));
  5134. }
  5135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5137. public int ID {
  5138. get {
  5139. return ((int)(this[this.tableProductSale.IDColumn]));
  5140. }
  5141. set {
  5142. this[this.tableProductSale.IDColumn] = value;
  5143. }
  5144. }
  5145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5147. public System.DateTime SaleDate {
  5148. get {
  5149. return ((global::System.DateTime)(this[this.tableProductSale.SaleDateColumn]));
  5150. }
  5151. set {
  5152. this[this.tableProductSale.SaleDateColumn] = value;
  5153. }
  5154. }
  5155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5157. public int ProductID {
  5158. get {
  5159. return ((int)(this[this.tableProductSale.ProductIDColumn]));
  5160. }
  5161. set {
  5162. this[this.tableProductSale.ProductIDColumn] = value;
  5163. }
  5164. }
  5165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5167. public int Quantity {
  5168. get {
  5169. return ((int)(this[this.tableProductSale.QuantityColumn]));
  5170. }
  5171. set {
  5172. this[this.tableProductSale.QuantityColumn] = value;
  5173. }
  5174. }
  5175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5177. public int ClientServiceID {
  5178. get {
  5179. try {
  5180. return ((int)(this[this.tableProductSale.ClientServiceIDColumn]));
  5181. }
  5182. catch (global::System.InvalidCastException e) {
  5183. throw new global::System.Data.StrongTypingException("Значение для столбца \'ClientServiceID\' в таблице \'ProductSale\' равно DBNull.", e);
  5184. }
  5185. }
  5186. set {
  5187. this[this.tableProductSale.ClientServiceIDColumn] = value;
  5188. }
  5189. }
  5190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5192. public ClientServiceRow ClientServiceRow {
  5193. get {
  5194. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_ClientService"])));
  5195. }
  5196. set {
  5197. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_ClientService"]);
  5198. }
  5199. }
  5200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5202. public ProductRow ProductRow {
  5203. get {
  5204. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_Product"])));
  5205. }
  5206. set {
  5207. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_Product"]);
  5208. }
  5209. }
  5210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5212. public bool IsClientServiceIDNull() {
  5213. return this.IsNull(this.tableProductSale.ClientServiceIDColumn);
  5214. }
  5215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5217. public void SetClientServiceIDNull() {
  5218. this[this.tableProductSale.ClientServiceIDColumn] = global::System.Convert.DBNull;
  5219. }
  5220. }
  5221. /// <summary>
  5222. ///Represents strongly named DataRow class.
  5223. ///</summary>
  5224. public partial class ServiceRow : global::System.Data.DataRow {
  5225. private ServiceDataTable tableService;
  5226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5228. internal ServiceRow(global::System.Data.DataRowBuilder rb) :
  5229. base(rb) {
  5230. this.tableService = ((ServiceDataTable)(this.Table));
  5231. }
  5232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5234. public int ID {
  5235. get {
  5236. return ((int)(this[this.tableService.IDColumn]));
  5237. }
  5238. set {
  5239. this[this.tableService.IDColumn] = value;
  5240. }
  5241. }
  5242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5244. public string Title {
  5245. get {
  5246. try {
  5247. return ((string)(this[this.tableService.TitleColumn]));
  5248. }
  5249. catch (global::System.InvalidCastException e) {
  5250. throw new global::System.Data.StrongTypingException("Значение для столбца \'Title\' в таблице \'Service\' равно DBNull.", e);
  5251. }
  5252. }
  5253. set {
  5254. this[this.tableService.TitleColumn] = value;
  5255. }
  5256. }
  5257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5259. public decimal Cost {
  5260. get {
  5261. try {
  5262. return ((decimal)(this[this.tableService.CostColumn]));
  5263. }
  5264. catch (global::System.InvalidCastException e) {
  5265. throw new global::System.Data.StrongTypingException("Значение для столбца \'Cost\' в таблице \'Service\' равно DBNull.", e);
  5266. }
  5267. }
  5268. set {
  5269. this[this.tableService.CostColumn] = value;
  5270. }
  5271. }
  5272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5274. public string Description {
  5275. get {
  5276. try {
  5277. return ((string)(this[this.tableService.DescriptionColumn]));
  5278. }
  5279. catch (global::System.InvalidCastException e) {
  5280. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Service\' равно DBNull.", e);
  5281. }
  5282. }
  5283. set {
  5284. this[this.tableService.DescriptionColumn] = value;
  5285. }
  5286. }
  5287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5289. public string Discount {
  5290. get {
  5291. try {
  5292. return ((string)(this[this.tableService.DiscountColumn]));
  5293. }
  5294. catch (global::System.InvalidCastException e) {
  5295. throw new global::System.Data.StrongTypingException("Значение для столбца \'Discount\' в таблице \'Service\' равно DBNull.", e);
  5296. }
  5297. }
  5298. set {
  5299. this[this.tableService.DiscountColumn] = value;
  5300. }
  5301. }
  5302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5304. public string MainImagePath {
  5305. get {
  5306. try {
  5307. return ((string)(this[this.tableService.MainImagePathColumn]));
  5308. }
  5309. catch (global::System.InvalidCastException e) {
  5310. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Service\' равно DBNull.", e);
  5311. }
  5312. }
  5313. set {
  5314. this[this.tableService.MainImagePathColumn] = value;
  5315. }
  5316. }
  5317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5319. public byte[] ServicePhoto {
  5320. get {
  5321. try {
  5322. return ((byte[])(this[this.tableService.ServicePhotoColumn]));
  5323. }
  5324. catch (global::System.InvalidCastException e) {
  5325. throw new global::System.Data.StrongTypingException("Значение для столбца \'ServicePhoto\' в таблице \'Service\' равно DBNull.", e);
  5326. }
  5327. }
  5328. set {
  5329. this[this.tableService.ServicePhotoColumn] = value;
  5330. }
  5331. }
  5332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5334. public string PhormatPhoto {
  5335. get {
  5336. try {
  5337. return ((string)(this[this.tableService.PhormatPhotoColumn]));
  5338. }
  5339. catch (global::System.InvalidCastException e) {
  5340. throw new global::System.Data.StrongTypingException("Значение для столбца \'PhormatPhoto\' в таблице \'Service\' равно DBNull.", e);
  5341. }
  5342. }
  5343. set {
  5344. this[this.tableService.PhormatPhotoColumn] = value;
  5345. }
  5346. }
  5347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5349. public string DurationInMinutes {
  5350. get {
  5351. try {
  5352. return ((string)(this[this.tableService.DurationInMinutesColumn]));
  5353. }
  5354. catch (global::System.InvalidCastException e) {
  5355. throw new global::System.Data.StrongTypingException("Значение для столбца \'DurationInMinutes\' в таблице \'Service\' равно DBNull.", e);
  5356. }
  5357. }
  5358. set {
  5359. this[this.tableService.DurationInMinutesColumn] = value;
  5360. }
  5361. }
  5362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5364. public bool IsTitleNull() {
  5365. return this.IsNull(this.tableService.TitleColumn);
  5366. }
  5367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5369. public void SetTitleNull() {
  5370. this[this.tableService.TitleColumn] = global::System.Convert.DBNull;
  5371. }
  5372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5374. public bool IsCostNull() {
  5375. return this.IsNull(this.tableService.CostColumn);
  5376. }
  5377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5379. public void SetCostNull() {
  5380. this[this.tableService.CostColumn] = global::System.Convert.DBNull;
  5381. }
  5382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5384. public bool IsDescriptionNull() {
  5385. return this.IsNull(this.tableService.DescriptionColumn);
  5386. }
  5387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5389. public void SetDescriptionNull() {
  5390. this[this.tableService.DescriptionColumn] = global::System.Convert.DBNull;
  5391. }
  5392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5394. public bool IsDiscountNull() {
  5395. return this.IsNull(this.tableService.DiscountColumn);
  5396. }
  5397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5399. public void SetDiscountNull() {
  5400. this[this.tableService.DiscountColumn] = global::System.Convert.DBNull;
  5401. }
  5402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5404. public bool IsMainImagePathNull() {
  5405. return this.IsNull(this.tableService.MainImagePathColumn);
  5406. }
  5407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5409. public void SetMainImagePathNull() {
  5410. this[this.tableService.MainImagePathColumn] = global::System.Convert.DBNull;
  5411. }
  5412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5414. public bool IsServicePhotoNull() {
  5415. return this.IsNull(this.tableService.ServicePhotoColumn);
  5416. }
  5417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5419. public void SetServicePhotoNull() {
  5420. this[this.tableService.ServicePhotoColumn] = global::System.Convert.DBNull;
  5421. }
  5422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5424. public bool IsPhormatPhotoNull() {
  5425. return this.IsNull(this.tableService.PhormatPhotoColumn);
  5426. }
  5427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5429. public void SetPhormatPhotoNull() {
  5430. this[this.tableService.PhormatPhotoColumn] = global::System.Convert.DBNull;
  5431. }
  5432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5434. public bool IsDurationInMinutesNull() {
  5435. return this.IsNull(this.tableService.DurationInMinutesColumn);
  5436. }
  5437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5439. public void SetDurationInMinutesNull() {
  5440. this[this.tableService.DurationInMinutesColumn] = global::System.Convert.DBNull;
  5441. }
  5442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5444. public ClientServiceRow[] GetClientServiceRows() {
  5445. if ((this.Table.ChildRelations["FK_ClientService_Service"] == null)) {
  5446. return new ClientServiceRow[0];
  5447. }
  5448. else {
  5449. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Service"])));
  5450. }
  5451. }
  5452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5454. public ServicePhotoRow[] GetServicePhotoRows() {
  5455. if ((this.Table.ChildRelations["FK_ServicePhoto_Service"] == null)) {
  5456. return new ServicePhotoRow[0];
  5457. }
  5458. else {
  5459. return ((ServicePhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ServicePhoto_Service"])));
  5460. }
  5461. }
  5462. }
  5463. /// <summary>
  5464. ///Represents strongly named DataRow class.
  5465. ///</summary>
  5466. public partial class ServicePhotoRow : global::System.Data.DataRow {
  5467. private ServicePhotoDataTable tableServicePhoto;
  5468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5470. internal ServicePhotoRow(global::System.Data.DataRowBuilder rb) :
  5471. base(rb) {
  5472. this.tableServicePhoto = ((ServicePhotoDataTable)(this.Table));
  5473. }
  5474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5476. public int ID {
  5477. get {
  5478. return ((int)(this[this.tableServicePhoto.IDColumn]));
  5479. }
  5480. set {
  5481. this[this.tableServicePhoto.IDColumn] = value;
  5482. }
  5483. }
  5484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5486. public int ServiceID {
  5487. get {
  5488. return ((int)(this[this.tableServicePhoto.ServiceIDColumn]));
  5489. }
  5490. set {
  5491. this[this.tableServicePhoto.ServiceIDColumn] = value;
  5492. }
  5493. }
  5494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5496. public string PhotoPath {
  5497. get {
  5498. return ((string)(this[this.tableServicePhoto.PhotoPathColumn]));
  5499. }
  5500. set {
  5501. this[this.tableServicePhoto.PhotoPathColumn] = value;
  5502. }
  5503. }
  5504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5506. public ServiceRow ServiceRow {
  5507. get {
  5508. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ServicePhoto_Service"])));
  5509. }
  5510. set {
  5511. this.SetParentRow(value, this.Table.ParentRelations["FK_ServicePhoto_Service"]);
  5512. }
  5513. }
  5514. }
  5515. /// <summary>
  5516. ///Represents strongly named DataRow class.
  5517. ///</summary>
  5518. public partial class TagRow : global::System.Data.DataRow {
  5519. private TagDataTable tableTag;
  5520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5522. internal TagRow(global::System.Data.DataRowBuilder rb) :
  5523. base(rb) {
  5524. this.tableTag = ((TagDataTable)(this.Table));
  5525. }
  5526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5528. public int ID {
  5529. get {
  5530. return ((int)(this[this.tableTag.IDColumn]));
  5531. }
  5532. set {
  5533. this[this.tableTag.IDColumn] = value;
  5534. }
  5535. }
  5536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5538. public string Title {
  5539. get {
  5540. return ((string)(this[this.tableTag.TitleColumn]));
  5541. }
  5542. set {
  5543. this[this.tableTag.TitleColumn] = value;
  5544. }
  5545. }
  5546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5548. public string Color {
  5549. get {
  5550. return ((string)(this[this.tableTag.ColorColumn]));
  5551. }
  5552. set {
  5553. this[this.tableTag.ColorColumn] = value;
  5554. }
  5555. }
  5556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5558. public TagOfClientRow[] GetTagOfClientRows() {
  5559. if ((this.Table.ChildRelations["FK_TagOfClient_Tag"] == null)) {
  5560. return new TagOfClientRow[0];
  5561. }
  5562. else {
  5563. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Tag"])));
  5564. }
  5565. }
  5566. }
  5567. /// <summary>
  5568. ///Represents strongly named DataRow class.
  5569. ///</summary>
  5570. public partial class TagOfClientRow : global::System.Data.DataRow {
  5571. private TagOfClientDataTable tableTagOfClient;
  5572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5574. internal TagOfClientRow(global::System.Data.DataRowBuilder rb) :
  5575. base(rb) {
  5576. this.tableTagOfClient = ((TagOfClientDataTable)(this.Table));
  5577. }
  5578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5580. public int ClientID {
  5581. get {
  5582. return ((int)(this[this.tableTagOfClient.ClientIDColumn]));
  5583. }
  5584. set {
  5585. this[this.tableTagOfClient.ClientIDColumn] = value;
  5586. }
  5587. }
  5588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5590. public int TagID {
  5591. get {
  5592. return ((int)(this[this.tableTagOfClient.TagIDColumn]));
  5593. }
  5594. set {
  5595. this[this.tableTagOfClient.TagIDColumn] = value;
  5596. }
  5597. }
  5598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5600. public ClientRow ClientRow {
  5601. get {
  5602. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Client"])));
  5603. }
  5604. set {
  5605. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Client"]);
  5606. }
  5607. }
  5608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5610. public TagRow TagRow {
  5611. get {
  5612. return ((TagRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Tag"])));
  5613. }
  5614. set {
  5615. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Tag"]);
  5616. }
  5617. }
  5618. }
  5619. /// <summary>
  5620. ///Row event argument class
  5621. ///</summary>
  5622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5623. public class AttachedProductRowChangeEvent : global::System.EventArgs {
  5624. private AttachedProductRow eventRow;
  5625. private global::System.Data.DataRowAction eventAction;
  5626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5628. public AttachedProductRowChangeEvent(AttachedProductRow row, global::System.Data.DataRowAction action) {
  5629. this.eventRow = row;
  5630. this.eventAction = action;
  5631. }
  5632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5634. public AttachedProductRow Row {
  5635. get {
  5636. return this.eventRow;
  5637. }
  5638. }
  5639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5641. public global::System.Data.DataRowAction Action {
  5642. get {
  5643. return this.eventAction;
  5644. }
  5645. }
  5646. }
  5647. /// <summary>
  5648. ///Row event argument class
  5649. ///</summary>
  5650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5651. public class ClientRowChangeEvent : global::System.EventArgs {
  5652. private ClientRow eventRow;
  5653. private global::System.Data.DataRowAction eventAction;
  5654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5656. public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) {
  5657. this.eventRow = row;
  5658. this.eventAction = action;
  5659. }
  5660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5662. public ClientRow Row {
  5663. get {
  5664. return this.eventRow;
  5665. }
  5666. }
  5667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5669. public global::System.Data.DataRowAction Action {
  5670. get {
  5671. return this.eventAction;
  5672. }
  5673. }
  5674. }
  5675. /// <summary>
  5676. ///Row event argument class
  5677. ///</summary>
  5678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5679. public class ClientServiceRowChangeEvent : global::System.EventArgs {
  5680. private ClientServiceRow eventRow;
  5681. private global::System.Data.DataRowAction eventAction;
  5682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5684. public ClientServiceRowChangeEvent(ClientServiceRow row, global::System.Data.DataRowAction action) {
  5685. this.eventRow = row;
  5686. this.eventAction = action;
  5687. }
  5688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5690. public ClientServiceRow Row {
  5691. get {
  5692. return this.eventRow;
  5693. }
  5694. }
  5695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5697. public global::System.Data.DataRowAction Action {
  5698. get {
  5699. return this.eventAction;
  5700. }
  5701. }
  5702. }
  5703. /// <summary>
  5704. ///Row event argument class
  5705. ///</summary>
  5706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5707. public class DocumentByServiceRowChangeEvent : global::System.EventArgs {
  5708. private DocumentByServiceRow eventRow;
  5709. private global::System.Data.DataRowAction eventAction;
  5710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5712. public DocumentByServiceRowChangeEvent(DocumentByServiceRow row, global::System.Data.DataRowAction action) {
  5713. this.eventRow = row;
  5714. this.eventAction = action;
  5715. }
  5716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5718. public DocumentByServiceRow Row {
  5719. get {
  5720. return this.eventRow;
  5721. }
  5722. }
  5723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5725. public global::System.Data.DataRowAction Action {
  5726. get {
  5727. return this.eventAction;
  5728. }
  5729. }
  5730. }
  5731. /// <summary>
  5732. ///Row event argument class
  5733. ///</summary>
  5734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5735. public class GenderRowChangeEvent : global::System.EventArgs {
  5736. private GenderRow eventRow;
  5737. private global::System.Data.DataRowAction eventAction;
  5738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5740. public GenderRowChangeEvent(GenderRow row, global::System.Data.DataRowAction action) {
  5741. this.eventRow = row;
  5742. this.eventAction = action;
  5743. }
  5744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5746. public GenderRow Row {
  5747. get {
  5748. return this.eventRow;
  5749. }
  5750. }
  5751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5753. public global::System.Data.DataRowAction Action {
  5754. get {
  5755. return this.eventAction;
  5756. }
  5757. }
  5758. }
  5759. /// <summary>
  5760. ///Row event argument class
  5761. ///</summary>
  5762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5763. public class ManufacturerRowChangeEvent : global::System.EventArgs {
  5764. private ManufacturerRow eventRow;
  5765. private global::System.Data.DataRowAction eventAction;
  5766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5768. public ManufacturerRowChangeEvent(ManufacturerRow row, global::System.Data.DataRowAction action) {
  5769. this.eventRow = row;
  5770. this.eventAction = action;
  5771. }
  5772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5774. public ManufacturerRow Row {
  5775. get {
  5776. return this.eventRow;
  5777. }
  5778. }
  5779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5781. public global::System.Data.DataRowAction Action {
  5782. get {
  5783. return this.eventAction;
  5784. }
  5785. }
  5786. }
  5787. /// <summary>
  5788. ///Row event argument class
  5789. ///</summary>
  5790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5791. public class ProductRowChangeEvent : global::System.EventArgs {
  5792. private ProductRow eventRow;
  5793. private global::System.Data.DataRowAction eventAction;
  5794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5796. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  5797. this.eventRow = row;
  5798. this.eventAction = action;
  5799. }
  5800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5802. public ProductRow Row {
  5803. get {
  5804. return this.eventRow;
  5805. }
  5806. }
  5807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5809. public global::System.Data.DataRowAction Action {
  5810. get {
  5811. return this.eventAction;
  5812. }
  5813. }
  5814. }
  5815. /// <summary>
  5816. ///Row event argument class
  5817. ///</summary>
  5818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5819. public class ProductPhotoRowChangeEvent : global::System.EventArgs {
  5820. private ProductPhotoRow eventRow;
  5821. private global::System.Data.DataRowAction eventAction;
  5822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5824. public ProductPhotoRowChangeEvent(ProductPhotoRow row, global::System.Data.DataRowAction action) {
  5825. this.eventRow = row;
  5826. this.eventAction = action;
  5827. }
  5828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5830. public ProductPhotoRow Row {
  5831. get {
  5832. return this.eventRow;
  5833. }
  5834. }
  5835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5837. public global::System.Data.DataRowAction Action {
  5838. get {
  5839. return this.eventAction;
  5840. }
  5841. }
  5842. }
  5843. /// <summary>
  5844. ///Row event argument class
  5845. ///</summary>
  5846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5847. public class ProductSaleRowChangeEvent : global::System.EventArgs {
  5848. private ProductSaleRow eventRow;
  5849. private global::System.Data.DataRowAction eventAction;
  5850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5852. public ProductSaleRowChangeEvent(ProductSaleRow row, global::System.Data.DataRowAction action) {
  5853. this.eventRow = row;
  5854. this.eventAction = action;
  5855. }
  5856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5858. public ProductSaleRow Row {
  5859. get {
  5860. return this.eventRow;
  5861. }
  5862. }
  5863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5865. public global::System.Data.DataRowAction Action {
  5866. get {
  5867. return this.eventAction;
  5868. }
  5869. }
  5870. }
  5871. /// <summary>
  5872. ///Row event argument class
  5873. ///</summary>
  5874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5875. public class ServiceRowChangeEvent : global::System.EventArgs {
  5876. private ServiceRow eventRow;
  5877. private global::System.Data.DataRowAction eventAction;
  5878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5880. public ServiceRowChangeEvent(ServiceRow row, global::System.Data.DataRowAction action) {
  5881. this.eventRow = row;
  5882. this.eventAction = action;
  5883. }
  5884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5886. public ServiceRow Row {
  5887. get {
  5888. return this.eventRow;
  5889. }
  5890. }
  5891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5893. public global::System.Data.DataRowAction Action {
  5894. get {
  5895. return this.eventAction;
  5896. }
  5897. }
  5898. }
  5899. /// <summary>
  5900. ///Row event argument class
  5901. ///</summary>
  5902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5903. public class ServicePhotoRowChangeEvent : global::System.EventArgs {
  5904. private ServicePhotoRow eventRow;
  5905. private global::System.Data.DataRowAction eventAction;
  5906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5908. public ServicePhotoRowChangeEvent(ServicePhotoRow row, global::System.Data.DataRowAction action) {
  5909. this.eventRow = row;
  5910. this.eventAction = action;
  5911. }
  5912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5914. public ServicePhotoRow Row {
  5915. get {
  5916. return this.eventRow;
  5917. }
  5918. }
  5919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5921. public global::System.Data.DataRowAction Action {
  5922. get {
  5923. return this.eventAction;
  5924. }
  5925. }
  5926. }
  5927. /// <summary>
  5928. ///Row event argument class
  5929. ///</summary>
  5930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5931. public class TagRowChangeEvent : global::System.EventArgs {
  5932. private TagRow eventRow;
  5933. private global::System.Data.DataRowAction eventAction;
  5934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5936. public TagRowChangeEvent(TagRow row, global::System.Data.DataRowAction action) {
  5937. this.eventRow = row;
  5938. this.eventAction = action;
  5939. }
  5940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5942. public TagRow Row {
  5943. get {
  5944. return this.eventRow;
  5945. }
  5946. }
  5947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5949. public global::System.Data.DataRowAction Action {
  5950. get {
  5951. return this.eventAction;
  5952. }
  5953. }
  5954. }
  5955. /// <summary>
  5956. ///Row event argument class
  5957. ///</summary>
  5958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5959. public class TagOfClientRowChangeEvent : global::System.EventArgs {
  5960. private TagOfClientRow eventRow;
  5961. private global::System.Data.DataRowAction eventAction;
  5962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5964. public TagOfClientRowChangeEvent(TagOfClientRow row, global::System.Data.DataRowAction action) {
  5965. this.eventRow = row;
  5966. this.eventAction = action;
  5967. }
  5968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5970. public TagOfClientRow Row {
  5971. get {
  5972. return this.eventRow;
  5973. }
  5974. }
  5975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5977. public global::System.Data.DataRowAction Action {
  5978. get {
  5979. return this.eventAction;
  5980. }
  5981. }
  5982. }
  5983. }
  5984. }
  5985. namespace SalonKrasoti02.SaloonKrasoti02DataSetTableAdapters {
  5986. /// <summary>
  5987. ///Represents the connection and commands used to retrieve and save data.
  5988. ///</summary>
  5989. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5990. [global::System.ComponentModel.ToolboxItem(true)]
  5991. [global::System.ComponentModel.DataObjectAttribute(true)]
  5992. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5993. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5994. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5995. public partial class AttachedProductTableAdapter : global::System.ComponentModel.Component {
  5996. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5997. private global::System.Data.SqlClient.SqlConnection _connection;
  5998. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5999. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6000. private bool _clearBeforeFill;
  6001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6003. public AttachedProductTableAdapter() {
  6004. this.ClearBeforeFill = true;
  6005. }
  6006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6008. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6009. get {
  6010. if ((this._adapter == null)) {
  6011. this.InitAdapter();
  6012. }
  6013. return this._adapter;
  6014. }
  6015. }
  6016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6018. internal global::System.Data.SqlClient.SqlConnection Connection {
  6019. get {
  6020. if ((this._connection == null)) {
  6021. this.InitConnection();
  6022. }
  6023. return this._connection;
  6024. }
  6025. set {
  6026. this._connection = value;
  6027. if ((this.Adapter.InsertCommand != null)) {
  6028. this.Adapter.InsertCommand.Connection = value;
  6029. }
  6030. if ((this.Adapter.DeleteCommand != null)) {
  6031. this.Adapter.DeleteCommand.Connection = value;
  6032. }
  6033. if ((this.Adapter.UpdateCommand != null)) {
  6034. this.Adapter.UpdateCommand.Connection = value;
  6035. }
  6036. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6037. if ((this.CommandCollection[i] != null)) {
  6038. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6039. }
  6040. }
  6041. }
  6042. }
  6043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6045. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6046. get {
  6047. return this._transaction;
  6048. }
  6049. set {
  6050. this._transaction = value;
  6051. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6052. this.CommandCollection[i].Transaction = this._transaction;
  6053. }
  6054. if (((this.Adapter != null)
  6055. && (this.Adapter.DeleteCommand != null))) {
  6056. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6057. }
  6058. if (((this.Adapter != null)
  6059. && (this.Adapter.InsertCommand != null))) {
  6060. this.Adapter.InsertCommand.Transaction = this._transaction;
  6061. }
  6062. if (((this.Adapter != null)
  6063. && (this.Adapter.UpdateCommand != null))) {
  6064. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6065. }
  6066. }
  6067. }
  6068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6070. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6071. get {
  6072. if ((this._commandCollection == null)) {
  6073. this.InitCommandCollection();
  6074. }
  6075. return this._commandCollection;
  6076. }
  6077. }
  6078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6080. public bool ClearBeforeFill {
  6081. get {
  6082. return this._clearBeforeFill;
  6083. }
  6084. set {
  6085. this._clearBeforeFill = value;
  6086. }
  6087. }
  6088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6090. private void InitAdapter() {
  6091. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6092. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6093. tableMapping.SourceTable = "Table";
  6094. tableMapping.DataSetTable = "AttachedProduct";
  6095. tableMapping.ColumnMappings.Add("MainProductID", "MainProductID");
  6096. tableMapping.ColumnMappings.Add("AttachedProductID", "AttachedProductID");
  6097. this._adapter.TableMappings.Add(tableMapping);
  6098. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6099. this._adapter.DeleteCommand.Connection = this.Connection;
  6100. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AttachedProduct] WHERE (([MainProductID] = @Original_MainProdu" +
  6101. "ctID) AND ([AttachedProductID] = @Original_AttachedProductID))";
  6102. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6103. 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, "", "", ""));
  6104. 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, "", "", ""));
  6105. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6106. this._adapter.InsertCommand.Connection = this.Connection;
  6107. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AttachedProduct] ([MainProductID], [AttachedProductID]) VALUES (@MainProductID, @AttachedProductID);
  6108. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  6109. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6110. 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, "", "", ""));
  6111. 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, "", "", ""));
  6112. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6113. this._adapter.UpdateCommand.Connection = this.Connection;
  6114. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AttachedProduct] SET [MainProductID] = @MainProductID, [AttachedProductID] = @AttachedProductID WHERE (([MainProductID] = @Original_MainProductID) AND ([AttachedProductID] = @Original_AttachedProductID));
  6115. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  6116. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6117. 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, "", "", ""));
  6118. 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, "", "", ""));
  6119. 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, "", "", ""));
  6120. 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, "", "", ""));
  6121. }
  6122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6124. private void InitConnection() {
  6125. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6126. this._connection.ConnectionString = global::SalonKrasoti02.Properties.Settings.Default.SaloonKrasoti02ConnectionString;
  6127. }
  6128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6130. private void InitCommandCollection() {
  6131. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6132. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6133. this._commandCollection[0].Connection = this.Connection;
  6134. this._commandCollection[0].CommandText = "SELECT MainProductID, AttachedProductID FROM dbo.AttachedProduct";
  6135. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6136. }
  6137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6139. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6140. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6141. public virtual int Fill(SaloonKrasoti02DataSet.AttachedProductDataTable dataTable) {
  6142. this.Adapter.SelectCommand = this.CommandCollection[0];
  6143. if ((this.ClearBeforeFill == true)) {
  6144. dataTable.Clear();
  6145. }
  6146. int returnValue = this.Adapter.Fill(dataTable);
  6147. return returnValue;
  6148. }
  6149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6151. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6152. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6153. public virtual SaloonKrasoti02DataSet.AttachedProductDataTable GetData() {
  6154. this.Adapter.SelectCommand = this.CommandCollection[0];
  6155. SaloonKrasoti02DataSet.AttachedProductDataTable dataTable = new SaloonKrasoti02DataSet.AttachedProductDataTable();
  6156. this.Adapter.Fill(dataTable);
  6157. return dataTable;
  6158. }
  6159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6161. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6162. public virtual int Update(SaloonKrasoti02DataSet.AttachedProductDataTable dataTable) {
  6163. return this.Adapter.Update(dataTable);
  6164. }
  6165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6167. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6168. public virtual int Update(SaloonKrasoti02DataSet dataSet) {
  6169. return this.Adapter.Update(dataSet, "AttachedProduct");
  6170. }
  6171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6173. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6174. public virtual int Update(global::System.Data.DataRow dataRow) {
  6175. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6176. dataRow});
  6177. }
  6178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6180. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6181. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6182. return this.Adapter.Update(dataRows);
  6183. }
  6184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6186. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6187. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6188. public virtual int Delete(int Original_MainProductID, int Original_AttachedProductID) {
  6189. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MainProductID));
  6190. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_AttachedProductID));
  6191. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6192. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6193. != global::System.Data.ConnectionState.Open)) {
  6194. this.Adapter.DeleteCommand.Connection.Open();
  6195. }
  6196. try {
  6197. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6198. return returnValue;
  6199. }
  6200. finally {
  6201. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6202. this.Adapter.DeleteCommand.Connection.Close();
  6203. }
  6204. }
  6205. }
  6206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6208. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6209. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6210. public virtual int Insert(int MainProductID, int AttachedProductID) {
  6211. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MainProductID));
  6212. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6213. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6214. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6215. != global::System.Data.ConnectionState.Open)) {
  6216. this.Adapter.InsertCommand.Connection.Open();
  6217. }
  6218. try {
  6219. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6220. return returnValue;
  6221. }
  6222. finally {
  6223. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6224. this.Adapter.InsertCommand.Connection.Close();
  6225. }
  6226. }
  6227. }
  6228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6230. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6231. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6232. public virtual int Update(int MainProductID, int AttachedProductID, int Original_MainProductID, int Original_AttachedProductID) {
  6233. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MainProductID));
  6234. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6235. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_MainProductID));
  6236. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_AttachedProductID));
  6237. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6238. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6239. != global::System.Data.ConnectionState.Open)) {
  6240. this.Adapter.UpdateCommand.Connection.Open();
  6241. }
  6242. try {
  6243. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6244. return returnValue;
  6245. }
  6246. finally {
  6247. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6248. this.Adapter.UpdateCommand.Connection.Close();
  6249. }
  6250. }
  6251. }
  6252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6254. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6255. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6256. public virtual int Update(int Original_MainProductID, int Original_AttachedProductID) {
  6257. return this.Update(Original_MainProductID, Original_AttachedProductID, Original_MainProductID, Original_AttachedProductID);
  6258. }
  6259. }
  6260. /// <summary>
  6261. ///Represents the connection and commands used to retrieve and save data.
  6262. ///</summary>
  6263. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6264. [global::System.ComponentModel.ToolboxItem(true)]
  6265. [global::System.ComponentModel.DataObjectAttribute(true)]
  6266. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6267. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6268. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6269. public partial class ClientTableAdapter : global::System.ComponentModel.Component {
  6270. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6271. private global::System.Data.SqlClient.SqlConnection _connection;
  6272. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6273. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6274. private bool _clearBeforeFill;
  6275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6277. public ClientTableAdapter() {
  6278. this.ClearBeforeFill = true;
  6279. }
  6280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6282. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6283. get {
  6284. if ((this._adapter == null)) {
  6285. this.InitAdapter();
  6286. }
  6287. return this._adapter;
  6288. }
  6289. }
  6290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6292. internal global::System.Data.SqlClient.SqlConnection Connection {
  6293. get {
  6294. if ((this._connection == null)) {
  6295. this.InitConnection();
  6296. }
  6297. return this._connection;
  6298. }
  6299. set {
  6300. this._connection = value;
  6301. if ((this.Adapter.InsertCommand != null)) {
  6302. this.Adapter.InsertCommand.Connection = value;
  6303. }
  6304. if ((this.Adapter.DeleteCommand != null)) {
  6305. this.Adapter.DeleteCommand.Connection = value;
  6306. }
  6307. if ((this.Adapter.UpdateCommand != null)) {
  6308. this.Adapter.UpdateCommand.Connection = value;
  6309. }
  6310. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6311. if ((this.CommandCollection[i] != null)) {
  6312. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6313. }
  6314. }
  6315. }
  6316. }
  6317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6319. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6320. get {
  6321. return this._transaction;
  6322. }
  6323. set {
  6324. this._transaction = value;
  6325. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6326. this.CommandCollection[i].Transaction = this._transaction;
  6327. }
  6328. if (((this.Adapter != null)
  6329. && (this.Adapter.DeleteCommand != null))) {
  6330. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6331. }
  6332. if (((this.Adapter != null)
  6333. && (this.Adapter.InsertCommand != null))) {
  6334. this.Adapter.InsertCommand.Transaction = this._transaction;
  6335. }
  6336. if (((this.Adapter != null)
  6337. && (this.Adapter.UpdateCommand != null))) {
  6338. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6339. }
  6340. }
  6341. }
  6342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6344. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6345. get {
  6346. if ((this._commandCollection == null)) {
  6347. this.InitCommandCollection();
  6348. }
  6349. return this._commandCollection;
  6350. }
  6351. }
  6352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6354. public bool ClearBeforeFill {
  6355. get {
  6356. return this._clearBeforeFill;
  6357. }
  6358. set {
  6359. this._clearBeforeFill = value;
  6360. }
  6361. }
  6362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6364. private void InitAdapter() {
  6365. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6366. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6367. tableMapping.SourceTable = "Table";
  6368. tableMapping.DataSetTable = "Client";
  6369. tableMapping.ColumnMappings.Add("ID", "ID");
  6370. tableMapping.ColumnMappings.Add("LastName", "LastName");
  6371. tableMapping.ColumnMappings.Add("FirstName", "FirstName");
  6372. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  6373. tableMapping.ColumnMappings.Add("Birthday", "Birthday");
  6374. tableMapping.ColumnMappings.Add("RegistrationDate", "RegistrationDate");
  6375. tableMapping.ColumnMappings.Add("Email", "Email");
  6376. tableMapping.ColumnMappings.Add("Phone", "Phone");
  6377. tableMapping.ColumnMappings.Add("GenderCode", "GenderCode");
  6378. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  6379. this._adapter.TableMappings.Add(tableMapping);
  6380. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6381. this._adapter.DeleteCommand.Connection = this.Connection;
  6382. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Client] WHERE (([ID] = @Original_ID) AND ([LastName] = @Original_LastName) AND ([FirstName] = @Original_FirstName) 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)))";
  6383. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6384. 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, "", "", ""));
  6385. 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, "", "", ""));
  6386. 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, "", "", ""));
  6387. 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, "", "", ""));
  6388. 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, "", "", ""));
  6389. 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, "", "", ""));
  6390. 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, "", "", ""));
  6391. 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, "", "", ""));
  6392. 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, "", "", ""));
  6393. 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, "", "", ""));
  6394. 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, "", "", ""));
  6395. 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, "", "", ""));
  6396. 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, "", "", ""));
  6397. 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, "", "", ""));
  6398. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6399. this._adapter.InsertCommand.Connection = this.Connection;
  6400. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Client] ([LastName], [FirstName], [Patronymic], [Birthday], [RegistrationDate], [Email], [Phone], [GenderCode], [PhotoPath]) VALUES (@LastName, @FirstName, @Patronymic, @Birthday, @RegistrationDate, @Email, @Phone, @GenderCode, @PhotoPath);
  6401. SELECT ID, LastName, FirstName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = SCOPE_IDENTITY())";
  6402. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6403. 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, "", "", ""));
  6404. 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, "", "", ""));
  6405. 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, "", "", ""));
  6406. 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, "", "", ""));
  6407. 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, "", "", ""));
  6408. 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, "", "", ""));
  6409. 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, "", "", ""));
  6410. 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, "", "", ""));
  6411. 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, "", "", ""));
  6412. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6413. this._adapter.UpdateCommand.Connection = this.Connection;
  6414. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Client] SET [LastName] = @LastName, [FirstName] = @FirstName, [Patronymic] = @Patronymic, [Birthday] = @Birthday, [RegistrationDate] = @RegistrationDate, [Email] = @Email, [Phone] = @Phone, [GenderCode] = @GenderCode, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([LastName] = @Original_LastName) AND ([FirstName] = @Original_FirstName) 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)));
  6415. SELECT ID, LastName, FirstName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = @ID)";
  6416. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6417. 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, "", "", ""));
  6418. 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, "", "", ""));
  6419. 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, "", "", ""));
  6420. 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, "", "", ""));
  6421. 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, "", "", ""));
  6422. 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, "", "", ""));
  6423. 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, "", "", ""));
  6424. 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, "", "", ""));
  6425. 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, "", "", ""));
  6426. 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, "", "", ""));
  6427. 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, "", "", ""));
  6428. 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, "", "", ""));
  6429. 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, "", "", ""));
  6430. 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, "", "", ""));
  6431. 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, "", "", ""));
  6432. 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, "", "", ""));
  6433. 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, "", "", ""));
  6434. 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, "", "", ""));
  6435. 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, "", "", ""));
  6436. 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, "", "", ""));
  6437. 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, "", "", ""));
  6438. 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, "", "", ""));
  6439. 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, "", "", ""));
  6440. 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, "", "", ""));
  6441. }
  6442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6444. private void InitConnection() {
  6445. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6446. this._connection.ConnectionString = global::SalonKrasoti02.Properties.Settings.Default.SaloonKrasoti02ConnectionString;
  6447. }
  6448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6450. private void InitCommandCollection() {
  6451. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6452. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6453. this._commandCollection[0].Connection = this.Connection;
  6454. this._commandCollection[0].CommandText = "SELECT ID, LastName, FirstName, Patronymic, Birthday, RegistrationDate, Email, Ph" +
  6455. "one, GenderCode, PhotoPath FROM dbo.Client";
  6456. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6457. }
  6458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6460. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6461. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6462. public virtual int Fill(SaloonKrasoti02DataSet.ClientDataTable dataTable) {
  6463. this.Adapter.SelectCommand = this.CommandCollection[0];
  6464. if ((this.ClearBeforeFill == true)) {
  6465. dataTable.Clear();
  6466. }
  6467. int returnValue = this.Adapter.Fill(dataTable);
  6468. return returnValue;
  6469. }
  6470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6472. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6473. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6474. public virtual SaloonKrasoti02DataSet.ClientDataTable GetData() {
  6475. this.Adapter.SelectCommand = this.CommandCollection[0];
  6476. SaloonKrasoti02DataSet.ClientDataTable dataTable = new SaloonKrasoti02DataSet.ClientDataTable();
  6477. this.Adapter.Fill(dataTable);
  6478. return dataTable;
  6479. }
  6480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6482. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6483. public virtual int Update(SaloonKrasoti02DataSet.ClientDataTable dataTable) {
  6484. return this.Adapter.Update(dataTable);
  6485. }
  6486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6488. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6489. public virtual int Update(SaloonKrasoti02DataSet dataSet) {
  6490. return this.Adapter.Update(dataSet, "Client");
  6491. }
  6492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6494. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6495. public virtual int Update(global::System.Data.DataRow dataRow) {
  6496. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6497. dataRow});
  6498. }
  6499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6501. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6502. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6503. return this.Adapter.Update(dataRows);
  6504. }
  6505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6507. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6508. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6509. public virtual int Delete(int Original_ID, string Original_LastName, string Original_FirstName, 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) {
  6510. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  6511. if ((Original_LastName == null)) {
  6512. throw new global::System.ArgumentNullException("Original_LastName");
  6513. }
  6514. else {
  6515. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_LastName));
  6516. }
  6517. if ((Original_FirstName == null)) {
  6518. throw new global::System.ArgumentNullException("Original_FirstName");
  6519. }
  6520. else {
  6521. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_FirstName));
  6522. }
  6523. if ((Original_Patronymic == null)) {
  6524. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6525. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6526. }
  6527. else {
  6528. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6529. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Patronymic));
  6530. }
  6531. if ((Original_Birthday.HasValue == true)) {
  6532. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6533. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Birthday.Value));
  6534. }
  6535. else {
  6536. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6537. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6538. }
  6539. this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_RegistrationDate));
  6540. if ((Original_Email == null)) {
  6541. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
  6542. this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
  6543. }
  6544. else {
  6545. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
  6546. this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_Email));
  6547. }
  6548. if ((Original_Phone == null)) {
  6549. throw new global::System.ArgumentNullException("Original_Phone");
  6550. }
  6551. else {
  6552. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Phone));
  6553. }
  6554. if ((Original_GenderCode == null)) {
  6555. throw new global::System.ArgumentNullException("Original_GenderCode");
  6556. }
  6557. else {
  6558. this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_GenderCode));
  6559. }
  6560. if ((Original_PhotoPath == null)) {
  6561. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1));
  6562. this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value;
  6563. }
  6564. else {
  6565. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0));
  6566. this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_PhotoPath));
  6567. }
  6568. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6569. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6570. != global::System.Data.ConnectionState.Open)) {
  6571. this.Adapter.DeleteCommand.Connection.Open();
  6572. }
  6573. try {
  6574. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6575. return returnValue;
  6576. }
  6577. finally {
  6578. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6579. this.Adapter.DeleteCommand.Connection.Close();
  6580. }
  6581. }
  6582. }
  6583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6585. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6586. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6587. public virtual int Insert(string LastName, string FirstName, string Patronymic, global::System.Nullable<global::System.DateTime> Birthday, System.DateTime RegistrationDate, string Email, string Phone, string GenderCode, string PhotoPath) {
  6588. if ((LastName == null)) {
  6589. throw new global::System.ArgumentNullException("LastName");
  6590. }
  6591. else {
  6592. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(LastName));
  6593. }
  6594. if ((FirstName == null)) {
  6595. throw new global::System.ArgumentNullException("FirstName");
  6596. }
  6597. else {
  6598. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(FirstName));
  6599. }
  6600. if ((Patronymic == null)) {
  6601. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6602. }
  6603. else {
  6604. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  6605. }
  6606. if ((Birthday.HasValue == true)) {
  6607. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  6608. }
  6609. else {
  6610. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6611. }
  6612. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  6613. if ((Email == null)) {
  6614. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6615. }
  6616. else {
  6617. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Email));
  6618. }
  6619. if ((Phone == null)) {
  6620. throw new global::System.ArgumentNullException("Phone");
  6621. }
  6622. else {
  6623. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  6624. }
  6625. if ((GenderCode == null)) {
  6626. throw new global::System.ArgumentNullException("GenderCode");
  6627. }
  6628. else {
  6629. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(GenderCode));
  6630. }
  6631. if ((PhotoPath == null)) {
  6632. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  6633. }
  6634. else {
  6635. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(PhotoPath));
  6636. }
  6637. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6638. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6639. != global::System.Data.ConnectionState.Open)) {
  6640. this.Adapter.InsertCommand.Connection.Open();
  6641. }
  6642. try {
  6643. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6644. return returnValue;
  6645. }
  6646. finally {
  6647. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6648. this.Adapter.InsertCommand.Connection.Close();
  6649. }
  6650. }
  6651. }
  6652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6654. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6655. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6656. public virtual int Update(
  6657. string LastName,
  6658. string FirstName,
  6659. string Patronymic,
  6660. global::System.Nullable<global::System.DateTime> Birthday,
  6661. System.DateTime RegistrationDate,
  6662. string Email,
  6663. string Phone,
  6664. string GenderCode,
  6665. string PhotoPath,
  6666. int Original_ID,
  6667. string Original_LastName,
  6668. string Original_FirstName,
  6669. string Original_Patronymic,
  6670. global::System.Nullable<global::System.DateTime> Original_Birthday,
  6671. System.DateTime Original_RegistrationDate,
  6672. string Original_Email,
  6673. string Original_Phone,
  6674. string Original_GenderCode,
  6675. string Original_PhotoPath,
  6676. int ID) {
  6677. if ((LastName == null)) {
  6678. throw new global::System.ArgumentNullException("LastName");
  6679. }
  6680. else {
  6681. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(LastName));
  6682. }
  6683. if ((FirstName == null)) {
  6684. throw new global::System.ArgumentNullException("FirstName");
  6685. }
  6686. else {
  6687. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(FirstName));
  6688. }
  6689. if ((Patronymic == null)) {
  6690. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6691. }
  6692. else {
  6693. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  6694. }
  6695. if ((Birthday.HasValue == true)) {
  6696. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  6697. }
  6698. else {
  6699. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6700. }
  6701. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  6702. if ((Email == null)) {
  6703. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6704. }
  6705. else {
  6706. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Email));
  6707. }
  6708. if ((Phone == null)) {
  6709. throw new global::System.ArgumentNullException("Phone");
  6710. }
  6711. else {
  6712. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  6713. }
  6714. if ((GenderCode == null)) {
  6715. throw new global::System.ArgumentNullException("GenderCode");
  6716. }
  6717. else {
  6718. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(GenderCode));
  6719. }
  6720. if ((PhotoPath == null)) {
  6721. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6722. }
  6723. else {
  6724. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(PhotoPath));
  6725. }
  6726. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ID));
  6727. if ((Original_LastName == null)) {
  6728. throw new global::System.ArgumentNullException("Original_LastName");
  6729. }
  6730. else {
  6731. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_LastName));
  6732. }
  6733. if ((Original_FirstName == null)) {
  6734. throw new global::System.ArgumentNullException("Original_FirstName");
  6735. }
  6736. else {
  6737. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_FirstName));
  6738. }
  6739. if ((Original_Patronymic == null)) {
  6740. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  6741. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  6742. }
  6743. else {
  6744. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  6745. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Patronymic));
  6746. }
  6747. if ((Original_Birthday.HasValue == true)) {
  6748. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  6749. this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(Original_Birthday.Value));
  6750. }
  6751. else {
  6752. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  6753. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  6754. }
  6755. this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_RegistrationDate));
  6756. if ((Original_Email == null)) {
  6757. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  6758. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  6759. }
  6760. else {
  6761. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  6762. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Email));
  6763. }
  6764. if ((Original_Phone == null)) {
  6765. throw new global::System.ArgumentNullException("Original_Phone");
  6766. }
  6767. else {
  6768. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Phone));
  6769. }
  6770. if ((Original_GenderCode == null)) {
  6771. throw new global::System.ArgumentNullException("Original_GenderCode");
  6772. }
  6773. else {
  6774. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_GenderCode));
  6775. }
  6776. if ((Original_PhotoPath == null)) {
  6777. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
  6778. this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
  6779. }
  6780. else {
  6781. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  6782. this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_PhotoPath));
  6783. }
  6784. this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(ID));
  6785. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6786. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6787. != global::System.Data.ConnectionState.Open)) {
  6788. this.Adapter.UpdateCommand.Connection.Open();
  6789. }
  6790. try {
  6791. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6792. return returnValue;
  6793. }
  6794. finally {
  6795. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6796. this.Adapter.UpdateCommand.Connection.Close();
  6797. }
  6798. }
  6799. }
  6800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6802. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6803. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6804. public virtual int Update(
  6805. string LastName,
  6806. string FirstName,
  6807. string Patronymic,
  6808. global::System.Nullable<global::System.DateTime> Birthday,
  6809. System.DateTime RegistrationDate,
  6810. string Email,
  6811. string Phone,
  6812. string GenderCode,
  6813. string PhotoPath,
  6814. int Original_ID,
  6815. string Original_LastName,
  6816. string Original_FirstName,
  6817. string Original_Patronymic,
  6818. global::System.Nullable<global::System.DateTime> Original_Birthday,
  6819. System.DateTime Original_RegistrationDate,
  6820. string Original_Email,
  6821. string Original_Phone,
  6822. string Original_GenderCode,
  6823. string Original_PhotoPath) {
  6824. return this.Update(LastName, FirstName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath, Original_ID, Original_LastName, Original_FirstName, Original_Patronymic, Original_Birthday, Original_RegistrationDate, Original_Email, Original_Phone, Original_GenderCode, Original_PhotoPath, Original_ID);
  6825. }
  6826. }
  6827. /// <summary>
  6828. ///Represents the connection and commands used to retrieve and save data.
  6829. ///</summary>
  6830. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6831. [global::System.ComponentModel.ToolboxItem(true)]
  6832. [global::System.ComponentModel.DataObjectAttribute(true)]
  6833. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6834. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6835. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6836. public partial class ClientServiceTableAdapter : global::System.ComponentModel.Component {
  6837. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6838. private global::System.Data.SqlClient.SqlConnection _connection;
  6839. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6840. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6841. private bool _clearBeforeFill;
  6842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6844. public ClientServiceTableAdapter() {
  6845. this.ClearBeforeFill = true;
  6846. }
  6847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6849. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6850. get {
  6851. if ((this._adapter == null)) {
  6852. this.InitAdapter();
  6853. }
  6854. return this._adapter;
  6855. }
  6856. }
  6857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6859. internal global::System.Data.SqlClient.SqlConnection Connection {
  6860. get {
  6861. if ((this._connection == null)) {
  6862. this.InitConnection();
  6863. }
  6864. return this._connection;
  6865. }
  6866. set {
  6867. this._connection = value;
  6868. if ((this.Adapter.InsertCommand != null)) {
  6869. this.Adapter.InsertCommand.Connection = value;
  6870. }
  6871. if ((this.Adapter.DeleteCommand != null)) {
  6872. this.Adapter.DeleteCommand.Connection = value;
  6873. }
  6874. if ((this.Adapter.UpdateCommand != null)) {
  6875. this.Adapter.UpdateCommand.Connection = value;
  6876. }
  6877. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6878. if ((this.CommandCollection[i] != null)) {
  6879. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6880. }
  6881. }
  6882. }
  6883. }
  6884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6886. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6887. get {
  6888. return this._transaction;
  6889. }
  6890. set {
  6891. this._transaction = value;
  6892. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6893. this.CommandCollection[i].Transaction = this._transaction;
  6894. }
  6895. if (((this.Adapter != null)
  6896. && (this.Adapter.DeleteCommand != null))) {
  6897. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6898. }
  6899. if (((this.Adapter != null)
  6900. && (this.Adapter.InsertCommand != null))) {
  6901. this.Adapter.InsertCommand.Transaction = this._transaction;
  6902. }
  6903. if (((this.Adapter != null)
  6904. && (this.Adapter.UpdateCommand != null))) {
  6905. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6906. }
  6907. }
  6908. }
  6909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6911. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6912. get {
  6913. if ((this._commandCollection == null)) {
  6914. this.InitCommandCollection();
  6915. }
  6916. return this._commandCollection;
  6917. }
  6918. }
  6919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6921. public bool ClearBeforeFill {
  6922. get {
  6923. return this._clearBeforeFill;
  6924. }
  6925. set {
  6926. this._clearBeforeFill = value;
  6927. }
  6928. }
  6929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6931. private void InitAdapter() {
  6932. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6933. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6934. tableMapping.SourceTable = "Table";
  6935. tableMapping.DataSetTable = "ClientService";
  6936. tableMapping.ColumnMappings.Add("ID", "ID");
  6937. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  6938. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  6939. tableMapping.ColumnMappings.Add("StartTime", "StartTime");
  6940. tableMapping.ColumnMappings.Add("Comment", "Comment");
  6941. this._adapter.TableMappings.Add(tableMapping);
  6942. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6943. this._adapter.DeleteCommand.Connection = this.Connection;
  6944. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ClientService] WHERE (([ID] = @Original_ID) AND ([ClientID] = " +
  6945. "@Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @" +
  6946. "Original_StartTime))";
  6947. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6948. 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, "", "", ""));
  6949. 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, "", "", ""));
  6950. 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, "", "", ""));
  6951. 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, "", "", ""));
  6952. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6953. this._adapter.InsertCommand.Connection = this.Connection;
  6954. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ClientService] ([ClientID], [ServiceID], [StartTime], [Comment" +
  6955. "]) VALUES (@ClientID, @ServiceID, @StartTime, @Comment);\r\nSELECT ID, ClientID, S" +
  6956. "erviceID, StartTime, Comment FROM ClientService WHERE (ID = SCOPE_IDENTITY())";
  6957. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6958. 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, "", "", ""));
  6959. 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, "", "", ""));
  6960. 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, "", "", ""));
  6961. 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, "", "", ""));
  6962. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6963. this._adapter.UpdateCommand.Connection = this.Connection;
  6964. 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));
  6965. SELECT ID, ClientID, ServiceID, StartTime, Comment FROM ClientService WHERE (ID = @ID)";
  6966. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6967. 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, "", "", ""));
  6968. 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, "", "", ""));
  6969. 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, "", "", ""));
  6970. 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, "", "", ""));
  6971. 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, "", "", ""));
  6972. 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, "", "", ""));
  6973. 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, "", "", ""));
  6974. 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, "", "", ""));
  6975. 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, "", "", ""));
  6976. }
  6977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6979. private void InitConnection() {
  6980. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6981. this._connection.ConnectionString = global::SalonKrasoti02.Properties.Settings.Default.SaloonKrasoti02ConnectionString;
  6982. }
  6983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6985. private void InitCommandCollection() {
  6986. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6987. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6988. this._commandCollection[0].Connection = this.Connection;
  6989. this._commandCollection[0].CommandText = "SELECT ID, ClientID, ServiceID, StartTime, Comment FROM dbo.ClientService";
  6990. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  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.Fill, true)]
  6996. public virtual int Fill(SaloonKrasoti02DataSet.ClientServiceDataTable dataTable) {
  6997. this.Adapter.SelectCommand = this.CommandCollection[0];
  6998. if ((this.ClearBeforeFill == true)) {
  6999. dataTable.Clear();
  7000. }
  7001. int returnValue = this.Adapter.Fill(dataTable);
  7002. return returnValue;
  7003. }
  7004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7006. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7007. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7008. public virtual SaloonKrasoti02DataSet.ClientServiceDataTable GetData() {
  7009. this.Adapter.SelectCommand = this.CommandCollection[0];
  7010. SaloonKrasoti02DataSet.ClientServiceDataTable dataTable = new SaloonKrasoti02DataSet.ClientServiceDataTable();
  7011. this.Adapter.Fill(dataTable);
  7012. return dataTable;
  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. public virtual int Update(SaloonKrasoti02DataSet.ClientServiceDataTable dataTable) {
  7018. return this.Adapter.Update(dataTable);
  7019. }
  7020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7022. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7023. public virtual int Update(SaloonKrasoti02DataSet dataSet) {
  7024. return this.Adapter.Update(dataSet, "ClientService");
  7025. }
  7026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7028. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7029. public virtual int Update(global::System.Data.DataRow dataRow) {
  7030. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7031. dataRow});
  7032. }
  7033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7035. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7036. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7037. return this.Adapter.Update(dataRows);
  7038. }
  7039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7041. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7042. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7043. public virtual int Delete(int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime) {
  7044. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7045. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientID));
  7046. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ServiceID));
  7047. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartTime));
  7048. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7049. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7050. != global::System.Data.ConnectionState.Open)) {
  7051. this.Adapter.DeleteCommand.Connection.Open();
  7052. }
  7053. try {
  7054. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7055. return returnValue;
  7056. }
  7057. finally {
  7058. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7059. this.Adapter.DeleteCommand.Connection.Close();
  7060. }
  7061. }
  7062. }
  7063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7065. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7066. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7067. public virtual int Insert(int ClientID, int ServiceID, System.DateTime StartTime, string Comment) {
  7068. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  7069. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ServiceID));
  7070. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  7071. if ((Comment == null)) {
  7072. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7073. }
  7074. else {
  7075. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Comment));
  7076. }
  7077. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7078. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7079. != global::System.Data.ConnectionState.Open)) {
  7080. this.Adapter.InsertCommand.Connection.Open();
  7081. }
  7082. try {
  7083. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7084. return returnValue;
  7085. }
  7086. finally {
  7087. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7088. this.Adapter.InsertCommand.Connection.Close();
  7089. }
  7090. }
  7091. }
  7092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7094. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7095. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7096. 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) {
  7097. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  7098. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ServiceID));
  7099. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  7100. if ((Comment == null)) {
  7101. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7102. }
  7103. else {
  7104. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Comment));
  7105. }
  7106. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  7107. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ClientID));
  7108. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ServiceID));
  7109. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_StartTime));
  7110. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(ID));
  7111. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7112. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7113. != global::System.Data.ConnectionState.Open)) {
  7114. this.Adapter.UpdateCommand.Connection.Open();
  7115. }
  7116. try {
  7117. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7118. return returnValue;
  7119. }
  7120. finally {
  7121. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7122. this.Adapter.UpdateCommand.Connection.Close();
  7123. }
  7124. }
  7125. }
  7126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7128. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7129. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7130. 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) {
  7131. return this.Update(ClientID, ServiceID, StartTime, Comment, Original_ID, Original_ClientID, Original_ServiceID, Original_StartTime, Original_ID);
  7132. }
  7133. }
  7134. /// <summary>
  7135. ///Represents the connection and commands used to retrieve and save data.
  7136. ///</summary>
  7137. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7138. [global::System.ComponentModel.ToolboxItem(true)]
  7139. [global::System.ComponentModel.DataObjectAttribute(true)]
  7140. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7141. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7142. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7143. public partial class DocumentByServiceTableAdapter : global::System.ComponentModel.Component {
  7144. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7145. private global::System.Data.SqlClient.SqlConnection _connection;
  7146. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7147. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7148. private bool _clearBeforeFill;
  7149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7151. public DocumentByServiceTableAdapter() {
  7152. this.ClearBeforeFill = true;
  7153. }
  7154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7156. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7157. get {
  7158. if ((this._adapter == null)) {
  7159. this.InitAdapter();
  7160. }
  7161. return this._adapter;
  7162. }
  7163. }
  7164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7166. internal global::System.Data.SqlClient.SqlConnection Connection {
  7167. get {
  7168. if ((this._connection == null)) {
  7169. this.InitConnection();
  7170. }
  7171. return this._connection;
  7172. }
  7173. set {
  7174. this._connection = value;
  7175. if ((this.Adapter.InsertCommand != null)) {
  7176. this.Adapter.InsertCommand.Connection = value;
  7177. }
  7178. if ((this.Adapter.DeleteCommand != null)) {
  7179. this.Adapter.DeleteCommand.Connection = value;
  7180. }
  7181. if ((this.Adapter.UpdateCommand != null)) {
  7182. this.Adapter.UpdateCommand.Connection = value;
  7183. }
  7184. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7185. if ((this.CommandCollection[i] != null)) {
  7186. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7187. }
  7188. }
  7189. }
  7190. }
  7191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7193. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7194. get {
  7195. return this._transaction;
  7196. }
  7197. set {
  7198. this._transaction = value;
  7199. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7200. this.CommandCollection[i].Transaction = this._transaction;
  7201. }
  7202. if (((this.Adapter != null)
  7203. && (this.Adapter.DeleteCommand != null))) {
  7204. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7205. }
  7206. if (((this.Adapter != null)
  7207. && (this.Adapter.InsertCommand != null))) {
  7208. this.Adapter.InsertCommand.Transaction = this._transaction;
  7209. }
  7210. if (((this.Adapter != null)
  7211. && (this.Adapter.UpdateCommand != null))) {
  7212. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7213. }
  7214. }
  7215. }
  7216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7218. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7219. get {
  7220. if ((this._commandCollection == null)) {
  7221. this.InitCommandCollection();
  7222. }
  7223. return this._commandCollection;
  7224. }
  7225. }
  7226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7228. public bool ClearBeforeFill {
  7229. get {
  7230. return this._clearBeforeFill;
  7231. }
  7232. set {
  7233. this._clearBeforeFill = value;
  7234. }
  7235. }
  7236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7238. private void InitAdapter() {
  7239. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7240. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7241. tableMapping.SourceTable = "Table";
  7242. tableMapping.DataSetTable = "DocumentByService";
  7243. tableMapping.ColumnMappings.Add("ID", "ID");
  7244. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  7245. tableMapping.ColumnMappings.Add("DocumentPath", "DocumentPath");
  7246. this._adapter.TableMappings.Add(tableMapping);
  7247. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7248. this._adapter.DeleteCommand.Connection = this.Connection;
  7249. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[DocumentByService] WHERE (([ID] = @Original_ID) AND ([ClientSe" +
  7250. "rviceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPa" +
  7251. "th))";
  7252. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7253. 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, "", "", ""));
  7254. 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, "", "", ""));
  7255. 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, "", "", ""));
  7256. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7257. this._adapter.InsertCommand.Connection = this.Connection;
  7258. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[DocumentByService] ([ClientServiceID], [DocumentPath]) VALUES " +
  7259. "(@ClientServiceID, @DocumentPath);\r\nSELECT ID, ClientServiceID, DocumentPath FRO" +
  7260. "M DocumentByService WHERE (ID = SCOPE_IDENTITY())";
  7261. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7262. 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, "", "", ""));
  7263. 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, "", "", ""));
  7264. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7265. this._adapter.UpdateCommand.Connection = this.Connection;
  7266. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[DocumentByService] SET [ClientServiceID] = @ClientServiceID, [DocumentPath] = @DocumentPath WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath));
  7267. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = @ID)";
  7268. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7269. 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, "", "", ""));
  7270. 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, "", "", ""));
  7271. 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, "", "", ""));
  7272. 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, "", "", ""));
  7273. 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, "", "", ""));
  7274. 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, "", "", ""));
  7275. }
  7276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7278. private void InitConnection() {
  7279. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7280. this._connection.ConnectionString = global::SalonKrasoti02.Properties.Settings.Default.SaloonKrasoti02ConnectionString;
  7281. }
  7282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7284. private void InitCommandCollection() {
  7285. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7286. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7287. this._commandCollection[0].Connection = this.Connection;
  7288. this._commandCollection[0].CommandText = "SELECT ID, ClientServiceID, DocumentPath FROM dbo.DocumentByService";
  7289. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  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.Fill, true)]
  7295. public virtual int Fill(SaloonKrasoti02DataSet.DocumentByServiceDataTable dataTable) {
  7296. this.Adapter.SelectCommand = this.CommandCollection[0];
  7297. if ((this.ClearBeforeFill == true)) {
  7298. dataTable.Clear();
  7299. }
  7300. int returnValue = this.Adapter.Fill(dataTable);
  7301. return returnValue;
  7302. }
  7303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7305. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7306. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7307. public virtual SaloonKrasoti02DataSet.DocumentByServiceDataTable GetData() {
  7308. this.Adapter.SelectCommand = this.CommandCollection[0];
  7309. SaloonKrasoti02DataSet.DocumentByServiceDataTable dataTable = new SaloonKrasoti02DataSet.DocumentByServiceDataTable();
  7310. this.Adapter.Fill(dataTable);
  7311. return dataTable;
  7312. }
  7313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7315. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7316. public virtual int Update(SaloonKrasoti02DataSet.DocumentByServiceDataTable dataTable) {
  7317. return this.Adapter.Update(dataTable);
  7318. }
  7319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7321. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7322. public virtual int Update(SaloonKrasoti02DataSet dataSet) {
  7323. return this.Adapter.Update(dataSet, "DocumentByService");
  7324. }
  7325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7327. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7328. public virtual int Update(global::System.Data.DataRow dataRow) {
  7329. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7330. dataRow});
  7331. }
  7332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7334. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7335. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7336. return this.Adapter.Update(dataRows);
  7337. }
  7338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7340. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7341. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7342. public virtual int Delete(int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  7343. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7344. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientServiceID));
  7345. if ((Original_DocumentPath == null)) {
  7346. throw new global::System.ArgumentNullException("Original_DocumentPath");
  7347. }
  7348. else {
  7349. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DocumentPath));
  7350. }
  7351. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7352. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7353. != global::System.Data.ConnectionState.Open)) {
  7354. this.Adapter.DeleteCommand.Connection.Open();
  7355. }
  7356. try {
  7357. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7358. return returnValue;
  7359. }
  7360. finally {
  7361. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7362. this.Adapter.DeleteCommand.Connection.Close();
  7363. }
  7364. }
  7365. }
  7366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7368. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7369. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7370. public virtual int Insert(int ClientServiceID, string DocumentPath) {
  7371. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientServiceID));
  7372. if ((DocumentPath == null)) {
  7373. throw new global::System.ArgumentNullException("DocumentPath");
  7374. }
  7375. else {
  7376. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DocumentPath));
  7377. }
  7378. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7379. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7380. != global::System.Data.ConnectionState.Open)) {
  7381. this.Adapter.InsertCommand.Connection.Open();
  7382. }
  7383. try {
  7384. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7385. return returnValue;
  7386. }
  7387. finally {
  7388. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7389. this.Adapter.InsertCommand.Connection.Close();
  7390. }
  7391. }
  7392. }
  7393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7395. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7396. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7397. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath, int ID) {
  7398. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientServiceID));
  7399. if ((DocumentPath == null)) {
  7400. throw new global::System.ArgumentNullException("DocumentPath");
  7401. }
  7402. else {
  7403. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DocumentPath));
  7404. }
  7405. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  7406. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ClientServiceID));
  7407. if ((Original_DocumentPath == null)) {
  7408. throw new global::System.ArgumentNullException("Original_DocumentPath");
  7409. }
  7410. else {
  7411. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DocumentPath));
  7412. }
  7413. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  7414. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7415. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7416. != global::System.Data.ConnectionState.Open)) {
  7417. this.Adapter.UpdateCommand.Connection.Open();
  7418. }
  7419. try {
  7420. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7421. return returnValue;
  7422. }
  7423. finally {
  7424. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7425. this.Adapter.UpdateCommand.Connection.Close();
  7426. }
  7427. }
  7428. }
  7429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7431. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7432. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7433. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  7434. return this.Update(ClientServiceID, DocumentPath, Original_ID, Original_ClientServiceID, Original_DocumentPath, Original_ID);
  7435. }
  7436. }
  7437. /// <summary>
  7438. ///Represents the connection and commands used to retrieve and save data.
  7439. ///</summary>
  7440. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7441. [global::System.ComponentModel.ToolboxItem(true)]
  7442. [global::System.ComponentModel.DataObjectAttribute(true)]
  7443. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7444. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7445. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7446. public partial class GenderTableAdapter : global::System.ComponentModel.Component {
  7447. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7448. private global::System.Data.SqlClient.SqlConnection _connection;
  7449. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7450. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7451. private bool _clearBeforeFill;
  7452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7454. public GenderTableAdapter() {
  7455. this.ClearBeforeFill = true;
  7456. }
  7457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7459. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7460. get {
  7461. if ((this._adapter == null)) {
  7462. this.InitAdapter();
  7463. }
  7464. return this._adapter;
  7465. }
  7466. }
  7467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7469. internal global::System.Data.SqlClient.SqlConnection Connection {
  7470. get {
  7471. if ((this._connection == null)) {
  7472. this.InitConnection();
  7473. }
  7474. return this._connection;
  7475. }
  7476. set {
  7477. this._connection = value;
  7478. if ((this.Adapter.InsertCommand != null)) {
  7479. this.Adapter.InsertCommand.Connection = value;
  7480. }
  7481. if ((this.Adapter.DeleteCommand != null)) {
  7482. this.Adapter.DeleteCommand.Connection = value;
  7483. }
  7484. if ((this.Adapter.UpdateCommand != null)) {
  7485. this.Adapter.UpdateCommand.Connection = value;
  7486. }
  7487. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7488. if ((this.CommandCollection[i] != null)) {
  7489. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7490. }
  7491. }
  7492. }
  7493. }
  7494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7496. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7497. get {
  7498. return this._transaction;
  7499. }
  7500. set {
  7501. this._transaction = value;
  7502. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7503. this.CommandCollection[i].Transaction = this._transaction;
  7504. }
  7505. if (((this.Adapter != null)
  7506. && (this.Adapter.DeleteCommand != null))) {
  7507. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7508. }
  7509. if (((this.Adapter != null)
  7510. && (this.Adapter.InsertCommand != null))) {
  7511. this.Adapter.InsertCommand.Transaction = this._transaction;
  7512. }
  7513. if (((this.Adapter != null)
  7514. && (this.Adapter.UpdateCommand != null))) {
  7515. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7516. }
  7517. }
  7518. }
  7519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7521. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7522. get {
  7523. if ((this._commandCollection == null)) {
  7524. this.InitCommandCollection();
  7525. }
  7526. return this._commandCollection;
  7527. }
  7528. }
  7529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7531. public bool ClearBeforeFill {
  7532. get {
  7533. return this._clearBeforeFill;
  7534. }
  7535. set {
  7536. this._clearBeforeFill = value;
  7537. }
  7538. }
  7539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7541. private void InitAdapter() {
  7542. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7543. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7544. tableMapping.SourceTable = "Table";
  7545. tableMapping.DataSetTable = "Gender";
  7546. tableMapping.ColumnMappings.Add("Code", "Code");
  7547. tableMapping.ColumnMappings.Add("Name", "Name");
  7548. this._adapter.TableMappings.Add(tableMapping);
  7549. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7550. this._adapter.DeleteCommand.Connection = this.Connection;
  7551. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Gender] WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = " +
  7552. "1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))";
  7553. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7554. 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, "", "", ""));
  7555. 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, "", "", ""));
  7556. 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, "", "", ""));
  7557. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7558. this._adapter.InsertCommand.Connection = this.Connection;
  7559. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Gender] ([Code], [Name]) VALUES (@Code, @Name);\r\nSELECT Code, " +
  7560. "Name FROM Gender WHERE (Code = @Code)";
  7561. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7562. 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, "", "", ""));
  7563. 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, "", "", ""));
  7564. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7565. this._adapter.UpdateCommand.Connection = this.Connection;
  7566. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Gender] SET [Code] = @Code, [Name] = @Name WHERE (([Code] = @Origin" +
  7567. "al_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)" +
  7568. "));\r\nSELECT Code, Name FROM Gender WHERE (Code = @Code)";
  7569. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7570. 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, "", "", ""));
  7571. 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, "", "", ""));
  7572. 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, "", "", ""));
  7573. 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, "", "", ""));
  7574. 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, "", "", ""));
  7575. }
  7576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7578. private void InitConnection() {
  7579. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7580. this._connection.ConnectionString = global::SalonKrasoti02.Properties.Settings.Default.SaloonKrasoti02ConnectionString;
  7581. }
  7582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7584. private void InitCommandCollection() {
  7585. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7586. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7587. this._commandCollection[0].Connection = this.Connection;
  7588. this._commandCollection[0].CommandText = "SELECT Code, Name FROM dbo.Gender";
  7589. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7590. }
  7591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7593. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7594. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7595. public virtual int Fill(SaloonKrasoti02DataSet.GenderDataTable dataTable) {
  7596. this.Adapter.SelectCommand = this.CommandCollection[0];
  7597. if ((this.ClearBeforeFill == true)) {
  7598. dataTable.Clear();
  7599. }
  7600. int returnValue = this.Adapter.Fill(dataTable);
  7601. return returnValue;
  7602. }
  7603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7605. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7606. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7607. public virtual SaloonKrasoti02DataSet.GenderDataTable GetData() {
  7608. this.Adapter.SelectCommand = this.CommandCollection[0];
  7609. SaloonKrasoti02DataSet.GenderDataTable dataTable = new SaloonKrasoti02DataSet.GenderDataTable();
  7610. this.Adapter.Fill(dataTable);
  7611. return dataTable;
  7612. }
  7613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7615. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7616. public virtual int Update(SaloonKrasoti02DataSet.GenderDataTable dataTable) {
  7617. return this.Adapter.Update(dataTable);
  7618. }
  7619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7621. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7622. public virtual int Update(SaloonKrasoti02DataSet dataSet) {
  7623. return this.Adapter.Update(dataSet, "Gender");
  7624. }
  7625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7627. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7628. public virtual int Update(global::System.Data.DataRow dataRow) {
  7629. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7630. dataRow});
  7631. }
  7632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7634. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7635. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7636. return this.Adapter.Update(dataRows);
  7637. }
  7638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7640. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7641. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7642. public virtual int Delete(string Original_Code, string Original_Name) {
  7643. if ((Original_Code == null)) {
  7644. throw new global::System.ArgumentNullException("Original_Code");
  7645. }
  7646. else {
  7647. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Code));
  7648. }
  7649. if ((Original_Name == null)) {
  7650. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7651. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7652. }
  7653. else {
  7654. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7655. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
  7656. }
  7657. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7658. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7659. != global::System.Data.ConnectionState.Open)) {
  7660. this.Adapter.DeleteCommand.Connection.Open();
  7661. }
  7662. try {
  7663. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7664. return returnValue;
  7665. }
  7666. finally {
  7667. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7668. this.Adapter.DeleteCommand.Connection.Close();
  7669. }
  7670. }
  7671. }
  7672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7674. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7675. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7676. public virtual int Insert(string Code, string Name) {
  7677. if ((Code == null)) {
  7678. throw new global::System.ArgumentNullException("Code");
  7679. }
  7680. else {
  7681. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Code));
  7682. }
  7683. if ((Name == null)) {
  7684. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7685. }
  7686. else {
  7687. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  7688. }
  7689. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7690. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7691. != global::System.Data.ConnectionState.Open)) {
  7692. this.Adapter.InsertCommand.Connection.Open();
  7693. }
  7694. try {
  7695. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7696. return returnValue;
  7697. }
  7698. finally {
  7699. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7700. this.Adapter.InsertCommand.Connection.Close();
  7701. }
  7702. }
  7703. }
  7704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7706. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7707. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7708. public virtual int Update(string Code, string Name, string Original_Code, string Original_Name) {
  7709. if ((Code == null)) {
  7710. throw new global::System.ArgumentNullException("Code");
  7711. }
  7712. else {
  7713. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Code));
  7714. }
  7715. if ((Name == null)) {
  7716. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7717. }
  7718. else {
  7719. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  7720. }
  7721. if ((Original_Code == null)) {
  7722. throw new global::System.ArgumentNullException("Original_Code");
  7723. }
  7724. else {
  7725. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Code));
  7726. }
  7727. if ((Original_Name == null)) {
  7728. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  7729. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7730. }
  7731. else {
  7732. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  7733. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
  7734. }
  7735. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7736. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7737. != global::System.Data.ConnectionState.Open)) {
  7738. this.Adapter.UpdateCommand.Connection.Open();
  7739. }
  7740. try {
  7741. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7742. return returnValue;
  7743. }
  7744. finally {
  7745. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7746. this.Adapter.UpdateCommand.Connection.Close();
  7747. }
  7748. }
  7749. }
  7750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7752. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7753. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7754. public virtual int Update(string Name, string Original_Code, string Original_Name) {
  7755. return this.Update(Original_Code, Name, Original_Code, Original_Name);
  7756. }
  7757. }
  7758. /// <summary>
  7759. ///Represents the connection and commands used to retrieve and save data.
  7760. ///</summary>
  7761. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7762. [global::System.ComponentModel.ToolboxItem(true)]
  7763. [global::System.ComponentModel.DataObjectAttribute(true)]
  7764. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7765. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7766. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7767. public partial class ManufacturerTableAdapter : global::System.ComponentModel.Component {
  7768. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7769. private global::System.Data.SqlClient.SqlConnection _connection;
  7770. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7771. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7772. private bool _clearBeforeFill;
  7773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7775. public ManufacturerTableAdapter() {
  7776. this.ClearBeforeFill = true;
  7777. }
  7778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7780. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7781. get {
  7782. if ((this._adapter == null)) {
  7783. this.InitAdapter();
  7784. }
  7785. return this._adapter;
  7786. }
  7787. }
  7788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7790. internal global::System.Data.SqlClient.SqlConnection Connection {
  7791. get {
  7792. if ((this._connection == null)) {
  7793. this.InitConnection();
  7794. }
  7795. return this._connection;
  7796. }
  7797. set {
  7798. this._connection = value;
  7799. if ((this.Adapter.InsertCommand != null)) {
  7800. this.Adapter.InsertCommand.Connection = value;
  7801. }
  7802. if ((this.Adapter.DeleteCommand != null)) {
  7803. this.Adapter.DeleteCommand.Connection = value;
  7804. }
  7805. if ((this.Adapter.UpdateCommand != null)) {
  7806. this.Adapter.UpdateCommand.Connection = value;
  7807. }
  7808. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7809. if ((this.CommandCollection[i] != null)) {
  7810. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7811. }
  7812. }
  7813. }
  7814. }
  7815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7817. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7818. get {
  7819. return this._transaction;
  7820. }
  7821. set {
  7822. this._transaction = value;
  7823. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7824. this.CommandCollection[i].Transaction = this._transaction;
  7825. }
  7826. if (((this.Adapter != null)
  7827. && (this.Adapter.DeleteCommand != null))) {
  7828. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7829. }
  7830. if (((this.Adapter != null)
  7831. && (this.Adapter.InsertCommand != null))) {
  7832. this.Adapter.InsertCommand.Transaction = this._transaction;
  7833. }
  7834. if (((this.Adapter != null)
  7835. && (this.Adapter.UpdateCommand != null))) {
  7836. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7837. }
  7838. }
  7839. }
  7840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7842. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7843. get {
  7844. if ((this._commandCollection == null)) {
  7845. this.InitCommandCollection();
  7846. }
  7847. return this._commandCollection;
  7848. }
  7849. }
  7850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7852. public bool ClearBeforeFill {
  7853. get {
  7854. return this._clearBeforeFill;
  7855. }
  7856. set {
  7857. this._clearBeforeFill = value;
  7858. }
  7859. }
  7860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7862. private void InitAdapter() {
  7863. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7864. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7865. tableMapping.SourceTable = "Table";
  7866. tableMapping.DataSetTable = "Manufacturer";
  7867. tableMapping.ColumnMappings.Add("ID", "ID");
  7868. tableMapping.ColumnMappings.Add("Name", "Name");
  7869. tableMapping.ColumnMappings.Add("StartDate", "StartDate");
  7870. this._adapter.TableMappings.Add(tableMapping);
  7871. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7872. this._adapter.DeleteCommand.Connection = this.Connection;
  7873. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Manufacturer] WHERE (([ID] = @Original_ID) AND ([Name] = @Orig" +
  7874. "inal_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] " +
  7875. "= @Original_StartDate)))";
  7876. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7877. 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, "", "", ""));
  7878. 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, "", "", ""));
  7879. 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, "", "", ""));
  7880. 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, "", "", ""));
  7881. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7882. this._adapter.InsertCommand.Connection = this.Connection;
  7883. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Manufacturer] ([Name], [StartDate]) VALUES (@Name, @StartDate)" +
  7884. ";\r\nSELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = SCOPE_IDENTITY())";
  7885. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7886. 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, "", "", ""));
  7887. 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, "", "", ""));
  7888. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7889. this._adapter.UpdateCommand.Connection = this.Connection;
  7890. 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)));
  7891. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = @ID)";
  7892. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7893. 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, "", "", ""));
  7894. 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, "", "", ""));
  7895. 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, "", "", ""));
  7896. 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, "", "", ""));
  7897. 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, "", "", ""));
  7898. 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, "", "", ""));
  7899. 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, "", "", ""));
  7900. }
  7901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7903. private void InitConnection() {
  7904. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7905. this._connection.ConnectionString = global::SalonKrasoti02.Properties.Settings.Default.SaloonKrasoti02ConnectionString;
  7906. }
  7907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7909. private void InitCommandCollection() {
  7910. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7911. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7912. this._commandCollection[0].Connection = this.Connection;
  7913. this._commandCollection[0].CommandText = "SELECT ID, Name, StartDate FROM dbo.Manufacturer";
  7914. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7915. }
  7916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7918. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7919. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7920. public virtual int Fill(SaloonKrasoti02DataSet.ManufacturerDataTable dataTable) {
  7921. this.Adapter.SelectCommand = this.CommandCollection[0];
  7922. if ((this.ClearBeforeFill == true)) {
  7923. dataTable.Clear();
  7924. }
  7925. int returnValue = this.Adapter.Fill(dataTable);
  7926. return returnValue;
  7927. }
  7928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7930. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7931. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7932. public virtual SaloonKrasoti02DataSet.ManufacturerDataTable GetData() {
  7933. this.Adapter.SelectCommand = this.CommandCollection[0];
  7934. SaloonKrasoti02DataSet.ManufacturerDataTable dataTable = new SaloonKrasoti02DataSet.ManufacturerDataTable();
  7935. this.Adapter.Fill(dataTable);
  7936. return dataTable;
  7937. }
  7938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7940. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7941. public virtual int Update(SaloonKrasoti02DataSet.ManufacturerDataTable dataTable) {
  7942. return this.Adapter.Update(dataTable);
  7943. }
  7944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7946. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7947. public virtual int Update(SaloonKrasoti02DataSet dataSet) {
  7948. return this.Adapter.Update(dataSet, "Manufacturer");
  7949. }
  7950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7952. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7953. public virtual int Update(global::System.Data.DataRow dataRow) {
  7954. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7955. dataRow});
  7956. }
  7957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7959. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7960. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7961. return this.Adapter.Update(dataRows);
  7962. }
  7963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7965. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7966. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7967. public virtual int Delete(int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  7968. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7969. if ((Original_Name == null)) {
  7970. throw new global::System.ArgumentNullException("Original_Name");
  7971. }
  7972. else {
  7973. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  7974. }
  7975. if ((Original_StartDate.HasValue == true)) {
  7976. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  7977. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartDate.Value));
  7978. }
  7979. else {
  7980. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  7981. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  7982. }
  7983. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7984. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7985. != global::System.Data.ConnectionState.Open)) {
  7986. this.Adapter.DeleteCommand.Connection.Open();
  7987. }
  7988. try {
  7989. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7990. return returnValue;
  7991. }
  7992. finally {
  7993. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7994. this.Adapter.DeleteCommand.Connection.Close();
  7995. }
  7996. }
  7997. }
  7998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8000. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8001. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8002. public virtual int Insert(string Name, global::System.Nullable<global::System.DateTime> StartDate) {
  8003. if ((Name == null)) {
  8004. throw new global::System.ArgumentNullException("Name");
  8005. }
  8006. else {
  8007. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
  8008. }
  8009. if ((StartDate.HasValue == true)) {
  8010. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  8011. }
  8012. else {
  8013. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8014. }
  8015. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8016. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8017. != global::System.Data.ConnectionState.Open)) {
  8018. this.Adapter.InsertCommand.Connection.Open();
  8019. }
  8020. try {
  8021. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8022. return returnValue;
  8023. }
  8024. finally {
  8025. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8026. this.Adapter.InsertCommand.Connection.Close();
  8027. }
  8028. }
  8029. }
  8030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8032. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8033. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8034. 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) {
  8035. if ((Name == null)) {
  8036. throw new global::System.ArgumentNullException("Name");
  8037. }
  8038. else {
  8039. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
  8040. }
  8041. if ((StartDate.HasValue == true)) {
  8042. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  8043. }
  8044. else {
  8045. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8046. }
  8047. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  8048. if ((Original_Name == null)) {
  8049. throw new global::System.ArgumentNullException("Original_Name");
  8050. }
  8051. else {
  8052. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Name));
  8053. }
  8054. if ((Original_StartDate.HasValue == true)) {
  8055. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  8056. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_StartDate.Value));
  8057. }
  8058. else {
  8059. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  8060. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8061. }
  8062. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID));
  8063. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8064. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8065. != global::System.Data.ConnectionState.Open)) {
  8066. this.Adapter.UpdateCommand.Connection.Open();
  8067. }
  8068. try {
  8069. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8070. return returnValue;
  8071. }
  8072. finally {
  8073. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8074. this.Adapter.UpdateCommand.Connection.Close();
  8075. }
  8076. }
  8077. }
  8078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8080. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8081. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8082. 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) {
  8083. return this.Update(Name, StartDate, Original_ID, Original_Name, Original_StartDate, Original_ID);
  8084. }
  8085. }
  8086. /// <summary>
  8087. ///Represents the connection and commands used to retrieve and save data.
  8088. ///</summary>
  8089. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8090. [global::System.ComponentModel.ToolboxItem(true)]
  8091. [global::System.ComponentModel.DataObjectAttribute(true)]
  8092. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8093. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8094. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8095. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  8096. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8097. private global::System.Data.SqlClient.SqlConnection _connection;
  8098. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8099. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8100. private bool _clearBeforeFill;
  8101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8103. public ProductTableAdapter() {
  8104. this.ClearBeforeFill = true;
  8105. }
  8106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8108. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8109. get {
  8110. if ((this._adapter == null)) {
  8111. this.InitAdapter();
  8112. }
  8113. return this._adapter;
  8114. }
  8115. }
  8116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8118. internal global::System.Data.SqlClient.SqlConnection Connection {
  8119. get {
  8120. if ((this._connection == null)) {
  8121. this.InitConnection();
  8122. }
  8123. return this._connection;
  8124. }
  8125. set {
  8126. this._connection = value;
  8127. if ((this.Adapter.InsertCommand != null)) {
  8128. this.Adapter.InsertCommand.Connection = value;
  8129. }
  8130. if ((this.Adapter.DeleteCommand != null)) {
  8131. this.Adapter.DeleteCommand.Connection = value;
  8132. }
  8133. if ((this.Adapter.UpdateCommand != null)) {
  8134. this.Adapter.UpdateCommand.Connection = value;
  8135. }
  8136. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8137. if ((this.CommandCollection[i] != null)) {
  8138. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8139. }
  8140. }
  8141. }
  8142. }
  8143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8145. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8146. get {
  8147. return this._transaction;
  8148. }
  8149. set {
  8150. this._transaction = value;
  8151. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8152. this.CommandCollection[i].Transaction = this._transaction;
  8153. }
  8154. if (((this.Adapter != null)
  8155. && (this.Adapter.DeleteCommand != null))) {
  8156. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8157. }
  8158. if (((this.Adapter != null)
  8159. && (this.Adapter.InsertCommand != null))) {
  8160. this.Adapter.InsertCommand.Transaction = this._transaction;
  8161. }
  8162. if (((this.Adapter != null)
  8163. && (this.Adapter.UpdateCommand != null))) {
  8164. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8165. }
  8166. }
  8167. }
  8168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8170. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8171. get {
  8172. if ((this._commandCollection == null)) {
  8173. this.InitCommandCollection();
  8174. }
  8175. return this._commandCollection;
  8176. }
  8177. }
  8178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8180. public bool ClearBeforeFill {
  8181. get {
  8182. return this._clearBeforeFill;
  8183. }
  8184. set {
  8185. this._clearBeforeFill = value;
  8186. }
  8187. }
  8188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8190. private void InitAdapter() {
  8191. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8192. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8193. tableMapping.SourceTable = "Table";
  8194. tableMapping.DataSetTable = "Product";
  8195. tableMapping.ColumnMappings.Add("ID", "ID");
  8196. tableMapping.ColumnMappings.Add("Title", "Title");
  8197. tableMapping.ColumnMappings.Add("Cost", "Cost");
  8198. tableMapping.ColumnMappings.Add("Description", "Description");
  8199. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  8200. tableMapping.ColumnMappings.Add("IsActive", "IsActive");
  8201. tableMapping.ColumnMappings.Add("ManufacturerID", "ManufacturerID");
  8202. this._adapter.TableMappings.Add(tableMapping);
  8203. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8204. this._adapter.DeleteCommand.Connection = this.Connection;
  8205. 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)))";
  8206. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8207. 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, "", "", ""));
  8208. 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, "", "", ""));
  8209. 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, "", "", ""));
  8210. 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, "", "", ""));
  8211. 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, "", "", ""));
  8212. 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, "", "", ""));
  8213. 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, "", "", ""));
  8214. 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, "", "", ""));
  8215. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8216. this._adapter.InsertCommand.Connection = this.Connection;
  8217. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([Title], [Cost], [Description], [MainImagePath], [IsActive], [ManufacturerID]) VALUES (@Title, @Cost, @Description, @MainImagePath, @IsActive, @ManufacturerID);
  8218. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = SCOPE_IDENTITY())";
  8219. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8220. 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, "", "", ""));
  8221. 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, "", "", ""));
  8222. 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, "", "", ""));
  8223. 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, "", "", ""));
  8224. 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, "", "", ""));
  8225. 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, "", "", ""));
  8226. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8227. this._adapter.UpdateCommand.Connection = this.Connection;
  8228. 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)));
  8229. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = @ID)";
  8230. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8231. 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, "", "", ""));
  8232. 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, "", "", ""));
  8233. 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, "", "", ""));
  8234. 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, "", "", ""));
  8235. 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, "", "", ""));
  8236. 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, "", "", ""));
  8237. 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, "", "", ""));
  8238. 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, "", "", ""));
  8239. 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, "", "", ""));
  8240. 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, "", "", ""));
  8241. 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, "", "", ""));
  8242. 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, "", "", ""));
  8243. 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, "", "", ""));
  8244. 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, "", "", ""));
  8245. 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, "", "", ""));
  8246. }
  8247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8249. private void InitConnection() {
  8250. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8251. this._connection.ConnectionString = global::SalonKrasoti02.Properties.Settings.Default.SaloonKrasoti02ConnectionString;
  8252. }
  8253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8255. private void InitCommandCollection() {
  8256. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8257. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8258. this._commandCollection[0].Connection = this.Connection;
  8259. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM" +
  8260. " dbo.Product";
  8261. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8262. }
  8263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8265. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8266. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8267. public virtual int Fill(SaloonKrasoti02DataSet.ProductDataTable dataTable) {
  8268. this.Adapter.SelectCommand = this.CommandCollection[0];
  8269. if ((this.ClearBeforeFill == true)) {
  8270. dataTable.Clear();
  8271. }
  8272. int returnValue = this.Adapter.Fill(dataTable);
  8273. return returnValue;
  8274. }
  8275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8277. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8278. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8279. public virtual SaloonKrasoti02DataSet.ProductDataTable GetData() {
  8280. this.Adapter.SelectCommand = this.CommandCollection[0];
  8281. SaloonKrasoti02DataSet.ProductDataTable dataTable = new SaloonKrasoti02DataSet.ProductDataTable();
  8282. this.Adapter.Fill(dataTable);
  8283. return dataTable;
  8284. }
  8285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8287. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8288. public virtual int Update(SaloonKrasoti02DataSet.ProductDataTable dataTable) {
  8289. return this.Adapter.Update(dataTable);
  8290. }
  8291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8293. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8294. public virtual int Update(SaloonKrasoti02DataSet dataSet) {
  8295. return this.Adapter.Update(dataSet, "Product");
  8296. }
  8297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8299. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8300. public virtual int Update(global::System.Data.DataRow dataRow) {
  8301. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8302. dataRow});
  8303. }
  8304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8306. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8307. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8308. return this.Adapter.Update(dataRows);
  8309. }
  8310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8312. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8313. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8314. 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) {
  8315. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8316. if ((Original_Title == null)) {
  8317. throw new global::System.ArgumentNullException("Original_Title");
  8318. }
  8319. else {
  8320. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  8321. }
  8322. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  8323. if ((Original_MainImagePath == null)) {
  8324. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8325. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8326. }
  8327. else {
  8328. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8329. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_MainImagePath));
  8330. }
  8331. this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_IsActive));
  8332. if ((Original_ManufacturerID.HasValue == true)) {
  8333. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  8334. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_ManufacturerID.Value));
  8335. }
  8336. else {
  8337. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  8338. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  8339. }
  8340. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8341. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8342. != global::System.Data.ConnectionState.Open)) {
  8343. this.Adapter.DeleteCommand.Connection.Open();
  8344. }
  8345. try {
  8346. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8347. return returnValue;
  8348. }
  8349. finally {
  8350. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8351. this.Adapter.DeleteCommand.Connection.Close();
  8352. }
  8353. }
  8354. }
  8355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8357. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8358. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8359. public virtual int Insert(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID) {
  8360. if ((Title == null)) {
  8361. throw new global::System.ArgumentNullException("Title");
  8362. }
  8363. else {
  8364. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  8365. }
  8366. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  8367. if ((Description == null)) {
  8368. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8369. }
  8370. else {
  8371. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Description));
  8372. }
  8373. if ((MainImagePath == null)) {
  8374. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8375. }
  8376. else {
  8377. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(MainImagePath));
  8378. }
  8379. this.Adapter.InsertCommand.Parameters[4].Value = ((bool)(IsActive));
  8380. if ((ManufacturerID.HasValue == true)) {
  8381. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8382. }
  8383. else {
  8384. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  8385. }
  8386. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8387. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8388. != global::System.Data.ConnectionState.Open)) {
  8389. this.Adapter.InsertCommand.Connection.Open();
  8390. }
  8391. try {
  8392. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8393. return returnValue;
  8394. }
  8395. finally {
  8396. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8397. this.Adapter.InsertCommand.Connection.Close();
  8398. }
  8399. }
  8400. }
  8401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8403. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8404. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8405. 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) {
  8406. if ((Title == null)) {
  8407. throw new global::System.ArgumentNullException("Title");
  8408. }
  8409. else {
  8410. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  8411. }
  8412. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  8413. if ((Description == null)) {
  8414. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8415. }
  8416. else {
  8417. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Description));
  8418. }
  8419. if ((MainImagePath == null)) {
  8420. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8421. }
  8422. else {
  8423. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(MainImagePath));
  8424. }
  8425. this.Adapter.UpdateCommand.Parameters[4].Value = ((bool)(IsActive));
  8426. if ((ManufacturerID.HasValue == true)) {
  8427. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8428. }
  8429. else {
  8430. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8431. }
  8432. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  8433. if ((Original_Title == null)) {
  8434. throw new global::System.ArgumentNullException("Original_Title");
  8435. }
  8436. else {
  8437. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  8438. }
  8439. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  8440. if ((Original_MainImagePath == null)) {
  8441. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8442. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8443. }
  8444. else {
  8445. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8446. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_MainImagePath));
  8447. }
  8448. this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_IsActive));
  8449. if ((Original_ManufacturerID.HasValue == true)) {
  8450. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  8451. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_ManufacturerID.Value));
  8452. }
  8453. else {
  8454. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  8455. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  8456. }
  8457. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  8458. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8459. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8460. != global::System.Data.ConnectionState.Open)) {
  8461. this.Adapter.UpdateCommand.Connection.Open();
  8462. }
  8463. try {
  8464. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8465. return returnValue;
  8466. }
  8467. finally {
  8468. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8469. this.Adapter.UpdateCommand.Connection.Close();
  8470. }
  8471. }
  8472. }
  8473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8475. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8476. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8477. 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) {
  8478. return this.Update(Title, Cost, Description, MainImagePath, IsActive, ManufacturerID, Original_ID, Original_Title, Original_Cost, Original_MainImagePath, Original_IsActive, Original_ManufacturerID, Original_ID);
  8479. }
  8480. }
  8481. /// <summary>
  8482. ///Represents the connection and commands used to retrieve and save data.
  8483. ///</summary>
  8484. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8485. [global::System.ComponentModel.ToolboxItem(true)]
  8486. [global::System.ComponentModel.DataObjectAttribute(true)]
  8487. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8488. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8489. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8490. public partial class ProductPhotoTableAdapter : global::System.ComponentModel.Component {
  8491. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8492. private global::System.Data.SqlClient.SqlConnection _connection;
  8493. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8494. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8495. private bool _clearBeforeFill;
  8496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8498. public ProductPhotoTableAdapter() {
  8499. this.ClearBeforeFill = true;
  8500. }
  8501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8503. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8504. get {
  8505. if ((this._adapter == null)) {
  8506. this.InitAdapter();
  8507. }
  8508. return this._adapter;
  8509. }
  8510. }
  8511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8513. internal global::System.Data.SqlClient.SqlConnection Connection {
  8514. get {
  8515. if ((this._connection == null)) {
  8516. this.InitConnection();
  8517. }
  8518. return this._connection;
  8519. }
  8520. set {
  8521. this._connection = value;
  8522. if ((this.Adapter.InsertCommand != null)) {
  8523. this.Adapter.InsertCommand.Connection = value;
  8524. }
  8525. if ((this.Adapter.DeleteCommand != null)) {
  8526. this.Adapter.DeleteCommand.Connection = value;
  8527. }
  8528. if ((this.Adapter.UpdateCommand != null)) {
  8529. this.Adapter.UpdateCommand.Connection = value;
  8530. }
  8531. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8532. if ((this.CommandCollection[i] != null)) {
  8533. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8534. }
  8535. }
  8536. }
  8537. }
  8538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8540. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8541. get {
  8542. return this._transaction;
  8543. }
  8544. set {
  8545. this._transaction = value;
  8546. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8547. this.CommandCollection[i].Transaction = this._transaction;
  8548. }
  8549. if (((this.Adapter != null)
  8550. && (this.Adapter.DeleteCommand != null))) {
  8551. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8552. }
  8553. if (((this.Adapter != null)
  8554. && (this.Adapter.InsertCommand != null))) {
  8555. this.Adapter.InsertCommand.Transaction = this._transaction;
  8556. }
  8557. if (((this.Adapter != null)
  8558. && (this.Adapter.UpdateCommand != null))) {
  8559. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8560. }
  8561. }
  8562. }
  8563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8565. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8566. get {
  8567. if ((this._commandCollection == null)) {
  8568. this.InitCommandCollection();
  8569. }
  8570. return this._commandCollection;
  8571. }
  8572. }
  8573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8575. public bool ClearBeforeFill {
  8576. get {
  8577. return this._clearBeforeFill;
  8578. }
  8579. set {
  8580. this._clearBeforeFill = value;
  8581. }
  8582. }
  8583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8585. private void InitAdapter() {
  8586. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8587. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8588. tableMapping.SourceTable = "Table";
  8589. tableMapping.DataSetTable = "ProductPhoto";
  8590. tableMapping.ColumnMappings.Add("ID", "ID");
  8591. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  8592. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  8593. this._adapter.TableMappings.Add(tableMapping);
  8594. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8595. this._adapter.DeleteCommand.Connection = this.Connection;
  8596. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProductPhoto] WHERE (([ID] = @Original_ID) AND ([ProductID] = " +
  8597. "@Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath))";
  8598. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8599. 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, "", "", ""));
  8600. 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, "", "", ""));
  8601. 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, "", "", ""));
  8602. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8603. this._adapter.InsertCommand.Connection = this.Connection;
  8604. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductPhoto] ([ProductID], [PhotoPath]) VALUES (@ProductID, @" +
  8605. "PhotoPath);\r\nSELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = SCOPE" +
  8606. "_IDENTITY())";
  8607. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8608. 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, "", "", ""));
  8609. 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, "", "", ""));
  8610. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8611. this._adapter.UpdateCommand.Connection = this.Connection;
  8612. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductPhoto] SET [ProductID] = @ProductID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath));
  8613. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = @ID)";
  8614. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8615. 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, "", "", ""));
  8616. 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, "", "", ""));
  8617. 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, "", "", ""));
  8618. 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, "", "", ""));
  8619. 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, "", "", ""));
  8620. 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, "", "", ""));
  8621. }
  8622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8624. private void InitConnection() {
  8625. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8626. this._connection.ConnectionString = global::SalonKrasoti02.Properties.Settings.Default.SaloonKrasoti02ConnectionString;
  8627. }
  8628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8630. private void InitCommandCollection() {
  8631. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8632. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8633. this._commandCollection[0].Connection = this.Connection;
  8634. this._commandCollection[0].CommandText = "SELECT ID, ProductID, PhotoPath FROM dbo.ProductPhoto";
  8635. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8636. }
  8637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8639. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8640. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8641. public virtual int Fill(SaloonKrasoti02DataSet.ProductPhotoDataTable dataTable) {
  8642. this.Adapter.SelectCommand = this.CommandCollection[0];
  8643. if ((this.ClearBeforeFill == true)) {
  8644. dataTable.Clear();
  8645. }
  8646. int returnValue = this.Adapter.Fill(dataTable);
  8647. return returnValue;
  8648. }
  8649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8651. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8652. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8653. public virtual SaloonKrasoti02DataSet.ProductPhotoDataTable GetData() {
  8654. this.Adapter.SelectCommand = this.CommandCollection[0];
  8655. SaloonKrasoti02DataSet.ProductPhotoDataTable dataTable = new SaloonKrasoti02DataSet.ProductPhotoDataTable();
  8656. this.Adapter.Fill(dataTable);
  8657. return dataTable;
  8658. }
  8659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8661. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8662. public virtual int Update(SaloonKrasoti02DataSet.ProductPhotoDataTable dataTable) {
  8663. return this.Adapter.Update(dataTable);
  8664. }
  8665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8667. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8668. public virtual int Update(SaloonKrasoti02DataSet dataSet) {
  8669. return this.Adapter.Update(dataSet, "ProductPhoto");
  8670. }
  8671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8673. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8674. public virtual int Update(global::System.Data.DataRow dataRow) {
  8675. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8676. dataRow});
  8677. }
  8678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8680. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8681. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8682. return this.Adapter.Update(dataRows);
  8683. }
  8684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8686. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8687. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8688. public virtual int Delete(int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  8689. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8690. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ProductID));
  8691. if ((Original_PhotoPath == null)) {
  8692. throw new global::System.ArgumentNullException("Original_PhotoPath");
  8693. }
  8694. else {
  8695. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  8696. }
  8697. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8698. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8699. != global::System.Data.ConnectionState.Open)) {
  8700. this.Adapter.DeleteCommand.Connection.Open();
  8701. }
  8702. try {
  8703. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8704. return returnValue;
  8705. }
  8706. finally {
  8707. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8708. this.Adapter.DeleteCommand.Connection.Close();
  8709. }
  8710. }
  8711. }
  8712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8714. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8715. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8716. public virtual int Insert(int ProductID, string PhotoPath) {
  8717. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ProductID));
  8718. if ((PhotoPath == null)) {
  8719. throw new global::System.ArgumentNullException("PhotoPath");
  8720. }
  8721. else {
  8722. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  8723. }
  8724. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8725. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8726. != global::System.Data.ConnectionState.Open)) {
  8727. this.Adapter.InsertCommand.Connection.Open();
  8728. }
  8729. try {
  8730. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8731. return returnValue;
  8732. }
  8733. finally {
  8734. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8735. this.Adapter.InsertCommand.Connection.Close();
  8736. }
  8737. }
  8738. }
  8739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8741. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8742. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8743. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath, int ID) {
  8744. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ProductID));
  8745. if ((PhotoPath == null)) {
  8746. throw new global::System.ArgumentNullException("PhotoPath");
  8747. }
  8748. else {
  8749. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  8750. }
  8751. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  8752. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ProductID));
  8753. if ((Original_PhotoPath == null)) {
  8754. throw new global::System.ArgumentNullException("Original_PhotoPath");
  8755. }
  8756. else {
  8757. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  8758. }
  8759. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  8760. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8761. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8762. != global::System.Data.ConnectionState.Open)) {
  8763. this.Adapter.UpdateCommand.Connection.Open();
  8764. }
  8765. try {
  8766. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8767. return returnValue;
  8768. }
  8769. finally {
  8770. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8771. this.Adapter.UpdateCommand.Connection.Close();
  8772. }
  8773. }
  8774. }
  8775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8777. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8778. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8779. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  8780. return this.Update(ProductID, PhotoPath, Original_ID, Original_ProductID, Original_PhotoPath, Original_ID);
  8781. }
  8782. }
  8783. /// <summary>
  8784. ///Represents the connection and commands used to retrieve and save data.
  8785. ///</summary>
  8786. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8787. [global::System.ComponentModel.ToolboxItem(true)]
  8788. [global::System.ComponentModel.DataObjectAttribute(true)]
  8789. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8790. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8791. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8792. public partial class ProductSaleTableAdapter : global::System.ComponentModel.Component {
  8793. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8794. private global::System.Data.SqlClient.SqlConnection _connection;
  8795. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8796. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8797. private bool _clearBeforeFill;
  8798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8800. public ProductSaleTableAdapter() {
  8801. this.ClearBeforeFill = true;
  8802. }
  8803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8805. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8806. get {
  8807. if ((this._adapter == null)) {
  8808. this.InitAdapter();
  8809. }
  8810. return this._adapter;
  8811. }
  8812. }
  8813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8815. internal global::System.Data.SqlClient.SqlConnection Connection {
  8816. get {
  8817. if ((this._connection == null)) {
  8818. this.InitConnection();
  8819. }
  8820. return this._connection;
  8821. }
  8822. set {
  8823. this._connection = value;
  8824. if ((this.Adapter.InsertCommand != null)) {
  8825. this.Adapter.InsertCommand.Connection = value;
  8826. }
  8827. if ((this.Adapter.DeleteCommand != null)) {
  8828. this.Adapter.DeleteCommand.Connection = value;
  8829. }
  8830. if ((this.Adapter.UpdateCommand != null)) {
  8831. this.Adapter.UpdateCommand.Connection = value;
  8832. }
  8833. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8834. if ((this.CommandCollection[i] != null)) {
  8835. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8836. }
  8837. }
  8838. }
  8839. }
  8840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8842. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8843. get {
  8844. return this._transaction;
  8845. }
  8846. set {
  8847. this._transaction = value;
  8848. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8849. this.CommandCollection[i].Transaction = this._transaction;
  8850. }
  8851. if (((this.Adapter != null)
  8852. && (this.Adapter.DeleteCommand != null))) {
  8853. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8854. }
  8855. if (((this.Adapter != null)
  8856. && (this.Adapter.InsertCommand != null))) {
  8857. this.Adapter.InsertCommand.Transaction = this._transaction;
  8858. }
  8859. if (((this.Adapter != null)
  8860. && (this.Adapter.UpdateCommand != null))) {
  8861. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8862. }
  8863. }
  8864. }
  8865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8867. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8868. get {
  8869. if ((this._commandCollection == null)) {
  8870. this.InitCommandCollection();
  8871. }
  8872. return this._commandCollection;
  8873. }
  8874. }
  8875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8877. public bool ClearBeforeFill {
  8878. get {
  8879. return this._clearBeforeFill;
  8880. }
  8881. set {
  8882. this._clearBeforeFill = value;
  8883. }
  8884. }
  8885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8887. private void InitAdapter() {
  8888. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8889. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8890. tableMapping.SourceTable = "Table";
  8891. tableMapping.DataSetTable = "ProductSale";
  8892. tableMapping.ColumnMappings.Add("ID", "ID");
  8893. tableMapping.ColumnMappings.Add("SaleDate", "SaleDate");
  8894. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  8895. tableMapping.ColumnMappings.Add("Quantity", "Quantity");
  8896. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  8897. this._adapter.TableMappings.Add(tableMapping);
  8898. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8899. this._adapter.DeleteCommand.Connection = this.Connection;
  8900. 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)))";
  8901. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8902. 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, "", "", ""));
  8903. 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, "", "", ""));
  8904. 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, "", "", ""));
  8905. 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, "", "", ""));
  8906. 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, "", "", ""));
  8907. 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, "", "", ""));
  8908. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8909. this._adapter.InsertCommand.Connection = this.Connection;
  8910. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductSale] ([SaleDate], [ProductID], [Quantity], [ClientServ" +
  8911. "iceID]) VALUES (@SaleDate, @ProductID, @Quantity, @ClientServiceID);\r\nSELECT ID," +
  8912. " SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = SCO" +
  8913. "PE_IDENTITY())";
  8914. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8915. 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, "", "", ""));
  8916. 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, "", "", ""));
  8917. 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, "", "", ""));
  8918. 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, "", "", ""));
  8919. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8920. this._adapter.UpdateCommand.Connection = this.Connection;
  8921. 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)));
  8922. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = @ID)";
  8923. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8924. 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, "", "", ""));
  8925. 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, "", "", ""));
  8926. 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, "", "", ""));
  8927. 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, "", "", ""));
  8928. 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, "", "", ""));
  8929. 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, "", "", ""));
  8930. 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, "", "", ""));
  8931. 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, "", "", ""));
  8932. 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, "", "", ""));
  8933. 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, "", "", ""));
  8934. 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, "", "", ""));
  8935. }
  8936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8938. private void InitConnection() {
  8939. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8940. this._connection.ConnectionString = global::SalonKrasoti02.Properties.Settings.Default.SaloonKrasoti02ConnectionString;
  8941. }
  8942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8944. private void InitCommandCollection() {
  8945. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8946. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8947. this._commandCollection[0].Connection = this.Connection;
  8948. this._commandCollection[0].CommandText = "SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM dbo.ProductSale";
  8949. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8950. }
  8951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8953. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8954. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8955. public virtual int Fill(SaloonKrasoti02DataSet.ProductSaleDataTable dataTable) {
  8956. this.Adapter.SelectCommand = this.CommandCollection[0];
  8957. if ((this.ClearBeforeFill == true)) {
  8958. dataTable.Clear();
  8959. }
  8960. int returnValue = this.Adapter.Fill(dataTable);
  8961. return returnValue;
  8962. }
  8963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8965. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8966. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8967. public virtual SaloonKrasoti02DataSet.ProductSaleDataTable GetData() {
  8968. this.Adapter.SelectCommand = this.CommandCollection[0];
  8969. SaloonKrasoti02DataSet.ProductSaleDataTable dataTable = new SaloonKrasoti02DataSet.ProductSaleDataTable();
  8970. this.Adapter.Fill(dataTable);
  8971. return dataTable;
  8972. }
  8973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8975. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8976. public virtual int Update(SaloonKrasoti02DataSet.ProductSaleDataTable dataTable) {
  8977. return this.Adapter.Update(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(SaloonKrasoti02DataSet dataSet) {
  8983. return this.Adapter.Update(dataSet, "ProductSale");
  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(global::System.Data.DataRow dataRow) {
  8989. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8990. dataRow});
  8991. }
  8992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8994. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8995. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8996. return this.Adapter.Update(dataRows);
  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. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9002. public virtual int Delete(int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID) {
  9003. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9004. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_SaleDate));
  9005. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ProductID));
  9006. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Quantity));
  9007. if ((Original_ClientServiceID.HasValue == true)) {
  9008. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  9009. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_ClientServiceID.Value));
  9010. }
  9011. else {
  9012. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  9013. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  9014. }
  9015. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9016. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9017. != global::System.Data.ConnectionState.Open)) {
  9018. this.Adapter.DeleteCommand.Connection.Open();
  9019. }
  9020. try {
  9021. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9022. return returnValue;
  9023. }
  9024. finally {
  9025. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9026. this.Adapter.DeleteCommand.Connection.Close();
  9027. }
  9028. }
  9029. }
  9030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9032. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9033. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9034. public virtual int Insert(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID) {
  9035. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  9036. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ProductID));
  9037. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Quantity));
  9038. if ((ClientServiceID.HasValue == true)) {
  9039. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  9040. }
  9041. else {
  9042. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9043. }
  9044. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9045. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9046. != global::System.Data.ConnectionState.Open)) {
  9047. this.Adapter.InsertCommand.Connection.Open();
  9048. }
  9049. try {
  9050. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9051. return returnValue;
  9052. }
  9053. finally {
  9054. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9055. this.Adapter.InsertCommand.Connection.Close();
  9056. }
  9057. }
  9058. }
  9059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9061. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9062. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9063. 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) {
  9064. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  9065. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ProductID));
  9066. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Quantity));
  9067. if ((ClientServiceID.HasValue == true)) {
  9068. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  9069. }
  9070. else {
  9071. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9072. }
  9073. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  9074. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_SaleDate));
  9075. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ProductID));
  9076. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Quantity));
  9077. if ((Original_ClientServiceID.HasValue == true)) {
  9078. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  9079. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ClientServiceID.Value));
  9080. }
  9081. else {
  9082. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  9083. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  9084. }
  9085. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID));
  9086. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9087. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9088. != global::System.Data.ConnectionState.Open)) {
  9089. this.Adapter.UpdateCommand.Connection.Open();
  9090. }
  9091. try {
  9092. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9093. return returnValue;
  9094. }
  9095. finally {
  9096. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9097. this.Adapter.UpdateCommand.Connection.Close();
  9098. }
  9099. }
  9100. }
  9101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9103. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9104. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9105. 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) {
  9106. return this.Update(SaleDate, ProductID, Quantity, ClientServiceID, Original_ID, Original_SaleDate, Original_ProductID, Original_Quantity, Original_ClientServiceID, Original_ID);
  9107. }
  9108. }
  9109. /// <summary>
  9110. ///Represents the connection and commands used to retrieve and save data.
  9111. ///</summary>
  9112. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9113. [global::System.ComponentModel.ToolboxItem(true)]
  9114. [global::System.ComponentModel.DataObjectAttribute(true)]
  9115. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9116. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9117. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9118. public partial class ServiceTableAdapter : global::System.ComponentModel.Component {
  9119. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9120. private global::System.Data.SqlClient.SqlConnection _connection;
  9121. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9122. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9123. private bool _clearBeforeFill;
  9124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9126. public ServiceTableAdapter() {
  9127. this.ClearBeforeFill = true;
  9128. }
  9129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9131. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9132. get {
  9133. if ((this._adapter == null)) {
  9134. this.InitAdapter();
  9135. }
  9136. return this._adapter;
  9137. }
  9138. }
  9139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9141. internal global::System.Data.SqlClient.SqlConnection Connection {
  9142. get {
  9143. if ((this._connection == null)) {
  9144. this.InitConnection();
  9145. }
  9146. return this._connection;
  9147. }
  9148. set {
  9149. this._connection = value;
  9150. if ((this.Adapter.InsertCommand != null)) {
  9151. this.Adapter.InsertCommand.Connection = value;
  9152. }
  9153. if ((this.Adapter.DeleteCommand != null)) {
  9154. this.Adapter.DeleteCommand.Connection = value;
  9155. }
  9156. if ((this.Adapter.UpdateCommand != null)) {
  9157. this.Adapter.UpdateCommand.Connection = value;
  9158. }
  9159. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9160. if ((this.CommandCollection[i] != null)) {
  9161. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9162. }
  9163. }
  9164. }
  9165. }
  9166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9168. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9169. get {
  9170. return this._transaction;
  9171. }
  9172. set {
  9173. this._transaction = value;
  9174. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9175. this.CommandCollection[i].Transaction = this._transaction;
  9176. }
  9177. if (((this.Adapter != null)
  9178. && (this.Adapter.DeleteCommand != null))) {
  9179. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9180. }
  9181. if (((this.Adapter != null)
  9182. && (this.Adapter.InsertCommand != null))) {
  9183. this.Adapter.InsertCommand.Transaction = this._transaction;
  9184. }
  9185. if (((this.Adapter != null)
  9186. && (this.Adapter.UpdateCommand != null))) {
  9187. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9188. }
  9189. }
  9190. }
  9191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9193. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9194. get {
  9195. if ((this._commandCollection == null)) {
  9196. this.InitCommandCollection();
  9197. }
  9198. return this._commandCollection;
  9199. }
  9200. }
  9201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9203. public bool ClearBeforeFill {
  9204. get {
  9205. return this._clearBeforeFill;
  9206. }
  9207. set {
  9208. this._clearBeforeFill = value;
  9209. }
  9210. }
  9211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9213. private void InitAdapter() {
  9214. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9215. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9216. tableMapping.SourceTable = "Table";
  9217. tableMapping.DataSetTable = "Service";
  9218. tableMapping.ColumnMappings.Add("ID", "ID");
  9219. tableMapping.ColumnMappings.Add("Title", "Title");
  9220. tableMapping.ColumnMappings.Add("Cost", "Cost");
  9221. tableMapping.ColumnMappings.Add("Description", "Description");
  9222. tableMapping.ColumnMappings.Add("Discount", "Discount");
  9223. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  9224. tableMapping.ColumnMappings.Add("ServicePhoto", "ServicePhoto");
  9225. tableMapping.ColumnMappings.Add("PhormatPhoto", "PhormatPhoto");
  9226. tableMapping.ColumnMappings.Add("DurationInMinutes", "DurationInMinutes");
  9227. this._adapter.TableMappings.Add(tableMapping);
  9228. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9229. this._adapter.DeleteCommand.Connection = this.Connection;
  9230. this._adapter.DeleteCommand.CommandText = "DELETE FROM [Service] WHERE (([ID] = @Original_ID) AND ((@IsNull_Cost = 1 AND [Co" +
  9231. "st] IS NULL) OR ([Cost] = @Original_Cost)))";
  9232. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9233. 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, "", "", ""));
  9234. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9235. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9236. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9237. this._adapter.InsertCommand.Connection = this.Connection;
  9238. this._adapter.InsertCommand.CommandText = @"INSERT INTO [Service] ([Title], [Cost], [Description], [Discount], [MainImagePath], [ServicePhoto], [PhormatPhoto], [DurationInMinutes]) VALUES (@Title, @Cost, @Description, @Discount, @MainImagePath, @ServicePhoto, @PhormatPhoto, @DurationInMinutes);
  9239. SELECT ID, Title, Cost, Description, Discount, MainImagePath, ServicePhoto, PhormatPhoto, DurationInMinutes FROM Service WHERE (ID = SCOPE_IDENTITY())";
  9240. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9241. 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, "", "", ""));
  9242. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9243. 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, "", "", ""));
  9244. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9245. 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, "", "", ""));
  9246. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ServicePhoto", global::System.Data.SqlDbType.VarBinary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServicePhoto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9247. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhormatPhoto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhormatPhoto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9248. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurationInMinutes", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInMinutes", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9249. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9250. this._adapter.UpdateCommand.Connection = this.Connection;
  9251. this._adapter.UpdateCommand.CommandText = @"UPDATE [Service] SET [Title] = @Title, [Cost] = @Cost, [Description] = @Description, [Discount] = @Discount, [MainImagePath] = @MainImagePath, [ServicePhoto] = @ServicePhoto, [PhormatPhoto] = @PhormatPhoto, [DurationInMinutes] = @DurationInMinutes WHERE (([ID] = @Original_ID) AND ((@IsNull_Cost = 1 AND [Cost] IS NULL) OR ([Cost] = @Original_Cost)));
  9252. SELECT ID, Title, Cost, Description, Discount, MainImagePath, ServicePhoto, PhormatPhoto, DurationInMinutes FROM Service WHERE (ID = @ID)";
  9253. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9254. 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, "", "", ""));
  9255. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9256. 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, "", "", ""));
  9257. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9258. 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, "", "", ""));
  9259. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ServicePhoto", global::System.Data.SqlDbType.VarBinary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServicePhoto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9260. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhormatPhoto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhormatPhoto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9261. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurationInMinutes", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInMinutes", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9262. 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, "", "", ""));
  9263. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9264. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9265. 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, "", "", ""));
  9266. }
  9267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9269. private void InitConnection() {
  9270. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9271. this._connection.ConnectionString = global::SalonKrasoti02.Properties.Settings.Default.SaloonKrasoti02ConnectionString;
  9272. }
  9273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9275. private void InitCommandCollection() {
  9276. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9277. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9278. this._commandCollection[0].Connection = this.Connection;
  9279. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, Description, Discount, MainImagePath, ServicePhoto, Phorm" +
  9280. "atPhoto, DurationInMinutes FROM Service";
  9281. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9282. }
  9283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9285. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9286. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9287. public virtual int Fill(SaloonKrasoti02DataSet.ServiceDataTable dataTable) {
  9288. this.Adapter.SelectCommand = this.CommandCollection[0];
  9289. if ((this.ClearBeforeFill == true)) {
  9290. dataTable.Clear();
  9291. }
  9292. int returnValue = this.Adapter.Fill(dataTable);
  9293. return returnValue;
  9294. }
  9295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9297. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9298. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9299. public virtual SaloonKrasoti02DataSet.ServiceDataTable GetData() {
  9300. this.Adapter.SelectCommand = this.CommandCollection[0];
  9301. SaloonKrasoti02DataSet.ServiceDataTable dataTable = new SaloonKrasoti02DataSet.ServiceDataTable();
  9302. this.Adapter.Fill(dataTable);
  9303. return dataTable;
  9304. }
  9305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9307. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9308. public virtual int Update(SaloonKrasoti02DataSet.ServiceDataTable dataTable) {
  9309. return this.Adapter.Update(dataTable);
  9310. }
  9311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9313. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9314. public virtual int Update(SaloonKrasoti02DataSet dataSet) {
  9315. return this.Adapter.Update(dataSet, "Service");
  9316. }
  9317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9319. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9320. public virtual int Update(global::System.Data.DataRow dataRow) {
  9321. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9322. dataRow});
  9323. }
  9324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9326. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9327. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9328. return this.Adapter.Update(dataRows);
  9329. }
  9330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9332. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9333. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9334. public virtual int Delete(int Original_ID, global::System.Nullable<decimal> Original_Cost) {
  9335. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9336. if ((Original_Cost.HasValue == true)) {
  9337. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9338. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost.Value));
  9339. }
  9340. else {
  9341. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9342. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9343. }
  9344. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9345. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9346. != global::System.Data.ConnectionState.Open)) {
  9347. this.Adapter.DeleteCommand.Connection.Open();
  9348. }
  9349. try {
  9350. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9351. return returnValue;
  9352. }
  9353. finally {
  9354. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9355. this.Adapter.DeleteCommand.Connection.Close();
  9356. }
  9357. }
  9358. }
  9359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9361. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9362. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9363. public virtual int Insert(string Title, global::System.Nullable<decimal> Cost, string Description, string Discount, string MainImagePath, byte[] ServicePhoto, string PhormatPhoto, string DurationInMinutes) {
  9364. if ((Title == null)) {
  9365. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9366. }
  9367. else {
  9368. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  9369. }
  9370. if ((Cost.HasValue == true)) {
  9371. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost.Value));
  9372. }
  9373. else {
  9374. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9375. }
  9376. if ((Description == null)) {
  9377. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  9378. }
  9379. else {
  9380. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Description));
  9381. }
  9382. if ((Discount == null)) {
  9383. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9384. }
  9385. else {
  9386. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Discount));
  9387. }
  9388. if ((MainImagePath == null)) {
  9389. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  9390. }
  9391. else {
  9392. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(MainImagePath));
  9393. }
  9394. if ((ServicePhoto == null)) {
  9395. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  9396. }
  9397. else {
  9398. this.Adapter.InsertCommand.Parameters[5].Value = ((byte[])(ServicePhoto));
  9399. }
  9400. if ((PhormatPhoto == null)) {
  9401. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  9402. }
  9403. else {
  9404. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(PhormatPhoto));
  9405. }
  9406. if ((DurationInMinutes == null)) {
  9407. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  9408. }
  9409. else {
  9410. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(DurationInMinutes));
  9411. }
  9412. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9413. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9414. != global::System.Data.ConnectionState.Open)) {
  9415. this.Adapter.InsertCommand.Connection.Open();
  9416. }
  9417. try {
  9418. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9419. return returnValue;
  9420. }
  9421. finally {
  9422. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9423. this.Adapter.InsertCommand.Connection.Close();
  9424. }
  9425. }
  9426. }
  9427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9429. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9430. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9431. public virtual int Update(string Title, global::System.Nullable<decimal> Cost, string Description, string Discount, string MainImagePath, byte[] ServicePhoto, string PhormatPhoto, string DurationInMinutes, int Original_ID, global::System.Nullable<decimal> Original_Cost, int ID) {
  9432. if ((Title == null)) {
  9433. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9434. }
  9435. else {
  9436. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  9437. }
  9438. if ((Cost.HasValue == true)) {
  9439. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost.Value));
  9440. }
  9441. else {
  9442. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9443. }
  9444. if ((Description == null)) {
  9445. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  9446. }
  9447. else {
  9448. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Description));
  9449. }
  9450. if ((Discount == null)) {
  9451. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9452. }
  9453. else {
  9454. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Discount));
  9455. }
  9456. if ((MainImagePath == null)) {
  9457. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9458. }
  9459. else {
  9460. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(MainImagePath));
  9461. }
  9462. if ((ServicePhoto == null)) {
  9463. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9464. }
  9465. else {
  9466. this.Adapter.UpdateCommand.Parameters[5].Value = ((byte[])(ServicePhoto));
  9467. }
  9468. if ((PhormatPhoto == null)) {
  9469. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  9470. }
  9471. else {
  9472. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(PhormatPhoto));
  9473. }
  9474. if ((DurationInMinutes == null)) {
  9475. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  9476. }
  9477. else {
  9478. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(DurationInMinutes));
  9479. }
  9480. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_ID));
  9481. if ((Original_Cost.HasValue == true)) {
  9482. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  9483. this.Adapter.UpdateCommand.Parameters[10].Value = ((decimal)(Original_Cost.Value));
  9484. }
  9485. else {
  9486. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  9487. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  9488. }
  9489. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(ID));
  9490. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9491. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9492. != global::System.Data.ConnectionState.Open)) {
  9493. this.Adapter.UpdateCommand.Connection.Open();
  9494. }
  9495. try {
  9496. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9497. return returnValue;
  9498. }
  9499. finally {
  9500. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9501. this.Adapter.UpdateCommand.Connection.Close();
  9502. }
  9503. }
  9504. }
  9505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9507. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9508. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9509. public virtual int Update(string Title, global::System.Nullable<decimal> Cost, string Description, string Discount, string MainImagePath, byte[] ServicePhoto, string PhormatPhoto, string DurationInMinutes, int Original_ID, global::System.Nullable<decimal> Original_Cost) {
  9510. return this.Update(Title, Cost, Description, Discount, MainImagePath, ServicePhoto, PhormatPhoto, DurationInMinutes, Original_ID, Original_Cost, Original_ID);
  9511. }
  9512. }
  9513. /// <summary>
  9514. ///Represents the connection and commands used to retrieve and save data.
  9515. ///</summary>
  9516. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9517. [global::System.ComponentModel.ToolboxItem(true)]
  9518. [global::System.ComponentModel.DataObjectAttribute(true)]
  9519. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9520. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9521. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9522. public partial class ServicePhotoTableAdapter : global::System.ComponentModel.Component {
  9523. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9524. private global::System.Data.SqlClient.SqlConnection _connection;
  9525. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9526. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9527. private bool _clearBeforeFill;
  9528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9530. public ServicePhotoTableAdapter() {
  9531. this.ClearBeforeFill = true;
  9532. }
  9533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9535. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9536. get {
  9537. if ((this._adapter == null)) {
  9538. this.InitAdapter();
  9539. }
  9540. return this._adapter;
  9541. }
  9542. }
  9543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9545. internal global::System.Data.SqlClient.SqlConnection Connection {
  9546. get {
  9547. if ((this._connection == null)) {
  9548. this.InitConnection();
  9549. }
  9550. return this._connection;
  9551. }
  9552. set {
  9553. this._connection = value;
  9554. if ((this.Adapter.InsertCommand != null)) {
  9555. this.Adapter.InsertCommand.Connection = value;
  9556. }
  9557. if ((this.Adapter.DeleteCommand != null)) {
  9558. this.Adapter.DeleteCommand.Connection = value;
  9559. }
  9560. if ((this.Adapter.UpdateCommand != null)) {
  9561. this.Adapter.UpdateCommand.Connection = value;
  9562. }
  9563. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9564. if ((this.CommandCollection[i] != null)) {
  9565. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9566. }
  9567. }
  9568. }
  9569. }
  9570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9572. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9573. get {
  9574. return this._transaction;
  9575. }
  9576. set {
  9577. this._transaction = value;
  9578. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9579. this.CommandCollection[i].Transaction = this._transaction;
  9580. }
  9581. if (((this.Adapter != null)
  9582. && (this.Adapter.DeleteCommand != null))) {
  9583. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9584. }
  9585. if (((this.Adapter != null)
  9586. && (this.Adapter.InsertCommand != null))) {
  9587. this.Adapter.InsertCommand.Transaction = this._transaction;
  9588. }
  9589. if (((this.Adapter != null)
  9590. && (this.Adapter.UpdateCommand != null))) {
  9591. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9592. }
  9593. }
  9594. }
  9595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9597. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9598. get {
  9599. if ((this._commandCollection == null)) {
  9600. this.InitCommandCollection();
  9601. }
  9602. return this._commandCollection;
  9603. }
  9604. }
  9605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9607. public bool ClearBeforeFill {
  9608. get {
  9609. return this._clearBeforeFill;
  9610. }
  9611. set {
  9612. this._clearBeforeFill = value;
  9613. }
  9614. }
  9615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9617. private void InitAdapter() {
  9618. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9619. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9620. tableMapping.SourceTable = "Table";
  9621. tableMapping.DataSetTable = "ServicePhoto";
  9622. tableMapping.ColumnMappings.Add("ID", "ID");
  9623. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  9624. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  9625. this._adapter.TableMappings.Add(tableMapping);
  9626. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9627. this._adapter.DeleteCommand.Connection = this.Connection;
  9628. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ServicePhoto] WHERE (([ID] = @Original_ID) AND ([ServiceID] = " +
  9629. "@Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath))";
  9630. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9631. 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, "", "", ""));
  9632. 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, "", "", ""));
  9633. 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, "", "", ""));
  9634. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9635. this._adapter.InsertCommand.Connection = this.Connection;
  9636. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ServicePhoto] ([ServiceID], [PhotoPath]) VALUES (@ServiceID, @" +
  9637. "PhotoPath);\r\nSELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = SCOPE" +
  9638. "_IDENTITY())";
  9639. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9640. 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, "", "", ""));
  9641. 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, "", "", ""));
  9642. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9643. this._adapter.UpdateCommand.Connection = this.Connection;
  9644. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ServicePhoto] SET [ServiceID] = @ServiceID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath));
  9645. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = @ID)";
  9646. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9647. 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, "", "", ""));
  9648. 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, "", "", ""));
  9649. 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, "", "", ""));
  9650. 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, "", "", ""));
  9651. 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, "", "", ""));
  9652. 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, "", "", ""));
  9653. }
  9654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9656. private void InitConnection() {
  9657. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9658. this._connection.ConnectionString = global::SalonKrasoti02.Properties.Settings.Default.SaloonKrasoti02ConnectionString;
  9659. }
  9660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9662. private void InitCommandCollection() {
  9663. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9664. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9665. this._commandCollection[0].Connection = this.Connection;
  9666. this._commandCollection[0].CommandText = "SELECT ID, ServiceID, PhotoPath FROM dbo.ServicePhoto";
  9667. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9668. }
  9669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9671. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9672. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9673. public virtual int Fill(SaloonKrasoti02DataSet.ServicePhotoDataTable dataTable) {
  9674. this.Adapter.SelectCommand = this.CommandCollection[0];
  9675. if ((this.ClearBeforeFill == true)) {
  9676. dataTable.Clear();
  9677. }
  9678. int returnValue = this.Adapter.Fill(dataTable);
  9679. return returnValue;
  9680. }
  9681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9683. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9684. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9685. public virtual SaloonKrasoti02DataSet.ServicePhotoDataTable GetData() {
  9686. this.Adapter.SelectCommand = this.CommandCollection[0];
  9687. SaloonKrasoti02DataSet.ServicePhotoDataTable dataTable = new SaloonKrasoti02DataSet.ServicePhotoDataTable();
  9688. this.Adapter.Fill(dataTable);
  9689. return dataTable;
  9690. }
  9691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9693. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9694. public virtual int Update(SaloonKrasoti02DataSet.ServicePhotoDataTable dataTable) {
  9695. return this.Adapter.Update(dataTable);
  9696. }
  9697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9699. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9700. public virtual int Update(SaloonKrasoti02DataSet dataSet) {
  9701. return this.Adapter.Update(dataSet, "ServicePhoto");
  9702. }
  9703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9705. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9706. public virtual int Update(global::System.Data.DataRow dataRow) {
  9707. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9708. dataRow});
  9709. }
  9710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9712. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9713. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9714. return this.Adapter.Update(dataRows);
  9715. }
  9716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9718. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9719. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9720. public virtual int Delete(int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  9721. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9722. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ServiceID));
  9723. if ((Original_PhotoPath == null)) {
  9724. throw new global::System.ArgumentNullException("Original_PhotoPath");
  9725. }
  9726. else {
  9727. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  9728. }
  9729. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9730. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9731. != global::System.Data.ConnectionState.Open)) {
  9732. this.Adapter.DeleteCommand.Connection.Open();
  9733. }
  9734. try {
  9735. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9736. return returnValue;
  9737. }
  9738. finally {
  9739. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9740. this.Adapter.DeleteCommand.Connection.Close();
  9741. }
  9742. }
  9743. }
  9744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9746. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9747. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9748. public virtual int Insert(int ServiceID, string PhotoPath) {
  9749. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ServiceID));
  9750. if ((PhotoPath == null)) {
  9751. throw new global::System.ArgumentNullException("PhotoPath");
  9752. }
  9753. else {
  9754. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  9755. }
  9756. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9757. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9758. != global::System.Data.ConnectionState.Open)) {
  9759. this.Adapter.InsertCommand.Connection.Open();
  9760. }
  9761. try {
  9762. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9763. return returnValue;
  9764. }
  9765. finally {
  9766. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9767. this.Adapter.InsertCommand.Connection.Close();
  9768. }
  9769. }
  9770. }
  9771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9773. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9774. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9775. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath, int ID) {
  9776. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ServiceID));
  9777. if ((PhotoPath == null)) {
  9778. throw new global::System.ArgumentNullException("PhotoPath");
  9779. }
  9780. else {
  9781. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  9782. }
  9783. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9784. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ServiceID));
  9785. if ((Original_PhotoPath == null)) {
  9786. throw new global::System.ArgumentNullException("Original_PhotoPath");
  9787. }
  9788. else {
  9789. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  9790. }
  9791. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  9792. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9793. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9794. != global::System.Data.ConnectionState.Open)) {
  9795. this.Adapter.UpdateCommand.Connection.Open();
  9796. }
  9797. try {
  9798. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9799. return returnValue;
  9800. }
  9801. finally {
  9802. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9803. this.Adapter.UpdateCommand.Connection.Close();
  9804. }
  9805. }
  9806. }
  9807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9809. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9810. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9811. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  9812. return this.Update(ServiceID, PhotoPath, Original_ID, Original_ServiceID, Original_PhotoPath, Original_ID);
  9813. }
  9814. }
  9815. /// <summary>
  9816. ///Represents the connection and commands used to retrieve and save data.
  9817. ///</summary>
  9818. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9819. [global::System.ComponentModel.ToolboxItem(true)]
  9820. [global::System.ComponentModel.DataObjectAttribute(true)]
  9821. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9822. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9823. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9824. public partial class TagTableAdapter : global::System.ComponentModel.Component {
  9825. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9826. private global::System.Data.SqlClient.SqlConnection _connection;
  9827. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9828. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9829. private bool _clearBeforeFill;
  9830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9832. public TagTableAdapter() {
  9833. this.ClearBeforeFill = true;
  9834. }
  9835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9837. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9838. get {
  9839. if ((this._adapter == null)) {
  9840. this.InitAdapter();
  9841. }
  9842. return this._adapter;
  9843. }
  9844. }
  9845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9847. internal global::System.Data.SqlClient.SqlConnection Connection {
  9848. get {
  9849. if ((this._connection == null)) {
  9850. this.InitConnection();
  9851. }
  9852. return this._connection;
  9853. }
  9854. set {
  9855. this._connection = value;
  9856. if ((this.Adapter.InsertCommand != null)) {
  9857. this.Adapter.InsertCommand.Connection = value;
  9858. }
  9859. if ((this.Adapter.DeleteCommand != null)) {
  9860. this.Adapter.DeleteCommand.Connection = value;
  9861. }
  9862. if ((this.Adapter.UpdateCommand != null)) {
  9863. this.Adapter.UpdateCommand.Connection = value;
  9864. }
  9865. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9866. if ((this.CommandCollection[i] != null)) {
  9867. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9868. }
  9869. }
  9870. }
  9871. }
  9872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9874. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9875. get {
  9876. return this._transaction;
  9877. }
  9878. set {
  9879. this._transaction = value;
  9880. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9881. this.CommandCollection[i].Transaction = this._transaction;
  9882. }
  9883. if (((this.Adapter != null)
  9884. && (this.Adapter.DeleteCommand != null))) {
  9885. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9886. }
  9887. if (((this.Adapter != null)
  9888. && (this.Adapter.InsertCommand != null))) {
  9889. this.Adapter.InsertCommand.Transaction = this._transaction;
  9890. }
  9891. if (((this.Adapter != null)
  9892. && (this.Adapter.UpdateCommand != null))) {
  9893. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9894. }
  9895. }
  9896. }
  9897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9899. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9900. get {
  9901. if ((this._commandCollection == null)) {
  9902. this.InitCommandCollection();
  9903. }
  9904. return this._commandCollection;
  9905. }
  9906. }
  9907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9909. public bool ClearBeforeFill {
  9910. get {
  9911. return this._clearBeforeFill;
  9912. }
  9913. set {
  9914. this._clearBeforeFill = value;
  9915. }
  9916. }
  9917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9919. private void InitAdapter() {
  9920. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9921. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9922. tableMapping.SourceTable = "Table";
  9923. tableMapping.DataSetTable = "Tag";
  9924. tableMapping.ColumnMappings.Add("ID", "ID");
  9925. tableMapping.ColumnMappings.Add("Title", "Title");
  9926. tableMapping.ColumnMappings.Add("Color", "Color");
  9927. this._adapter.TableMappings.Add(tableMapping);
  9928. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9929. this._adapter.DeleteCommand.Connection = this.Connection;
  9930. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tag] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Tit" +
  9931. "le) AND ([Color] = @Original_Color))";
  9932. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9933. 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, "", "", ""));
  9934. 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, "", "", ""));
  9935. 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, "", "", ""));
  9936. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9937. this._adapter.InsertCommand.Connection = this.Connection;
  9938. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tag] ([Title], [Color]) VALUES (@Title, @Color);\r\nSELECT ID, T" +
  9939. "itle, Color FROM Tag WHERE (ID = SCOPE_IDENTITY())";
  9940. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9941. 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, "", "", ""));
  9942. 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, "", "", ""));
  9943. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9944. this._adapter.UpdateCommand.Connection = this.Connection;
  9945. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Tag] SET [Title] = @Title, [Color] = @Color WHERE (([ID] = @Origina" +
  9946. "l_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color));\r\nSELECT " +
  9947. "ID, Title, Color FROM Tag WHERE (ID = @ID)";
  9948. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9949. 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, "", "", ""));
  9950. 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, "", "", ""));
  9951. 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, "", "", ""));
  9952. 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, "", "", ""));
  9953. 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, "", "", ""));
  9954. 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, "", "", ""));
  9955. }
  9956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9958. private void InitConnection() {
  9959. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9960. this._connection.ConnectionString = global::SalonKrasoti02.Properties.Settings.Default.SaloonKrasoti02ConnectionString;
  9961. }
  9962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9964. private void InitCommandCollection() {
  9965. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9966. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9967. this._commandCollection[0].Connection = this.Connection;
  9968. this._commandCollection[0].CommandText = "SELECT ID, Title, Color FROM dbo.Tag";
  9969. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9970. }
  9971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9973. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9974. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9975. public virtual int Fill(SaloonKrasoti02DataSet.TagDataTable dataTable) {
  9976. this.Adapter.SelectCommand = this.CommandCollection[0];
  9977. if ((this.ClearBeforeFill == true)) {
  9978. dataTable.Clear();
  9979. }
  9980. int returnValue = this.Adapter.Fill(dataTable);
  9981. return returnValue;
  9982. }
  9983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9985. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9986. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9987. public virtual SaloonKrasoti02DataSet.TagDataTable GetData() {
  9988. this.Adapter.SelectCommand = this.CommandCollection[0];
  9989. SaloonKrasoti02DataSet.TagDataTable dataTable = new SaloonKrasoti02DataSet.TagDataTable();
  9990. this.Adapter.Fill(dataTable);
  9991. return dataTable;
  9992. }
  9993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9995. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9996. public virtual int Update(SaloonKrasoti02DataSet.TagDataTable dataTable) {
  9997. return this.Adapter.Update(dataTable);
  9998. }
  9999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10001. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10002. public virtual int Update(SaloonKrasoti02DataSet dataSet) {
  10003. return this.Adapter.Update(dataSet, "Tag");
  10004. }
  10005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10007. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10008. public virtual int Update(global::System.Data.DataRow dataRow) {
  10009. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10010. dataRow});
  10011. }
  10012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10014. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10015. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10016. return this.Adapter.Update(dataRows);
  10017. }
  10018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10020. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10021. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10022. public virtual int Delete(int Original_ID, string Original_Title, string Original_Color) {
  10023. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  10024. if ((Original_Title == null)) {
  10025. throw new global::System.ArgumentNullException("Original_Title");
  10026. }
  10027. else {
  10028. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  10029. }
  10030. if ((Original_Color == null)) {
  10031. throw new global::System.ArgumentNullException("Original_Color");
  10032. }
  10033. else {
  10034. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Color));
  10035. }
  10036. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10037. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10038. != global::System.Data.ConnectionState.Open)) {
  10039. this.Adapter.DeleteCommand.Connection.Open();
  10040. }
  10041. try {
  10042. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10043. return returnValue;
  10044. }
  10045. finally {
  10046. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10047. this.Adapter.DeleteCommand.Connection.Close();
  10048. }
  10049. }
  10050. }
  10051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10053. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10054. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10055. public virtual int Insert(string Title, string Color) {
  10056. if ((Title == null)) {
  10057. throw new global::System.ArgumentNullException("Title");
  10058. }
  10059. else {
  10060. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  10061. }
  10062. if ((Color == null)) {
  10063. throw new global::System.ArgumentNullException("Color");
  10064. }
  10065. else {
  10066. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Color));
  10067. }
  10068. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10069. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10070. != global::System.Data.ConnectionState.Open)) {
  10071. this.Adapter.InsertCommand.Connection.Open();
  10072. }
  10073. try {
  10074. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10075. return returnValue;
  10076. }
  10077. finally {
  10078. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10079. this.Adapter.InsertCommand.Connection.Close();
  10080. }
  10081. }
  10082. }
  10083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10085. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10086. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10087. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color, int ID) {
  10088. if ((Title == null)) {
  10089. throw new global::System.ArgumentNullException("Title");
  10090. }
  10091. else {
  10092. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  10093. }
  10094. if ((Color == null)) {
  10095. throw new global::System.ArgumentNullException("Color");
  10096. }
  10097. else {
  10098. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Color));
  10099. }
  10100. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  10101. if ((Original_Title == null)) {
  10102. throw new global::System.ArgumentNullException("Original_Title");
  10103. }
  10104. else {
  10105. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  10106. }
  10107. if ((Original_Color == null)) {
  10108. throw new global::System.ArgumentNullException("Original_Color");
  10109. }
  10110. else {
  10111. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Color));
  10112. }
  10113. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  10114. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10115. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10116. != global::System.Data.ConnectionState.Open)) {
  10117. this.Adapter.UpdateCommand.Connection.Open();
  10118. }
  10119. try {
  10120. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10121. return returnValue;
  10122. }
  10123. finally {
  10124. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10125. this.Adapter.UpdateCommand.Connection.Close();
  10126. }
  10127. }
  10128. }
  10129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10131. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10132. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10133. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color) {
  10134. return this.Update(Title, Color, Original_ID, Original_Title, Original_Color, Original_ID);
  10135. }
  10136. }
  10137. /// <summary>
  10138. ///Represents the connection and commands used to retrieve and save data.
  10139. ///</summary>
  10140. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10141. [global::System.ComponentModel.ToolboxItem(true)]
  10142. [global::System.ComponentModel.DataObjectAttribute(true)]
  10143. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10144. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10145. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10146. public partial class TagOfClientTableAdapter : global::System.ComponentModel.Component {
  10147. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10148. private global::System.Data.SqlClient.SqlConnection _connection;
  10149. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10150. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10151. private bool _clearBeforeFill;
  10152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10154. public TagOfClientTableAdapter() {
  10155. this.ClearBeforeFill = true;
  10156. }
  10157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10159. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10160. get {
  10161. if ((this._adapter == null)) {
  10162. this.InitAdapter();
  10163. }
  10164. return this._adapter;
  10165. }
  10166. }
  10167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10169. internal global::System.Data.SqlClient.SqlConnection Connection {
  10170. get {
  10171. if ((this._connection == null)) {
  10172. this.InitConnection();
  10173. }
  10174. return this._connection;
  10175. }
  10176. set {
  10177. this._connection = value;
  10178. if ((this.Adapter.InsertCommand != null)) {
  10179. this.Adapter.InsertCommand.Connection = value;
  10180. }
  10181. if ((this.Adapter.DeleteCommand != null)) {
  10182. this.Adapter.DeleteCommand.Connection = value;
  10183. }
  10184. if ((this.Adapter.UpdateCommand != null)) {
  10185. this.Adapter.UpdateCommand.Connection = value;
  10186. }
  10187. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10188. if ((this.CommandCollection[i] != null)) {
  10189. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10190. }
  10191. }
  10192. }
  10193. }
  10194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10196. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10197. get {
  10198. return this._transaction;
  10199. }
  10200. set {
  10201. this._transaction = value;
  10202. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10203. this.CommandCollection[i].Transaction = this._transaction;
  10204. }
  10205. if (((this.Adapter != null)
  10206. && (this.Adapter.DeleteCommand != null))) {
  10207. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10208. }
  10209. if (((this.Adapter != null)
  10210. && (this.Adapter.InsertCommand != null))) {
  10211. this.Adapter.InsertCommand.Transaction = this._transaction;
  10212. }
  10213. if (((this.Adapter != null)
  10214. && (this.Adapter.UpdateCommand != null))) {
  10215. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10216. }
  10217. }
  10218. }
  10219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10221. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10222. get {
  10223. if ((this._commandCollection == null)) {
  10224. this.InitCommandCollection();
  10225. }
  10226. return this._commandCollection;
  10227. }
  10228. }
  10229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10231. public bool ClearBeforeFill {
  10232. get {
  10233. return this._clearBeforeFill;
  10234. }
  10235. set {
  10236. this._clearBeforeFill = value;
  10237. }
  10238. }
  10239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10241. private void InitAdapter() {
  10242. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10243. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10244. tableMapping.SourceTable = "Table";
  10245. tableMapping.DataSetTable = "TagOfClient";
  10246. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  10247. tableMapping.ColumnMappings.Add("TagID", "TagID");
  10248. this._adapter.TableMappings.Add(tableMapping);
  10249. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10250. this._adapter.DeleteCommand.Connection = this.Connection;
  10251. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TagOfClient] WHERE (([ClientID] = @Original_ClientID) AND ([Ta" +
  10252. "gID] = @Original_TagID))";
  10253. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10254. 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, "", "", ""));
  10255. 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, "", "", ""));
  10256. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10257. this._adapter.InsertCommand.Connection = this.Connection;
  10258. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TagOfClient] ([ClientID], [TagID]) VALUES (@ClientID, @TagID);" +
  10259. "\r\nSELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagI" +
  10260. "D = @TagID)";
  10261. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10262. 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, "", "", ""));
  10263. 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, "", "", ""));
  10264. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10265. this._adapter.UpdateCommand.Connection = this.Connection;
  10266. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TagOfClient] SET [ClientID] = @ClientID, [TagID] = @TagID WHERE (([" +
  10267. "ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID));\r\nSELECT Client" +
  10268. "ID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)";
  10269. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10270. 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, "", "", ""));
  10271. 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, "", "", ""));
  10272. 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, "", "", ""));
  10273. 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, "", "", ""));
  10274. }
  10275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10277. private void InitConnection() {
  10278. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10279. this._connection.ConnectionString = global::SalonKrasoti02.Properties.Settings.Default.SaloonKrasoti02ConnectionString;
  10280. }
  10281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10283. private void InitCommandCollection() {
  10284. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10285. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10286. this._commandCollection[0].Connection = this.Connection;
  10287. this._commandCollection[0].CommandText = "SELECT ClientID, TagID FROM dbo.TagOfClient";
  10288. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10289. }
  10290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10292. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10293. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10294. public virtual int Fill(SaloonKrasoti02DataSet.TagOfClientDataTable dataTable) {
  10295. this.Adapter.SelectCommand = this.CommandCollection[0];
  10296. if ((this.ClearBeforeFill == true)) {
  10297. dataTable.Clear();
  10298. }
  10299. int returnValue = this.Adapter.Fill(dataTable);
  10300. return returnValue;
  10301. }
  10302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10304. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10305. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10306. public virtual SaloonKrasoti02DataSet.TagOfClientDataTable GetData() {
  10307. this.Adapter.SelectCommand = this.CommandCollection[0];
  10308. SaloonKrasoti02DataSet.TagOfClientDataTable dataTable = new SaloonKrasoti02DataSet.TagOfClientDataTable();
  10309. this.Adapter.Fill(dataTable);
  10310. return dataTable;
  10311. }
  10312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10314. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10315. public virtual int Update(SaloonKrasoti02DataSet.TagOfClientDataTable dataTable) {
  10316. return this.Adapter.Update(dataTable);
  10317. }
  10318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10320. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10321. public virtual int Update(SaloonKrasoti02DataSet dataSet) {
  10322. return this.Adapter.Update(dataSet, "TagOfClient");
  10323. }
  10324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10326. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10327. public virtual int Update(global::System.Data.DataRow dataRow) {
  10328. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10329. dataRow});
  10330. }
  10331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10333. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10334. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10335. return this.Adapter.Update(dataRows);
  10336. }
  10337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10339. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10340. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10341. public virtual int Delete(int Original_ClientID, int Original_TagID) {
  10342. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ClientID));
  10343. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_TagID));
  10344. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10345. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10346. != global::System.Data.ConnectionState.Open)) {
  10347. this.Adapter.DeleteCommand.Connection.Open();
  10348. }
  10349. try {
  10350. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10351. return returnValue;
  10352. }
  10353. finally {
  10354. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10355. this.Adapter.DeleteCommand.Connection.Close();
  10356. }
  10357. }
  10358. }
  10359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10361. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10362. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10363. public virtual int Insert(int ClientID, int TagID) {
  10364. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  10365. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(TagID));
  10366. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10367. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10368. != global::System.Data.ConnectionState.Open)) {
  10369. this.Adapter.InsertCommand.Connection.Open();
  10370. }
  10371. try {
  10372. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10373. return returnValue;
  10374. }
  10375. finally {
  10376. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10377. this.Adapter.InsertCommand.Connection.Close();
  10378. }
  10379. }
  10380. }
  10381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10383. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10384. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10385. public virtual int Update(int ClientID, int TagID, int Original_ClientID, int Original_TagID) {
  10386. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  10387. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(TagID));
  10388. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ClientID));
  10389. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_TagID));
  10390. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10391. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10392. != global::System.Data.ConnectionState.Open)) {
  10393. this.Adapter.UpdateCommand.Connection.Open();
  10394. }
  10395. try {
  10396. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10397. return returnValue;
  10398. }
  10399. finally {
  10400. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10401. this.Adapter.UpdateCommand.Connection.Close();
  10402. }
  10403. }
  10404. }
  10405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10407. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10408. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10409. public virtual int Update(int Original_ClientID, int Original_TagID) {
  10410. return this.Update(Original_ClientID, Original_TagID, Original_ClientID, Original_TagID);
  10411. }
  10412. }
  10413. /// <summary>
  10414. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  10415. ///</summary>
  10416. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10417. [global::System.ComponentModel.ToolboxItem(true)]
  10418. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  10419. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10420. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  10421. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  10422. private UpdateOrderOption _updateOrder;
  10423. private AttachedProductTableAdapter _attachedProductTableAdapter;
  10424. private ClientTableAdapter _clientTableAdapter;
  10425. private ClientServiceTableAdapter _clientServiceTableAdapter;
  10426. private DocumentByServiceTableAdapter _documentByServiceTableAdapter;
  10427. private GenderTableAdapter _genderTableAdapter;
  10428. private ManufacturerTableAdapter _manufacturerTableAdapter;
  10429. private ProductTableAdapter _productTableAdapter;
  10430. private ProductPhotoTableAdapter _productPhotoTableAdapter;
  10431. private ProductSaleTableAdapter _productSaleTableAdapter;
  10432. private ServiceTableAdapter _serviceTableAdapter;
  10433. private ServicePhotoTableAdapter _servicePhotoTableAdapter;
  10434. private TagTableAdapter _tagTableAdapter;
  10435. private TagOfClientTableAdapter _tagOfClientTableAdapter;
  10436. private bool _backupDataSetBeforeUpdate;
  10437. private global::System.Data.IDbConnection _connection;
  10438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10440. public UpdateOrderOption UpdateOrder {
  10441. get {
  10442. return this._updateOrder;
  10443. }
  10444. set {
  10445. this._updateOrder = value;
  10446. }
  10447. }
  10448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10450. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10451. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10452. "a", "System.Drawing.Design.UITypeEditor")]
  10453. public AttachedProductTableAdapter AttachedProductTableAdapter {
  10454. get {
  10455. return this._attachedProductTableAdapter;
  10456. }
  10457. set {
  10458. this._attachedProductTableAdapter = value;
  10459. }
  10460. }
  10461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10463. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10464. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10465. "a", "System.Drawing.Design.UITypeEditor")]
  10466. public ClientTableAdapter ClientTableAdapter {
  10467. get {
  10468. return this._clientTableAdapter;
  10469. }
  10470. set {
  10471. this._clientTableAdapter = value;
  10472. }
  10473. }
  10474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10476. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10477. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10478. "a", "System.Drawing.Design.UITypeEditor")]
  10479. public ClientServiceTableAdapter ClientServiceTableAdapter {
  10480. get {
  10481. return this._clientServiceTableAdapter;
  10482. }
  10483. set {
  10484. this._clientServiceTableAdapter = value;
  10485. }
  10486. }
  10487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10489. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10490. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10491. "a", "System.Drawing.Design.UITypeEditor")]
  10492. public DocumentByServiceTableAdapter DocumentByServiceTableAdapter {
  10493. get {
  10494. return this._documentByServiceTableAdapter;
  10495. }
  10496. set {
  10497. this._documentByServiceTableAdapter = value;
  10498. }
  10499. }
  10500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10502. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10503. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10504. "a", "System.Drawing.Design.UITypeEditor")]
  10505. public GenderTableAdapter GenderTableAdapter {
  10506. get {
  10507. return this._genderTableAdapter;
  10508. }
  10509. set {
  10510. this._genderTableAdapter = value;
  10511. }
  10512. }
  10513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10515. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10516. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10517. "a", "System.Drawing.Design.UITypeEditor")]
  10518. public ManufacturerTableAdapter ManufacturerTableAdapter {
  10519. get {
  10520. return this._manufacturerTableAdapter;
  10521. }
  10522. set {
  10523. this._manufacturerTableAdapter = value;
  10524. }
  10525. }
  10526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10528. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10529. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10530. "a", "System.Drawing.Design.UITypeEditor")]
  10531. public ProductTableAdapter ProductTableAdapter {
  10532. get {
  10533. return this._productTableAdapter;
  10534. }
  10535. set {
  10536. this._productTableAdapter = value;
  10537. }
  10538. }
  10539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10541. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10542. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10543. "a", "System.Drawing.Design.UITypeEditor")]
  10544. public ProductPhotoTableAdapter ProductPhotoTableAdapter {
  10545. get {
  10546. return this._productPhotoTableAdapter;
  10547. }
  10548. set {
  10549. this._productPhotoTableAdapter = value;
  10550. }
  10551. }
  10552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10554. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10555. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10556. "a", "System.Drawing.Design.UITypeEditor")]
  10557. public ProductSaleTableAdapter ProductSaleTableAdapter {
  10558. get {
  10559. return this._productSaleTableAdapter;
  10560. }
  10561. set {
  10562. this._productSaleTableAdapter = value;
  10563. }
  10564. }
  10565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10567. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10568. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10569. "a", "System.Drawing.Design.UITypeEditor")]
  10570. public ServiceTableAdapter ServiceTableAdapter {
  10571. get {
  10572. return this._serviceTableAdapter;
  10573. }
  10574. set {
  10575. this._serviceTableAdapter = value;
  10576. }
  10577. }
  10578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10580. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10581. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10582. "a", "System.Drawing.Design.UITypeEditor")]
  10583. public ServicePhotoTableAdapter ServicePhotoTableAdapter {
  10584. get {
  10585. return this._servicePhotoTableAdapter;
  10586. }
  10587. set {
  10588. this._servicePhotoTableAdapter = value;
  10589. }
  10590. }
  10591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10593. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10594. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10595. "a", "System.Drawing.Design.UITypeEditor")]
  10596. public TagTableAdapter TagTableAdapter {
  10597. get {
  10598. return this._tagTableAdapter;
  10599. }
  10600. set {
  10601. this._tagTableAdapter = value;
  10602. }
  10603. }
  10604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10606. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10607. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10608. "a", "System.Drawing.Design.UITypeEditor")]
  10609. public TagOfClientTableAdapter TagOfClientTableAdapter {
  10610. get {
  10611. return this._tagOfClientTableAdapter;
  10612. }
  10613. set {
  10614. this._tagOfClientTableAdapter = value;
  10615. }
  10616. }
  10617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10619. public bool BackupDataSetBeforeUpdate {
  10620. get {
  10621. return this._backupDataSetBeforeUpdate;
  10622. }
  10623. set {
  10624. this._backupDataSetBeforeUpdate = value;
  10625. }
  10626. }
  10627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10629. [global::System.ComponentModel.Browsable(false)]
  10630. public global::System.Data.IDbConnection Connection {
  10631. get {
  10632. if ((this._connection != null)) {
  10633. return this._connection;
  10634. }
  10635. if (((this._attachedProductTableAdapter != null)
  10636. && (this._attachedProductTableAdapter.Connection != null))) {
  10637. return this._attachedProductTableAdapter.Connection;
  10638. }
  10639. if (((this._clientTableAdapter != null)
  10640. && (this._clientTableAdapter.Connection != null))) {
  10641. return this._clientTableAdapter.Connection;
  10642. }
  10643. if (((this._clientServiceTableAdapter != null)
  10644. && (this._clientServiceTableAdapter.Connection != null))) {
  10645. return this._clientServiceTableAdapter.Connection;
  10646. }
  10647. if (((this._documentByServiceTableAdapter != null)
  10648. && (this._documentByServiceTableAdapter.Connection != null))) {
  10649. return this._documentByServiceTableAdapter.Connection;
  10650. }
  10651. if (((this._genderTableAdapter != null)
  10652. && (this._genderTableAdapter.Connection != null))) {
  10653. return this._genderTableAdapter.Connection;
  10654. }
  10655. if (((this._manufacturerTableAdapter != null)
  10656. && (this._manufacturerTableAdapter.Connection != null))) {
  10657. return this._manufacturerTableAdapter.Connection;
  10658. }
  10659. if (((this._productTableAdapter != null)
  10660. && (this._productTableAdapter.Connection != null))) {
  10661. return this._productTableAdapter.Connection;
  10662. }
  10663. if (((this._productPhotoTableAdapter != null)
  10664. && (this._productPhotoTableAdapter.Connection != null))) {
  10665. return this._productPhotoTableAdapter.Connection;
  10666. }
  10667. if (((this._productSaleTableAdapter != null)
  10668. && (this._productSaleTableAdapter.Connection != null))) {
  10669. return this._productSaleTableAdapter.Connection;
  10670. }
  10671. if (((this._serviceTableAdapter != null)
  10672. && (this._serviceTableAdapter.Connection != null))) {
  10673. return this._serviceTableAdapter.Connection;
  10674. }
  10675. if (((this._servicePhotoTableAdapter != null)
  10676. && (this._servicePhotoTableAdapter.Connection != null))) {
  10677. return this._servicePhotoTableAdapter.Connection;
  10678. }
  10679. if (((this._tagTableAdapter != null)
  10680. && (this._tagTableAdapter.Connection != null))) {
  10681. return this._tagTableAdapter.Connection;
  10682. }
  10683. if (((this._tagOfClientTableAdapter != null)
  10684. && (this._tagOfClientTableAdapter.Connection != null))) {
  10685. return this._tagOfClientTableAdapter.Connection;
  10686. }
  10687. return null;
  10688. }
  10689. set {
  10690. this._connection = value;
  10691. }
  10692. }
  10693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10695. [global::System.ComponentModel.Browsable(false)]
  10696. public int TableAdapterInstanceCount {
  10697. get {
  10698. int count = 0;
  10699. if ((this._attachedProductTableAdapter != null)) {
  10700. count = (count + 1);
  10701. }
  10702. if ((this._clientTableAdapter != null)) {
  10703. count = (count + 1);
  10704. }
  10705. if ((this._clientServiceTableAdapter != null)) {
  10706. count = (count + 1);
  10707. }
  10708. if ((this._documentByServiceTableAdapter != null)) {
  10709. count = (count + 1);
  10710. }
  10711. if ((this._genderTableAdapter != null)) {
  10712. count = (count + 1);
  10713. }
  10714. if ((this._manufacturerTableAdapter != null)) {
  10715. count = (count + 1);
  10716. }
  10717. if ((this._productTableAdapter != null)) {
  10718. count = (count + 1);
  10719. }
  10720. if ((this._productPhotoTableAdapter != null)) {
  10721. count = (count + 1);
  10722. }
  10723. if ((this._productSaleTableAdapter != null)) {
  10724. count = (count + 1);
  10725. }
  10726. if ((this._serviceTableAdapter != null)) {
  10727. count = (count + 1);
  10728. }
  10729. if ((this._servicePhotoTableAdapter != null)) {
  10730. count = (count + 1);
  10731. }
  10732. if ((this._tagTableAdapter != null)) {
  10733. count = (count + 1);
  10734. }
  10735. if ((this._tagOfClientTableAdapter != null)) {
  10736. count = (count + 1);
  10737. }
  10738. return count;
  10739. }
  10740. }
  10741. /// <summary>
  10742. ///Update rows in top-down order.
  10743. ///</summary>
  10744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10746. private int UpdateUpdatedRows(SaloonKrasoti02DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10747. int result = 0;
  10748. if ((this._genderTableAdapter != null)) {
  10749. global::System.Data.DataRow[] updatedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10750. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10751. if (((updatedRows != null)
  10752. && (0 < updatedRows.Length))) {
  10753. result = (result + this._genderTableAdapter.Update(updatedRows));
  10754. allChangedRows.AddRange(updatedRows);
  10755. }
  10756. }
  10757. if ((this._clientTableAdapter != null)) {
  10758. global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10759. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10760. if (((updatedRows != null)
  10761. && (0 < updatedRows.Length))) {
  10762. result = (result + this._clientTableAdapter.Update(updatedRows));
  10763. allChangedRows.AddRange(updatedRows);
  10764. }
  10765. }
  10766. if ((this._manufacturerTableAdapter != null)) {
  10767. global::System.Data.DataRow[] updatedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10768. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10769. if (((updatedRows != null)
  10770. && (0 < updatedRows.Length))) {
  10771. result = (result + this._manufacturerTableAdapter.Update(updatedRows));
  10772. allChangedRows.AddRange(updatedRows);
  10773. }
  10774. }
  10775. if ((this._serviceTableAdapter != null)) {
  10776. global::System.Data.DataRow[] updatedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10777. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10778. if (((updatedRows != null)
  10779. && (0 < updatedRows.Length))) {
  10780. result = (result + this._serviceTableAdapter.Update(updatedRows));
  10781. allChangedRows.AddRange(updatedRows);
  10782. }
  10783. }
  10784. if ((this._clientServiceTableAdapter != null)) {
  10785. global::System.Data.DataRow[] updatedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10786. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10787. if (((updatedRows != null)
  10788. && (0 < updatedRows.Length))) {
  10789. result = (result + this._clientServiceTableAdapter.Update(updatedRows));
  10790. allChangedRows.AddRange(updatedRows);
  10791. }
  10792. }
  10793. if ((this._productTableAdapter != null)) {
  10794. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10795. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10796. if (((updatedRows != null)
  10797. && (0 < updatedRows.Length))) {
  10798. result = (result + this._productTableAdapter.Update(updatedRows));
  10799. allChangedRows.AddRange(updatedRows);
  10800. }
  10801. }
  10802. if ((this._tagTableAdapter != null)) {
  10803. global::System.Data.DataRow[] updatedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10804. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10805. if (((updatedRows != null)
  10806. && (0 < updatedRows.Length))) {
  10807. result = (result + this._tagTableAdapter.Update(updatedRows));
  10808. allChangedRows.AddRange(updatedRows);
  10809. }
  10810. }
  10811. if ((this._attachedProductTableAdapter != null)) {
  10812. global::System.Data.DataRow[] updatedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10813. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10814. if (((updatedRows != null)
  10815. && (0 < updatedRows.Length))) {
  10816. result = (result + this._attachedProductTableAdapter.Update(updatedRows));
  10817. allChangedRows.AddRange(updatedRows);
  10818. }
  10819. }
  10820. if ((this._documentByServiceTableAdapter != null)) {
  10821. global::System.Data.DataRow[] updatedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10822. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10823. if (((updatedRows != null)
  10824. && (0 < updatedRows.Length))) {
  10825. result = (result + this._documentByServiceTableAdapter.Update(updatedRows));
  10826. allChangedRows.AddRange(updatedRows);
  10827. }
  10828. }
  10829. if ((this._productPhotoTableAdapter != null)) {
  10830. global::System.Data.DataRow[] updatedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10831. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10832. if (((updatedRows != null)
  10833. && (0 < updatedRows.Length))) {
  10834. result = (result + this._productPhotoTableAdapter.Update(updatedRows));
  10835. allChangedRows.AddRange(updatedRows);
  10836. }
  10837. }
  10838. if ((this._productSaleTableAdapter != null)) {
  10839. global::System.Data.DataRow[] updatedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10840. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10841. if (((updatedRows != null)
  10842. && (0 < updatedRows.Length))) {
  10843. result = (result + this._productSaleTableAdapter.Update(updatedRows));
  10844. allChangedRows.AddRange(updatedRows);
  10845. }
  10846. }
  10847. if ((this._servicePhotoTableAdapter != null)) {
  10848. global::System.Data.DataRow[] updatedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10849. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10850. if (((updatedRows != null)
  10851. && (0 < updatedRows.Length))) {
  10852. result = (result + this._servicePhotoTableAdapter.Update(updatedRows));
  10853. allChangedRows.AddRange(updatedRows);
  10854. }
  10855. }
  10856. if ((this._tagOfClientTableAdapter != null)) {
  10857. global::System.Data.DataRow[] updatedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10858. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10859. if (((updatedRows != null)
  10860. && (0 < updatedRows.Length))) {
  10861. result = (result + this._tagOfClientTableAdapter.Update(updatedRows));
  10862. allChangedRows.AddRange(updatedRows);
  10863. }
  10864. }
  10865. return result;
  10866. }
  10867. /// <summary>
  10868. ///Insert rows in top-down order.
  10869. ///</summary>
  10870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10872. private int UpdateInsertedRows(SaloonKrasoti02DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10873. int result = 0;
  10874. if ((this._genderTableAdapter != null)) {
  10875. global::System.Data.DataRow[] addedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Added);
  10876. if (((addedRows != null)
  10877. && (0 < addedRows.Length))) {
  10878. result = (result + this._genderTableAdapter.Update(addedRows));
  10879. allAddedRows.AddRange(addedRows);
  10880. }
  10881. }
  10882. if ((this._clientTableAdapter != null)) {
  10883. global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
  10884. if (((addedRows != null)
  10885. && (0 < addedRows.Length))) {
  10886. result = (result + this._clientTableAdapter.Update(addedRows));
  10887. allAddedRows.AddRange(addedRows);
  10888. }
  10889. }
  10890. if ((this._manufacturerTableAdapter != null)) {
  10891. global::System.Data.DataRow[] addedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Added);
  10892. if (((addedRows != null)
  10893. && (0 < addedRows.Length))) {
  10894. result = (result + this._manufacturerTableAdapter.Update(addedRows));
  10895. allAddedRows.AddRange(addedRows);
  10896. }
  10897. }
  10898. if ((this._serviceTableAdapter != null)) {
  10899. global::System.Data.DataRow[] addedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Added);
  10900. if (((addedRows != null)
  10901. && (0 < addedRows.Length))) {
  10902. result = (result + this._serviceTableAdapter.Update(addedRows));
  10903. allAddedRows.AddRange(addedRows);
  10904. }
  10905. }
  10906. if ((this._clientServiceTableAdapter != null)) {
  10907. global::System.Data.DataRow[] addedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Added);
  10908. if (((addedRows != null)
  10909. && (0 < addedRows.Length))) {
  10910. result = (result + this._clientServiceTableAdapter.Update(addedRows));
  10911. allAddedRows.AddRange(addedRows);
  10912. }
  10913. }
  10914. if ((this._productTableAdapter != null)) {
  10915. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  10916. if (((addedRows != null)
  10917. && (0 < addedRows.Length))) {
  10918. result = (result + this._productTableAdapter.Update(addedRows));
  10919. allAddedRows.AddRange(addedRows);
  10920. }
  10921. }
  10922. if ((this._tagTableAdapter != null)) {
  10923. global::System.Data.DataRow[] addedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Added);
  10924. if (((addedRows != null)
  10925. && (0 < addedRows.Length))) {
  10926. result = (result + this._tagTableAdapter.Update(addedRows));
  10927. allAddedRows.AddRange(addedRows);
  10928. }
  10929. }
  10930. if ((this._attachedProductTableAdapter != null)) {
  10931. global::System.Data.DataRow[] addedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  10932. if (((addedRows != null)
  10933. && (0 < addedRows.Length))) {
  10934. result = (result + this._attachedProductTableAdapter.Update(addedRows));
  10935. allAddedRows.AddRange(addedRows);
  10936. }
  10937. }
  10938. if ((this._documentByServiceTableAdapter != null)) {
  10939. global::System.Data.DataRow[] addedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Added);
  10940. if (((addedRows != null)
  10941. && (0 < addedRows.Length))) {
  10942. result = (result + this._documentByServiceTableAdapter.Update(addedRows));
  10943. allAddedRows.AddRange(addedRows);
  10944. }
  10945. }
  10946. if ((this._productPhotoTableAdapter != null)) {
  10947. global::System.Data.DataRow[] addedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  10948. if (((addedRows != null)
  10949. && (0 < addedRows.Length))) {
  10950. result = (result + this._productPhotoTableAdapter.Update(addedRows));
  10951. allAddedRows.AddRange(addedRows);
  10952. }
  10953. }
  10954. if ((this._productSaleTableAdapter != null)) {
  10955. global::System.Data.DataRow[] addedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Added);
  10956. if (((addedRows != null)
  10957. && (0 < addedRows.Length))) {
  10958. result = (result + this._productSaleTableAdapter.Update(addedRows));
  10959. allAddedRows.AddRange(addedRows);
  10960. }
  10961. }
  10962. if ((this._servicePhotoTableAdapter != null)) {
  10963. global::System.Data.DataRow[] addedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  10964. if (((addedRows != null)
  10965. && (0 < addedRows.Length))) {
  10966. result = (result + this._servicePhotoTableAdapter.Update(addedRows));
  10967. allAddedRows.AddRange(addedRows);
  10968. }
  10969. }
  10970. if ((this._tagOfClientTableAdapter != null)) {
  10971. global::System.Data.DataRow[] addedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Added);
  10972. if (((addedRows != null)
  10973. && (0 < addedRows.Length))) {
  10974. result = (result + this._tagOfClientTableAdapter.Update(addedRows));
  10975. allAddedRows.AddRange(addedRows);
  10976. }
  10977. }
  10978. return result;
  10979. }
  10980. /// <summary>
  10981. ///Delete rows in bottom-up order.
  10982. ///</summary>
  10983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10985. private int UpdateDeletedRows(SaloonKrasoti02DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  10986. int result = 0;
  10987. if ((this._tagOfClientTableAdapter != null)) {
  10988. global::System.Data.DataRow[] deletedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10989. if (((deletedRows != null)
  10990. && (0 < deletedRows.Length))) {
  10991. result = (result + this._tagOfClientTableAdapter.Update(deletedRows));
  10992. allChangedRows.AddRange(deletedRows);
  10993. }
  10994. }
  10995. if ((this._servicePhotoTableAdapter != null)) {
  10996. global::System.Data.DataRow[] deletedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10997. if (((deletedRows != null)
  10998. && (0 < deletedRows.Length))) {
  10999. result = (result + this._servicePhotoTableAdapter.Update(deletedRows));
  11000. allChangedRows.AddRange(deletedRows);
  11001. }
  11002. }
  11003. if ((this._productSaleTableAdapter != null)) {
  11004. global::System.Data.DataRow[] deletedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11005. if (((deletedRows != null)
  11006. && (0 < deletedRows.Length))) {
  11007. result = (result + this._productSaleTableAdapter.Update(deletedRows));
  11008. allChangedRows.AddRange(deletedRows);
  11009. }
  11010. }
  11011. if ((this._productPhotoTableAdapter != null)) {
  11012. global::System.Data.DataRow[] deletedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11013. if (((deletedRows != null)
  11014. && (0 < deletedRows.Length))) {
  11015. result = (result + this._productPhotoTableAdapter.Update(deletedRows));
  11016. allChangedRows.AddRange(deletedRows);
  11017. }
  11018. }
  11019. if ((this._documentByServiceTableAdapter != null)) {
  11020. global::System.Data.DataRow[] deletedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11021. if (((deletedRows != null)
  11022. && (0 < deletedRows.Length))) {
  11023. result = (result + this._documentByServiceTableAdapter.Update(deletedRows));
  11024. allChangedRows.AddRange(deletedRows);
  11025. }
  11026. }
  11027. if ((this._attachedProductTableAdapter != null)) {
  11028. global::System.Data.DataRow[] deletedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11029. if (((deletedRows != null)
  11030. && (0 < deletedRows.Length))) {
  11031. result = (result + this._attachedProductTableAdapter.Update(deletedRows));
  11032. allChangedRows.AddRange(deletedRows);
  11033. }
  11034. }
  11035. if ((this._tagTableAdapter != null)) {
  11036. global::System.Data.DataRow[] deletedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11037. if (((deletedRows != null)
  11038. && (0 < deletedRows.Length))) {
  11039. result = (result + this._tagTableAdapter.Update(deletedRows));
  11040. allChangedRows.AddRange(deletedRows);
  11041. }
  11042. }
  11043. if ((this._productTableAdapter != null)) {
  11044. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11045. if (((deletedRows != null)
  11046. && (0 < deletedRows.Length))) {
  11047. result = (result + this._productTableAdapter.Update(deletedRows));
  11048. allChangedRows.AddRange(deletedRows);
  11049. }
  11050. }
  11051. if ((this._clientServiceTableAdapter != null)) {
  11052. global::System.Data.DataRow[] deletedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11053. if (((deletedRows != null)
  11054. && (0 < deletedRows.Length))) {
  11055. result = (result + this._clientServiceTableAdapter.Update(deletedRows));
  11056. allChangedRows.AddRange(deletedRows);
  11057. }
  11058. }
  11059. if ((this._serviceTableAdapter != null)) {
  11060. global::System.Data.DataRow[] deletedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11061. if (((deletedRows != null)
  11062. && (0 < deletedRows.Length))) {
  11063. result = (result + this._serviceTableAdapter.Update(deletedRows));
  11064. allChangedRows.AddRange(deletedRows);
  11065. }
  11066. }
  11067. if ((this._manufacturerTableAdapter != null)) {
  11068. global::System.Data.DataRow[] deletedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11069. if (((deletedRows != null)
  11070. && (0 < deletedRows.Length))) {
  11071. result = (result + this._manufacturerTableAdapter.Update(deletedRows));
  11072. allChangedRows.AddRange(deletedRows);
  11073. }
  11074. }
  11075. if ((this._clientTableAdapter != null)) {
  11076. global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11077. if (((deletedRows != null)
  11078. && (0 < deletedRows.Length))) {
  11079. result = (result + this._clientTableAdapter.Update(deletedRows));
  11080. allChangedRows.AddRange(deletedRows);
  11081. }
  11082. }
  11083. if ((this._genderTableAdapter != null)) {
  11084. global::System.Data.DataRow[] deletedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11085. if (((deletedRows != null)
  11086. && (0 < deletedRows.Length))) {
  11087. result = (result + this._genderTableAdapter.Update(deletedRows));
  11088. allChangedRows.AddRange(deletedRows);
  11089. }
  11090. }
  11091. return result;
  11092. }
  11093. /// <summary>
  11094. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  11095. ///</summary>
  11096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11098. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  11099. if (((updatedRows == null)
  11100. || (updatedRows.Length < 1))) {
  11101. return updatedRows;
  11102. }
  11103. if (((allAddedRows == null)
  11104. || (allAddedRows.Count < 1))) {
  11105. return updatedRows;
  11106. }
  11107. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11108. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  11109. global::System.Data.DataRow row = updatedRows[i];
  11110. if ((allAddedRows.Contains(row) == false)) {
  11111. realUpdatedRows.Add(row);
  11112. }
  11113. }
  11114. return realUpdatedRows.ToArray();
  11115. }
  11116. /// <summary>
  11117. ///Update all changes to the dataset.
  11118. ///</summary>
  11119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11121. public virtual int UpdateAll(SaloonKrasoti02DataSet dataSet) {
  11122. if ((dataSet == null)) {
  11123. throw new global::System.ArgumentNullException("dataSet");
  11124. }
  11125. if ((dataSet.HasChanges() == false)) {
  11126. return 0;
  11127. }
  11128. if (((this._attachedProductTableAdapter != null)
  11129. && (this.MatchTableAdapterConnection(this._attachedProductTableAdapter.Connection) == false))) {
  11130. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11131. "r, должны использовать одинаковую строку подключения.");
  11132. }
  11133. if (((this._clientTableAdapter != null)
  11134. && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
  11135. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11136. "r, должны использовать одинаковую строку подключения.");
  11137. }
  11138. if (((this._clientServiceTableAdapter != null)
  11139. && (this.MatchTableAdapterConnection(this._clientServiceTableAdapter.Connection) == false))) {
  11140. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11141. "r, должны использовать одинаковую строку подключения.");
  11142. }
  11143. if (((this._documentByServiceTableAdapter != null)
  11144. && (this.MatchTableAdapterConnection(this._documentByServiceTableAdapter.Connection) == false))) {
  11145. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11146. "r, должны использовать одинаковую строку подключения.");
  11147. }
  11148. if (((this._genderTableAdapter != null)
  11149. && (this.MatchTableAdapterConnection(this._genderTableAdapter.Connection) == false))) {
  11150. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11151. "r, должны использовать одинаковую строку подключения.");
  11152. }
  11153. if (((this._manufacturerTableAdapter != null)
  11154. && (this.MatchTableAdapterConnection(this._manufacturerTableAdapter.Connection) == false))) {
  11155. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11156. "r, должны использовать одинаковую строку подключения.");
  11157. }
  11158. if (((this._productTableAdapter != null)
  11159. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  11160. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11161. "r, должны использовать одинаковую строку подключения.");
  11162. }
  11163. if (((this._productPhotoTableAdapter != null)
  11164. && (this.MatchTableAdapterConnection(this._productPhotoTableAdapter.Connection) == false))) {
  11165. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11166. "r, должны использовать одинаковую строку подключения.");
  11167. }
  11168. if (((this._productSaleTableAdapter != null)
  11169. && (this.MatchTableAdapterConnection(this._productSaleTableAdapter.Connection) == false))) {
  11170. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11171. "r, должны использовать одинаковую строку подключения.");
  11172. }
  11173. if (((this._serviceTableAdapter != null)
  11174. && (this.MatchTableAdapterConnection(this._serviceTableAdapter.Connection) == false))) {
  11175. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11176. "r, должны использовать одинаковую строку подключения.");
  11177. }
  11178. if (((this._servicePhotoTableAdapter != null)
  11179. && (this.MatchTableAdapterConnection(this._servicePhotoTableAdapter.Connection) == false))) {
  11180. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11181. "r, должны использовать одинаковую строку подключения.");
  11182. }
  11183. if (((this._tagTableAdapter != null)
  11184. && (this.MatchTableAdapterConnection(this._tagTableAdapter.Connection) == false))) {
  11185. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11186. "r, должны использовать одинаковую строку подключения.");
  11187. }
  11188. if (((this._tagOfClientTableAdapter != null)
  11189. && (this.MatchTableAdapterConnection(this._tagOfClientTableAdapter.Connection) == false))) {
  11190. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11191. "r, должны использовать одинаковую строку подключения.");
  11192. }
  11193. global::System.Data.IDbConnection workConnection = this.Connection;
  11194. if ((workConnection == null)) {
  11195. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  11196. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  11197. }
  11198. bool workConnOpened = false;
  11199. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  11200. == global::System.Data.ConnectionState.Broken)) {
  11201. workConnection.Close();
  11202. }
  11203. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  11204. workConnection.Open();
  11205. workConnOpened = true;
  11206. }
  11207. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  11208. if ((workTransaction == null)) {
  11209. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  11210. "и или текущее состояние не позволяет начать транзакцию.");
  11211. }
  11212. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11213. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11214. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  11215. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  11216. int result = 0;
  11217. global::System.Data.DataSet backupDataSet = null;
  11218. if (this.BackupDataSetBeforeUpdate) {
  11219. backupDataSet = new global::System.Data.DataSet();
  11220. backupDataSet.Merge(dataSet);
  11221. }
  11222. try {
  11223. // ---- Prepare for update -----------
  11224. //
  11225. if ((this._attachedProductTableAdapter != null)) {
  11226. revertConnections.Add(this._attachedProductTableAdapter, this._attachedProductTableAdapter.Connection);
  11227. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11228. this._attachedProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11229. if (this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11230. this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11231. adaptersWithAcceptChangesDuringUpdate.Add(this._attachedProductTableAdapter.Adapter);
  11232. }
  11233. }
  11234. if ((this._clientTableAdapter != null)) {
  11235. revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
  11236. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11237. this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11238. if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11239. this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11240. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
  11241. }
  11242. }
  11243. if ((this._clientServiceTableAdapter != null)) {
  11244. revertConnections.Add(this._clientServiceTableAdapter, this._clientServiceTableAdapter.Connection);
  11245. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11246. this._clientServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11247. if (this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11248. this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11249. adaptersWithAcceptChangesDuringUpdate.Add(this._clientServiceTableAdapter.Adapter);
  11250. }
  11251. }
  11252. if ((this._documentByServiceTableAdapter != null)) {
  11253. revertConnections.Add(this._documentByServiceTableAdapter, this._documentByServiceTableAdapter.Connection);
  11254. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11255. this._documentByServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11256. if (this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11257. this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11258. adaptersWithAcceptChangesDuringUpdate.Add(this._documentByServiceTableAdapter.Adapter);
  11259. }
  11260. }
  11261. if ((this._genderTableAdapter != null)) {
  11262. revertConnections.Add(this._genderTableAdapter, this._genderTableAdapter.Connection);
  11263. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11264. this._genderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11265. if (this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11266. this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11267. adaptersWithAcceptChangesDuringUpdate.Add(this._genderTableAdapter.Adapter);
  11268. }
  11269. }
  11270. if ((this._manufacturerTableAdapter != null)) {
  11271. revertConnections.Add(this._manufacturerTableAdapter, this._manufacturerTableAdapter.Connection);
  11272. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11273. this._manufacturerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11274. if (this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11275. this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11276. adaptersWithAcceptChangesDuringUpdate.Add(this._manufacturerTableAdapter.Adapter);
  11277. }
  11278. }
  11279. if ((this._productTableAdapter != null)) {
  11280. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  11281. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11282. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11283. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11284. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11285. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  11286. }
  11287. }
  11288. if ((this._productPhotoTableAdapter != null)) {
  11289. revertConnections.Add(this._productPhotoTableAdapter, this._productPhotoTableAdapter.Connection);
  11290. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11291. this._productPhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11292. if (this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11293. this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11294. adaptersWithAcceptChangesDuringUpdate.Add(this._productPhotoTableAdapter.Adapter);
  11295. }
  11296. }
  11297. if ((this._productSaleTableAdapter != null)) {
  11298. revertConnections.Add(this._productSaleTableAdapter, this._productSaleTableAdapter.Connection);
  11299. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11300. this._productSaleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11301. if (this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11302. this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11303. adaptersWithAcceptChangesDuringUpdate.Add(this._productSaleTableAdapter.Adapter);
  11304. }
  11305. }
  11306. if ((this._serviceTableAdapter != null)) {
  11307. revertConnections.Add(this._serviceTableAdapter, this._serviceTableAdapter.Connection);
  11308. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11309. this._serviceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11310. if (this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11311. this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11312. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceTableAdapter.Adapter);
  11313. }
  11314. }
  11315. if ((this._servicePhotoTableAdapter != null)) {
  11316. revertConnections.Add(this._servicePhotoTableAdapter, this._servicePhotoTableAdapter.Connection);
  11317. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11318. this._servicePhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11319. if (this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11320. this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11321. adaptersWithAcceptChangesDuringUpdate.Add(this._servicePhotoTableAdapter.Adapter);
  11322. }
  11323. }
  11324. if ((this._tagTableAdapter != null)) {
  11325. revertConnections.Add(this._tagTableAdapter, this._tagTableAdapter.Connection);
  11326. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11327. this._tagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11328. if (this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11329. this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11330. adaptersWithAcceptChangesDuringUpdate.Add(this._tagTableAdapter.Adapter);
  11331. }
  11332. }
  11333. if ((this._tagOfClientTableAdapter != null)) {
  11334. revertConnections.Add(this._tagOfClientTableAdapter, this._tagOfClientTableAdapter.Connection);
  11335. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11336. this._tagOfClientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11337. if (this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11338. this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11339. adaptersWithAcceptChangesDuringUpdate.Add(this._tagOfClientTableAdapter.Adapter);
  11340. }
  11341. }
  11342. //
  11343. //---- Perform updates -----------
  11344. //
  11345. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  11346. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11347. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11348. }
  11349. else {
  11350. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11351. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11352. }
  11353. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  11354. //
  11355. //---- Commit updates -----------
  11356. //
  11357. workTransaction.Commit();
  11358. if ((0 < allAddedRows.Count)) {
  11359. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11360. allAddedRows.CopyTo(rows);
  11361. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11362. global::System.Data.DataRow row = rows[i];
  11363. row.AcceptChanges();
  11364. }
  11365. }
  11366. if ((0 < allChangedRows.Count)) {
  11367. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  11368. allChangedRows.CopyTo(rows);
  11369. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11370. global::System.Data.DataRow row = rows[i];
  11371. row.AcceptChanges();
  11372. }
  11373. }
  11374. }
  11375. catch (global::System.Exception ex) {
  11376. workTransaction.Rollback();
  11377. // ---- Restore the dataset -----------
  11378. if (this.BackupDataSetBeforeUpdate) {
  11379. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  11380. dataSet.Clear();
  11381. dataSet.Merge(backupDataSet);
  11382. }
  11383. else {
  11384. if ((0 < allAddedRows.Count)) {
  11385. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11386. allAddedRows.CopyTo(rows);
  11387. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11388. global::System.Data.DataRow row = rows[i];
  11389. row.AcceptChanges();
  11390. row.SetAdded();
  11391. }
  11392. }
  11393. }
  11394. throw ex;
  11395. }
  11396. finally {
  11397. if (workConnOpened) {
  11398. workConnection.Close();
  11399. }
  11400. if ((this._attachedProductTableAdapter != null)) {
  11401. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._attachedProductTableAdapter]));
  11402. this._attachedProductTableAdapter.Transaction = null;
  11403. }
  11404. if ((this._clientTableAdapter != null)) {
  11405. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
  11406. this._clientTableAdapter.Transaction = null;
  11407. }
  11408. if ((this._clientServiceTableAdapter != null)) {
  11409. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientServiceTableAdapter]));
  11410. this._clientServiceTableAdapter.Transaction = null;
  11411. }
  11412. if ((this._documentByServiceTableAdapter != null)) {
  11413. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._documentByServiceTableAdapter]));
  11414. this._documentByServiceTableAdapter.Transaction = null;
  11415. }
  11416. if ((this._genderTableAdapter != null)) {
  11417. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._genderTableAdapter]));
  11418. this._genderTableAdapter.Transaction = null;
  11419. }
  11420. if ((this._manufacturerTableAdapter != null)) {
  11421. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufacturerTableAdapter]));
  11422. this._manufacturerTableAdapter.Transaction = null;
  11423. }
  11424. if ((this._productTableAdapter != null)) {
  11425. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  11426. this._productTableAdapter.Transaction = null;
  11427. }
  11428. if ((this._productPhotoTableAdapter != null)) {
  11429. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productPhotoTableAdapter]));
  11430. this._productPhotoTableAdapter.Transaction = null;
  11431. }
  11432. if ((this._productSaleTableAdapter != null)) {
  11433. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productSaleTableAdapter]));
  11434. this._productSaleTableAdapter.Transaction = null;
  11435. }
  11436. if ((this._serviceTableAdapter != null)) {
  11437. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceTableAdapter]));
  11438. this._serviceTableAdapter.Transaction = null;
  11439. }
  11440. if ((this._servicePhotoTableAdapter != null)) {
  11441. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._servicePhotoTableAdapter]));
  11442. this._servicePhotoTableAdapter.Transaction = null;
  11443. }
  11444. if ((this._tagTableAdapter != null)) {
  11445. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagTableAdapter]));
  11446. this._tagTableAdapter.Transaction = null;
  11447. }
  11448. if ((this._tagOfClientTableAdapter != null)) {
  11449. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagOfClientTableAdapter]));
  11450. this._tagOfClientTableAdapter.Transaction = null;
  11451. }
  11452. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  11453. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  11454. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  11455. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  11456. global::System.Data.Common.DataAdapter adapter = adapters[i];
  11457. adapter.AcceptChangesDuringUpdate = true;
  11458. }
  11459. }
  11460. }
  11461. return result;
  11462. }
  11463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11465. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  11466. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  11467. }
  11468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11470. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  11471. if ((this._connection != null)) {
  11472. return true;
  11473. }
  11474. if (((this.Connection == null)
  11475. || (inputConnection == null))) {
  11476. return true;
  11477. }
  11478. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  11479. return true;
  11480. }
  11481. return false;
  11482. }
  11483. /// <summary>
  11484. ///Update Order Option
  11485. ///</summary>
  11486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11487. public enum UpdateOrderOption {
  11488. InsertUpdateDelete = 0,
  11489. UpdateInsertDelete = 1,
  11490. }
  11491. /// <summary>
  11492. ///Used to sort self-referenced table's rows
  11493. ///</summary>
  11494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11495. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  11496. private global::System.Data.DataRelation _relation;
  11497. private int _childFirst;
  11498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11500. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  11501. this._relation = relation;
  11502. if (childFirst) {
  11503. this._childFirst = -1;
  11504. }
  11505. else {
  11506. this._childFirst = 1;
  11507. }
  11508. }
  11509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11511. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  11512. global::System.Diagnostics.Debug.Assert((row != null));
  11513. global::System.Data.DataRow root = row;
  11514. distance = 0;
  11515. 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>();
  11516. traversedRows[row] = row;
  11517. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11518. for (
  11519. ; ((parent != null)
  11520. && (traversedRows.ContainsKey(parent) == false));
  11521. ) {
  11522. distance = (distance + 1);
  11523. root = parent;
  11524. traversedRows[parent] = parent;
  11525. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11526. }
  11527. if ((distance == 0)) {
  11528. traversedRows.Clear();
  11529. traversedRows[row] = row;
  11530. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11531. for (
  11532. ; ((parent != null)
  11533. && (traversedRows.ContainsKey(parent) == false));
  11534. ) {
  11535. distance = (distance + 1);
  11536. root = parent;
  11537. traversedRows[parent] = parent;
  11538. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11539. }
  11540. }
  11541. return root;
  11542. }
  11543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11545. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  11546. if (object.ReferenceEquals(row1, row2)) {
  11547. return 0;
  11548. }
  11549. if ((row1 == null)) {
  11550. return -1;
  11551. }
  11552. if ((row2 == null)) {
  11553. return 1;
  11554. }
  11555. int distance1 = 0;
  11556. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  11557. int distance2 = 0;
  11558. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  11559. if (object.ReferenceEquals(root1, root2)) {
  11560. return (this._childFirst * distance1.CompareTo(distance2));
  11561. }
  11562. else {
  11563. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  11564. && (root2.Table != null)));
  11565. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  11566. return -1;
  11567. }
  11568. else {
  11569. return 1;
  11570. }
  11571. }
  11572. }
  11573. }
  11574. }
  11575. }
  11576. #pragma warning restore 1591