KhozeeevPC_12DataSet.Designer.cs 804 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Khozeev8 {
  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("KhozeeevPC_12DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class KhozeeevPC_12DataSet : global::System.Data.DataSet {
  22. private БлокПитанияDataTable tableБлокПитания;
  23. private ВидеокартыDataTable tableВидеокарты;
  24. private ВодянаяСистемаОхлажденияDataTable tableВодянаяСистемаОхлаждения;
  25. private ГотоваяСборкаDataTable tableГотоваяСборка;
  26. private ЖесткийДискDataTable tableЖесткийДиск;
  27. private КулерыDataTable tableКулеры;
  28. private МатеринскаяПлатаDataTable tableМатеринскаяПлата;
  29. private ОперативнаяПамятьDataTable tableОперативнаяПамять;
  30. private ПользователиDataTable tableПользователи;
  31. private ПроцессорыDataTable tableПроцессоры;
  32. private ССДDataTable tableССД;
  33. private global::System.Data.DataRelation relationFK_ГотоваяСборка_БлокПитания;
  34. private global::System.Data.DataRelation relationFK_ГотоваяСборка_Видеокарты;
  35. private global::System.Data.DataRelation relationFK_ГотоваяСборка_ВодянаяСистемаОхлаждения;
  36. private global::System.Data.DataRelation relationFK_ГотоваяСборка_ЖесткийДиск;
  37. private global::System.Data.DataRelation relationFK_ГотоваяСборка_Кулеры;
  38. private global::System.Data.DataRelation relationFK_ГотоваяСборка_МатеринскаяПлата;
  39. private global::System.Data.DataRelation relationFK_ГотоваяСборка_ОперативнаяПамять;
  40. private global::System.Data.DataRelation relationFK_ГотоваяСборка_Пользователи;
  41. private global::System.Data.DataRelation relationFK_ГотоваяСборка_Процессоры;
  42. private global::System.Data.DataRelation relationFK_ГотоваяСборка_ССД;
  43. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  44. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  45. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  46. public KhozeeevPC_12DataSet() {
  47. this.BeginInit();
  48. this.InitClass();
  49. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  50. base.Tables.CollectionChanged += schemaChangedHandler;
  51. base.Relations.CollectionChanged += schemaChangedHandler;
  52. this.EndInit();
  53. }
  54. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  55. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  56. protected KhozeeevPC_12DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  57. base(info, context, false) {
  58. if ((this.IsBinarySerialized(info, context) == true)) {
  59. this.InitVars(false);
  60. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  61. this.Tables.CollectionChanged += schemaChangedHandler1;
  62. this.Relations.CollectionChanged += schemaChangedHandler1;
  63. return;
  64. }
  65. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  66. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  67. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  68. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  69. if ((ds.Tables["БлокПитания"] != null)) {
  70. base.Tables.Add(new БлокПитанияDataTable(ds.Tables["БлокПитания"]));
  71. }
  72. if ((ds.Tables["Видеокарты"] != null)) {
  73. base.Tables.Add(new ВидеокартыDataTable(ds.Tables["Видеокарты"]));
  74. }
  75. if ((ds.Tables["ВодянаяСистемаОхлаждения"] != null)) {
  76. base.Tables.Add(new ВодянаяСистемаОхлажденияDataTable(ds.Tables["ВодянаяСистемаОхлаждения"]));
  77. }
  78. if ((ds.Tables["ГотоваяСборка"] != null)) {
  79. base.Tables.Add(new ГотоваяСборкаDataTable(ds.Tables["ГотоваяСборка"]));
  80. }
  81. if ((ds.Tables["ЖесткийДиск"] != null)) {
  82. base.Tables.Add(new ЖесткийДискDataTable(ds.Tables["ЖесткийДиск"]));
  83. }
  84. if ((ds.Tables["Кулеры"] != null)) {
  85. base.Tables.Add(new КулерыDataTable(ds.Tables["Кулеры"]));
  86. }
  87. if ((ds.Tables["МатеринскаяПлата"] != null)) {
  88. base.Tables.Add(new МатеринскаяПлатаDataTable(ds.Tables["МатеринскаяПлата"]));
  89. }
  90. if ((ds.Tables["ОперативнаяПамять"] != null)) {
  91. base.Tables.Add(new ОперативнаяПамятьDataTable(ds.Tables["ОперативнаяПамять"]));
  92. }
  93. if ((ds.Tables["Пользователи"] != null)) {
  94. base.Tables.Add(new ПользователиDataTable(ds.Tables["Пользователи"]));
  95. }
  96. if ((ds.Tables["Процессоры"] != null)) {
  97. base.Tables.Add(new ПроцессорыDataTable(ds.Tables["Процессоры"]));
  98. }
  99. if ((ds.Tables["ССД"] != null)) {
  100. base.Tables.Add(new ССДDataTable(ds.Tables["ССД"]));
  101. }
  102. this.DataSetName = ds.DataSetName;
  103. this.Prefix = ds.Prefix;
  104. this.Namespace = ds.Namespace;
  105. this.Locale = ds.Locale;
  106. this.CaseSensitive = ds.CaseSensitive;
  107. this.EnforceConstraints = ds.EnforceConstraints;
  108. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  109. this.InitVars();
  110. }
  111. else {
  112. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  113. }
  114. this.GetSerializationData(info, context);
  115. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  116. base.Tables.CollectionChanged += schemaChangedHandler;
  117. this.Relations.CollectionChanged += schemaChangedHandler;
  118. }
  119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  121. [global::System.ComponentModel.Browsable(false)]
  122. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  123. public БлокПитанияDataTable БлокПитания {
  124. get {
  125. return this.tableБлокПитания;
  126. }
  127. }
  128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  130. [global::System.ComponentModel.Browsable(false)]
  131. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  132. public ВидеокартыDataTable Видеокарты {
  133. get {
  134. return this.tableВидеокарты;
  135. }
  136. }
  137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  139. [global::System.ComponentModel.Browsable(false)]
  140. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  141. public ВодянаяСистемаОхлажденияDataTable ВодянаяСистемаОхлаждения {
  142. get {
  143. return this.tableВодянаяСистемаОхлаждения;
  144. }
  145. }
  146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  148. [global::System.ComponentModel.Browsable(false)]
  149. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  150. public ГотоваяСборкаDataTable ГотоваяСборка {
  151. get {
  152. return this.tableГотоваяСборка;
  153. }
  154. }
  155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  157. [global::System.ComponentModel.Browsable(false)]
  158. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  159. public ЖесткийДискDataTable ЖесткийДиск {
  160. get {
  161. return this.tableЖесткийДиск;
  162. }
  163. }
  164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  166. [global::System.ComponentModel.Browsable(false)]
  167. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  168. public КулерыDataTable Кулеры {
  169. get {
  170. return this.tableКулеры;
  171. }
  172. }
  173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  175. [global::System.ComponentModel.Browsable(false)]
  176. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  177. public МатеринскаяПлатаDataTable МатеринскаяПлата {
  178. get {
  179. return this.tableМатеринскаяПлата;
  180. }
  181. }
  182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  184. [global::System.ComponentModel.Browsable(false)]
  185. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  186. public ОперативнаяПамятьDataTable ОперативнаяПамять {
  187. get {
  188. return this.tableОперативнаяПамять;
  189. }
  190. }
  191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  193. [global::System.ComponentModel.Browsable(false)]
  194. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  195. public ПользователиDataTable Пользователи {
  196. get {
  197. return this.tableПользователи;
  198. }
  199. }
  200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  202. [global::System.ComponentModel.Browsable(false)]
  203. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  204. public ПроцессорыDataTable Процессоры {
  205. get {
  206. return this.tableПроцессоры;
  207. }
  208. }
  209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  211. [global::System.ComponentModel.Browsable(false)]
  212. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  213. public ССДDataTable ССД {
  214. get {
  215. return this.tableССД;
  216. }
  217. }
  218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  220. [global::System.ComponentModel.BrowsableAttribute(true)]
  221. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  222. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  223. get {
  224. return this._schemaSerializationMode;
  225. }
  226. set {
  227. this._schemaSerializationMode = value;
  228. }
  229. }
  230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  232. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  233. public new global::System.Data.DataTableCollection Tables {
  234. get {
  235. return base.Tables;
  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.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  241. public new global::System.Data.DataRelationCollection Relations {
  242. get {
  243. return base.Relations;
  244. }
  245. }
  246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  248. protected override void InitializeDerivedDataSet() {
  249. this.BeginInit();
  250. this.InitClass();
  251. this.EndInit();
  252. }
  253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  255. public override global::System.Data.DataSet Clone() {
  256. KhozeeevPC_12DataSet cln = ((KhozeeevPC_12DataSet)(base.Clone()));
  257. cln.InitVars();
  258. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  259. return cln;
  260. }
  261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  263. protected override bool ShouldSerializeTables() {
  264. return false;
  265. }
  266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  268. protected override bool ShouldSerializeRelations() {
  269. return false;
  270. }
  271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  273. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  274. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  275. this.Reset();
  276. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  277. ds.ReadXml(reader);
  278. if ((ds.Tables["БлокПитания"] != null)) {
  279. base.Tables.Add(new БлокПитанияDataTable(ds.Tables["БлокПитания"]));
  280. }
  281. if ((ds.Tables["Видеокарты"] != null)) {
  282. base.Tables.Add(new ВидеокартыDataTable(ds.Tables["Видеокарты"]));
  283. }
  284. if ((ds.Tables["ВодянаяСистемаОхлаждения"] != null)) {
  285. base.Tables.Add(new ВодянаяСистемаОхлажденияDataTable(ds.Tables["ВодянаяСистемаОхлаждения"]));
  286. }
  287. if ((ds.Tables["ГотоваяСборка"] != null)) {
  288. base.Tables.Add(new ГотоваяСборкаDataTable(ds.Tables["ГотоваяСборка"]));
  289. }
  290. if ((ds.Tables["ЖесткийДиск"] != null)) {
  291. base.Tables.Add(new ЖесткийДискDataTable(ds.Tables["ЖесткийДиск"]));
  292. }
  293. if ((ds.Tables["Кулеры"] != null)) {
  294. base.Tables.Add(new КулерыDataTable(ds.Tables["Кулеры"]));
  295. }
  296. if ((ds.Tables["МатеринскаяПлата"] != null)) {
  297. base.Tables.Add(new МатеринскаяПлатаDataTable(ds.Tables["МатеринскаяПлата"]));
  298. }
  299. if ((ds.Tables["ОперативнаяПамять"] != null)) {
  300. base.Tables.Add(new ОперативнаяПамятьDataTable(ds.Tables["ОперативнаяПамять"]));
  301. }
  302. if ((ds.Tables["Пользователи"] != null)) {
  303. base.Tables.Add(new ПользователиDataTable(ds.Tables["Пользователи"]));
  304. }
  305. if ((ds.Tables["Процессоры"] != null)) {
  306. base.Tables.Add(new ПроцессорыDataTable(ds.Tables["Процессоры"]));
  307. }
  308. if ((ds.Tables["ССД"] != null)) {
  309. base.Tables.Add(new ССДDataTable(ds.Tables["ССД"]));
  310. }
  311. this.DataSetName = ds.DataSetName;
  312. this.Prefix = ds.Prefix;
  313. this.Namespace = ds.Namespace;
  314. this.Locale = ds.Locale;
  315. this.CaseSensitive = ds.CaseSensitive;
  316. this.EnforceConstraints = ds.EnforceConstraints;
  317. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  318. this.InitVars();
  319. }
  320. else {
  321. this.ReadXml(reader);
  322. this.InitVars();
  323. }
  324. }
  325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  327. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  328. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  329. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  330. stream.Position = 0;
  331. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  332. }
  333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  335. internal void InitVars() {
  336. this.InitVars(true);
  337. }
  338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  340. internal void InitVars(bool initTable) {
  341. this.tableБлокПитания = ((БлокПитанияDataTable)(base.Tables["БлокПитания"]));
  342. if ((initTable == true)) {
  343. if ((this.tableБлокПитания != null)) {
  344. this.tableБлокПитания.InitVars();
  345. }
  346. }
  347. this.tableВидеокарты = ((ВидеокартыDataTable)(base.Tables["Видеокарты"]));
  348. if ((initTable == true)) {
  349. if ((this.tableВидеокарты != null)) {
  350. this.tableВидеокарты.InitVars();
  351. }
  352. }
  353. this.tableВодянаяСистемаОхлаждения = ((ВодянаяСистемаОхлажденияDataTable)(base.Tables["ВодянаяСистемаОхлаждения"]));
  354. if ((initTable == true)) {
  355. if ((this.tableВодянаяСистемаОхлаждения != null)) {
  356. this.tableВодянаяСистемаОхлаждения.InitVars();
  357. }
  358. }
  359. this.tableГотоваяСборка = ((ГотоваяСборкаDataTable)(base.Tables["ГотоваяСборка"]));
  360. if ((initTable == true)) {
  361. if ((this.tableГотоваяСборка != null)) {
  362. this.tableГотоваяСборка.InitVars();
  363. }
  364. }
  365. this.tableЖесткийДиск = ((ЖесткийДискDataTable)(base.Tables["ЖесткийДиск"]));
  366. if ((initTable == true)) {
  367. if ((this.tableЖесткийДиск != null)) {
  368. this.tableЖесткийДиск.InitVars();
  369. }
  370. }
  371. this.tableКулеры = ((КулерыDataTable)(base.Tables["Кулеры"]));
  372. if ((initTable == true)) {
  373. if ((this.tableКулеры != null)) {
  374. this.tableКулеры.InitVars();
  375. }
  376. }
  377. this.tableМатеринскаяПлата = ((МатеринскаяПлатаDataTable)(base.Tables["МатеринскаяПлата"]));
  378. if ((initTable == true)) {
  379. if ((this.tableМатеринскаяПлата != null)) {
  380. this.tableМатеринскаяПлата.InitVars();
  381. }
  382. }
  383. this.tableОперативнаяПамять = ((ОперативнаяПамятьDataTable)(base.Tables["ОперативнаяПамять"]));
  384. if ((initTable == true)) {
  385. if ((this.tableОперативнаяПамять != null)) {
  386. this.tableОперативнаяПамять.InitVars();
  387. }
  388. }
  389. this.tableПользователи = ((ПользователиDataTable)(base.Tables["Пользователи"]));
  390. if ((initTable == true)) {
  391. if ((this.tableПользователи != null)) {
  392. this.tableПользователи.InitVars();
  393. }
  394. }
  395. this.tableПроцессоры = ((ПроцессорыDataTable)(base.Tables["Процессоры"]));
  396. if ((initTable == true)) {
  397. if ((this.tableПроцессоры != null)) {
  398. this.tableПроцессоры.InitVars();
  399. }
  400. }
  401. this.tableССД = ((ССДDataTable)(base.Tables["ССД"]));
  402. if ((initTable == true)) {
  403. if ((this.tableССД != null)) {
  404. this.tableССД.InitVars();
  405. }
  406. }
  407. this.relationFK_ГотоваяСборка_БлокПитания = this.Relations["FK_ГотоваяСборка_БлокПитания"];
  408. this.relationFK_ГотоваяСборка_Видеокарты = this.Relations["FK_ГотоваяСборка_Видеокарты"];
  409. this.relationFK_ГотоваяСборка_ВодянаяСистемаОхлаждения = this.Relations["FK_ГотоваяСборка_ВодянаяСистемаОхлаждения"];
  410. this.relationFK_ГотоваяСборка_ЖесткийДиск = this.Relations["FK_ГотоваяСборка_ЖесткийДиск"];
  411. this.relationFK_ГотоваяСборка_Кулеры = this.Relations["FK_ГотоваяСборка_Кулеры"];
  412. this.relationFK_ГотоваяСборка_МатеринскаяПлата = this.Relations["FK_ГотоваяСборка_МатеринскаяПлата"];
  413. this.relationFK_ГотоваяСборка_ОперативнаяПамять = this.Relations["FK_ГотоваяСборка_ОперативнаяПамять"];
  414. this.relationFK_ГотоваяСборка_Пользователи = this.Relations["FK_ГотоваяСборка_Пользователи"];
  415. this.relationFK_ГотоваяСборка_Процессоры = this.Relations["FK_ГотоваяСборка_Процессоры"];
  416. this.relationFK_ГотоваяСборка_ССД = this.Relations["FK_ГотоваяСборка_ССД"];
  417. }
  418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  420. private void InitClass() {
  421. this.DataSetName = "KhozeeevPC_12DataSet";
  422. this.Prefix = "";
  423. this.Namespace = "http://tempuri.org/KhozeeevPC_12DataSet.xsd";
  424. this.EnforceConstraints = true;
  425. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  426. this.tableБлокПитания = new БлокПитанияDataTable();
  427. base.Tables.Add(this.tableБлокПитания);
  428. this.tableВидеокарты = new ВидеокартыDataTable();
  429. base.Tables.Add(this.tableВидеокарты);
  430. this.tableВодянаяСистемаОхлаждения = new ВодянаяСистемаОхлажденияDataTable();
  431. base.Tables.Add(this.tableВодянаяСистемаОхлаждения);
  432. this.tableГотоваяСборка = new ГотоваяСборкаDataTable();
  433. base.Tables.Add(this.tableГотоваяСборка);
  434. this.tableЖесткийДиск = new ЖесткийДискDataTable();
  435. base.Tables.Add(this.tableЖесткийДиск);
  436. this.tableКулеры = new КулерыDataTable();
  437. base.Tables.Add(this.tableКулеры);
  438. this.tableМатеринскаяПлата = new МатеринскаяПлатаDataTable();
  439. base.Tables.Add(this.tableМатеринскаяПлата);
  440. this.tableОперативнаяПамять = new ОперативнаяПамятьDataTable();
  441. base.Tables.Add(this.tableОперативнаяПамять);
  442. this.tableПользователи = new ПользователиDataTable();
  443. base.Tables.Add(this.tableПользователи);
  444. this.tableПроцессоры = new ПроцессорыDataTable();
  445. base.Tables.Add(this.tableПроцессоры);
  446. this.tableССД = new ССДDataTable();
  447. base.Tables.Add(this.tableССД);
  448. this.relationFK_ГотоваяСборка_БлокПитания = new global::System.Data.DataRelation("FK_ГотоваяСборка_БлокПитания", new global::System.Data.DataColumn[] {
  449. this.tableБлокПитания.КодБлокаПитанияColumn}, new global::System.Data.DataColumn[] {
  450. this.tableГотоваяСборка.КодБлокаПитанияColumn}, false);
  451. this.Relations.Add(this.relationFK_ГотоваяСборка_БлокПитания);
  452. this.relationFK_ГотоваяСборка_Видеокарты = new global::System.Data.DataRelation("FK_ГотоваяСборка_Видеокарты", new global::System.Data.DataColumn[] {
  453. this.tableВидеокарты.КодВидеокартыColumn}, new global::System.Data.DataColumn[] {
  454. this.tableГотоваяСборка.КодВидеокартыColumn}, false);
  455. this.Relations.Add(this.relationFK_ГотоваяСборка_Видеокарты);
  456. this.relationFK_ГотоваяСборка_ВодянаяСистемаОхлаждения = new global::System.Data.DataRelation("FK_ГотоваяСборка_ВодянаяСистемаОхлаждения", new global::System.Data.DataColumn[] {
  457. this.tableВодянаяСистемаОхлаждения.КодВодянойСистемыColumn}, new global::System.Data.DataColumn[] {
  458. this.tableГотоваяСборка.КодВодянойСистемыColumn}, false);
  459. this.Relations.Add(this.relationFK_ГотоваяСборка_ВодянаяСистемаОхлаждения);
  460. this.relationFK_ГотоваяСборка_ЖесткийДиск = new global::System.Data.DataRelation("FK_ГотоваяСборка_ЖесткийДиск", new global::System.Data.DataColumn[] {
  461. this.tableЖесткийДиск.КодЖесткогоДискаColumn}, new global::System.Data.DataColumn[] {
  462. this.tableГотоваяСборка.КодЖесткогоДискаColumn}, false);
  463. this.Relations.Add(this.relationFK_ГотоваяСборка_ЖесткийДиск);
  464. this.relationFK_ГотоваяСборка_Кулеры = new global::System.Data.DataRelation("FK_ГотоваяСборка_Кулеры", new global::System.Data.DataColumn[] {
  465. this.tableКулеры.КодКулераColumn}, new global::System.Data.DataColumn[] {
  466. this.tableГотоваяСборка.КодКулераColumn}, false);
  467. this.Relations.Add(this.relationFK_ГотоваяСборка_Кулеры);
  468. this.relationFK_ГотоваяСборка_МатеринскаяПлата = new global::System.Data.DataRelation("FK_ГотоваяСборка_МатеринскаяПлата", new global::System.Data.DataColumn[] {
  469. this.tableМатеринскаяПлата.КодМатеринскойПлатыColumn}, new global::System.Data.DataColumn[] {
  470. this.tableГотоваяСборка.КодМатеринскойПлатыColumn}, false);
  471. this.Relations.Add(this.relationFK_ГотоваяСборка_МатеринскаяПлата);
  472. this.relationFK_ГотоваяСборка_ОперативнаяПамять = new global::System.Data.DataRelation("FK_ГотоваяСборка_ОперативнаяПамять", new global::System.Data.DataColumn[] {
  473. this.tableОперативнаяПамять.КодОперативнойПамятиColumn}, new global::System.Data.DataColumn[] {
  474. this.tableГотоваяСборка.КодОперативнойПамятиColumn}, false);
  475. this.Relations.Add(this.relationFK_ГотоваяСборка_ОперативнаяПамять);
  476. this.relationFK_ГотоваяСборка_Пользователи = new global::System.Data.DataRelation("FK_ГотоваяСборка_Пользователи", new global::System.Data.DataColumn[] {
  477. this.tableПользователи.КодПользователяColumn}, new global::System.Data.DataColumn[] {
  478. this.tableГотоваяСборка.СотрудникColumn}, false);
  479. this.Relations.Add(this.relationFK_ГотоваяСборка_Пользователи);
  480. this.relationFK_ГотоваяСборка_Процессоры = new global::System.Data.DataRelation("FK_ГотоваяСборка_Процессоры", new global::System.Data.DataColumn[] {
  481. this.tableПроцессоры.КодПроцессораColumn}, new global::System.Data.DataColumn[] {
  482. this.tableГотоваяСборка.КодПроцессораColumn}, false);
  483. this.Relations.Add(this.relationFK_ГотоваяСборка_Процессоры);
  484. this.relationFK_ГотоваяСборка_ССД = new global::System.Data.DataRelation("FK_ГотоваяСборка_ССД", new global::System.Data.DataColumn[] {
  485. this.tableССД.КодССДColumn}, new global::System.Data.DataColumn[] {
  486. this.tableГотоваяСборка.КодССДColumn}, false);
  487. this.Relations.Add(this.relationFK_ГотоваяСборка_ССД);
  488. }
  489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  491. private bool ShouldSerializeБлокПитания() {
  492. return false;
  493. }
  494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  496. private bool ShouldSerializeВидеокарты() {
  497. return false;
  498. }
  499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  501. private bool ShouldSerializeВодянаяСистемаОхлаждения() {
  502. return false;
  503. }
  504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  506. private bool ShouldSerializeГотоваяСборка() {
  507. return false;
  508. }
  509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  511. private bool ShouldSerializeЖесткийДиск() {
  512. return false;
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  516. private bool ShouldSerializeКулеры() {
  517. return false;
  518. }
  519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  521. private bool ShouldSerializeМатеринскаяПлата() {
  522. return false;
  523. }
  524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  526. private bool ShouldSerializeОперативнаяПамять() {
  527. return false;
  528. }
  529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  531. private bool ShouldSerializeПользователи() {
  532. return false;
  533. }
  534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  536. private bool ShouldSerializeПроцессоры() {
  537. return false;
  538. }
  539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  541. private bool ShouldSerializeССД() {
  542. return false;
  543. }
  544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  546. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  547. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  548. this.InitVars();
  549. }
  550. }
  551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  553. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  554. KhozeeevPC_12DataSet ds = new KhozeeevPC_12DataSet();
  555. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  556. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  557. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  558. any.Namespace = ds.Namespace;
  559. sequence.Items.Add(any);
  560. type.Particle = sequence;
  561. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  562. if (xs.Contains(dsSchema.TargetNamespace)) {
  563. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  564. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  565. try {
  566. global::System.Xml.Schema.XmlSchema schema = null;
  567. dsSchema.Write(s1);
  568. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  569. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  570. s2.SetLength(0);
  571. schema.Write(s2);
  572. if ((s1.Length == s2.Length)) {
  573. s1.Position = 0;
  574. s2.Position = 0;
  575. for (; ((s1.Position != s1.Length)
  576. && (s1.ReadByte() == s2.ReadByte())); ) {
  577. ;
  578. }
  579. if ((s1.Position == s1.Length)) {
  580. return type;
  581. }
  582. }
  583. }
  584. }
  585. finally {
  586. if ((s1 != null)) {
  587. s1.Close();
  588. }
  589. if ((s2 != null)) {
  590. s2.Close();
  591. }
  592. }
  593. }
  594. xs.Add(dsSchema);
  595. return type;
  596. }
  597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  598. public delegate void БлокПитанияRowChangeEventHandler(object sender, БлокПитанияRowChangeEvent e);
  599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  600. public delegate void ВидеокартыRowChangeEventHandler(object sender, ВидеокартыRowChangeEvent e);
  601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  602. public delegate void ВодянаяСистемаОхлажденияRowChangeEventHandler(object sender, ВодянаяСистемаОхлажденияRowChangeEvent e);
  603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  604. public delegate void ГотоваяСборкаRowChangeEventHandler(object sender, ГотоваяСборкаRowChangeEvent e);
  605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  606. public delegate void ЖесткийДискRowChangeEventHandler(object sender, ЖесткийДискRowChangeEvent e);
  607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  608. public delegate void КулерыRowChangeEventHandler(object sender, КулерыRowChangeEvent e);
  609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  610. public delegate void МатеринскаяПлатаRowChangeEventHandler(object sender, МатеринскаяПлатаRowChangeEvent e);
  611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  612. public delegate void ОперативнаяПамятьRowChangeEventHandler(object sender, ОперативнаяПамятьRowChangeEvent e);
  613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  614. public delegate void ПользователиRowChangeEventHandler(object sender, ПользователиRowChangeEvent e);
  615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  616. public delegate void ПроцессорыRowChangeEventHandler(object sender, ПроцессорыRowChangeEvent e);
  617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  618. public delegate void ССДRowChangeEventHandler(object sender, ССДRowChangeEvent e);
  619. /// <summary>
  620. ///Represents the strongly named DataTable class.
  621. ///</summary>
  622. [global::System.Serializable()]
  623. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  624. public partial class БлокПитанияDataTable : global::System.Data.TypedTableBase<БлокПитанияRow> {
  625. private global::System.Data.DataColumn columnНазвание;
  626. private global::System.Data.DataColumn columnЦена;
  627. private global::System.Data.DataColumn columnКоличество;
  628. private global::System.Data.DataColumn columnКодБлокаПитания;
  629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  631. public БлокПитанияDataTable() {
  632. this.TableName = "БлокПитания";
  633. this.BeginInit();
  634. this.InitClass();
  635. this.EndInit();
  636. }
  637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  639. internal БлокПитанияDataTable(global::System.Data.DataTable table) {
  640. this.TableName = table.TableName;
  641. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  642. this.CaseSensitive = table.CaseSensitive;
  643. }
  644. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  645. this.Locale = table.Locale;
  646. }
  647. if ((table.Namespace != table.DataSet.Namespace)) {
  648. this.Namespace = table.Namespace;
  649. }
  650. this.Prefix = table.Prefix;
  651. this.MinimumCapacity = table.MinimumCapacity;
  652. }
  653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  655. protected БлокПитанияDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  656. base(info, context) {
  657. this.InitVars();
  658. }
  659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  661. public global::System.Data.DataColumn НазваниеColumn {
  662. get {
  663. return this.columnНазвание;
  664. }
  665. }
  666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  668. public global::System.Data.DataColumn ЦенаColumn {
  669. get {
  670. return this.columnЦена;
  671. }
  672. }
  673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  675. public global::System.Data.DataColumn КоличествоColumn {
  676. get {
  677. return this.columnКоличество;
  678. }
  679. }
  680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  682. public global::System.Data.DataColumn КодБлокаПитанияColumn {
  683. get {
  684. return this.columnКодБлокаПитания;
  685. }
  686. }
  687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  689. [global::System.ComponentModel.Browsable(false)]
  690. public int Count {
  691. get {
  692. return this.Rows.Count;
  693. }
  694. }
  695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  697. public БлокПитанияRow this[int index] {
  698. get {
  699. return ((БлокПитанияRow)(this.Rows[index]));
  700. }
  701. }
  702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  703. public event БлокПитанияRowChangeEventHandler БлокПитанияRowChanging;
  704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  705. public event БлокПитанияRowChangeEventHandler БлокПитанияRowChanged;
  706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  707. public event БлокПитанияRowChangeEventHandler БлокПитанияRowDeleting;
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  709. public event БлокПитанияRowChangeEventHandler БлокПитанияRowDeleted;
  710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  712. public void AddБлокПитанияRow(БлокПитанияRow row) {
  713. this.Rows.Add(row);
  714. }
  715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  717. public БлокПитанияRow AddБлокПитанияRow(string Название, decimal Цена, int Количество, int КодБлокаПитания) {
  718. БлокПитанияRow rowБлокПитанияRow = ((БлокПитанияRow)(this.NewRow()));
  719. object[] columnValuesArray = new object[] {
  720. Название,
  721. Цена,
  722. Количество,
  723. КодБлокаПитания};
  724. rowБлокПитанияRow.ItemArray = columnValuesArray;
  725. this.Rows.Add(rowБлокПитанияRow);
  726. return rowБлокПитанияRow;
  727. }
  728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  730. public БлокПитанияRow FindByКодБлокаПитания(int КодБлокаПитания) {
  731. return ((БлокПитанияRow)(this.Rows.Find(new object[] {
  732. КодБлокаПитания})));
  733. }
  734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  736. public override global::System.Data.DataTable Clone() {
  737. БлокПитанияDataTable cln = ((БлокПитанияDataTable)(base.Clone()));
  738. cln.InitVars();
  739. return cln;
  740. }
  741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  743. protected override global::System.Data.DataTable CreateInstance() {
  744. return new БлокПитанияDataTable();
  745. }
  746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  748. internal void InitVars() {
  749. this.columnНазвание = base.Columns["Название"];
  750. this.columnЦена = base.Columns["Цена"];
  751. this.columnКоличество = base.Columns["Количество"];
  752. this.columnКодБлокаПитания = base.Columns["КодБлокаПитания"];
  753. }
  754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  756. private void InitClass() {
  757. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  758. base.Columns.Add(this.columnНазвание);
  759. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  760. base.Columns.Add(this.columnЦена);
  761. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  762. base.Columns.Add(this.columnКоличество);
  763. this.columnКодБлокаПитания = new global::System.Data.DataColumn("КодБлокаПитания", typeof(int), null, global::System.Data.MappingType.Element);
  764. base.Columns.Add(this.columnКодБлокаПитания);
  765. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  766. this.columnКодБлокаПитания}, true));
  767. this.columnНазвание.MaxLength = 50;
  768. this.columnКодБлокаПитания.AllowDBNull = false;
  769. this.columnКодБлокаПитания.Unique = true;
  770. }
  771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  773. public БлокПитанияRow NewБлокПитанияRow() {
  774. return ((БлокПитанияRow)(this.NewRow()));
  775. }
  776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  778. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  779. return new БлокПитанияRow(builder);
  780. }
  781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  783. protected override global::System.Type GetRowType() {
  784. return typeof(БлокПитанияRow);
  785. }
  786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  788. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  789. base.OnRowChanged(e);
  790. if ((this.БлокПитанияRowChanged != null)) {
  791. this.БлокПитанияRowChanged(this, new БлокПитанияRowChangeEvent(((БлокПитанияRow)(e.Row)), e.Action));
  792. }
  793. }
  794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  796. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  797. base.OnRowChanging(e);
  798. if ((this.БлокПитанияRowChanging != null)) {
  799. this.БлокПитанияRowChanging(this, new БлокПитанияRowChangeEvent(((БлокПитанияRow)(e.Row)), e.Action));
  800. }
  801. }
  802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  804. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  805. base.OnRowDeleted(e);
  806. if ((this.БлокПитанияRowDeleted != null)) {
  807. this.БлокПитанияRowDeleted(this, new БлокПитанияRowChangeEvent(((БлокПитанияRow)(e.Row)), e.Action));
  808. }
  809. }
  810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  812. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  813. base.OnRowDeleting(e);
  814. if ((this.БлокПитанияRowDeleting != null)) {
  815. this.БлокПитанияRowDeleting(this, new БлокПитанияRowChangeEvent(((БлокПитанияRow)(e.Row)), e.Action));
  816. }
  817. }
  818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  820. public void RemoveБлокПитанияRow(БлокПитанияRow row) {
  821. this.Rows.Remove(row);
  822. }
  823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  825. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  826. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  827. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  828. KhozeeevPC_12DataSet ds = new KhozeeevPC_12DataSet();
  829. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  830. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  831. any1.MinOccurs = new decimal(0);
  832. any1.MaxOccurs = decimal.MaxValue;
  833. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  834. sequence.Items.Add(any1);
  835. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  836. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  837. any2.MinOccurs = new decimal(1);
  838. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  839. sequence.Items.Add(any2);
  840. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  841. attribute1.Name = "namespace";
  842. attribute1.FixedValue = ds.Namespace;
  843. type.Attributes.Add(attribute1);
  844. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  845. attribute2.Name = "tableTypeName";
  846. attribute2.FixedValue = "БлокПитанияDataTable";
  847. type.Attributes.Add(attribute2);
  848. type.Particle = sequence;
  849. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  850. if (xs.Contains(dsSchema.TargetNamespace)) {
  851. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  852. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  853. try {
  854. global::System.Xml.Schema.XmlSchema schema = null;
  855. dsSchema.Write(s1);
  856. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  857. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  858. s2.SetLength(0);
  859. schema.Write(s2);
  860. if ((s1.Length == s2.Length)) {
  861. s1.Position = 0;
  862. s2.Position = 0;
  863. for (; ((s1.Position != s1.Length)
  864. && (s1.ReadByte() == s2.ReadByte())); ) {
  865. ;
  866. }
  867. if ((s1.Position == s1.Length)) {
  868. return type;
  869. }
  870. }
  871. }
  872. }
  873. finally {
  874. if ((s1 != null)) {
  875. s1.Close();
  876. }
  877. if ((s2 != null)) {
  878. s2.Close();
  879. }
  880. }
  881. }
  882. xs.Add(dsSchema);
  883. return type;
  884. }
  885. }
  886. /// <summary>
  887. ///Represents the strongly named DataTable class.
  888. ///</summary>
  889. [global::System.Serializable()]
  890. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  891. public partial class ВидеокартыDataTable : global::System.Data.TypedTableBase<ВидеокартыRow> {
  892. private global::System.Data.DataColumn columnНазвание;
  893. private global::System.Data.DataColumn columnЦена;
  894. private global::System.Data.DataColumn columnКоличество;
  895. private global::System.Data.DataColumn columnКодВидеокарты;
  896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  898. public ВидеокартыDataTable() {
  899. this.TableName = "Видеокарты";
  900. this.BeginInit();
  901. this.InitClass();
  902. this.EndInit();
  903. }
  904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  906. internal ВидеокартыDataTable(global::System.Data.DataTable table) {
  907. this.TableName = table.TableName;
  908. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  909. this.CaseSensitive = table.CaseSensitive;
  910. }
  911. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  912. this.Locale = table.Locale;
  913. }
  914. if ((table.Namespace != table.DataSet.Namespace)) {
  915. this.Namespace = table.Namespace;
  916. }
  917. this.Prefix = table.Prefix;
  918. this.MinimumCapacity = table.MinimumCapacity;
  919. }
  920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  922. protected ВидеокартыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  923. base(info, context) {
  924. this.InitVars();
  925. }
  926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  928. public global::System.Data.DataColumn НазваниеColumn {
  929. get {
  930. return this.columnНазвание;
  931. }
  932. }
  933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  935. public global::System.Data.DataColumn ЦенаColumn {
  936. get {
  937. return this.columnЦена;
  938. }
  939. }
  940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  942. public global::System.Data.DataColumn КоличествоColumn {
  943. get {
  944. return this.columnКоличество;
  945. }
  946. }
  947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  949. public global::System.Data.DataColumn КодВидеокартыColumn {
  950. get {
  951. return this.columnКодВидеокарты;
  952. }
  953. }
  954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  956. [global::System.ComponentModel.Browsable(false)]
  957. public int Count {
  958. get {
  959. return this.Rows.Count;
  960. }
  961. }
  962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  964. public ВидеокартыRow this[int index] {
  965. get {
  966. return ((ВидеокартыRow)(this.Rows[index]));
  967. }
  968. }
  969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  970. public event ВидеокартыRowChangeEventHandler ВидеокартыRowChanging;
  971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  972. public event ВидеокартыRowChangeEventHandler ВидеокартыRowChanged;
  973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  974. public event ВидеокартыRowChangeEventHandler ВидеокартыRowDeleting;
  975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  976. public event ВидеокартыRowChangeEventHandler ВидеокартыRowDeleted;
  977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  979. public void AddВидеокартыRow(ВидеокартыRow row) {
  980. this.Rows.Add(row);
  981. }
  982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  984. public ВидеокартыRow AddВидеокартыRow(string Название, decimal Цена, string Количество, int КодВидеокарты) {
  985. ВидеокартыRow rowВидеокартыRow = ((ВидеокартыRow)(this.NewRow()));
  986. object[] columnValuesArray = new object[] {
  987. Название,
  988. Цена,
  989. Количество,
  990. КодВидеокарты};
  991. rowВидеокартыRow.ItemArray = columnValuesArray;
  992. this.Rows.Add(rowВидеокартыRow);
  993. return rowВидеокартыRow;
  994. }
  995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  997. public ВидеокартыRow FindByКодВидеокарты(int КодВидеокарты) {
  998. return ((ВидеокартыRow)(this.Rows.Find(new object[] {
  999. КодВидеокарты})));
  1000. }
  1001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1003. public override global::System.Data.DataTable Clone() {
  1004. ВидеокартыDataTable cln = ((ВидеокартыDataTable)(base.Clone()));
  1005. cln.InitVars();
  1006. return cln;
  1007. }
  1008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1010. protected override global::System.Data.DataTable CreateInstance() {
  1011. return new ВидеокартыDataTable();
  1012. }
  1013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1015. internal void InitVars() {
  1016. this.columnНазвание = base.Columns["Название"];
  1017. this.columnЦена = base.Columns["Цена"];
  1018. this.columnКоличество = base.Columns["Количество"];
  1019. this.columnКодВидеокарты = base.Columns["КодВидеокарты"];
  1020. }
  1021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1023. private void InitClass() {
  1024. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  1025. base.Columns.Add(this.columnНазвание);
  1026. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  1027. base.Columns.Add(this.columnЦена);
  1028. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(string), null, global::System.Data.MappingType.Element);
  1029. base.Columns.Add(this.columnКоличество);
  1030. this.columnКодВидеокарты = new global::System.Data.DataColumn("КодВидеокарты", typeof(int), null, global::System.Data.MappingType.Element);
  1031. base.Columns.Add(this.columnКодВидеокарты);
  1032. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1033. this.columnКодВидеокарты}, true));
  1034. this.columnНазвание.MaxLength = 50;
  1035. this.columnКоличество.MaxLength = 50;
  1036. this.columnКодВидеокарты.AllowDBNull = false;
  1037. this.columnКодВидеокарты.Unique = true;
  1038. }
  1039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1041. public ВидеокартыRow NewВидеокартыRow() {
  1042. return ((ВидеокартыRow)(this.NewRow()));
  1043. }
  1044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1046. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1047. return new ВидеокартыRow(builder);
  1048. }
  1049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1051. protected override global::System.Type GetRowType() {
  1052. return typeof(ВидеокартыRow);
  1053. }
  1054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1056. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1057. base.OnRowChanged(e);
  1058. if ((this.ВидеокартыRowChanged != null)) {
  1059. this.ВидеокартыRowChanged(this, new ВидеокартыRowChangeEvent(((ВидеокартыRow)(e.Row)), e.Action));
  1060. }
  1061. }
  1062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1064. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1065. base.OnRowChanging(e);
  1066. if ((this.ВидеокартыRowChanging != null)) {
  1067. this.ВидеокартыRowChanging(this, new ВидеокартыRowChangeEvent(((ВидеокартыRow)(e.Row)), e.Action));
  1068. }
  1069. }
  1070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1072. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1073. base.OnRowDeleted(e);
  1074. if ((this.ВидеокартыRowDeleted != null)) {
  1075. this.ВидеокартыRowDeleted(this, new ВидеокартыRowChangeEvent(((ВидеокартыRow)(e.Row)), e.Action));
  1076. }
  1077. }
  1078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1080. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1081. base.OnRowDeleting(e);
  1082. if ((this.ВидеокартыRowDeleting != null)) {
  1083. this.ВидеокартыRowDeleting(this, new ВидеокартыRowChangeEvent(((ВидеокартыRow)(e.Row)), e.Action));
  1084. }
  1085. }
  1086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1088. public void RemoveВидеокартыRow(ВидеокартыRow row) {
  1089. this.Rows.Remove(row);
  1090. }
  1091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1093. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1094. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1095. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1096. KhozeeevPC_12DataSet ds = new KhozeeevPC_12DataSet();
  1097. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1098. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1099. any1.MinOccurs = new decimal(0);
  1100. any1.MaxOccurs = decimal.MaxValue;
  1101. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1102. sequence.Items.Add(any1);
  1103. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1104. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1105. any2.MinOccurs = new decimal(1);
  1106. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1107. sequence.Items.Add(any2);
  1108. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1109. attribute1.Name = "namespace";
  1110. attribute1.FixedValue = ds.Namespace;
  1111. type.Attributes.Add(attribute1);
  1112. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1113. attribute2.Name = "tableTypeName";
  1114. attribute2.FixedValue = "ВидеокартыDataTable";
  1115. type.Attributes.Add(attribute2);
  1116. type.Particle = sequence;
  1117. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1118. if (xs.Contains(dsSchema.TargetNamespace)) {
  1119. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1120. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1121. try {
  1122. global::System.Xml.Schema.XmlSchema schema = null;
  1123. dsSchema.Write(s1);
  1124. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1125. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1126. s2.SetLength(0);
  1127. schema.Write(s2);
  1128. if ((s1.Length == s2.Length)) {
  1129. s1.Position = 0;
  1130. s2.Position = 0;
  1131. for (; ((s1.Position != s1.Length)
  1132. && (s1.ReadByte() == s2.ReadByte())); ) {
  1133. ;
  1134. }
  1135. if ((s1.Position == s1.Length)) {
  1136. return type;
  1137. }
  1138. }
  1139. }
  1140. }
  1141. finally {
  1142. if ((s1 != null)) {
  1143. s1.Close();
  1144. }
  1145. if ((s2 != null)) {
  1146. s2.Close();
  1147. }
  1148. }
  1149. }
  1150. xs.Add(dsSchema);
  1151. return type;
  1152. }
  1153. }
  1154. /// <summary>
  1155. ///Represents the strongly named DataTable class.
  1156. ///</summary>
  1157. [global::System.Serializable()]
  1158. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1159. public partial class ВодянаяСистемаОхлажденияDataTable : global::System.Data.TypedTableBase<ВодянаяСистемаОхлажденияRow> {
  1160. private global::System.Data.DataColumn columnНазвание;
  1161. private global::System.Data.DataColumn columnКодВодянойСистемы;
  1162. private global::System.Data.DataColumn columnЦена;
  1163. private global::System.Data.DataColumn columnКоличество;
  1164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1166. public ВодянаяСистемаОхлажденияDataTable() {
  1167. this.TableName = "ВодянаяСистемаОхлаждения";
  1168. this.BeginInit();
  1169. this.InitClass();
  1170. this.EndInit();
  1171. }
  1172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1174. internal ВодянаяСистемаОхлажденияDataTable(global::System.Data.DataTable table) {
  1175. this.TableName = table.TableName;
  1176. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1177. this.CaseSensitive = table.CaseSensitive;
  1178. }
  1179. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1180. this.Locale = table.Locale;
  1181. }
  1182. if ((table.Namespace != table.DataSet.Namespace)) {
  1183. this.Namespace = table.Namespace;
  1184. }
  1185. this.Prefix = table.Prefix;
  1186. this.MinimumCapacity = table.MinimumCapacity;
  1187. }
  1188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1190. protected ВодянаяСистемаОхлажденияDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1191. base(info, context) {
  1192. this.InitVars();
  1193. }
  1194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1196. public global::System.Data.DataColumn НазваниеColumn {
  1197. get {
  1198. return this.columnНазвание;
  1199. }
  1200. }
  1201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1203. public global::System.Data.DataColumn КодВодянойСистемыColumn {
  1204. get {
  1205. return this.columnКодВодянойСистемы;
  1206. }
  1207. }
  1208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1210. public global::System.Data.DataColumn ЦенаColumn {
  1211. get {
  1212. return this.columnЦена;
  1213. }
  1214. }
  1215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1217. public global::System.Data.DataColumn КоличествоColumn {
  1218. get {
  1219. return this.columnКоличество;
  1220. }
  1221. }
  1222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1224. [global::System.ComponentModel.Browsable(false)]
  1225. public int Count {
  1226. get {
  1227. return this.Rows.Count;
  1228. }
  1229. }
  1230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1232. public ВодянаяСистемаОхлажденияRow this[int index] {
  1233. get {
  1234. return ((ВодянаяСистемаОхлажденияRow)(this.Rows[index]));
  1235. }
  1236. }
  1237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1238. public event ВодянаяСистемаОхлажденияRowChangeEventHandler ВодянаяСистемаОхлажденияRowChanging;
  1239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1240. public event ВодянаяСистемаОхлажденияRowChangeEventHandler ВодянаяСистемаОхлажденияRowChanged;
  1241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1242. public event ВодянаяСистемаОхлажденияRowChangeEventHandler ВодянаяСистемаОхлажденияRowDeleting;
  1243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1244. public event ВодянаяСистемаОхлажденияRowChangeEventHandler ВодянаяСистемаОхлажденияRowDeleted;
  1245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1247. public void AddВодянаяСистемаОхлажденияRow(ВодянаяСистемаОхлажденияRow row) {
  1248. this.Rows.Add(row);
  1249. }
  1250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1252. public ВодянаяСистемаОхлажденияRow AddВодянаяСистемаОхлажденияRow(string Название, int КодВодянойСистемы, decimal Цена, int Количество) {
  1253. ВодянаяСистемаОхлажденияRow rowВодянаяСистемаОхлажденияRow = ((ВодянаяСистемаОхлажденияRow)(this.NewRow()));
  1254. object[] columnValuesArray = new object[] {
  1255. Название,
  1256. КодВодянойСистемы,
  1257. Цена,
  1258. Количество};
  1259. rowВодянаяСистемаОхлажденияRow.ItemArray = columnValuesArray;
  1260. this.Rows.Add(rowВодянаяСистемаОхлажденияRow);
  1261. return rowВодянаяСистемаОхлажденияRow;
  1262. }
  1263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1265. public ВодянаяСистемаОхлажденияRow FindByКодВодянойСистемы(int КодВодянойСистемы) {
  1266. return ((ВодянаяСистемаОхлажденияRow)(this.Rows.Find(new object[] {
  1267. КодВодянойСистемы})));
  1268. }
  1269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1271. public override global::System.Data.DataTable Clone() {
  1272. ВодянаяСистемаОхлажденияDataTable cln = ((ВодянаяСистемаОхлажденияDataTable)(base.Clone()));
  1273. cln.InitVars();
  1274. return cln;
  1275. }
  1276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1278. protected override global::System.Data.DataTable CreateInstance() {
  1279. return new ВодянаяСистемаОхлажденияDataTable();
  1280. }
  1281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1283. internal void InitVars() {
  1284. this.columnНазвание = base.Columns["Название"];
  1285. this.columnКодВодянойСистемы = base.Columns["КодВодянойСистемы"];
  1286. this.columnЦена = base.Columns["Цена"];
  1287. this.columnКоличество = base.Columns["Количество"];
  1288. }
  1289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1291. private void InitClass() {
  1292. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  1293. base.Columns.Add(this.columnНазвание);
  1294. this.columnКодВодянойСистемы = new global::System.Data.DataColumn("КодВодянойСистемы", typeof(int), null, global::System.Data.MappingType.Element);
  1295. base.Columns.Add(this.columnКодВодянойСистемы);
  1296. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  1297. base.Columns.Add(this.columnЦена);
  1298. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  1299. base.Columns.Add(this.columnКоличество);
  1300. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1301. this.columnКодВодянойСистемы}, true));
  1302. this.columnНазвание.MaxLength = 50;
  1303. this.columnКодВодянойСистемы.AllowDBNull = false;
  1304. this.columnКодВодянойСистемы.Unique = true;
  1305. }
  1306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1308. public ВодянаяСистемаОхлажденияRow NewВодянаяСистемаОхлажденияRow() {
  1309. return ((ВодянаяСистемаОхлажденияRow)(this.NewRow()));
  1310. }
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1313. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1314. return new ВодянаяСистемаОхлажденияRow(builder);
  1315. }
  1316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1318. protected override global::System.Type GetRowType() {
  1319. return typeof(ВодянаяСистемаОхлажденияRow);
  1320. }
  1321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1323. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1324. base.OnRowChanged(e);
  1325. if ((this.ВодянаяСистемаОхлажденияRowChanged != null)) {
  1326. this.ВодянаяСистемаОхлажденияRowChanged(this, new ВодянаяСистемаОхлажденияRowChangeEvent(((ВодянаяСистемаОхлажденияRow)(e.Row)), e.Action));
  1327. }
  1328. }
  1329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1331. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1332. base.OnRowChanging(e);
  1333. if ((this.ВодянаяСистемаОхлажденияRowChanging != null)) {
  1334. this.ВодянаяСистемаОхлажденияRowChanging(this, new ВодянаяСистемаОхлажденияRowChangeEvent(((ВодянаяСистемаОхлажденияRow)(e.Row)), e.Action));
  1335. }
  1336. }
  1337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1339. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1340. base.OnRowDeleted(e);
  1341. if ((this.ВодянаяСистемаОхлажденияRowDeleted != null)) {
  1342. this.ВодянаяСистемаОхлажденияRowDeleted(this, new ВодянаяСистемаОхлажденияRowChangeEvent(((ВодянаяСистемаОхлажденияRow)(e.Row)), e.Action));
  1343. }
  1344. }
  1345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1347. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1348. base.OnRowDeleting(e);
  1349. if ((this.ВодянаяСистемаОхлажденияRowDeleting != null)) {
  1350. this.ВодянаяСистемаОхлажденияRowDeleting(this, new ВодянаяСистемаОхлажденияRowChangeEvent(((ВодянаяСистемаОхлажденияRow)(e.Row)), e.Action));
  1351. }
  1352. }
  1353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1355. public void RemoveВодянаяСистемаОхлажденияRow(ВодянаяСистемаОхлажденияRow row) {
  1356. this.Rows.Remove(row);
  1357. }
  1358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1360. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1361. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1362. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1363. KhozeeevPC_12DataSet ds = new KhozeeevPC_12DataSet();
  1364. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1365. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1366. any1.MinOccurs = new decimal(0);
  1367. any1.MaxOccurs = decimal.MaxValue;
  1368. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1369. sequence.Items.Add(any1);
  1370. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1371. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1372. any2.MinOccurs = new decimal(1);
  1373. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1374. sequence.Items.Add(any2);
  1375. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1376. attribute1.Name = "namespace";
  1377. attribute1.FixedValue = ds.Namespace;
  1378. type.Attributes.Add(attribute1);
  1379. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1380. attribute2.Name = "tableTypeName";
  1381. attribute2.FixedValue = "ВодянаяСистемаОхлажденияDataTable";
  1382. type.Attributes.Add(attribute2);
  1383. type.Particle = sequence;
  1384. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1385. if (xs.Contains(dsSchema.TargetNamespace)) {
  1386. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1387. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1388. try {
  1389. global::System.Xml.Schema.XmlSchema schema = null;
  1390. dsSchema.Write(s1);
  1391. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1392. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1393. s2.SetLength(0);
  1394. schema.Write(s2);
  1395. if ((s1.Length == s2.Length)) {
  1396. s1.Position = 0;
  1397. s2.Position = 0;
  1398. for (; ((s1.Position != s1.Length)
  1399. && (s1.ReadByte() == s2.ReadByte())); ) {
  1400. ;
  1401. }
  1402. if ((s1.Position == s1.Length)) {
  1403. return type;
  1404. }
  1405. }
  1406. }
  1407. }
  1408. finally {
  1409. if ((s1 != null)) {
  1410. s1.Close();
  1411. }
  1412. if ((s2 != null)) {
  1413. s2.Close();
  1414. }
  1415. }
  1416. }
  1417. xs.Add(dsSchema);
  1418. return type;
  1419. }
  1420. }
  1421. /// <summary>
  1422. ///Represents the strongly named DataTable class.
  1423. ///</summary>
  1424. [global::System.Serializable()]
  1425. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1426. public partial class ГотоваяСборкаDataTable : global::System.Data.TypedTableBase<ГотоваяСборкаRow> {
  1427. private global::System.Data.DataColumn columnКодСборки;
  1428. private global::System.Data.DataColumn columnКодБлокаПитания;
  1429. private global::System.Data.DataColumn columnКодВидеокарты;
  1430. private global::System.Data.DataColumn columnКодВодянойСистемы;
  1431. private global::System.Data.DataColumn columnКодЖесткогоДиска;
  1432. private global::System.Data.DataColumn columnКодКулера;
  1433. private global::System.Data.DataColumn columnКодМатеринскойПлаты;
  1434. private global::System.Data.DataColumn columnКодОперативнойПамяти;
  1435. private global::System.Data.DataColumn columnКодПроцессора;
  1436. private global::System.Data.DataColumn columnКодССД;
  1437. private global::System.Data.DataColumn columnСотрудник;
  1438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1440. public ГотоваяСборкаDataTable() {
  1441. this.TableName = "ГотоваяСборка";
  1442. this.BeginInit();
  1443. this.InitClass();
  1444. this.EndInit();
  1445. }
  1446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1448. internal ГотоваяСборкаDataTable(global::System.Data.DataTable table) {
  1449. this.TableName = table.TableName;
  1450. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1451. this.CaseSensitive = table.CaseSensitive;
  1452. }
  1453. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1454. this.Locale = table.Locale;
  1455. }
  1456. if ((table.Namespace != table.DataSet.Namespace)) {
  1457. this.Namespace = table.Namespace;
  1458. }
  1459. this.Prefix = table.Prefix;
  1460. this.MinimumCapacity = table.MinimumCapacity;
  1461. }
  1462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1464. protected ГотоваяСборкаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1465. base(info, context) {
  1466. this.InitVars();
  1467. }
  1468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1470. public global::System.Data.DataColumn КодСборкиColumn {
  1471. get {
  1472. return this.columnКодСборки;
  1473. }
  1474. }
  1475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1477. public global::System.Data.DataColumn КодБлокаПитанияColumn {
  1478. get {
  1479. return this.columnКодБлокаПитания;
  1480. }
  1481. }
  1482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1484. public global::System.Data.DataColumn КодВидеокартыColumn {
  1485. get {
  1486. return this.columnКодВидеокарты;
  1487. }
  1488. }
  1489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1491. public global::System.Data.DataColumn КодВодянойСистемыColumn {
  1492. get {
  1493. return this.columnКодВодянойСистемы;
  1494. }
  1495. }
  1496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1498. public global::System.Data.DataColumn КодЖесткогоДискаColumn {
  1499. get {
  1500. return this.columnКодЖесткогоДиска;
  1501. }
  1502. }
  1503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1505. public global::System.Data.DataColumn КодКулераColumn {
  1506. get {
  1507. return this.columnКодКулера;
  1508. }
  1509. }
  1510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1512. public global::System.Data.DataColumn КодМатеринскойПлатыColumn {
  1513. get {
  1514. return this.columnКодМатеринскойПлаты;
  1515. }
  1516. }
  1517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1519. public global::System.Data.DataColumn КодОперативнойПамятиColumn {
  1520. get {
  1521. return this.columnКодОперативнойПамяти;
  1522. }
  1523. }
  1524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1526. public global::System.Data.DataColumn КодПроцессораColumn {
  1527. get {
  1528. return this.columnКодПроцессора;
  1529. }
  1530. }
  1531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1533. public global::System.Data.DataColumn КодССДColumn {
  1534. get {
  1535. return this.columnКодССД;
  1536. }
  1537. }
  1538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1540. public global::System.Data.DataColumn СотрудникColumn {
  1541. get {
  1542. return this.columnСотрудник;
  1543. }
  1544. }
  1545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1547. [global::System.ComponentModel.Browsable(false)]
  1548. public int Count {
  1549. get {
  1550. return this.Rows.Count;
  1551. }
  1552. }
  1553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1555. public ГотоваяСборкаRow this[int index] {
  1556. get {
  1557. return ((ГотоваяСборкаRow)(this.Rows[index]));
  1558. }
  1559. }
  1560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1561. public event ГотоваяСборкаRowChangeEventHandler ГотоваяСборкаRowChanging;
  1562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1563. public event ГотоваяСборкаRowChangeEventHandler ГотоваяСборкаRowChanged;
  1564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1565. public event ГотоваяСборкаRowChangeEventHandler ГотоваяСборкаRowDeleting;
  1566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1567. public event ГотоваяСборкаRowChangeEventHandler ГотоваяСборкаRowDeleted;
  1568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1570. public void AddГотоваяСборкаRow(ГотоваяСборкаRow row) {
  1571. this.Rows.Add(row);
  1572. }
  1573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1575. public ГотоваяСборкаRow AddГотоваяСборкаRow(int КодСборки, БлокПитанияRow parentБлокПитанияRowByFK_ГотоваяСборка_БлокПитания, ВидеокартыRow parentВидеокартыRowByFK_ГотоваяСборка_Видеокарты, ВодянаяСистемаОхлажденияRow parentВодянаяСистемаОхлажденияRowByFK_ГотоваяСборка_ВодянаяСистемаОхлаждения, ЖесткийДискRow parentЖесткийДискRowByFK_ГотоваяСборка_ЖесткийДиск, КулерыRow parentКулерыRowByFK_ГотоваяСборка_Кулеры, МатеринскаяПлатаRow parentМатеринскаяПлатаRowByFK_ГотоваяСборка_МатеринскаяПлата, ОперативнаяПамятьRow parentОперативнаяПамятьRowByFK_ГотоваяСборка_ОперативнаяПамять, ПроцессорыRow parentПроцессорыRowByFK_ГотоваяСборка_Процессоры, ССДRow parentССДRowByFK_ГотоваяСборка_ССД, ПользователиRow parentПользователиRowByFK_ГотоваяСборка_Пользователи) {
  1576. ГотоваяСборкаRow rowГотоваяСборкаRow = ((ГотоваяСборкаRow)(this.NewRow()));
  1577. object[] columnValuesArray = new object[] {
  1578. КодСборки,
  1579. null,
  1580. null,
  1581. null,
  1582. null,
  1583. null,
  1584. null,
  1585. null,
  1586. null,
  1587. null,
  1588. null};
  1589. if ((parentБлокПитанияRowByFK_ГотоваяСборка_БлокПитания != null)) {
  1590. columnValuesArray[1] = parentБлокПитанияRowByFK_ГотоваяСборка_БлокПитания[3];
  1591. }
  1592. if ((parentВидеокартыRowByFK_ГотоваяСборка_Видеокарты != null)) {
  1593. columnValuesArray[2] = parentВидеокартыRowByFK_ГотоваяСборка_Видеокарты[3];
  1594. }
  1595. if ((parentВодянаяСистемаОхлажденияRowByFK_ГотоваяСборка_ВодянаяСистемаОхлаждения != null)) {
  1596. columnValuesArray[3] = parentВодянаяСистемаОхлажденияRowByFK_ГотоваяСборка_ВодянаяСистемаОхлаждения[1];
  1597. }
  1598. if ((parentЖесткийДискRowByFK_ГотоваяСборка_ЖесткийДиск != null)) {
  1599. columnValuesArray[4] = parentЖесткийДискRowByFK_ГотоваяСборка_ЖесткийДиск[3];
  1600. }
  1601. if ((parentКулерыRowByFK_ГотоваяСборка_Кулеры != null)) {
  1602. columnValuesArray[5] = parentКулерыRowByFK_ГотоваяСборка_Кулеры[3];
  1603. }
  1604. if ((parentМатеринскаяПлатаRowByFK_ГотоваяСборка_МатеринскаяПлата != null)) {
  1605. columnValuesArray[6] = parentМатеринскаяПлатаRowByFK_ГотоваяСборка_МатеринскаяПлата[3];
  1606. }
  1607. if ((parentОперативнаяПамятьRowByFK_ГотоваяСборка_ОперативнаяПамять != null)) {
  1608. columnValuesArray[7] = parentОперативнаяПамятьRowByFK_ГотоваяСборка_ОперативнаяПамять[3];
  1609. }
  1610. if ((parentПроцессорыRowByFK_ГотоваяСборка_Процессоры != null)) {
  1611. columnValuesArray[8] = parentПроцессорыRowByFK_ГотоваяСборка_Процессоры[3];
  1612. }
  1613. if ((parentССДRowByFK_ГотоваяСборка_ССД != null)) {
  1614. columnValuesArray[9] = parentССДRowByFK_ГотоваяСборка_ССД[3];
  1615. }
  1616. if ((parentПользователиRowByFK_ГотоваяСборка_Пользователи != null)) {
  1617. columnValuesArray[10] = parentПользователиRowByFK_ГотоваяСборка_Пользователи[2];
  1618. }
  1619. rowГотоваяСборкаRow.ItemArray = columnValuesArray;
  1620. this.Rows.Add(rowГотоваяСборкаRow);
  1621. return rowГотоваяСборкаRow;
  1622. }
  1623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1625. public ГотоваяСборкаRow FindByКодСборки(int КодСборки) {
  1626. return ((ГотоваяСборкаRow)(this.Rows.Find(new object[] {
  1627. КодСборки})));
  1628. }
  1629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1631. public override global::System.Data.DataTable Clone() {
  1632. ГотоваяСборкаDataTable cln = ((ГотоваяСборкаDataTable)(base.Clone()));
  1633. cln.InitVars();
  1634. return cln;
  1635. }
  1636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1638. protected override global::System.Data.DataTable CreateInstance() {
  1639. return new ГотоваяСборкаDataTable();
  1640. }
  1641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1643. internal void InitVars() {
  1644. this.columnКодСборки = base.Columns["КодСборки"];
  1645. this.columnКодБлокаПитания = base.Columns["КодБлокаПитания"];
  1646. this.columnКодВидеокарты = base.Columns["КодВидеокарты"];
  1647. this.columnКодВодянойСистемы = base.Columns["КодВодянойСистемы"];
  1648. this.columnКодЖесткогоДиска = base.Columns["КодЖесткогоДиска"];
  1649. this.columnКодКулера = base.Columns["КодКулера"];
  1650. this.columnКодМатеринскойПлаты = base.Columns["КодМатеринскойПлаты"];
  1651. this.columnКодОперативнойПамяти = base.Columns["КодОперативнойПамяти"];
  1652. this.columnКодПроцессора = base.Columns["КодПроцессора"];
  1653. this.columnКодССД = base.Columns["КодССД"];
  1654. this.columnСотрудник = base.Columns["Сотрудник"];
  1655. }
  1656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1658. private void InitClass() {
  1659. this.columnКодСборки = new global::System.Data.DataColumn("КодСборки", typeof(int), null, global::System.Data.MappingType.Element);
  1660. base.Columns.Add(this.columnКодСборки);
  1661. this.columnКодБлокаПитания = new global::System.Data.DataColumn("КодБлокаПитания", typeof(int), null, global::System.Data.MappingType.Element);
  1662. base.Columns.Add(this.columnКодБлокаПитания);
  1663. this.columnКодВидеокарты = new global::System.Data.DataColumn("КодВидеокарты", typeof(int), null, global::System.Data.MappingType.Element);
  1664. base.Columns.Add(this.columnКодВидеокарты);
  1665. this.columnКодВодянойСистемы = new global::System.Data.DataColumn("КодВодянойСистемы", typeof(int), null, global::System.Data.MappingType.Element);
  1666. base.Columns.Add(this.columnКодВодянойСистемы);
  1667. this.columnКодЖесткогоДиска = new global::System.Data.DataColumn("КодЖесткогоДиска", typeof(int), null, global::System.Data.MappingType.Element);
  1668. base.Columns.Add(this.columnКодЖесткогоДиска);
  1669. this.columnКодКулера = new global::System.Data.DataColumn("КодКулера", typeof(int), null, global::System.Data.MappingType.Element);
  1670. base.Columns.Add(this.columnКодКулера);
  1671. this.columnКодМатеринскойПлаты = new global::System.Data.DataColumn("КодМатеринскойПлаты", typeof(int), null, global::System.Data.MappingType.Element);
  1672. base.Columns.Add(this.columnКодМатеринскойПлаты);
  1673. this.columnКодОперативнойПамяти = new global::System.Data.DataColumn("КодОперативнойПамяти", typeof(int), null, global::System.Data.MappingType.Element);
  1674. base.Columns.Add(this.columnКодОперативнойПамяти);
  1675. this.columnКодПроцессора = new global::System.Data.DataColumn("КодПроцессора", typeof(int), null, global::System.Data.MappingType.Element);
  1676. base.Columns.Add(this.columnКодПроцессора);
  1677. this.columnКодССД = new global::System.Data.DataColumn("КодССД", typeof(int), null, global::System.Data.MappingType.Element);
  1678. base.Columns.Add(this.columnКодССД);
  1679. this.columnСотрудник = new global::System.Data.DataColumn("Сотрудник", typeof(int), null, global::System.Data.MappingType.Element);
  1680. base.Columns.Add(this.columnСотрудник);
  1681. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1682. this.columnКодСборки}, true));
  1683. this.columnКодСборки.AllowDBNull = false;
  1684. this.columnКодСборки.Unique = true;
  1685. }
  1686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1688. public ГотоваяСборкаRow NewГотоваяСборкаRow() {
  1689. return ((ГотоваяСборкаRow)(this.NewRow()));
  1690. }
  1691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1693. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1694. return new ГотоваяСборкаRow(builder);
  1695. }
  1696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1698. protected override global::System.Type GetRowType() {
  1699. return typeof(ГотоваяСборкаRow);
  1700. }
  1701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1703. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1704. base.OnRowChanged(e);
  1705. if ((this.ГотоваяСборкаRowChanged != null)) {
  1706. this.ГотоваяСборкаRowChanged(this, new ГотоваяСборкаRowChangeEvent(((ГотоваяСборкаRow)(e.Row)), e.Action));
  1707. }
  1708. }
  1709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1711. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1712. base.OnRowChanging(e);
  1713. if ((this.ГотоваяСборкаRowChanging != null)) {
  1714. this.ГотоваяСборкаRowChanging(this, new ГотоваяСборкаRowChangeEvent(((ГотоваяСборкаRow)(e.Row)), e.Action));
  1715. }
  1716. }
  1717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1719. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1720. base.OnRowDeleted(e);
  1721. if ((this.ГотоваяСборкаRowDeleted != null)) {
  1722. this.ГотоваяСборкаRowDeleted(this, new ГотоваяСборкаRowChangeEvent(((ГотоваяСборкаRow)(e.Row)), e.Action));
  1723. }
  1724. }
  1725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1727. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1728. base.OnRowDeleting(e);
  1729. if ((this.ГотоваяСборкаRowDeleting != null)) {
  1730. this.ГотоваяСборкаRowDeleting(this, new ГотоваяСборкаRowChangeEvent(((ГотоваяСборкаRow)(e.Row)), e.Action));
  1731. }
  1732. }
  1733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1735. public void RemoveГотоваяСборкаRow(ГотоваяСборкаRow row) {
  1736. this.Rows.Remove(row);
  1737. }
  1738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1740. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1741. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1742. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1743. KhozeeevPC_12DataSet ds = new KhozeeevPC_12DataSet();
  1744. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1745. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1746. any1.MinOccurs = new decimal(0);
  1747. any1.MaxOccurs = decimal.MaxValue;
  1748. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1749. sequence.Items.Add(any1);
  1750. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1751. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1752. any2.MinOccurs = new decimal(1);
  1753. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1754. sequence.Items.Add(any2);
  1755. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1756. attribute1.Name = "namespace";
  1757. attribute1.FixedValue = ds.Namespace;
  1758. type.Attributes.Add(attribute1);
  1759. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1760. attribute2.Name = "tableTypeName";
  1761. attribute2.FixedValue = "ГотоваяСборкаDataTable";
  1762. type.Attributes.Add(attribute2);
  1763. type.Particle = sequence;
  1764. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1765. if (xs.Contains(dsSchema.TargetNamespace)) {
  1766. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1767. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1768. try {
  1769. global::System.Xml.Schema.XmlSchema schema = null;
  1770. dsSchema.Write(s1);
  1771. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1772. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1773. s2.SetLength(0);
  1774. schema.Write(s2);
  1775. if ((s1.Length == s2.Length)) {
  1776. s1.Position = 0;
  1777. s2.Position = 0;
  1778. for (; ((s1.Position != s1.Length)
  1779. && (s1.ReadByte() == s2.ReadByte())); ) {
  1780. ;
  1781. }
  1782. if ((s1.Position == s1.Length)) {
  1783. return type;
  1784. }
  1785. }
  1786. }
  1787. }
  1788. finally {
  1789. if ((s1 != null)) {
  1790. s1.Close();
  1791. }
  1792. if ((s2 != null)) {
  1793. s2.Close();
  1794. }
  1795. }
  1796. }
  1797. xs.Add(dsSchema);
  1798. return type;
  1799. }
  1800. }
  1801. /// <summary>
  1802. ///Represents the strongly named DataTable class.
  1803. ///</summary>
  1804. [global::System.Serializable()]
  1805. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1806. public partial class ЖесткийДискDataTable : global::System.Data.TypedTableBase<ЖесткийДискRow> {
  1807. private global::System.Data.DataColumn columnНазвание;
  1808. private global::System.Data.DataColumn columnКоличество;
  1809. private global::System.Data.DataColumn columnЦена;
  1810. private global::System.Data.DataColumn columnКодЖесткогоДиска;
  1811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1813. public ЖесткийДискDataTable() {
  1814. this.TableName = "ЖесткийДиск";
  1815. this.BeginInit();
  1816. this.InitClass();
  1817. this.EndInit();
  1818. }
  1819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1821. internal ЖесткийДискDataTable(global::System.Data.DataTable table) {
  1822. this.TableName = table.TableName;
  1823. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1824. this.CaseSensitive = table.CaseSensitive;
  1825. }
  1826. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1827. this.Locale = table.Locale;
  1828. }
  1829. if ((table.Namespace != table.DataSet.Namespace)) {
  1830. this.Namespace = table.Namespace;
  1831. }
  1832. this.Prefix = table.Prefix;
  1833. this.MinimumCapacity = table.MinimumCapacity;
  1834. }
  1835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1837. protected ЖесткийДискDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1838. base(info, context) {
  1839. this.InitVars();
  1840. }
  1841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1843. public global::System.Data.DataColumn НазваниеColumn {
  1844. get {
  1845. return this.columnНазвание;
  1846. }
  1847. }
  1848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1850. public global::System.Data.DataColumn КоличествоColumn {
  1851. get {
  1852. return this.columnКоличество;
  1853. }
  1854. }
  1855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1857. public global::System.Data.DataColumn ЦенаColumn {
  1858. get {
  1859. return this.columnЦена;
  1860. }
  1861. }
  1862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1864. public global::System.Data.DataColumn КодЖесткогоДискаColumn {
  1865. get {
  1866. return this.columnКодЖесткогоДиска;
  1867. }
  1868. }
  1869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1871. [global::System.ComponentModel.Browsable(false)]
  1872. public int Count {
  1873. get {
  1874. return this.Rows.Count;
  1875. }
  1876. }
  1877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1879. public ЖесткийДискRow this[int index] {
  1880. get {
  1881. return ((ЖесткийДискRow)(this.Rows[index]));
  1882. }
  1883. }
  1884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1885. public event ЖесткийДискRowChangeEventHandler ЖесткийДискRowChanging;
  1886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1887. public event ЖесткийДискRowChangeEventHandler ЖесткийДискRowChanged;
  1888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1889. public event ЖесткийДискRowChangeEventHandler ЖесткийДискRowDeleting;
  1890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1891. public event ЖесткийДискRowChangeEventHandler ЖесткийДискRowDeleted;
  1892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1894. public void AddЖесткийДискRow(ЖесткийДискRow row) {
  1895. this.Rows.Add(row);
  1896. }
  1897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1899. public ЖесткийДискRow AddЖесткийДискRow(string Название, int Количество, decimal Цена, int КодЖесткогоДиска) {
  1900. ЖесткийДискRow rowЖесткийДискRow = ((ЖесткийДискRow)(this.NewRow()));
  1901. object[] columnValuesArray = new object[] {
  1902. Название,
  1903. Количество,
  1904. Цена,
  1905. КодЖесткогоДиска};
  1906. rowЖесткийДискRow.ItemArray = columnValuesArray;
  1907. this.Rows.Add(rowЖесткийДискRow);
  1908. return rowЖесткийДискRow;
  1909. }
  1910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1912. public ЖесткийДискRow FindByКодЖесткогоДиска(int КодЖесткогоДиска) {
  1913. return ((ЖесткийДискRow)(this.Rows.Find(new object[] {
  1914. КодЖесткогоДиска})));
  1915. }
  1916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1918. public override global::System.Data.DataTable Clone() {
  1919. ЖесткийДискDataTable cln = ((ЖесткийДискDataTable)(base.Clone()));
  1920. cln.InitVars();
  1921. return cln;
  1922. }
  1923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1925. protected override global::System.Data.DataTable CreateInstance() {
  1926. return new ЖесткийДискDataTable();
  1927. }
  1928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1930. internal void InitVars() {
  1931. this.columnНазвание = base.Columns["Название"];
  1932. this.columnКоличество = base.Columns["Количество"];
  1933. this.columnЦена = base.Columns["Цена"];
  1934. this.columnКодЖесткогоДиска = base.Columns["КодЖесткогоДиска"];
  1935. }
  1936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1938. private void InitClass() {
  1939. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  1940. base.Columns.Add(this.columnНазвание);
  1941. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  1942. base.Columns.Add(this.columnКоличество);
  1943. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  1944. base.Columns.Add(this.columnЦена);
  1945. this.columnКодЖесткогоДиска = new global::System.Data.DataColumn("КодЖесткогоДиска", typeof(int), null, global::System.Data.MappingType.Element);
  1946. base.Columns.Add(this.columnКодЖесткогоДиска);
  1947. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1948. this.columnКодЖесткогоДиска}, true));
  1949. this.columnНазвание.MaxLength = 50;
  1950. this.columnКодЖесткогоДиска.AllowDBNull = false;
  1951. this.columnКодЖесткогоДиска.Unique = true;
  1952. }
  1953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1955. public ЖесткийДискRow NewЖесткийДискRow() {
  1956. return ((ЖесткийДискRow)(this.NewRow()));
  1957. }
  1958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1960. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1961. return new ЖесткийДискRow(builder);
  1962. }
  1963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1965. protected override global::System.Type GetRowType() {
  1966. return typeof(ЖесткийДискRow);
  1967. }
  1968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1970. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1971. base.OnRowChanged(e);
  1972. if ((this.ЖесткийДискRowChanged != null)) {
  1973. this.ЖесткийДискRowChanged(this, new ЖесткийДискRowChangeEvent(((ЖесткийДискRow)(e.Row)), e.Action));
  1974. }
  1975. }
  1976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1978. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1979. base.OnRowChanging(e);
  1980. if ((this.ЖесткийДискRowChanging != null)) {
  1981. this.ЖесткийДискRowChanging(this, new ЖесткийДискRowChangeEvent(((ЖесткийДискRow)(e.Row)), e.Action));
  1982. }
  1983. }
  1984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1986. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1987. base.OnRowDeleted(e);
  1988. if ((this.ЖесткийДискRowDeleted != null)) {
  1989. this.ЖесткийДискRowDeleted(this, new ЖесткийДискRowChangeEvent(((ЖесткийДискRow)(e.Row)), e.Action));
  1990. }
  1991. }
  1992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1994. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1995. base.OnRowDeleting(e);
  1996. if ((this.ЖесткийДискRowDeleting != null)) {
  1997. this.ЖесткийДискRowDeleting(this, new ЖесткийДискRowChangeEvent(((ЖесткийДискRow)(e.Row)), e.Action));
  1998. }
  1999. }
  2000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2002. public void RemoveЖесткийДискRow(ЖесткийДискRow row) {
  2003. this.Rows.Remove(row);
  2004. }
  2005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2007. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2008. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2009. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2010. KhozeeevPC_12DataSet ds = new KhozeeevPC_12DataSet();
  2011. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2012. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2013. any1.MinOccurs = new decimal(0);
  2014. any1.MaxOccurs = decimal.MaxValue;
  2015. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2016. sequence.Items.Add(any1);
  2017. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2018. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2019. any2.MinOccurs = new decimal(1);
  2020. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2021. sequence.Items.Add(any2);
  2022. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2023. attribute1.Name = "namespace";
  2024. attribute1.FixedValue = ds.Namespace;
  2025. type.Attributes.Add(attribute1);
  2026. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2027. attribute2.Name = "tableTypeName";
  2028. attribute2.FixedValue = "ЖесткийДискDataTable";
  2029. type.Attributes.Add(attribute2);
  2030. type.Particle = sequence;
  2031. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2032. if (xs.Contains(dsSchema.TargetNamespace)) {
  2033. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2034. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2035. try {
  2036. global::System.Xml.Schema.XmlSchema schema = null;
  2037. dsSchema.Write(s1);
  2038. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2039. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2040. s2.SetLength(0);
  2041. schema.Write(s2);
  2042. if ((s1.Length == s2.Length)) {
  2043. s1.Position = 0;
  2044. s2.Position = 0;
  2045. for (; ((s1.Position != s1.Length)
  2046. && (s1.ReadByte() == s2.ReadByte())); ) {
  2047. ;
  2048. }
  2049. if ((s1.Position == s1.Length)) {
  2050. return type;
  2051. }
  2052. }
  2053. }
  2054. }
  2055. finally {
  2056. if ((s1 != null)) {
  2057. s1.Close();
  2058. }
  2059. if ((s2 != null)) {
  2060. s2.Close();
  2061. }
  2062. }
  2063. }
  2064. xs.Add(dsSchema);
  2065. return type;
  2066. }
  2067. }
  2068. /// <summary>
  2069. ///Represents the strongly named DataTable class.
  2070. ///</summary>
  2071. [global::System.Serializable()]
  2072. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2073. public partial class КулерыDataTable : global::System.Data.TypedTableBase<КулерыRow> {
  2074. private global::System.Data.DataColumn columnНазвание;
  2075. private global::System.Data.DataColumn columnКоличество;
  2076. private global::System.Data.DataColumn columnЦена;
  2077. private global::System.Data.DataColumn columnКодКулера;
  2078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2080. public КулерыDataTable() {
  2081. this.TableName = "Кулеры";
  2082. this.BeginInit();
  2083. this.InitClass();
  2084. this.EndInit();
  2085. }
  2086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2088. internal КулерыDataTable(global::System.Data.DataTable table) {
  2089. this.TableName = table.TableName;
  2090. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2091. this.CaseSensitive = table.CaseSensitive;
  2092. }
  2093. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2094. this.Locale = table.Locale;
  2095. }
  2096. if ((table.Namespace != table.DataSet.Namespace)) {
  2097. this.Namespace = table.Namespace;
  2098. }
  2099. this.Prefix = table.Prefix;
  2100. this.MinimumCapacity = table.MinimumCapacity;
  2101. }
  2102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2104. protected КулерыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2105. base(info, context) {
  2106. this.InitVars();
  2107. }
  2108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2110. public global::System.Data.DataColumn НазваниеColumn {
  2111. get {
  2112. return this.columnНазвание;
  2113. }
  2114. }
  2115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2117. public global::System.Data.DataColumn КоличествоColumn {
  2118. get {
  2119. return this.columnКоличество;
  2120. }
  2121. }
  2122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2124. public global::System.Data.DataColumn ЦенаColumn {
  2125. get {
  2126. return this.columnЦена;
  2127. }
  2128. }
  2129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2131. public global::System.Data.DataColumn КодКулераColumn {
  2132. get {
  2133. return this.columnКодКулера;
  2134. }
  2135. }
  2136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2138. [global::System.ComponentModel.Browsable(false)]
  2139. public int Count {
  2140. get {
  2141. return this.Rows.Count;
  2142. }
  2143. }
  2144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2146. public КулерыRow this[int index] {
  2147. get {
  2148. return ((КулерыRow)(this.Rows[index]));
  2149. }
  2150. }
  2151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2152. public event КулерыRowChangeEventHandler КулерыRowChanging;
  2153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2154. public event КулерыRowChangeEventHandler КулерыRowChanged;
  2155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2156. public event КулерыRowChangeEventHandler КулерыRowDeleting;
  2157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2158. public event КулерыRowChangeEventHandler КулерыRowDeleted;
  2159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2161. public void AddКулерыRow(КулерыRow row) {
  2162. this.Rows.Add(row);
  2163. }
  2164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2166. public КулерыRow AddКулерыRow(string Название, int Количество, decimal Цена, int КодКулера) {
  2167. КулерыRow rowКулерыRow = ((КулерыRow)(this.NewRow()));
  2168. object[] columnValuesArray = new object[] {
  2169. Название,
  2170. Количество,
  2171. Цена,
  2172. КодКулера};
  2173. rowКулерыRow.ItemArray = columnValuesArray;
  2174. this.Rows.Add(rowКулерыRow);
  2175. return rowКулерыRow;
  2176. }
  2177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2179. public КулерыRow FindByКодКулера(int КодКулера) {
  2180. return ((КулерыRow)(this.Rows.Find(new object[] {
  2181. КодКулера})));
  2182. }
  2183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2185. public override global::System.Data.DataTable Clone() {
  2186. КулерыDataTable cln = ((КулерыDataTable)(base.Clone()));
  2187. cln.InitVars();
  2188. return cln;
  2189. }
  2190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2192. protected override global::System.Data.DataTable CreateInstance() {
  2193. return new КулерыDataTable();
  2194. }
  2195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2197. internal void InitVars() {
  2198. this.columnНазвание = base.Columns["Название"];
  2199. this.columnКоличество = base.Columns["Количество"];
  2200. this.columnЦена = base.Columns["Цена"];
  2201. this.columnКодКулера = base.Columns["КодКулера"];
  2202. }
  2203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2205. private void InitClass() {
  2206. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  2207. base.Columns.Add(this.columnНазвание);
  2208. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  2209. base.Columns.Add(this.columnКоличество);
  2210. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  2211. base.Columns.Add(this.columnЦена);
  2212. this.columnКодКулера = new global::System.Data.DataColumn("КодКулера", typeof(int), null, global::System.Data.MappingType.Element);
  2213. base.Columns.Add(this.columnКодКулера);
  2214. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2215. this.columnКодКулера}, true));
  2216. this.columnНазвание.MaxLength = 50;
  2217. this.columnКодКулера.AllowDBNull = false;
  2218. this.columnКодКулера.Unique = true;
  2219. }
  2220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2222. public КулерыRow NewКулерыRow() {
  2223. return ((КулерыRow)(this.NewRow()));
  2224. }
  2225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2227. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2228. return new КулерыRow(builder);
  2229. }
  2230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2232. protected override global::System.Type GetRowType() {
  2233. return typeof(КулерыRow);
  2234. }
  2235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2237. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2238. base.OnRowChanged(e);
  2239. if ((this.КулерыRowChanged != null)) {
  2240. this.КулерыRowChanged(this, new КулерыRowChangeEvent(((КулерыRow)(e.Row)), e.Action));
  2241. }
  2242. }
  2243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2245. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2246. base.OnRowChanging(e);
  2247. if ((this.КулерыRowChanging != null)) {
  2248. this.КулерыRowChanging(this, new КулерыRowChangeEvent(((КулерыRow)(e.Row)), e.Action));
  2249. }
  2250. }
  2251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2253. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2254. base.OnRowDeleted(e);
  2255. if ((this.КулерыRowDeleted != null)) {
  2256. this.КулерыRowDeleted(this, new КулерыRowChangeEvent(((КулерыRow)(e.Row)), e.Action));
  2257. }
  2258. }
  2259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2261. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2262. base.OnRowDeleting(e);
  2263. if ((this.КулерыRowDeleting != null)) {
  2264. this.КулерыRowDeleting(this, new КулерыRowChangeEvent(((КулерыRow)(e.Row)), e.Action));
  2265. }
  2266. }
  2267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2269. public void RemoveКулерыRow(КулерыRow row) {
  2270. this.Rows.Remove(row);
  2271. }
  2272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2274. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2275. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2276. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2277. KhozeeevPC_12DataSet ds = new KhozeeevPC_12DataSet();
  2278. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2279. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2280. any1.MinOccurs = new decimal(0);
  2281. any1.MaxOccurs = decimal.MaxValue;
  2282. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2283. sequence.Items.Add(any1);
  2284. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2285. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2286. any2.MinOccurs = new decimal(1);
  2287. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2288. sequence.Items.Add(any2);
  2289. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2290. attribute1.Name = "namespace";
  2291. attribute1.FixedValue = ds.Namespace;
  2292. type.Attributes.Add(attribute1);
  2293. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2294. attribute2.Name = "tableTypeName";
  2295. attribute2.FixedValue = "КулерыDataTable";
  2296. type.Attributes.Add(attribute2);
  2297. type.Particle = sequence;
  2298. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2299. if (xs.Contains(dsSchema.TargetNamespace)) {
  2300. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2301. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2302. try {
  2303. global::System.Xml.Schema.XmlSchema schema = null;
  2304. dsSchema.Write(s1);
  2305. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2306. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2307. s2.SetLength(0);
  2308. schema.Write(s2);
  2309. if ((s1.Length == s2.Length)) {
  2310. s1.Position = 0;
  2311. s2.Position = 0;
  2312. for (; ((s1.Position != s1.Length)
  2313. && (s1.ReadByte() == s2.ReadByte())); ) {
  2314. ;
  2315. }
  2316. if ((s1.Position == s1.Length)) {
  2317. return type;
  2318. }
  2319. }
  2320. }
  2321. }
  2322. finally {
  2323. if ((s1 != null)) {
  2324. s1.Close();
  2325. }
  2326. if ((s2 != null)) {
  2327. s2.Close();
  2328. }
  2329. }
  2330. }
  2331. xs.Add(dsSchema);
  2332. return type;
  2333. }
  2334. }
  2335. /// <summary>
  2336. ///Represents the strongly named DataTable class.
  2337. ///</summary>
  2338. [global::System.Serializable()]
  2339. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2340. public partial class МатеринскаяПлатаDataTable : global::System.Data.TypedTableBase<МатеринскаяПлатаRow> {
  2341. private global::System.Data.DataColumn columnНазвание;
  2342. private global::System.Data.DataColumn columnЦена;
  2343. private global::System.Data.DataColumn columnКоличество;
  2344. private global::System.Data.DataColumn columnКодМатеринскойПлаты;
  2345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2347. public МатеринскаяПлатаDataTable() {
  2348. this.TableName = "МатеринскаяПлата";
  2349. this.BeginInit();
  2350. this.InitClass();
  2351. this.EndInit();
  2352. }
  2353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2355. internal МатеринскаяПлатаDataTable(global::System.Data.DataTable table) {
  2356. this.TableName = table.TableName;
  2357. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2358. this.CaseSensitive = table.CaseSensitive;
  2359. }
  2360. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2361. this.Locale = table.Locale;
  2362. }
  2363. if ((table.Namespace != table.DataSet.Namespace)) {
  2364. this.Namespace = table.Namespace;
  2365. }
  2366. this.Prefix = table.Prefix;
  2367. this.MinimumCapacity = table.MinimumCapacity;
  2368. }
  2369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2371. protected МатеринскаяПлатаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2372. base(info, context) {
  2373. this.InitVars();
  2374. }
  2375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2377. public global::System.Data.DataColumn НазваниеColumn {
  2378. get {
  2379. return this.columnНазвание;
  2380. }
  2381. }
  2382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2384. public global::System.Data.DataColumn ЦенаColumn {
  2385. get {
  2386. return this.columnЦена;
  2387. }
  2388. }
  2389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2391. public global::System.Data.DataColumn КоличествоColumn {
  2392. get {
  2393. return this.columnКоличество;
  2394. }
  2395. }
  2396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2398. public global::System.Data.DataColumn КодМатеринскойПлатыColumn {
  2399. get {
  2400. return this.columnКодМатеринскойПлаты;
  2401. }
  2402. }
  2403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2405. [global::System.ComponentModel.Browsable(false)]
  2406. public int Count {
  2407. get {
  2408. return this.Rows.Count;
  2409. }
  2410. }
  2411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2413. public МатеринскаяПлатаRow this[int index] {
  2414. get {
  2415. return ((МатеринскаяПлатаRow)(this.Rows[index]));
  2416. }
  2417. }
  2418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2419. public event МатеринскаяПлатаRowChangeEventHandler МатеринскаяПлатаRowChanging;
  2420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2421. public event МатеринскаяПлатаRowChangeEventHandler МатеринскаяПлатаRowChanged;
  2422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2423. public event МатеринскаяПлатаRowChangeEventHandler МатеринскаяПлатаRowDeleting;
  2424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2425. public event МатеринскаяПлатаRowChangeEventHandler МатеринскаяПлатаRowDeleted;
  2426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2428. public void AddМатеринскаяПлатаRow(МатеринскаяПлатаRow row) {
  2429. this.Rows.Add(row);
  2430. }
  2431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2433. public МатеринскаяПлатаRow AddМатеринскаяПлатаRow(string Название, decimal Цена, int Количество, int КодМатеринскойПлаты) {
  2434. МатеринскаяПлатаRow rowМатеринскаяПлатаRow = ((МатеринскаяПлатаRow)(this.NewRow()));
  2435. object[] columnValuesArray = new object[] {
  2436. Название,
  2437. Цена,
  2438. Количество,
  2439. КодМатеринскойПлаты};
  2440. rowМатеринскаяПлатаRow.ItemArray = columnValuesArray;
  2441. this.Rows.Add(rowМатеринскаяПлатаRow);
  2442. return rowМатеринскаяПлатаRow;
  2443. }
  2444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2446. public МатеринскаяПлатаRow FindByКодМатеринскойПлаты(int КодМатеринскойПлаты) {
  2447. return ((МатеринскаяПлатаRow)(this.Rows.Find(new object[] {
  2448. КодМатеринскойПлаты})));
  2449. }
  2450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2452. public override global::System.Data.DataTable Clone() {
  2453. МатеринскаяПлатаDataTable cln = ((МатеринскаяПлатаDataTable)(base.Clone()));
  2454. cln.InitVars();
  2455. return cln;
  2456. }
  2457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2459. protected override global::System.Data.DataTable CreateInstance() {
  2460. return new МатеринскаяПлатаDataTable();
  2461. }
  2462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2464. internal void InitVars() {
  2465. this.columnНазвание = base.Columns["Название"];
  2466. this.columnЦена = base.Columns["Цена"];
  2467. this.columnКоличество = base.Columns["Количество"];
  2468. this.columnКодМатеринскойПлаты = base.Columns["КодМатеринскойПлаты"];
  2469. }
  2470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2472. private void InitClass() {
  2473. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  2474. base.Columns.Add(this.columnНазвание);
  2475. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  2476. base.Columns.Add(this.columnЦена);
  2477. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  2478. base.Columns.Add(this.columnКоличество);
  2479. this.columnКодМатеринскойПлаты = new global::System.Data.DataColumn("КодМатеринскойПлаты", typeof(int), null, global::System.Data.MappingType.Element);
  2480. base.Columns.Add(this.columnКодМатеринскойПлаты);
  2481. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2482. this.columnКодМатеринскойПлаты}, true));
  2483. this.columnНазвание.MaxLength = 50;
  2484. this.columnКодМатеринскойПлаты.AllowDBNull = false;
  2485. this.columnКодМатеринскойПлаты.Unique = true;
  2486. }
  2487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2489. public МатеринскаяПлатаRow NewМатеринскаяПлатаRow() {
  2490. return ((МатеринскаяПлатаRow)(this.NewRow()));
  2491. }
  2492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2494. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2495. return new МатеринскаяПлатаRow(builder);
  2496. }
  2497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2499. protected override global::System.Type GetRowType() {
  2500. return typeof(МатеринскаяПлатаRow);
  2501. }
  2502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2504. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2505. base.OnRowChanged(e);
  2506. if ((this.МатеринскаяПлатаRowChanged != null)) {
  2507. this.МатеринскаяПлатаRowChanged(this, new МатеринскаяПлатаRowChangeEvent(((МатеринскаяПлатаRow)(e.Row)), e.Action));
  2508. }
  2509. }
  2510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2512. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2513. base.OnRowChanging(e);
  2514. if ((this.МатеринскаяПлатаRowChanging != null)) {
  2515. this.МатеринскаяПлатаRowChanging(this, new МатеринскаяПлатаRowChangeEvent(((МатеринскаяПлатаRow)(e.Row)), e.Action));
  2516. }
  2517. }
  2518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2520. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2521. base.OnRowDeleted(e);
  2522. if ((this.МатеринскаяПлатаRowDeleted != null)) {
  2523. this.МатеринскаяПлатаRowDeleted(this, new МатеринскаяПлатаRowChangeEvent(((МатеринскаяПлатаRow)(e.Row)), e.Action));
  2524. }
  2525. }
  2526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2528. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2529. base.OnRowDeleting(e);
  2530. if ((this.МатеринскаяПлатаRowDeleting != null)) {
  2531. this.МатеринскаяПлатаRowDeleting(this, new МатеринскаяПлатаRowChangeEvent(((МатеринскаяПлатаRow)(e.Row)), e.Action));
  2532. }
  2533. }
  2534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2536. public void RemoveМатеринскаяПлатаRow(МатеринскаяПлатаRow row) {
  2537. this.Rows.Remove(row);
  2538. }
  2539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2541. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2542. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2543. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2544. KhozeeevPC_12DataSet ds = new KhozeeevPC_12DataSet();
  2545. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2546. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2547. any1.MinOccurs = new decimal(0);
  2548. any1.MaxOccurs = decimal.MaxValue;
  2549. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2550. sequence.Items.Add(any1);
  2551. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2552. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2553. any2.MinOccurs = new decimal(1);
  2554. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2555. sequence.Items.Add(any2);
  2556. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2557. attribute1.Name = "namespace";
  2558. attribute1.FixedValue = ds.Namespace;
  2559. type.Attributes.Add(attribute1);
  2560. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2561. attribute2.Name = "tableTypeName";
  2562. attribute2.FixedValue = "МатеринскаяПлатаDataTable";
  2563. type.Attributes.Add(attribute2);
  2564. type.Particle = sequence;
  2565. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2566. if (xs.Contains(dsSchema.TargetNamespace)) {
  2567. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2568. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2569. try {
  2570. global::System.Xml.Schema.XmlSchema schema = null;
  2571. dsSchema.Write(s1);
  2572. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2573. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2574. s2.SetLength(0);
  2575. schema.Write(s2);
  2576. if ((s1.Length == s2.Length)) {
  2577. s1.Position = 0;
  2578. s2.Position = 0;
  2579. for (; ((s1.Position != s1.Length)
  2580. && (s1.ReadByte() == s2.ReadByte())); ) {
  2581. ;
  2582. }
  2583. if ((s1.Position == s1.Length)) {
  2584. return type;
  2585. }
  2586. }
  2587. }
  2588. }
  2589. finally {
  2590. if ((s1 != null)) {
  2591. s1.Close();
  2592. }
  2593. if ((s2 != null)) {
  2594. s2.Close();
  2595. }
  2596. }
  2597. }
  2598. xs.Add(dsSchema);
  2599. return type;
  2600. }
  2601. }
  2602. /// <summary>
  2603. ///Represents the strongly named DataTable class.
  2604. ///</summary>
  2605. [global::System.Serializable()]
  2606. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2607. public partial class ОперативнаяПамятьDataTable : global::System.Data.TypedTableBase<ОперативнаяПамятьRow> {
  2608. private global::System.Data.DataColumn columnНазвание;
  2609. private global::System.Data.DataColumn columnЦена;
  2610. private global::System.Data.DataColumn columnКоличество;
  2611. private global::System.Data.DataColumn columnКодОперативнойПамяти;
  2612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2614. public ОперативнаяПамятьDataTable() {
  2615. this.TableName = "ОперативнаяПамять";
  2616. this.BeginInit();
  2617. this.InitClass();
  2618. this.EndInit();
  2619. }
  2620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2622. internal ОперативнаяПамятьDataTable(global::System.Data.DataTable table) {
  2623. this.TableName = table.TableName;
  2624. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2625. this.CaseSensitive = table.CaseSensitive;
  2626. }
  2627. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2628. this.Locale = table.Locale;
  2629. }
  2630. if ((table.Namespace != table.DataSet.Namespace)) {
  2631. this.Namespace = table.Namespace;
  2632. }
  2633. this.Prefix = table.Prefix;
  2634. this.MinimumCapacity = table.MinimumCapacity;
  2635. }
  2636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2638. protected ОперативнаяПамятьDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2639. base(info, context) {
  2640. this.InitVars();
  2641. }
  2642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2644. public global::System.Data.DataColumn НазваниеColumn {
  2645. get {
  2646. return this.columnНазвание;
  2647. }
  2648. }
  2649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2651. public global::System.Data.DataColumn ЦенаColumn {
  2652. get {
  2653. return this.columnЦена;
  2654. }
  2655. }
  2656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2658. public global::System.Data.DataColumn КоличествоColumn {
  2659. get {
  2660. return this.columnКоличество;
  2661. }
  2662. }
  2663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2665. public global::System.Data.DataColumn КодОперативнойПамятиColumn {
  2666. get {
  2667. return this.columnКодОперативнойПамяти;
  2668. }
  2669. }
  2670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2672. [global::System.ComponentModel.Browsable(false)]
  2673. public int Count {
  2674. get {
  2675. return this.Rows.Count;
  2676. }
  2677. }
  2678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2680. public ОперативнаяПамятьRow this[int index] {
  2681. get {
  2682. return ((ОперативнаяПамятьRow)(this.Rows[index]));
  2683. }
  2684. }
  2685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2686. public event ОперативнаяПамятьRowChangeEventHandler ОперативнаяПамятьRowChanging;
  2687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2688. public event ОперативнаяПамятьRowChangeEventHandler ОперативнаяПамятьRowChanged;
  2689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2690. public event ОперативнаяПамятьRowChangeEventHandler ОперативнаяПамятьRowDeleting;
  2691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2692. public event ОперативнаяПамятьRowChangeEventHandler ОперативнаяПамятьRowDeleted;
  2693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2695. public void AddОперативнаяПамятьRow(ОперативнаяПамятьRow row) {
  2696. this.Rows.Add(row);
  2697. }
  2698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2700. public ОперативнаяПамятьRow AddОперативнаяПамятьRow(string Название, decimal Цена, int Количество, int КодОперативнойПамяти) {
  2701. ОперативнаяПамятьRow rowОперативнаяПамятьRow = ((ОперативнаяПамятьRow)(this.NewRow()));
  2702. object[] columnValuesArray = new object[] {
  2703. Название,
  2704. Цена,
  2705. Количество,
  2706. КодОперативнойПамяти};
  2707. rowОперативнаяПамятьRow.ItemArray = columnValuesArray;
  2708. this.Rows.Add(rowОперативнаяПамятьRow);
  2709. return rowОперативнаяПамятьRow;
  2710. }
  2711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2713. public ОперативнаяПамятьRow FindByКодОперативнойПамяти(int КодОперативнойПамяти) {
  2714. return ((ОперативнаяПамятьRow)(this.Rows.Find(new object[] {
  2715. КодОперативнойПамяти})));
  2716. }
  2717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2719. public override global::System.Data.DataTable Clone() {
  2720. ОперативнаяПамятьDataTable cln = ((ОперативнаяПамятьDataTable)(base.Clone()));
  2721. cln.InitVars();
  2722. return cln;
  2723. }
  2724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2726. protected override global::System.Data.DataTable CreateInstance() {
  2727. return new ОперативнаяПамятьDataTable();
  2728. }
  2729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2731. internal void InitVars() {
  2732. this.columnНазвание = base.Columns["Название"];
  2733. this.columnЦена = base.Columns["Цена"];
  2734. this.columnКоличество = base.Columns["Количество"];
  2735. this.columnКодОперативнойПамяти = base.Columns["КодОперативнойПамяти"];
  2736. }
  2737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2739. private void InitClass() {
  2740. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  2741. base.Columns.Add(this.columnНазвание);
  2742. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  2743. base.Columns.Add(this.columnЦена);
  2744. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  2745. base.Columns.Add(this.columnКоличество);
  2746. this.columnКодОперативнойПамяти = new global::System.Data.DataColumn("КодОперативнойПамяти", typeof(int), null, global::System.Data.MappingType.Element);
  2747. base.Columns.Add(this.columnКодОперативнойПамяти);
  2748. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2749. this.columnКодОперативнойПамяти}, true));
  2750. this.columnНазвание.MaxLength = 50;
  2751. this.columnКодОперативнойПамяти.AllowDBNull = false;
  2752. this.columnКодОперативнойПамяти.Unique = true;
  2753. }
  2754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2756. public ОперативнаяПамятьRow NewОперативнаяПамятьRow() {
  2757. return ((ОперативнаяПамятьRow)(this.NewRow()));
  2758. }
  2759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2761. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2762. return new ОперативнаяПамятьRow(builder);
  2763. }
  2764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2766. protected override global::System.Type GetRowType() {
  2767. return typeof(ОперативнаяПамятьRow);
  2768. }
  2769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2771. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2772. base.OnRowChanged(e);
  2773. if ((this.ОперативнаяПамятьRowChanged != null)) {
  2774. this.ОперативнаяПамятьRowChanged(this, new ОперативнаяПамятьRowChangeEvent(((ОперативнаяПамятьRow)(e.Row)), e.Action));
  2775. }
  2776. }
  2777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2779. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2780. base.OnRowChanging(e);
  2781. if ((this.ОперативнаяПамятьRowChanging != null)) {
  2782. this.ОперативнаяПамятьRowChanging(this, new ОперативнаяПамятьRowChangeEvent(((ОперативнаяПамятьRow)(e.Row)), e.Action));
  2783. }
  2784. }
  2785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2787. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2788. base.OnRowDeleted(e);
  2789. if ((this.ОперативнаяПамятьRowDeleted != null)) {
  2790. this.ОперативнаяПамятьRowDeleted(this, new ОперативнаяПамятьRowChangeEvent(((ОперативнаяПамятьRow)(e.Row)), e.Action));
  2791. }
  2792. }
  2793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2795. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2796. base.OnRowDeleting(e);
  2797. if ((this.ОперативнаяПамятьRowDeleting != null)) {
  2798. this.ОперативнаяПамятьRowDeleting(this, new ОперативнаяПамятьRowChangeEvent(((ОперативнаяПамятьRow)(e.Row)), e.Action));
  2799. }
  2800. }
  2801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2803. public void RemoveОперативнаяПамятьRow(ОперативнаяПамятьRow row) {
  2804. this.Rows.Remove(row);
  2805. }
  2806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2808. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2809. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2810. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2811. KhozeeevPC_12DataSet ds = new KhozeeevPC_12DataSet();
  2812. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2813. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2814. any1.MinOccurs = new decimal(0);
  2815. any1.MaxOccurs = decimal.MaxValue;
  2816. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2817. sequence.Items.Add(any1);
  2818. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2819. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2820. any2.MinOccurs = new decimal(1);
  2821. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2822. sequence.Items.Add(any2);
  2823. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2824. attribute1.Name = "namespace";
  2825. attribute1.FixedValue = ds.Namespace;
  2826. type.Attributes.Add(attribute1);
  2827. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2828. attribute2.Name = "tableTypeName";
  2829. attribute2.FixedValue = "ОперативнаяПамятьDataTable";
  2830. type.Attributes.Add(attribute2);
  2831. type.Particle = sequence;
  2832. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2833. if (xs.Contains(dsSchema.TargetNamespace)) {
  2834. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2835. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2836. try {
  2837. global::System.Xml.Schema.XmlSchema schema = null;
  2838. dsSchema.Write(s1);
  2839. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2840. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2841. s2.SetLength(0);
  2842. schema.Write(s2);
  2843. if ((s1.Length == s2.Length)) {
  2844. s1.Position = 0;
  2845. s2.Position = 0;
  2846. for (; ((s1.Position != s1.Length)
  2847. && (s1.ReadByte() == s2.ReadByte())); ) {
  2848. ;
  2849. }
  2850. if ((s1.Position == s1.Length)) {
  2851. return type;
  2852. }
  2853. }
  2854. }
  2855. }
  2856. finally {
  2857. if ((s1 != null)) {
  2858. s1.Close();
  2859. }
  2860. if ((s2 != null)) {
  2861. s2.Close();
  2862. }
  2863. }
  2864. }
  2865. xs.Add(dsSchema);
  2866. return type;
  2867. }
  2868. }
  2869. /// <summary>
  2870. ///Represents the strongly named DataTable class.
  2871. ///</summary>
  2872. [global::System.Serializable()]
  2873. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2874. public partial class ПользователиDataTable : global::System.Data.TypedTableBase<ПользователиRow> {
  2875. private global::System.Data.DataColumn columnЛогин;
  2876. private global::System.Data.DataColumn columnПароль;
  2877. private global::System.Data.DataColumn columnКодПользователя;
  2878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2880. public ПользователиDataTable() {
  2881. this.TableName = "Пользователи";
  2882. this.BeginInit();
  2883. this.InitClass();
  2884. this.EndInit();
  2885. }
  2886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2888. internal ПользователиDataTable(global::System.Data.DataTable table) {
  2889. this.TableName = table.TableName;
  2890. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2891. this.CaseSensitive = table.CaseSensitive;
  2892. }
  2893. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2894. this.Locale = table.Locale;
  2895. }
  2896. if ((table.Namespace != table.DataSet.Namespace)) {
  2897. this.Namespace = table.Namespace;
  2898. }
  2899. this.Prefix = table.Prefix;
  2900. this.MinimumCapacity = table.MinimumCapacity;
  2901. }
  2902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2904. protected ПользователиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2905. base(info, context) {
  2906. this.InitVars();
  2907. }
  2908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2910. public global::System.Data.DataColumn ЛогинColumn {
  2911. get {
  2912. return this.columnЛогин;
  2913. }
  2914. }
  2915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2917. public global::System.Data.DataColumn ПарольColumn {
  2918. get {
  2919. return this.columnПароль;
  2920. }
  2921. }
  2922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2924. public global::System.Data.DataColumn КодПользователяColumn {
  2925. get {
  2926. return this.columnКодПользователя;
  2927. }
  2928. }
  2929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2931. [global::System.ComponentModel.Browsable(false)]
  2932. public int Count {
  2933. get {
  2934. return this.Rows.Count;
  2935. }
  2936. }
  2937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2939. public ПользователиRow this[int index] {
  2940. get {
  2941. return ((ПользователиRow)(this.Rows[index]));
  2942. }
  2943. }
  2944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2945. public event ПользователиRowChangeEventHandler ПользователиRowChanging;
  2946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2947. public event ПользователиRowChangeEventHandler ПользователиRowChanged;
  2948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2949. public event ПользователиRowChangeEventHandler ПользователиRowDeleting;
  2950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2951. public event ПользователиRowChangeEventHandler ПользователиRowDeleted;
  2952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2954. public void AddПользователиRow(ПользователиRow row) {
  2955. this.Rows.Add(row);
  2956. }
  2957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2959. public ПользователиRow AddПользователиRow(string Логин, string Пароль, int КодПользователя) {
  2960. ПользователиRow rowПользователиRow = ((ПользователиRow)(this.NewRow()));
  2961. object[] columnValuesArray = new object[] {
  2962. Логин,
  2963. Пароль,
  2964. КодПользователя};
  2965. rowПользователиRow.ItemArray = columnValuesArray;
  2966. this.Rows.Add(rowПользователиRow);
  2967. return rowПользователиRow;
  2968. }
  2969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2971. public ПользователиRow FindByКодПользователя(int КодПользователя) {
  2972. return ((ПользователиRow)(this.Rows.Find(new object[] {
  2973. КодПользователя})));
  2974. }
  2975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2977. public override global::System.Data.DataTable Clone() {
  2978. ПользователиDataTable cln = ((ПользователиDataTable)(base.Clone()));
  2979. cln.InitVars();
  2980. return cln;
  2981. }
  2982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2984. protected override global::System.Data.DataTable CreateInstance() {
  2985. return new ПользователиDataTable();
  2986. }
  2987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2989. internal void InitVars() {
  2990. this.columnЛогин = base.Columns["Логин"];
  2991. this.columnПароль = base.Columns["Пароль"];
  2992. this.columnКодПользователя = base.Columns["КодПользователя"];
  2993. }
  2994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2996. private void InitClass() {
  2997. this.columnЛогин = new global::System.Data.DataColumn("Логин", typeof(string), null, global::System.Data.MappingType.Element);
  2998. base.Columns.Add(this.columnЛогин);
  2999. this.columnПароль = new global::System.Data.DataColumn("Пароль", typeof(string), null, global::System.Data.MappingType.Element);
  3000. base.Columns.Add(this.columnПароль);
  3001. this.columnКодПользователя = new global::System.Data.DataColumn("КодПользователя", typeof(int), null, global::System.Data.MappingType.Element);
  3002. base.Columns.Add(this.columnКодПользователя);
  3003. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3004. this.columnКодПользователя}, true));
  3005. this.columnЛогин.MaxLength = 50;
  3006. this.columnПароль.MaxLength = 50;
  3007. this.columnКодПользователя.AllowDBNull = false;
  3008. this.columnКодПользователя.Unique = true;
  3009. }
  3010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3012. public ПользователиRow NewПользователиRow() {
  3013. return ((ПользователиRow)(this.NewRow()));
  3014. }
  3015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3017. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3018. return new ПользователиRow(builder);
  3019. }
  3020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3022. protected override global::System.Type GetRowType() {
  3023. return typeof(ПользователиRow);
  3024. }
  3025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3027. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3028. base.OnRowChanged(e);
  3029. if ((this.ПользователиRowChanged != null)) {
  3030. this.ПользователиRowChanged(this, new ПользователиRowChangeEvent(((ПользователиRow)(e.Row)), e.Action));
  3031. }
  3032. }
  3033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3035. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3036. base.OnRowChanging(e);
  3037. if ((this.ПользователиRowChanging != null)) {
  3038. this.ПользователиRowChanging(this, new ПользователиRowChangeEvent(((ПользователиRow)(e.Row)), e.Action));
  3039. }
  3040. }
  3041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3043. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3044. base.OnRowDeleted(e);
  3045. if ((this.ПользователиRowDeleted != null)) {
  3046. this.ПользователиRowDeleted(this, new ПользователиRowChangeEvent(((ПользователиRow)(e.Row)), e.Action));
  3047. }
  3048. }
  3049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3051. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3052. base.OnRowDeleting(e);
  3053. if ((this.ПользователиRowDeleting != null)) {
  3054. this.ПользователиRowDeleting(this, new ПользователиRowChangeEvent(((ПользователиRow)(e.Row)), e.Action));
  3055. }
  3056. }
  3057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3059. public void RemoveПользователиRow(ПользователиRow row) {
  3060. this.Rows.Remove(row);
  3061. }
  3062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3064. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3065. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3066. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3067. KhozeeevPC_12DataSet ds = new KhozeeevPC_12DataSet();
  3068. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3069. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3070. any1.MinOccurs = new decimal(0);
  3071. any1.MaxOccurs = decimal.MaxValue;
  3072. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3073. sequence.Items.Add(any1);
  3074. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3075. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3076. any2.MinOccurs = new decimal(1);
  3077. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3078. sequence.Items.Add(any2);
  3079. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3080. attribute1.Name = "namespace";
  3081. attribute1.FixedValue = ds.Namespace;
  3082. type.Attributes.Add(attribute1);
  3083. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3084. attribute2.Name = "tableTypeName";
  3085. attribute2.FixedValue = "ПользователиDataTable";
  3086. type.Attributes.Add(attribute2);
  3087. type.Particle = sequence;
  3088. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3089. if (xs.Contains(dsSchema.TargetNamespace)) {
  3090. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3091. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3092. try {
  3093. global::System.Xml.Schema.XmlSchema schema = null;
  3094. dsSchema.Write(s1);
  3095. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3096. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3097. s2.SetLength(0);
  3098. schema.Write(s2);
  3099. if ((s1.Length == s2.Length)) {
  3100. s1.Position = 0;
  3101. s2.Position = 0;
  3102. for (; ((s1.Position != s1.Length)
  3103. && (s1.ReadByte() == s2.ReadByte())); ) {
  3104. ;
  3105. }
  3106. if ((s1.Position == s1.Length)) {
  3107. return type;
  3108. }
  3109. }
  3110. }
  3111. }
  3112. finally {
  3113. if ((s1 != null)) {
  3114. s1.Close();
  3115. }
  3116. if ((s2 != null)) {
  3117. s2.Close();
  3118. }
  3119. }
  3120. }
  3121. xs.Add(dsSchema);
  3122. return type;
  3123. }
  3124. }
  3125. /// <summary>
  3126. ///Represents the strongly named DataTable class.
  3127. ///</summary>
  3128. [global::System.Serializable()]
  3129. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3130. public partial class ПроцессорыDataTable : global::System.Data.TypedTableBase<ПроцессорыRow> {
  3131. private global::System.Data.DataColumn columnНазвание;
  3132. private global::System.Data.DataColumn columnЦена;
  3133. private global::System.Data.DataColumn columnКоличество;
  3134. private global::System.Data.DataColumn columnКодПроцессора;
  3135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3137. public ПроцессорыDataTable() {
  3138. this.TableName = "Процессоры";
  3139. this.BeginInit();
  3140. this.InitClass();
  3141. this.EndInit();
  3142. }
  3143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3145. internal ПроцессорыDataTable(global::System.Data.DataTable table) {
  3146. this.TableName = table.TableName;
  3147. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3148. this.CaseSensitive = table.CaseSensitive;
  3149. }
  3150. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3151. this.Locale = table.Locale;
  3152. }
  3153. if ((table.Namespace != table.DataSet.Namespace)) {
  3154. this.Namespace = table.Namespace;
  3155. }
  3156. this.Prefix = table.Prefix;
  3157. this.MinimumCapacity = table.MinimumCapacity;
  3158. }
  3159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3161. protected ПроцессорыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3162. base(info, context) {
  3163. this.InitVars();
  3164. }
  3165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3167. public global::System.Data.DataColumn НазваниеColumn {
  3168. get {
  3169. return this.columnНазвание;
  3170. }
  3171. }
  3172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3174. public global::System.Data.DataColumn ЦенаColumn {
  3175. get {
  3176. return this.columnЦена;
  3177. }
  3178. }
  3179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3181. public global::System.Data.DataColumn КоличествоColumn {
  3182. get {
  3183. return this.columnКоличество;
  3184. }
  3185. }
  3186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3188. public global::System.Data.DataColumn КодПроцессораColumn {
  3189. get {
  3190. return this.columnКодПроцессора;
  3191. }
  3192. }
  3193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3195. [global::System.ComponentModel.Browsable(false)]
  3196. public int Count {
  3197. get {
  3198. return this.Rows.Count;
  3199. }
  3200. }
  3201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3203. public ПроцессорыRow this[int index] {
  3204. get {
  3205. return ((ПроцессорыRow)(this.Rows[index]));
  3206. }
  3207. }
  3208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3209. public event ПроцессорыRowChangeEventHandler ПроцессорыRowChanging;
  3210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3211. public event ПроцессорыRowChangeEventHandler ПроцессорыRowChanged;
  3212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3213. public event ПроцессорыRowChangeEventHandler ПроцессорыRowDeleting;
  3214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3215. public event ПроцессорыRowChangeEventHandler ПроцессорыRowDeleted;
  3216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3218. public void AddПроцессорыRow(ПроцессорыRow row) {
  3219. this.Rows.Add(row);
  3220. }
  3221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3223. public ПроцессорыRow AddПроцессорыRow(string Название, decimal Цена, int Количество, int КодПроцессора) {
  3224. ПроцессорыRow rowПроцессорыRow = ((ПроцессорыRow)(this.NewRow()));
  3225. object[] columnValuesArray = new object[] {
  3226. Название,
  3227. Цена,
  3228. Количество,
  3229. КодПроцессора};
  3230. rowПроцессорыRow.ItemArray = columnValuesArray;
  3231. this.Rows.Add(rowПроцессорыRow);
  3232. return rowПроцессорыRow;
  3233. }
  3234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3236. public ПроцессорыRow FindByКодПроцессора(int КодПроцессора) {
  3237. return ((ПроцессорыRow)(this.Rows.Find(new object[] {
  3238. КодПроцессора})));
  3239. }
  3240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3242. public override global::System.Data.DataTable Clone() {
  3243. ПроцессорыDataTable cln = ((ПроцессорыDataTable)(base.Clone()));
  3244. cln.InitVars();
  3245. return cln;
  3246. }
  3247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3249. protected override global::System.Data.DataTable CreateInstance() {
  3250. return new ПроцессорыDataTable();
  3251. }
  3252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3254. internal void InitVars() {
  3255. this.columnНазвание = base.Columns["Название"];
  3256. this.columnЦена = base.Columns["Цена"];
  3257. this.columnКоличество = base.Columns["Количество"];
  3258. this.columnКодПроцессора = base.Columns["КодПроцессора"];
  3259. }
  3260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3262. private void InitClass() {
  3263. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  3264. base.Columns.Add(this.columnНазвание);
  3265. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  3266. base.Columns.Add(this.columnЦена);
  3267. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  3268. base.Columns.Add(this.columnКоличество);
  3269. this.columnКодПроцессора = new global::System.Data.DataColumn("КодПроцессора", typeof(int), null, global::System.Data.MappingType.Element);
  3270. base.Columns.Add(this.columnКодПроцессора);
  3271. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3272. this.columnКодПроцессора}, true));
  3273. this.columnНазвание.MaxLength = 50;
  3274. this.columnКодПроцессора.AllowDBNull = false;
  3275. this.columnКодПроцессора.Unique = true;
  3276. }
  3277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3279. public ПроцессорыRow NewПроцессорыRow() {
  3280. return ((ПроцессорыRow)(this.NewRow()));
  3281. }
  3282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3284. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3285. return new ПроцессорыRow(builder);
  3286. }
  3287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3289. protected override global::System.Type GetRowType() {
  3290. return typeof(ПроцессорыRow);
  3291. }
  3292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3294. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3295. base.OnRowChanged(e);
  3296. if ((this.ПроцессорыRowChanged != null)) {
  3297. this.ПроцессорыRowChanged(this, new ПроцессорыRowChangeEvent(((ПроцессорыRow)(e.Row)), e.Action));
  3298. }
  3299. }
  3300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3302. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3303. base.OnRowChanging(e);
  3304. if ((this.ПроцессорыRowChanging != null)) {
  3305. this.ПроцессорыRowChanging(this, new ПроцессорыRowChangeEvent(((ПроцессорыRow)(e.Row)), e.Action));
  3306. }
  3307. }
  3308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3310. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3311. base.OnRowDeleted(e);
  3312. if ((this.ПроцессорыRowDeleted != null)) {
  3313. this.ПроцессорыRowDeleted(this, new ПроцессорыRowChangeEvent(((ПроцессорыRow)(e.Row)), e.Action));
  3314. }
  3315. }
  3316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3318. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3319. base.OnRowDeleting(e);
  3320. if ((this.ПроцессорыRowDeleting != null)) {
  3321. this.ПроцессорыRowDeleting(this, new ПроцессорыRowChangeEvent(((ПроцессорыRow)(e.Row)), e.Action));
  3322. }
  3323. }
  3324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3326. public void RemoveПроцессорыRow(ПроцессорыRow row) {
  3327. this.Rows.Remove(row);
  3328. }
  3329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3331. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3332. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3333. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3334. KhozeeevPC_12DataSet ds = new KhozeeevPC_12DataSet();
  3335. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3336. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3337. any1.MinOccurs = new decimal(0);
  3338. any1.MaxOccurs = decimal.MaxValue;
  3339. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3340. sequence.Items.Add(any1);
  3341. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3342. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3343. any2.MinOccurs = new decimal(1);
  3344. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3345. sequence.Items.Add(any2);
  3346. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3347. attribute1.Name = "namespace";
  3348. attribute1.FixedValue = ds.Namespace;
  3349. type.Attributes.Add(attribute1);
  3350. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3351. attribute2.Name = "tableTypeName";
  3352. attribute2.FixedValue = "ПроцессорыDataTable";
  3353. type.Attributes.Add(attribute2);
  3354. type.Particle = sequence;
  3355. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3356. if (xs.Contains(dsSchema.TargetNamespace)) {
  3357. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3358. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3359. try {
  3360. global::System.Xml.Schema.XmlSchema schema = null;
  3361. dsSchema.Write(s1);
  3362. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3363. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3364. s2.SetLength(0);
  3365. schema.Write(s2);
  3366. if ((s1.Length == s2.Length)) {
  3367. s1.Position = 0;
  3368. s2.Position = 0;
  3369. for (; ((s1.Position != s1.Length)
  3370. && (s1.ReadByte() == s2.ReadByte())); ) {
  3371. ;
  3372. }
  3373. if ((s1.Position == s1.Length)) {
  3374. return type;
  3375. }
  3376. }
  3377. }
  3378. }
  3379. finally {
  3380. if ((s1 != null)) {
  3381. s1.Close();
  3382. }
  3383. if ((s2 != null)) {
  3384. s2.Close();
  3385. }
  3386. }
  3387. }
  3388. xs.Add(dsSchema);
  3389. return type;
  3390. }
  3391. }
  3392. /// <summary>
  3393. ///Represents the strongly named DataTable class.
  3394. ///</summary>
  3395. [global::System.Serializable()]
  3396. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3397. public partial class ССДDataTable : global::System.Data.TypedTableBase<ССДRow> {
  3398. private global::System.Data.DataColumn columnНазвание;
  3399. private global::System.Data.DataColumn columnЦена;
  3400. private global::System.Data.DataColumn columnКоличество;
  3401. private global::System.Data.DataColumn columnКодССД;
  3402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3404. public ССДDataTable() {
  3405. this.TableName = "ССД";
  3406. this.BeginInit();
  3407. this.InitClass();
  3408. this.EndInit();
  3409. }
  3410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3412. internal ССДDataTable(global::System.Data.DataTable table) {
  3413. this.TableName = table.TableName;
  3414. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3415. this.CaseSensitive = table.CaseSensitive;
  3416. }
  3417. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3418. this.Locale = table.Locale;
  3419. }
  3420. if ((table.Namespace != table.DataSet.Namespace)) {
  3421. this.Namespace = table.Namespace;
  3422. }
  3423. this.Prefix = table.Prefix;
  3424. this.MinimumCapacity = table.MinimumCapacity;
  3425. }
  3426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3428. protected ССДDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3429. base(info, context) {
  3430. this.InitVars();
  3431. }
  3432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3434. public global::System.Data.DataColumn НазваниеColumn {
  3435. get {
  3436. return this.columnНазвание;
  3437. }
  3438. }
  3439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3441. public global::System.Data.DataColumn ЦенаColumn {
  3442. get {
  3443. return this.columnЦена;
  3444. }
  3445. }
  3446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3448. public global::System.Data.DataColumn КоличествоColumn {
  3449. get {
  3450. return this.columnКоличество;
  3451. }
  3452. }
  3453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3455. public global::System.Data.DataColumn КодССДColumn {
  3456. get {
  3457. return this.columnКодССД;
  3458. }
  3459. }
  3460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3462. [global::System.ComponentModel.Browsable(false)]
  3463. public int Count {
  3464. get {
  3465. return this.Rows.Count;
  3466. }
  3467. }
  3468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3470. public ССДRow this[int index] {
  3471. get {
  3472. return ((ССДRow)(this.Rows[index]));
  3473. }
  3474. }
  3475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3476. public event ССДRowChangeEventHandler ССДRowChanging;
  3477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3478. public event ССДRowChangeEventHandler ССДRowChanged;
  3479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3480. public event ССДRowChangeEventHandler ССДRowDeleting;
  3481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3482. public event ССДRowChangeEventHandler ССДRowDeleted;
  3483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3485. public void AddССДRow(ССДRow row) {
  3486. this.Rows.Add(row);
  3487. }
  3488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3490. public ССДRow AddССДRow(string Название, decimal Цена, int Количество, int КодССД) {
  3491. ССДRow rowССДRow = ((ССДRow)(this.NewRow()));
  3492. object[] columnValuesArray = new object[] {
  3493. Название,
  3494. Цена,
  3495. Количество,
  3496. КодССД};
  3497. rowССДRow.ItemArray = columnValuesArray;
  3498. this.Rows.Add(rowССДRow);
  3499. return rowССДRow;
  3500. }
  3501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3503. public ССДRow FindByКодССД(int КодССД) {
  3504. return ((ССДRow)(this.Rows.Find(new object[] {
  3505. КодССД})));
  3506. }
  3507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3509. public override global::System.Data.DataTable Clone() {
  3510. ССДDataTable cln = ((ССДDataTable)(base.Clone()));
  3511. cln.InitVars();
  3512. return cln;
  3513. }
  3514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3516. protected override global::System.Data.DataTable CreateInstance() {
  3517. return new ССДDataTable();
  3518. }
  3519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3521. internal void InitVars() {
  3522. this.columnНазвание = base.Columns["Название"];
  3523. this.columnЦена = base.Columns["Цена"];
  3524. this.columnКоличество = base.Columns["Количество"];
  3525. this.columnКодССД = base.Columns["КодССД"];
  3526. }
  3527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3529. private void InitClass() {
  3530. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  3531. base.Columns.Add(this.columnНазвание);
  3532. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  3533. base.Columns.Add(this.columnЦена);
  3534. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  3535. base.Columns.Add(this.columnКоличество);
  3536. this.columnКодССД = new global::System.Data.DataColumn("КодССД", typeof(int), null, global::System.Data.MappingType.Element);
  3537. base.Columns.Add(this.columnКодССД);
  3538. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3539. this.columnКодССД}, true));
  3540. this.columnНазвание.MaxLength = 50;
  3541. this.columnКодССД.AllowDBNull = false;
  3542. this.columnКодССД.Unique = true;
  3543. }
  3544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3546. public ССДRow NewССДRow() {
  3547. return ((ССДRow)(this.NewRow()));
  3548. }
  3549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3551. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3552. return new ССДRow(builder);
  3553. }
  3554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3556. protected override global::System.Type GetRowType() {
  3557. return typeof(ССДRow);
  3558. }
  3559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3561. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3562. base.OnRowChanged(e);
  3563. if ((this.ССДRowChanged != null)) {
  3564. this.ССДRowChanged(this, new ССДRowChangeEvent(((ССДRow)(e.Row)), e.Action));
  3565. }
  3566. }
  3567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3569. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3570. base.OnRowChanging(e);
  3571. if ((this.ССДRowChanging != null)) {
  3572. this.ССДRowChanging(this, new ССДRowChangeEvent(((ССДRow)(e.Row)), e.Action));
  3573. }
  3574. }
  3575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3577. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3578. base.OnRowDeleted(e);
  3579. if ((this.ССДRowDeleted != null)) {
  3580. this.ССДRowDeleted(this, new ССДRowChangeEvent(((ССДRow)(e.Row)), e.Action));
  3581. }
  3582. }
  3583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3585. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3586. base.OnRowDeleting(e);
  3587. if ((this.ССДRowDeleting != null)) {
  3588. this.ССДRowDeleting(this, new ССДRowChangeEvent(((ССДRow)(e.Row)), e.Action));
  3589. }
  3590. }
  3591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3593. public void RemoveССДRow(ССДRow row) {
  3594. this.Rows.Remove(row);
  3595. }
  3596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3598. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3599. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3600. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3601. KhozeeevPC_12DataSet ds = new KhozeeevPC_12DataSet();
  3602. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3603. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3604. any1.MinOccurs = new decimal(0);
  3605. any1.MaxOccurs = decimal.MaxValue;
  3606. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3607. sequence.Items.Add(any1);
  3608. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3609. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3610. any2.MinOccurs = new decimal(1);
  3611. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3612. sequence.Items.Add(any2);
  3613. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3614. attribute1.Name = "namespace";
  3615. attribute1.FixedValue = ds.Namespace;
  3616. type.Attributes.Add(attribute1);
  3617. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3618. attribute2.Name = "tableTypeName";
  3619. attribute2.FixedValue = "ССДDataTable";
  3620. type.Attributes.Add(attribute2);
  3621. type.Particle = sequence;
  3622. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3623. if (xs.Contains(dsSchema.TargetNamespace)) {
  3624. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3625. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3626. try {
  3627. global::System.Xml.Schema.XmlSchema schema = null;
  3628. dsSchema.Write(s1);
  3629. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3630. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3631. s2.SetLength(0);
  3632. schema.Write(s2);
  3633. if ((s1.Length == s2.Length)) {
  3634. s1.Position = 0;
  3635. s2.Position = 0;
  3636. for (; ((s1.Position != s1.Length)
  3637. && (s1.ReadByte() == s2.ReadByte())); ) {
  3638. ;
  3639. }
  3640. if ((s1.Position == s1.Length)) {
  3641. return type;
  3642. }
  3643. }
  3644. }
  3645. }
  3646. finally {
  3647. if ((s1 != null)) {
  3648. s1.Close();
  3649. }
  3650. if ((s2 != null)) {
  3651. s2.Close();
  3652. }
  3653. }
  3654. }
  3655. xs.Add(dsSchema);
  3656. return type;
  3657. }
  3658. }
  3659. /// <summary>
  3660. ///Represents strongly named DataRow class.
  3661. ///</summary>
  3662. public partial class БлокПитанияRow : global::System.Data.DataRow {
  3663. private БлокПитанияDataTable tableБлокПитания;
  3664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3666. internal БлокПитанияRow(global::System.Data.DataRowBuilder rb) :
  3667. base(rb) {
  3668. this.tableБлокПитания = ((БлокПитанияDataTable)(this.Table));
  3669. }
  3670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3672. public string Название {
  3673. get {
  3674. try {
  3675. return ((string)(this[this.tableБлокПитания.НазваниеColumn]));
  3676. }
  3677. catch (global::System.InvalidCastException e) {
  3678. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'БлокПитания\' равно DBNull.", e);
  3679. }
  3680. }
  3681. set {
  3682. this[this.tableБлокПитания.НазваниеColumn] = value;
  3683. }
  3684. }
  3685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3687. public decimal Цена {
  3688. get {
  3689. try {
  3690. return ((decimal)(this[this.tableБлокПитания.ЦенаColumn]));
  3691. }
  3692. catch (global::System.InvalidCastException e) {
  3693. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'БлокПитания\' равно DBNull.", e);
  3694. }
  3695. }
  3696. set {
  3697. this[this.tableБлокПитания.ЦенаColumn] = value;
  3698. }
  3699. }
  3700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3702. public int Количество {
  3703. get {
  3704. try {
  3705. return ((int)(this[this.tableБлокПитания.КоличествоColumn]));
  3706. }
  3707. catch (global::System.InvalidCastException e) {
  3708. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'БлокПитания\' равно DBNull.", e);
  3709. }
  3710. }
  3711. set {
  3712. this[this.tableБлокПитания.КоличествоColumn] = value;
  3713. }
  3714. }
  3715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3717. public int КодБлокаПитания {
  3718. get {
  3719. return ((int)(this[this.tableБлокПитания.КодБлокаПитанияColumn]));
  3720. }
  3721. set {
  3722. this[this.tableБлокПитания.КодБлокаПитанияColumn] = value;
  3723. }
  3724. }
  3725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3727. public bool IsНазваниеNull() {
  3728. return this.IsNull(this.tableБлокПитания.НазваниеColumn);
  3729. }
  3730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3732. public void SetНазваниеNull() {
  3733. this[this.tableБлокПитания.НазваниеColumn] = global::System.Convert.DBNull;
  3734. }
  3735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3737. public bool IsЦенаNull() {
  3738. return this.IsNull(this.tableБлокПитания.ЦенаColumn);
  3739. }
  3740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3742. public void SetЦенаNull() {
  3743. this[this.tableБлокПитания.ЦенаColumn] = global::System.Convert.DBNull;
  3744. }
  3745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3747. public bool IsКоличествоNull() {
  3748. return this.IsNull(this.tableБлокПитания.КоличествоColumn);
  3749. }
  3750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3752. public void SetКоличествоNull() {
  3753. this[this.tableБлокПитания.КоличествоColumn] = global::System.Convert.DBNull;
  3754. }
  3755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3757. public ГотоваяСборкаRow[] GetГотоваяСборкаRows() {
  3758. if ((this.Table.ChildRelations["FK_ГотоваяСборка_БлокПитания"] == null)) {
  3759. return new ГотоваяСборкаRow[0];
  3760. }
  3761. else {
  3762. return ((ГотоваяСборкаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ГотоваяСборка_БлокПитания"])));
  3763. }
  3764. }
  3765. }
  3766. /// <summary>
  3767. ///Represents strongly named DataRow class.
  3768. ///</summary>
  3769. public partial class ВидеокартыRow : global::System.Data.DataRow {
  3770. private ВидеокартыDataTable tableВидеокарты;
  3771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3773. internal ВидеокартыRow(global::System.Data.DataRowBuilder rb) :
  3774. base(rb) {
  3775. this.tableВидеокарты = ((ВидеокартыDataTable)(this.Table));
  3776. }
  3777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3779. public string Название {
  3780. get {
  3781. try {
  3782. return ((string)(this[this.tableВидеокарты.НазваниеColumn]));
  3783. }
  3784. catch (global::System.InvalidCastException e) {
  3785. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'Видеокарты\' равно DBNull.", e);
  3786. }
  3787. }
  3788. set {
  3789. this[this.tableВидеокарты.НазваниеColumn] = value;
  3790. }
  3791. }
  3792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3794. public decimal Цена {
  3795. get {
  3796. try {
  3797. return ((decimal)(this[this.tableВидеокарты.ЦенаColumn]));
  3798. }
  3799. catch (global::System.InvalidCastException e) {
  3800. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Видеокарты\' равно DBNull.", e);
  3801. }
  3802. }
  3803. set {
  3804. this[this.tableВидеокарты.ЦенаColumn] = value;
  3805. }
  3806. }
  3807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3809. public string Количество {
  3810. get {
  3811. try {
  3812. return ((string)(this[this.tableВидеокарты.КоличествоColumn]));
  3813. }
  3814. catch (global::System.InvalidCastException e) {
  3815. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Видеокарты\' равно DBNull.", e);
  3816. }
  3817. }
  3818. set {
  3819. this[this.tableВидеокарты.КоличествоColumn] = value;
  3820. }
  3821. }
  3822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3824. public int КодВидеокарты {
  3825. get {
  3826. return ((int)(this[this.tableВидеокарты.КодВидеокартыColumn]));
  3827. }
  3828. set {
  3829. this[this.tableВидеокарты.КодВидеокартыColumn] = value;
  3830. }
  3831. }
  3832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3834. public bool IsНазваниеNull() {
  3835. return this.IsNull(this.tableВидеокарты.НазваниеColumn);
  3836. }
  3837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3839. public void SetНазваниеNull() {
  3840. this[this.tableВидеокарты.НазваниеColumn] = global::System.Convert.DBNull;
  3841. }
  3842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3844. public bool IsЦенаNull() {
  3845. return this.IsNull(this.tableВидеокарты.ЦенаColumn);
  3846. }
  3847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3849. public void SetЦенаNull() {
  3850. this[this.tableВидеокарты.ЦенаColumn] = global::System.Convert.DBNull;
  3851. }
  3852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3854. public bool IsКоличествоNull() {
  3855. return this.IsNull(this.tableВидеокарты.КоличествоColumn);
  3856. }
  3857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3859. public void SetКоличествоNull() {
  3860. this[this.tableВидеокарты.КоличествоColumn] = global::System.Convert.DBNull;
  3861. }
  3862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3864. public ГотоваяСборкаRow[] GetГотоваяСборкаRows() {
  3865. if ((this.Table.ChildRelations["FK_ГотоваяСборка_Видеокарты"] == null)) {
  3866. return new ГотоваяСборкаRow[0];
  3867. }
  3868. else {
  3869. return ((ГотоваяСборкаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ГотоваяСборка_Видеокарты"])));
  3870. }
  3871. }
  3872. }
  3873. /// <summary>
  3874. ///Represents strongly named DataRow class.
  3875. ///</summary>
  3876. public partial class ВодянаяСистемаОхлажденияRow : global::System.Data.DataRow {
  3877. private ВодянаяСистемаОхлажденияDataTable tableВодянаяСистемаОхлаждения;
  3878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3880. internal ВодянаяСистемаОхлажденияRow(global::System.Data.DataRowBuilder rb) :
  3881. base(rb) {
  3882. this.tableВодянаяСистемаОхлаждения = ((ВодянаяСистемаОхлажденияDataTable)(this.Table));
  3883. }
  3884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3886. public string Название {
  3887. get {
  3888. try {
  3889. return ((string)(this[this.tableВодянаяСистемаОхлаждения.НазваниеColumn]));
  3890. }
  3891. catch (global::System.InvalidCastException e) {
  3892. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'ВодянаяСистемаОхлаждения\' равно DBNull" +
  3893. ".", e);
  3894. }
  3895. }
  3896. set {
  3897. this[this.tableВодянаяСистемаОхлаждения.НазваниеColumn] = value;
  3898. }
  3899. }
  3900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3902. public int КодВодянойСистемы {
  3903. get {
  3904. return ((int)(this[this.tableВодянаяСистемаОхлаждения.КодВодянойСистемыColumn]));
  3905. }
  3906. set {
  3907. this[this.tableВодянаяСистемаОхлаждения.КодВодянойСистемыColumn] = value;
  3908. }
  3909. }
  3910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3912. public decimal Цена {
  3913. get {
  3914. try {
  3915. return ((decimal)(this[this.tableВодянаяСистемаОхлаждения.ЦенаColumn]));
  3916. }
  3917. catch (global::System.InvalidCastException e) {
  3918. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'ВодянаяСистемаОхлаждения\' равно DBNull.", e);
  3919. }
  3920. }
  3921. set {
  3922. this[this.tableВодянаяСистемаОхлаждения.ЦенаColumn] = value;
  3923. }
  3924. }
  3925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3927. public int Количество {
  3928. get {
  3929. try {
  3930. return ((int)(this[this.tableВодянаяСистемаОхлаждения.КоличествоColumn]));
  3931. }
  3932. catch (global::System.InvalidCastException e) {
  3933. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'ВодянаяСистемаОхлаждения\' равно DBNu" +
  3934. "ll.", e);
  3935. }
  3936. }
  3937. set {
  3938. this[this.tableВодянаяСистемаОхлаждения.КоличествоColumn] = value;
  3939. }
  3940. }
  3941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3943. public bool IsНазваниеNull() {
  3944. return this.IsNull(this.tableВодянаяСистемаОхлаждения.НазваниеColumn);
  3945. }
  3946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3948. public void SetНазваниеNull() {
  3949. this[this.tableВодянаяСистемаОхлаждения.НазваниеColumn] = global::System.Convert.DBNull;
  3950. }
  3951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3953. public bool IsЦенаNull() {
  3954. return this.IsNull(this.tableВодянаяСистемаОхлаждения.ЦенаColumn);
  3955. }
  3956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3958. public void SetЦенаNull() {
  3959. this[this.tableВодянаяСистемаОхлаждения.ЦенаColumn] = global::System.Convert.DBNull;
  3960. }
  3961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3963. public bool IsКоличествоNull() {
  3964. return this.IsNull(this.tableВодянаяСистемаОхлаждения.КоличествоColumn);
  3965. }
  3966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3968. public void SetКоличествоNull() {
  3969. this[this.tableВодянаяСистемаОхлаждения.КоличествоColumn] = global::System.Convert.DBNull;
  3970. }
  3971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3973. public ГотоваяСборкаRow[] GetГотоваяСборкаRows() {
  3974. if ((this.Table.ChildRelations["FK_ГотоваяСборка_ВодянаяСистемаОхлаждения"] == null)) {
  3975. return new ГотоваяСборкаRow[0];
  3976. }
  3977. else {
  3978. return ((ГотоваяСборкаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ГотоваяСборка_ВодянаяСистемаОхлаждения"])));
  3979. }
  3980. }
  3981. }
  3982. /// <summary>
  3983. ///Represents strongly named DataRow class.
  3984. ///</summary>
  3985. public partial class ГотоваяСборкаRow : global::System.Data.DataRow {
  3986. private ГотоваяСборкаDataTable tableГотоваяСборка;
  3987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3989. internal ГотоваяСборкаRow(global::System.Data.DataRowBuilder rb) :
  3990. base(rb) {
  3991. this.tableГотоваяСборка = ((ГотоваяСборкаDataTable)(this.Table));
  3992. }
  3993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3995. public int КодСборки {
  3996. get {
  3997. return ((int)(this[this.tableГотоваяСборка.КодСборкиColumn]));
  3998. }
  3999. set {
  4000. this[this.tableГотоваяСборка.КодСборкиColumn] = value;
  4001. }
  4002. }
  4003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4005. public int КодБлокаПитания {
  4006. get {
  4007. try {
  4008. return ((int)(this[this.tableГотоваяСборка.КодБлокаПитанияColumn]));
  4009. }
  4010. catch (global::System.InvalidCastException e) {
  4011. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодБлокаПитания\' в таблице \'ГотоваяСборка\' равно DBNull.", e);
  4012. }
  4013. }
  4014. set {
  4015. this[this.tableГотоваяСборка.КодБлокаПитанияColumn] = value;
  4016. }
  4017. }
  4018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4020. public int КодВидеокарты {
  4021. get {
  4022. try {
  4023. return ((int)(this[this.tableГотоваяСборка.КодВидеокартыColumn]));
  4024. }
  4025. catch (global::System.InvalidCastException e) {
  4026. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодВидеокарты\' в таблице \'ГотоваяСборка\' равно DBNull.", e);
  4027. }
  4028. }
  4029. set {
  4030. this[this.tableГотоваяСборка.КодВидеокартыColumn] = value;
  4031. }
  4032. }
  4033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4035. public int КодВодянойСистемы {
  4036. get {
  4037. try {
  4038. return ((int)(this[this.tableГотоваяСборка.КодВодянойСистемыColumn]));
  4039. }
  4040. catch (global::System.InvalidCastException e) {
  4041. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодВодянойСистемы\' в таблице \'ГотоваяСборка\' равно DBNull.", e);
  4042. }
  4043. }
  4044. set {
  4045. this[this.tableГотоваяСборка.КодВодянойСистемыColumn] = value;
  4046. }
  4047. }
  4048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4050. public int КодЖесткогоДиска {
  4051. get {
  4052. try {
  4053. return ((int)(this[this.tableГотоваяСборка.КодЖесткогоДискаColumn]));
  4054. }
  4055. catch (global::System.InvalidCastException e) {
  4056. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодЖесткогоДиска\' в таблице \'ГотоваяСборка\' равно DBNull.", e);
  4057. }
  4058. }
  4059. set {
  4060. this[this.tableГотоваяСборка.КодЖесткогоДискаColumn] = value;
  4061. }
  4062. }
  4063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4065. public int КодКулера {
  4066. get {
  4067. try {
  4068. return ((int)(this[this.tableГотоваяСборка.КодКулераColumn]));
  4069. }
  4070. catch (global::System.InvalidCastException e) {
  4071. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодКулера\' в таблице \'ГотоваяСборка\' равно DBNull.", e);
  4072. }
  4073. }
  4074. set {
  4075. this[this.tableГотоваяСборка.КодКулераColumn] = value;
  4076. }
  4077. }
  4078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4080. public int КодМатеринскойПлаты {
  4081. get {
  4082. try {
  4083. return ((int)(this[this.tableГотоваяСборка.КодМатеринскойПлатыColumn]));
  4084. }
  4085. catch (global::System.InvalidCastException e) {
  4086. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодМатеринскойПлаты\' в таблице \'ГотоваяСборка\' равно DBNull" +
  4087. ".", e);
  4088. }
  4089. }
  4090. set {
  4091. this[this.tableГотоваяСборка.КодМатеринскойПлатыColumn] = value;
  4092. }
  4093. }
  4094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4096. public int КодОперативнойПамяти {
  4097. get {
  4098. try {
  4099. return ((int)(this[this.tableГотоваяСборка.КодОперативнойПамятиColumn]));
  4100. }
  4101. catch (global::System.InvalidCastException e) {
  4102. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодОперативнойПамяти\' в таблице \'ГотоваяСборка\' равно DBNul" +
  4103. "l.", e);
  4104. }
  4105. }
  4106. set {
  4107. this[this.tableГотоваяСборка.КодОперативнойПамятиColumn] = value;
  4108. }
  4109. }
  4110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4112. public int КодПроцессора {
  4113. get {
  4114. try {
  4115. return ((int)(this[this.tableГотоваяСборка.КодПроцессораColumn]));
  4116. }
  4117. catch (global::System.InvalidCastException e) {
  4118. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодПроцессора\' в таблице \'ГотоваяСборка\' равно DBNull.", e);
  4119. }
  4120. }
  4121. set {
  4122. this[this.tableГотоваяСборка.КодПроцессораColumn] = value;
  4123. }
  4124. }
  4125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4127. public int КодССД {
  4128. get {
  4129. try {
  4130. return ((int)(this[this.tableГотоваяСборка.КодССДColumn]));
  4131. }
  4132. catch (global::System.InvalidCastException e) {
  4133. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодССД\' в таблице \'ГотоваяСборка\' равно DBNull.", e);
  4134. }
  4135. }
  4136. set {
  4137. this[this.tableГотоваяСборка.КодССДColumn] = value;
  4138. }
  4139. }
  4140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4142. public int Сотрудник {
  4143. get {
  4144. try {
  4145. return ((int)(this[this.tableГотоваяСборка.СотрудникColumn]));
  4146. }
  4147. catch (global::System.InvalidCastException e) {
  4148. throw new global::System.Data.StrongTypingException("Значение для столбца \'Сотрудник\' в таблице \'ГотоваяСборка\' равно DBNull.", e);
  4149. }
  4150. }
  4151. set {
  4152. this[this.tableГотоваяСборка.СотрудникColumn] = value;
  4153. }
  4154. }
  4155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4157. public БлокПитанияRow БлокПитанияRow {
  4158. get {
  4159. return ((БлокПитанияRow)(this.GetParentRow(this.Table.ParentRelations["FK_ГотоваяСборка_БлокПитания"])));
  4160. }
  4161. set {
  4162. this.SetParentRow(value, this.Table.ParentRelations["FK_ГотоваяСборка_БлокПитания"]);
  4163. }
  4164. }
  4165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4167. public ВидеокартыRow ВидеокартыRow {
  4168. get {
  4169. return ((ВидеокартыRow)(this.GetParentRow(this.Table.ParentRelations["FK_ГотоваяСборка_Видеокарты"])));
  4170. }
  4171. set {
  4172. this.SetParentRow(value, this.Table.ParentRelations["FK_ГотоваяСборка_Видеокарты"]);
  4173. }
  4174. }
  4175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4177. public ВодянаяСистемаОхлажденияRow ВодянаяСистемаОхлажденияRow {
  4178. get {
  4179. return ((ВодянаяСистемаОхлажденияRow)(this.GetParentRow(this.Table.ParentRelations["FK_ГотоваяСборка_ВодянаяСистемаОхлаждения"])));
  4180. }
  4181. set {
  4182. this.SetParentRow(value, this.Table.ParentRelations["FK_ГотоваяСборка_ВодянаяСистемаОхлаждения"]);
  4183. }
  4184. }
  4185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4187. public ЖесткийДискRow ЖесткийДискRow {
  4188. get {
  4189. return ((ЖесткийДискRow)(this.GetParentRow(this.Table.ParentRelations["FK_ГотоваяСборка_ЖесткийДиск"])));
  4190. }
  4191. set {
  4192. this.SetParentRow(value, this.Table.ParentRelations["FK_ГотоваяСборка_ЖесткийДиск"]);
  4193. }
  4194. }
  4195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4197. public КулерыRow КулерыRow {
  4198. get {
  4199. return ((КулерыRow)(this.GetParentRow(this.Table.ParentRelations["FK_ГотоваяСборка_Кулеры"])));
  4200. }
  4201. set {
  4202. this.SetParentRow(value, this.Table.ParentRelations["FK_ГотоваяСборка_Кулеры"]);
  4203. }
  4204. }
  4205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4207. public МатеринскаяПлатаRow МатеринскаяПлатаRow {
  4208. get {
  4209. return ((МатеринскаяПлатаRow)(this.GetParentRow(this.Table.ParentRelations["FK_ГотоваяСборка_МатеринскаяПлата"])));
  4210. }
  4211. set {
  4212. this.SetParentRow(value, this.Table.ParentRelations["FK_ГотоваяСборка_МатеринскаяПлата"]);
  4213. }
  4214. }
  4215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4217. public ОперативнаяПамятьRow ОперативнаяПамятьRow {
  4218. get {
  4219. return ((ОперативнаяПамятьRow)(this.GetParentRow(this.Table.ParentRelations["FK_ГотоваяСборка_ОперативнаяПамять"])));
  4220. }
  4221. set {
  4222. this.SetParentRow(value, this.Table.ParentRelations["FK_ГотоваяСборка_ОперативнаяПамять"]);
  4223. }
  4224. }
  4225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4227. public ПользователиRow ПользователиRow {
  4228. get {
  4229. return ((ПользователиRow)(this.GetParentRow(this.Table.ParentRelations["FK_ГотоваяСборка_Пользователи"])));
  4230. }
  4231. set {
  4232. this.SetParentRow(value, this.Table.ParentRelations["FK_ГотоваяСборка_Пользователи"]);
  4233. }
  4234. }
  4235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4237. public ПроцессорыRow ПроцессорыRow {
  4238. get {
  4239. return ((ПроцессорыRow)(this.GetParentRow(this.Table.ParentRelations["FK_ГотоваяСборка_Процессоры"])));
  4240. }
  4241. set {
  4242. this.SetParentRow(value, this.Table.ParentRelations["FK_ГотоваяСборка_Процессоры"]);
  4243. }
  4244. }
  4245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4247. public ССДRow ССДRow {
  4248. get {
  4249. return ((ССДRow)(this.GetParentRow(this.Table.ParentRelations["FK_ГотоваяСборка_ССД"])));
  4250. }
  4251. set {
  4252. this.SetParentRow(value, this.Table.ParentRelations["FK_ГотоваяСборка_ССД"]);
  4253. }
  4254. }
  4255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4257. public bool IsКодБлокаПитанияNull() {
  4258. return this.IsNull(this.tableГотоваяСборка.КодБлокаПитанияColumn);
  4259. }
  4260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4262. public void SetКодБлокаПитанияNull() {
  4263. this[this.tableГотоваяСборка.КодБлокаПитанияColumn] = global::System.Convert.DBNull;
  4264. }
  4265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4267. public bool IsКодВидеокартыNull() {
  4268. return this.IsNull(this.tableГотоваяСборка.КодВидеокартыColumn);
  4269. }
  4270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4272. public void SetКодВидеокартыNull() {
  4273. this[this.tableГотоваяСборка.КодВидеокартыColumn] = global::System.Convert.DBNull;
  4274. }
  4275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4277. public bool IsКодВодянойСистемыNull() {
  4278. return this.IsNull(this.tableГотоваяСборка.КодВодянойСистемыColumn);
  4279. }
  4280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4282. public void SetКодВодянойСистемыNull() {
  4283. this[this.tableГотоваяСборка.КодВодянойСистемыColumn] = global::System.Convert.DBNull;
  4284. }
  4285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4287. public bool IsКодЖесткогоДискаNull() {
  4288. return this.IsNull(this.tableГотоваяСборка.КодЖесткогоДискаColumn);
  4289. }
  4290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4292. public void SetКодЖесткогоДискаNull() {
  4293. this[this.tableГотоваяСборка.КодЖесткогоДискаColumn] = global::System.Convert.DBNull;
  4294. }
  4295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4297. public bool IsКодКулераNull() {
  4298. return this.IsNull(this.tableГотоваяСборка.КодКулераColumn);
  4299. }
  4300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4302. public void SetКодКулераNull() {
  4303. this[this.tableГотоваяСборка.КодКулераColumn] = global::System.Convert.DBNull;
  4304. }
  4305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4307. public bool IsКодМатеринскойПлатыNull() {
  4308. return this.IsNull(this.tableГотоваяСборка.КодМатеринскойПлатыColumn);
  4309. }
  4310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4312. public void SetКодМатеринскойПлатыNull() {
  4313. this[this.tableГотоваяСборка.КодМатеринскойПлатыColumn] = global::System.Convert.DBNull;
  4314. }
  4315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4317. public bool IsКодОперативнойПамятиNull() {
  4318. return this.IsNull(this.tableГотоваяСборка.КодОперативнойПамятиColumn);
  4319. }
  4320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4322. public void SetКодОперативнойПамятиNull() {
  4323. this[this.tableГотоваяСборка.КодОперативнойПамятиColumn] = global::System.Convert.DBNull;
  4324. }
  4325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4327. public bool IsКодПроцессораNull() {
  4328. return this.IsNull(this.tableГотоваяСборка.КодПроцессораColumn);
  4329. }
  4330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4332. public void SetКодПроцессораNull() {
  4333. this[this.tableГотоваяСборка.КодПроцессораColumn] = global::System.Convert.DBNull;
  4334. }
  4335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4337. public bool IsКодССДNull() {
  4338. return this.IsNull(this.tableГотоваяСборка.КодССДColumn);
  4339. }
  4340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4342. public void SetКодССДNull() {
  4343. this[this.tableГотоваяСборка.КодССДColumn] = global::System.Convert.DBNull;
  4344. }
  4345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4347. public bool IsСотрудникNull() {
  4348. return this.IsNull(this.tableГотоваяСборка.СотрудникColumn);
  4349. }
  4350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4352. public void SetСотрудникNull() {
  4353. this[this.tableГотоваяСборка.СотрудникColumn] = global::System.Convert.DBNull;
  4354. }
  4355. }
  4356. /// <summary>
  4357. ///Represents strongly named DataRow class.
  4358. ///</summary>
  4359. public partial class ЖесткийДискRow : global::System.Data.DataRow {
  4360. private ЖесткийДискDataTable tableЖесткийДиск;
  4361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4363. internal ЖесткийДискRow(global::System.Data.DataRowBuilder rb) :
  4364. base(rb) {
  4365. this.tableЖесткийДиск = ((ЖесткийДискDataTable)(this.Table));
  4366. }
  4367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4369. public string Название {
  4370. get {
  4371. try {
  4372. return ((string)(this[this.tableЖесткийДиск.НазваниеColumn]));
  4373. }
  4374. catch (global::System.InvalidCastException e) {
  4375. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'ЖесткийДиск\' равно DBNull.", e);
  4376. }
  4377. }
  4378. set {
  4379. this[this.tableЖесткийДиск.НазваниеColumn] = value;
  4380. }
  4381. }
  4382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4384. public int Количество {
  4385. get {
  4386. try {
  4387. return ((int)(this[this.tableЖесткийДиск.КоличествоColumn]));
  4388. }
  4389. catch (global::System.InvalidCastException e) {
  4390. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'ЖесткийДиск\' равно DBNull.", e);
  4391. }
  4392. }
  4393. set {
  4394. this[this.tableЖесткийДиск.КоличествоColumn] = value;
  4395. }
  4396. }
  4397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4399. public decimal Цена {
  4400. get {
  4401. try {
  4402. return ((decimal)(this[this.tableЖесткийДиск.ЦенаColumn]));
  4403. }
  4404. catch (global::System.InvalidCastException e) {
  4405. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'ЖесткийДиск\' равно DBNull.", e);
  4406. }
  4407. }
  4408. set {
  4409. this[this.tableЖесткийДиск.ЦенаColumn] = value;
  4410. }
  4411. }
  4412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4414. public int КодЖесткогоДиска {
  4415. get {
  4416. return ((int)(this[this.tableЖесткийДиск.КодЖесткогоДискаColumn]));
  4417. }
  4418. set {
  4419. this[this.tableЖесткийДиск.КодЖесткогоДискаColumn] = value;
  4420. }
  4421. }
  4422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4424. public bool IsНазваниеNull() {
  4425. return this.IsNull(this.tableЖесткийДиск.НазваниеColumn);
  4426. }
  4427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4429. public void SetНазваниеNull() {
  4430. this[this.tableЖесткийДиск.НазваниеColumn] = global::System.Convert.DBNull;
  4431. }
  4432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4434. public bool IsКоличествоNull() {
  4435. return this.IsNull(this.tableЖесткийДиск.КоличествоColumn);
  4436. }
  4437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4439. public void SetКоличествоNull() {
  4440. this[this.tableЖесткийДиск.КоличествоColumn] = global::System.Convert.DBNull;
  4441. }
  4442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4444. public bool IsЦенаNull() {
  4445. return this.IsNull(this.tableЖесткийДиск.ЦенаColumn);
  4446. }
  4447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4449. public void SetЦенаNull() {
  4450. this[this.tableЖесткийДиск.ЦенаColumn] = global::System.Convert.DBNull;
  4451. }
  4452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4454. public ГотоваяСборкаRow[] GetГотоваяСборкаRows() {
  4455. if ((this.Table.ChildRelations["FK_ГотоваяСборка_ЖесткийДиск"] == null)) {
  4456. return new ГотоваяСборкаRow[0];
  4457. }
  4458. else {
  4459. return ((ГотоваяСборкаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ГотоваяСборка_ЖесткийДиск"])));
  4460. }
  4461. }
  4462. }
  4463. /// <summary>
  4464. ///Represents strongly named DataRow class.
  4465. ///</summary>
  4466. public partial class КулерыRow : global::System.Data.DataRow {
  4467. private КулерыDataTable tableКулеры;
  4468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4470. internal КулерыRow(global::System.Data.DataRowBuilder rb) :
  4471. base(rb) {
  4472. this.tableКулеры = ((КулерыDataTable)(this.Table));
  4473. }
  4474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4476. public string Название {
  4477. get {
  4478. try {
  4479. return ((string)(this[this.tableКулеры.НазваниеColumn]));
  4480. }
  4481. catch (global::System.InvalidCastException e) {
  4482. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'Кулеры\' равно DBNull.", e);
  4483. }
  4484. }
  4485. set {
  4486. this[this.tableКулеры.НазваниеColumn] = value;
  4487. }
  4488. }
  4489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4491. public int Количество {
  4492. get {
  4493. try {
  4494. return ((int)(this[this.tableКулеры.КоличествоColumn]));
  4495. }
  4496. catch (global::System.InvalidCastException e) {
  4497. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Кулеры\' равно DBNull.", e);
  4498. }
  4499. }
  4500. set {
  4501. this[this.tableКулеры.КоличествоColumn] = value;
  4502. }
  4503. }
  4504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4506. public decimal Цена {
  4507. get {
  4508. try {
  4509. return ((decimal)(this[this.tableКулеры.ЦенаColumn]));
  4510. }
  4511. catch (global::System.InvalidCastException e) {
  4512. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Кулеры\' равно DBNull.", e);
  4513. }
  4514. }
  4515. set {
  4516. this[this.tableКулеры.ЦенаColumn] = value;
  4517. }
  4518. }
  4519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4521. public int КодКулера {
  4522. get {
  4523. return ((int)(this[this.tableКулеры.КодКулераColumn]));
  4524. }
  4525. set {
  4526. this[this.tableКулеры.КодКулераColumn] = value;
  4527. }
  4528. }
  4529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4531. public bool IsНазваниеNull() {
  4532. return this.IsNull(this.tableКулеры.НазваниеColumn);
  4533. }
  4534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4536. public void SetНазваниеNull() {
  4537. this[this.tableКулеры.НазваниеColumn] = global::System.Convert.DBNull;
  4538. }
  4539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4541. public bool IsКоличествоNull() {
  4542. return this.IsNull(this.tableКулеры.КоличествоColumn);
  4543. }
  4544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4546. public void SetКоличествоNull() {
  4547. this[this.tableКулеры.КоличествоColumn] = global::System.Convert.DBNull;
  4548. }
  4549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4551. public bool IsЦенаNull() {
  4552. return this.IsNull(this.tableКулеры.ЦенаColumn);
  4553. }
  4554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4556. public void SetЦенаNull() {
  4557. this[this.tableКулеры.ЦенаColumn] = global::System.Convert.DBNull;
  4558. }
  4559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4561. public ГотоваяСборкаRow[] GetГотоваяСборкаRows() {
  4562. if ((this.Table.ChildRelations["FK_ГотоваяСборка_Кулеры"] == null)) {
  4563. return new ГотоваяСборкаRow[0];
  4564. }
  4565. else {
  4566. return ((ГотоваяСборкаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ГотоваяСборка_Кулеры"])));
  4567. }
  4568. }
  4569. }
  4570. /// <summary>
  4571. ///Represents strongly named DataRow class.
  4572. ///</summary>
  4573. public partial class МатеринскаяПлатаRow : global::System.Data.DataRow {
  4574. private МатеринскаяПлатаDataTable tableМатеринскаяПлата;
  4575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4577. internal МатеринскаяПлатаRow(global::System.Data.DataRowBuilder rb) :
  4578. base(rb) {
  4579. this.tableМатеринскаяПлата = ((МатеринскаяПлатаDataTable)(this.Table));
  4580. }
  4581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4583. public string Название {
  4584. get {
  4585. try {
  4586. return ((string)(this[this.tableМатеринскаяПлата.НазваниеColumn]));
  4587. }
  4588. catch (global::System.InvalidCastException e) {
  4589. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'МатеринскаяПлата\' равно DBNull.", e);
  4590. }
  4591. }
  4592. set {
  4593. this[this.tableМатеринскаяПлата.НазваниеColumn] = value;
  4594. }
  4595. }
  4596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4598. public decimal Цена {
  4599. get {
  4600. try {
  4601. return ((decimal)(this[this.tableМатеринскаяПлата.ЦенаColumn]));
  4602. }
  4603. catch (global::System.InvalidCastException e) {
  4604. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'МатеринскаяПлата\' равно DBNull.", e);
  4605. }
  4606. }
  4607. set {
  4608. this[this.tableМатеринскаяПлата.ЦенаColumn] = value;
  4609. }
  4610. }
  4611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4613. public int Количество {
  4614. get {
  4615. try {
  4616. return ((int)(this[this.tableМатеринскаяПлата.КоличествоColumn]));
  4617. }
  4618. catch (global::System.InvalidCastException e) {
  4619. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'МатеринскаяПлата\' равно DBNull.", e);
  4620. }
  4621. }
  4622. set {
  4623. this[this.tableМатеринскаяПлата.КоличествоColumn] = value;
  4624. }
  4625. }
  4626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4628. public int КодМатеринскойПлаты {
  4629. get {
  4630. return ((int)(this[this.tableМатеринскаяПлата.КодМатеринскойПлатыColumn]));
  4631. }
  4632. set {
  4633. this[this.tableМатеринскаяПлата.КодМатеринскойПлатыColumn] = value;
  4634. }
  4635. }
  4636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4638. public bool IsНазваниеNull() {
  4639. return this.IsNull(this.tableМатеринскаяПлата.НазваниеColumn);
  4640. }
  4641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4643. public void SetНазваниеNull() {
  4644. this[this.tableМатеринскаяПлата.НазваниеColumn] = global::System.Convert.DBNull;
  4645. }
  4646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4648. public bool IsЦенаNull() {
  4649. return this.IsNull(this.tableМатеринскаяПлата.ЦенаColumn);
  4650. }
  4651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4653. public void SetЦенаNull() {
  4654. this[this.tableМатеринскаяПлата.ЦенаColumn] = global::System.Convert.DBNull;
  4655. }
  4656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4658. public bool IsКоличествоNull() {
  4659. return this.IsNull(this.tableМатеринскаяПлата.КоличествоColumn);
  4660. }
  4661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4663. public void SetКоличествоNull() {
  4664. this[this.tableМатеринскаяПлата.КоличествоColumn] = global::System.Convert.DBNull;
  4665. }
  4666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4668. public ГотоваяСборкаRow[] GetГотоваяСборкаRows() {
  4669. if ((this.Table.ChildRelations["FK_ГотоваяСборка_МатеринскаяПлата"] == null)) {
  4670. return new ГотоваяСборкаRow[0];
  4671. }
  4672. else {
  4673. return ((ГотоваяСборкаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ГотоваяСборка_МатеринскаяПлата"])));
  4674. }
  4675. }
  4676. }
  4677. /// <summary>
  4678. ///Represents strongly named DataRow class.
  4679. ///</summary>
  4680. public partial class ОперативнаяПамятьRow : global::System.Data.DataRow {
  4681. private ОперативнаяПамятьDataTable tableОперативнаяПамять;
  4682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4684. internal ОперативнаяПамятьRow(global::System.Data.DataRowBuilder rb) :
  4685. base(rb) {
  4686. this.tableОперативнаяПамять = ((ОперативнаяПамятьDataTable)(this.Table));
  4687. }
  4688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4690. public string Название {
  4691. get {
  4692. try {
  4693. return ((string)(this[this.tableОперативнаяПамять.НазваниеColumn]));
  4694. }
  4695. catch (global::System.InvalidCastException e) {
  4696. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'ОперативнаяПамять\' равно DBNull.", e);
  4697. }
  4698. }
  4699. set {
  4700. this[this.tableОперативнаяПамять.НазваниеColumn] = value;
  4701. }
  4702. }
  4703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4705. public decimal Цена {
  4706. get {
  4707. try {
  4708. return ((decimal)(this[this.tableОперативнаяПамять.ЦенаColumn]));
  4709. }
  4710. catch (global::System.InvalidCastException e) {
  4711. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'ОперативнаяПамять\' равно DBNull.", e);
  4712. }
  4713. }
  4714. set {
  4715. this[this.tableОперативнаяПамять.ЦенаColumn] = value;
  4716. }
  4717. }
  4718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4720. public int Количество {
  4721. get {
  4722. try {
  4723. return ((int)(this[this.tableОперативнаяПамять.КоличествоColumn]));
  4724. }
  4725. catch (global::System.InvalidCastException e) {
  4726. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'ОперативнаяПамять\' равно DBNull.", e);
  4727. }
  4728. }
  4729. set {
  4730. this[this.tableОперативнаяПамять.КоличествоColumn] = value;
  4731. }
  4732. }
  4733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4735. public int КодОперативнойПамяти {
  4736. get {
  4737. return ((int)(this[this.tableОперативнаяПамять.КодОперативнойПамятиColumn]));
  4738. }
  4739. set {
  4740. this[this.tableОперативнаяПамять.КодОперативнойПамятиColumn] = value;
  4741. }
  4742. }
  4743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4745. public bool IsНазваниеNull() {
  4746. return this.IsNull(this.tableОперативнаяПамять.НазваниеColumn);
  4747. }
  4748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4750. public void SetНазваниеNull() {
  4751. this[this.tableОперативнаяПамять.НазваниеColumn] = global::System.Convert.DBNull;
  4752. }
  4753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4755. public bool IsЦенаNull() {
  4756. return this.IsNull(this.tableОперативнаяПамять.ЦенаColumn);
  4757. }
  4758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4760. public void SetЦенаNull() {
  4761. this[this.tableОперативнаяПамять.ЦенаColumn] = global::System.Convert.DBNull;
  4762. }
  4763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4765. public bool IsКоличествоNull() {
  4766. return this.IsNull(this.tableОперативнаяПамять.КоличествоColumn);
  4767. }
  4768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4770. public void SetКоличествоNull() {
  4771. this[this.tableОперативнаяПамять.КоличествоColumn] = global::System.Convert.DBNull;
  4772. }
  4773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4775. public ГотоваяСборкаRow[] GetГотоваяСборкаRows() {
  4776. if ((this.Table.ChildRelations["FK_ГотоваяСборка_ОперативнаяПамять"] == null)) {
  4777. return new ГотоваяСборкаRow[0];
  4778. }
  4779. else {
  4780. return ((ГотоваяСборкаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ГотоваяСборка_ОперативнаяПамять"])));
  4781. }
  4782. }
  4783. }
  4784. /// <summary>
  4785. ///Represents strongly named DataRow class.
  4786. ///</summary>
  4787. public partial class ПользователиRow : global::System.Data.DataRow {
  4788. private ПользователиDataTable tableПользователи;
  4789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4791. internal ПользователиRow(global::System.Data.DataRowBuilder rb) :
  4792. base(rb) {
  4793. this.tableПользователи = ((ПользователиDataTable)(this.Table));
  4794. }
  4795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4797. public string Логин {
  4798. get {
  4799. try {
  4800. return ((string)(this[this.tableПользователи.ЛогинColumn]));
  4801. }
  4802. catch (global::System.InvalidCastException e) {
  4803. throw new global::System.Data.StrongTypingException("Значение для столбца \'Логин\' в таблице \'Пользователи\' равно DBNull.", e);
  4804. }
  4805. }
  4806. set {
  4807. this[this.tableПользователи.ЛогинColumn] = value;
  4808. }
  4809. }
  4810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4812. public string Пароль {
  4813. get {
  4814. try {
  4815. return ((string)(this[this.tableПользователи.ПарольColumn]));
  4816. }
  4817. catch (global::System.InvalidCastException e) {
  4818. throw new global::System.Data.StrongTypingException("Значение для столбца \'Пароль\' в таблице \'Пользователи\' равно DBNull.", e);
  4819. }
  4820. }
  4821. set {
  4822. this[this.tableПользователи.ПарольColumn] = value;
  4823. }
  4824. }
  4825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4827. public int КодПользователя {
  4828. get {
  4829. return ((int)(this[this.tableПользователи.КодПользователяColumn]));
  4830. }
  4831. set {
  4832. this[this.tableПользователи.КодПользователяColumn] = value;
  4833. }
  4834. }
  4835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4837. public bool IsЛогинNull() {
  4838. return this.IsNull(this.tableПользователи.ЛогинColumn);
  4839. }
  4840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4842. public void SetЛогинNull() {
  4843. this[this.tableПользователи.ЛогинColumn] = global::System.Convert.DBNull;
  4844. }
  4845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4847. public bool IsПарольNull() {
  4848. return this.IsNull(this.tableПользователи.ПарольColumn);
  4849. }
  4850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4852. public void SetПарольNull() {
  4853. this[this.tableПользователи.ПарольColumn] = global::System.Convert.DBNull;
  4854. }
  4855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4857. public ГотоваяСборкаRow[] GetГотоваяСборкаRows() {
  4858. if ((this.Table.ChildRelations["FK_ГотоваяСборка_Пользователи"] == null)) {
  4859. return new ГотоваяСборкаRow[0];
  4860. }
  4861. else {
  4862. return ((ГотоваяСборкаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ГотоваяСборка_Пользователи"])));
  4863. }
  4864. }
  4865. }
  4866. /// <summary>
  4867. ///Represents strongly named DataRow class.
  4868. ///</summary>
  4869. public partial class ПроцессорыRow : global::System.Data.DataRow {
  4870. private ПроцессорыDataTable tableПроцессоры;
  4871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4873. internal ПроцессорыRow(global::System.Data.DataRowBuilder rb) :
  4874. base(rb) {
  4875. this.tableПроцессоры = ((ПроцессорыDataTable)(this.Table));
  4876. }
  4877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4879. public string Название {
  4880. get {
  4881. try {
  4882. return ((string)(this[this.tableПроцессоры.НазваниеColumn]));
  4883. }
  4884. catch (global::System.InvalidCastException e) {
  4885. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'Процессоры\' равно DBNull.", e);
  4886. }
  4887. }
  4888. set {
  4889. this[this.tableПроцессоры.НазваниеColumn] = value;
  4890. }
  4891. }
  4892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4894. public decimal Цена {
  4895. get {
  4896. try {
  4897. return ((decimal)(this[this.tableПроцессоры.ЦенаColumn]));
  4898. }
  4899. catch (global::System.InvalidCastException e) {
  4900. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Процессоры\' равно DBNull.", e);
  4901. }
  4902. }
  4903. set {
  4904. this[this.tableПроцессоры.ЦенаColumn] = value;
  4905. }
  4906. }
  4907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4909. public int Количество {
  4910. get {
  4911. try {
  4912. return ((int)(this[this.tableПроцессоры.КоличествоColumn]));
  4913. }
  4914. catch (global::System.InvalidCastException e) {
  4915. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Процессоры\' равно DBNull.", e);
  4916. }
  4917. }
  4918. set {
  4919. this[this.tableПроцессоры.КоличествоColumn] = value;
  4920. }
  4921. }
  4922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4924. public int КодПроцессора {
  4925. get {
  4926. return ((int)(this[this.tableПроцессоры.КодПроцессораColumn]));
  4927. }
  4928. set {
  4929. this[this.tableПроцессоры.КодПроцессораColumn] = value;
  4930. }
  4931. }
  4932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4934. public bool IsНазваниеNull() {
  4935. return this.IsNull(this.tableПроцессоры.НазваниеColumn);
  4936. }
  4937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4939. public void SetНазваниеNull() {
  4940. this[this.tableПроцессоры.НазваниеColumn] = global::System.Convert.DBNull;
  4941. }
  4942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4944. public bool IsЦенаNull() {
  4945. return this.IsNull(this.tableПроцессоры.ЦенаColumn);
  4946. }
  4947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4949. public void SetЦенаNull() {
  4950. this[this.tableПроцессоры.ЦенаColumn] = global::System.Convert.DBNull;
  4951. }
  4952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4954. public bool IsКоличествоNull() {
  4955. return this.IsNull(this.tableПроцессоры.КоличествоColumn);
  4956. }
  4957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4959. public void SetКоличествоNull() {
  4960. this[this.tableПроцессоры.КоличествоColumn] = global::System.Convert.DBNull;
  4961. }
  4962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4964. public ГотоваяСборкаRow[] GetГотоваяСборкаRows() {
  4965. if ((this.Table.ChildRelations["FK_ГотоваяСборка_Процессоры"] == null)) {
  4966. return new ГотоваяСборкаRow[0];
  4967. }
  4968. else {
  4969. return ((ГотоваяСборкаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ГотоваяСборка_Процессоры"])));
  4970. }
  4971. }
  4972. }
  4973. /// <summary>
  4974. ///Represents strongly named DataRow class.
  4975. ///</summary>
  4976. public partial class ССДRow : global::System.Data.DataRow {
  4977. private ССДDataTable tableССД;
  4978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4980. internal ССДRow(global::System.Data.DataRowBuilder rb) :
  4981. base(rb) {
  4982. this.tableССД = ((ССДDataTable)(this.Table));
  4983. }
  4984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4986. public string Название {
  4987. get {
  4988. try {
  4989. return ((string)(this[this.tableССД.НазваниеColumn]));
  4990. }
  4991. catch (global::System.InvalidCastException e) {
  4992. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'ССД\' равно DBNull.", e);
  4993. }
  4994. }
  4995. set {
  4996. this[this.tableССД.НазваниеColumn] = value;
  4997. }
  4998. }
  4999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5001. public decimal Цена {
  5002. get {
  5003. try {
  5004. return ((decimal)(this[this.tableССД.ЦенаColumn]));
  5005. }
  5006. catch (global::System.InvalidCastException e) {
  5007. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'ССД\' равно DBNull.", e);
  5008. }
  5009. }
  5010. set {
  5011. this[this.tableССД.ЦенаColumn] = value;
  5012. }
  5013. }
  5014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5016. public int Количество {
  5017. get {
  5018. try {
  5019. return ((int)(this[this.tableССД.КоличествоColumn]));
  5020. }
  5021. catch (global::System.InvalidCastException e) {
  5022. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'ССД\' равно DBNull.", e);
  5023. }
  5024. }
  5025. set {
  5026. this[this.tableССД.КоличествоColumn] = value;
  5027. }
  5028. }
  5029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5031. public int КодССД {
  5032. get {
  5033. return ((int)(this[this.tableССД.КодССДColumn]));
  5034. }
  5035. set {
  5036. this[this.tableССД.КодССДColumn] = value;
  5037. }
  5038. }
  5039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5041. public bool IsНазваниеNull() {
  5042. return this.IsNull(this.tableССД.НазваниеColumn);
  5043. }
  5044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5046. public void SetНазваниеNull() {
  5047. this[this.tableССД.НазваниеColumn] = global::System.Convert.DBNull;
  5048. }
  5049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5051. public bool IsЦенаNull() {
  5052. return this.IsNull(this.tableССД.ЦенаColumn);
  5053. }
  5054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5056. public void SetЦенаNull() {
  5057. this[this.tableССД.ЦенаColumn] = global::System.Convert.DBNull;
  5058. }
  5059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5061. public bool IsКоличествоNull() {
  5062. return this.IsNull(this.tableССД.КоличествоColumn);
  5063. }
  5064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5066. public void SetКоличествоNull() {
  5067. this[this.tableССД.КоличествоColumn] = global::System.Convert.DBNull;
  5068. }
  5069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5071. public ГотоваяСборкаRow[] GetГотоваяСборкаRows() {
  5072. if ((this.Table.ChildRelations["FK_ГотоваяСборка_ССД"] == null)) {
  5073. return new ГотоваяСборкаRow[0];
  5074. }
  5075. else {
  5076. return ((ГотоваяСборкаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ГотоваяСборка_ССД"])));
  5077. }
  5078. }
  5079. }
  5080. /// <summary>
  5081. ///Row event argument class
  5082. ///</summary>
  5083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5084. public class БлокПитанияRowChangeEvent : global::System.EventArgs {
  5085. private БлокПитанияRow eventRow;
  5086. private global::System.Data.DataRowAction eventAction;
  5087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5089. public БлокПитанияRowChangeEvent(БлокПитанияRow row, global::System.Data.DataRowAction action) {
  5090. this.eventRow = row;
  5091. this.eventAction = action;
  5092. }
  5093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5095. public БлокПитанияRow Row {
  5096. get {
  5097. return this.eventRow;
  5098. }
  5099. }
  5100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5102. public global::System.Data.DataRowAction Action {
  5103. get {
  5104. return this.eventAction;
  5105. }
  5106. }
  5107. }
  5108. /// <summary>
  5109. ///Row event argument class
  5110. ///</summary>
  5111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5112. public class ВидеокартыRowChangeEvent : global::System.EventArgs {
  5113. private ВидеокартыRow eventRow;
  5114. private global::System.Data.DataRowAction eventAction;
  5115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5117. public ВидеокартыRowChangeEvent(ВидеокартыRow row, global::System.Data.DataRowAction action) {
  5118. this.eventRow = row;
  5119. this.eventAction = action;
  5120. }
  5121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5123. public ВидеокартыRow Row {
  5124. get {
  5125. return this.eventRow;
  5126. }
  5127. }
  5128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5130. public global::System.Data.DataRowAction Action {
  5131. get {
  5132. return this.eventAction;
  5133. }
  5134. }
  5135. }
  5136. /// <summary>
  5137. ///Row event argument class
  5138. ///</summary>
  5139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5140. public class ВодянаяСистемаОхлажденияRowChangeEvent : global::System.EventArgs {
  5141. private ВодянаяСистемаОхлажденияRow eventRow;
  5142. private global::System.Data.DataRowAction eventAction;
  5143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5145. public ВодянаяСистемаОхлажденияRowChangeEvent(ВодянаяСистемаОхлажденияRow row, global::System.Data.DataRowAction action) {
  5146. this.eventRow = row;
  5147. this.eventAction = action;
  5148. }
  5149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5151. public ВодянаяСистемаОхлажденияRow Row {
  5152. get {
  5153. return this.eventRow;
  5154. }
  5155. }
  5156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5158. public global::System.Data.DataRowAction Action {
  5159. get {
  5160. return this.eventAction;
  5161. }
  5162. }
  5163. }
  5164. /// <summary>
  5165. ///Row event argument class
  5166. ///</summary>
  5167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5168. public class ГотоваяСборкаRowChangeEvent : global::System.EventArgs {
  5169. private ГотоваяСборкаRow eventRow;
  5170. private global::System.Data.DataRowAction eventAction;
  5171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5173. public ГотоваяСборкаRowChangeEvent(ГотоваяСборкаRow row, global::System.Data.DataRowAction action) {
  5174. this.eventRow = row;
  5175. this.eventAction = action;
  5176. }
  5177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5179. public ГотоваяСборкаRow Row {
  5180. get {
  5181. return this.eventRow;
  5182. }
  5183. }
  5184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5186. public global::System.Data.DataRowAction Action {
  5187. get {
  5188. return this.eventAction;
  5189. }
  5190. }
  5191. }
  5192. /// <summary>
  5193. ///Row event argument class
  5194. ///</summary>
  5195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5196. public class ЖесткийДискRowChangeEvent : global::System.EventArgs {
  5197. private ЖесткийДискRow eventRow;
  5198. private global::System.Data.DataRowAction eventAction;
  5199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5201. public ЖесткийДискRowChangeEvent(ЖесткийДискRow row, global::System.Data.DataRowAction action) {
  5202. this.eventRow = row;
  5203. this.eventAction = action;
  5204. }
  5205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5207. public ЖесткийДискRow Row {
  5208. get {
  5209. return this.eventRow;
  5210. }
  5211. }
  5212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5214. public global::System.Data.DataRowAction Action {
  5215. get {
  5216. return this.eventAction;
  5217. }
  5218. }
  5219. }
  5220. /// <summary>
  5221. ///Row event argument class
  5222. ///</summary>
  5223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5224. public class КулерыRowChangeEvent : global::System.EventArgs {
  5225. private КулерыRow eventRow;
  5226. private global::System.Data.DataRowAction eventAction;
  5227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5229. public КулерыRowChangeEvent(КулерыRow row, global::System.Data.DataRowAction action) {
  5230. this.eventRow = row;
  5231. this.eventAction = action;
  5232. }
  5233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5235. public КулерыRow Row {
  5236. get {
  5237. return this.eventRow;
  5238. }
  5239. }
  5240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5242. public global::System.Data.DataRowAction Action {
  5243. get {
  5244. return this.eventAction;
  5245. }
  5246. }
  5247. }
  5248. /// <summary>
  5249. ///Row event argument class
  5250. ///</summary>
  5251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5252. public class МатеринскаяПлатаRowChangeEvent : global::System.EventArgs {
  5253. private МатеринскаяПлатаRow eventRow;
  5254. private global::System.Data.DataRowAction eventAction;
  5255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5257. public МатеринскаяПлатаRowChangeEvent(МатеринскаяПлатаRow row, global::System.Data.DataRowAction action) {
  5258. this.eventRow = row;
  5259. this.eventAction = action;
  5260. }
  5261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5263. public МатеринскаяПлатаRow Row {
  5264. get {
  5265. return this.eventRow;
  5266. }
  5267. }
  5268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5270. public global::System.Data.DataRowAction Action {
  5271. get {
  5272. return this.eventAction;
  5273. }
  5274. }
  5275. }
  5276. /// <summary>
  5277. ///Row event argument class
  5278. ///</summary>
  5279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5280. public class ОперативнаяПамятьRowChangeEvent : global::System.EventArgs {
  5281. private ОперативнаяПамятьRow eventRow;
  5282. private global::System.Data.DataRowAction eventAction;
  5283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5285. public ОперативнаяПамятьRowChangeEvent(ОперативнаяПамятьRow row, global::System.Data.DataRowAction action) {
  5286. this.eventRow = row;
  5287. this.eventAction = action;
  5288. }
  5289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5291. public ОперативнаяПамятьRow Row {
  5292. get {
  5293. return this.eventRow;
  5294. }
  5295. }
  5296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5298. public global::System.Data.DataRowAction Action {
  5299. get {
  5300. return this.eventAction;
  5301. }
  5302. }
  5303. }
  5304. /// <summary>
  5305. ///Row event argument class
  5306. ///</summary>
  5307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5308. public class ПользователиRowChangeEvent : global::System.EventArgs {
  5309. private ПользователиRow eventRow;
  5310. private global::System.Data.DataRowAction eventAction;
  5311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5313. public ПользователиRowChangeEvent(ПользователиRow row, global::System.Data.DataRowAction action) {
  5314. this.eventRow = row;
  5315. this.eventAction = action;
  5316. }
  5317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5319. public ПользователиRow Row {
  5320. get {
  5321. return this.eventRow;
  5322. }
  5323. }
  5324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5326. public global::System.Data.DataRowAction Action {
  5327. get {
  5328. return this.eventAction;
  5329. }
  5330. }
  5331. }
  5332. /// <summary>
  5333. ///Row event argument class
  5334. ///</summary>
  5335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5336. public class ПроцессорыRowChangeEvent : global::System.EventArgs {
  5337. private ПроцессорыRow eventRow;
  5338. private global::System.Data.DataRowAction eventAction;
  5339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5341. public ПроцессорыRowChangeEvent(ПроцессорыRow row, global::System.Data.DataRowAction action) {
  5342. this.eventRow = row;
  5343. this.eventAction = action;
  5344. }
  5345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5347. public ПроцессорыRow Row {
  5348. get {
  5349. return this.eventRow;
  5350. }
  5351. }
  5352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5354. public global::System.Data.DataRowAction Action {
  5355. get {
  5356. return this.eventAction;
  5357. }
  5358. }
  5359. }
  5360. /// <summary>
  5361. ///Row event argument class
  5362. ///</summary>
  5363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5364. public class ССДRowChangeEvent : global::System.EventArgs {
  5365. private ССДRow eventRow;
  5366. private global::System.Data.DataRowAction eventAction;
  5367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5369. public ССДRowChangeEvent(ССДRow row, global::System.Data.DataRowAction action) {
  5370. this.eventRow = row;
  5371. this.eventAction = action;
  5372. }
  5373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5375. public ССДRow Row {
  5376. get {
  5377. return this.eventRow;
  5378. }
  5379. }
  5380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5382. public global::System.Data.DataRowAction Action {
  5383. get {
  5384. return this.eventAction;
  5385. }
  5386. }
  5387. }
  5388. }
  5389. }
  5390. namespace Khozeev8.KhozeeevPC_12DataSetTableAdapters {
  5391. /// <summary>
  5392. ///Represents the connection and commands used to retrieve and save data.
  5393. ///</summary>
  5394. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5395. [global::System.ComponentModel.ToolboxItem(true)]
  5396. [global::System.ComponentModel.DataObjectAttribute(true)]
  5397. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5398. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5399. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5400. public partial class БлокПитанияTableAdapter : global::System.ComponentModel.Component {
  5401. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5402. private global::System.Data.SqlClient.SqlConnection _connection;
  5403. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5404. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5405. private bool _clearBeforeFill;
  5406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5408. public БлокПитанияTableAdapter() {
  5409. this.ClearBeforeFill = true;
  5410. }
  5411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5413. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5414. get {
  5415. if ((this._adapter == null)) {
  5416. this.InitAdapter();
  5417. }
  5418. return this._adapter;
  5419. }
  5420. }
  5421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5423. internal global::System.Data.SqlClient.SqlConnection Connection {
  5424. get {
  5425. if ((this._connection == null)) {
  5426. this.InitConnection();
  5427. }
  5428. return this._connection;
  5429. }
  5430. set {
  5431. this._connection = value;
  5432. if ((this.Adapter.InsertCommand != null)) {
  5433. this.Adapter.InsertCommand.Connection = value;
  5434. }
  5435. if ((this.Adapter.DeleteCommand != null)) {
  5436. this.Adapter.DeleteCommand.Connection = value;
  5437. }
  5438. if ((this.Adapter.UpdateCommand != null)) {
  5439. this.Adapter.UpdateCommand.Connection = value;
  5440. }
  5441. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5442. if ((this.CommandCollection[i] != null)) {
  5443. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5444. }
  5445. }
  5446. }
  5447. }
  5448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5450. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5451. get {
  5452. return this._transaction;
  5453. }
  5454. set {
  5455. this._transaction = value;
  5456. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5457. this.CommandCollection[i].Transaction = this._transaction;
  5458. }
  5459. if (((this.Adapter != null)
  5460. && (this.Adapter.DeleteCommand != null))) {
  5461. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5462. }
  5463. if (((this.Adapter != null)
  5464. && (this.Adapter.InsertCommand != null))) {
  5465. this.Adapter.InsertCommand.Transaction = this._transaction;
  5466. }
  5467. if (((this.Adapter != null)
  5468. && (this.Adapter.UpdateCommand != null))) {
  5469. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5470. }
  5471. }
  5472. }
  5473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5475. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5476. get {
  5477. if ((this._commandCollection == null)) {
  5478. this.InitCommandCollection();
  5479. }
  5480. return this._commandCollection;
  5481. }
  5482. }
  5483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5485. public bool ClearBeforeFill {
  5486. get {
  5487. return this._clearBeforeFill;
  5488. }
  5489. set {
  5490. this._clearBeforeFill = value;
  5491. }
  5492. }
  5493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5495. private void InitAdapter() {
  5496. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5497. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5498. tableMapping.SourceTable = "Table";
  5499. tableMapping.DataSetTable = "БлокПитания";
  5500. tableMapping.ColumnMappings.Add("Название", "Название");
  5501. tableMapping.ColumnMappings.Add("Цена", "Цена");
  5502. tableMapping.ColumnMappings.Add("Количество", "Количество");
  5503. tableMapping.ColumnMappings.Add("КодБлокаПитания", "КодБлокаПитания");
  5504. this._adapter.TableMappings.Add(tableMapping);
  5505. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5506. this._adapter.DeleteCommand.Connection = this.Connection;
  5507. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[БлокПитания] WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ([КодБлокаПитания] = @Original_КодБлокаПитания))";
  5508. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5509. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5510. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5511. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5512. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5513. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5514. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5515. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодБлокаПитания", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодБлокаПитания", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5516. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5517. this._adapter.InsertCommand.Connection = this.Connection;
  5518. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[БлокПитания] ([Название], [Цена], [Количество], [КодБлокаПитан" +
  5519. "ия]) VALUES (@Название, @Цена, @Количество, @КодБлокаПитания);\r\nSELECT Название," +
  5520. " Цена, Количество, КодБлокаПитания FROM БлокПитания WHERE (КодБлокаПитания = @Ко" +
  5521. "дБлокаПитания)";
  5522. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5523. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5524. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5525. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5526. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодБлокаПитания", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодБлокаПитания", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5527. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5528. this._adapter.UpdateCommand.Connection = this.Connection;
  5529. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[БлокПитания] SET [Название] = @Название, [Цена] = @Цена, [Количество] = @Количество, [КодБлокаПитания] = @КодБлокаПитания WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ([КодБлокаПитания] = @Original_КодБлокаПитания));
  5530. SELECT Название, Цена, Количество, КодБлокаПитания FROM БлокПитания WHERE (КодБлокаПитания = @КодБлокаПитания)";
  5531. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5532. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5533. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5534. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5535. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодБлокаПитания", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодБлокаПитания", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5536. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5537. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5538. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5539. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5540. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5541. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5542. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодБлокаПитания", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодБлокаПитания", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5543. }
  5544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5546. private void InitConnection() {
  5547. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5548. this._connection.ConnectionString = global::Khozeev8.Properties.Settings.Default.KhozeeevPC_12ConnectionString;
  5549. }
  5550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5552. private void InitCommandCollection() {
  5553. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5554. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5555. this._commandCollection[0].Connection = this.Connection;
  5556. this._commandCollection[0].CommandText = "SELECT Название, Цена, Количество, КодБлокаПитания FROM dbo.БлокПитания";
  5557. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5558. }
  5559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5561. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5562. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5563. public virtual int Fill(KhozeeevPC_12DataSet.БлокПитанияDataTable dataTable) {
  5564. this.Adapter.SelectCommand = this.CommandCollection[0];
  5565. if ((this.ClearBeforeFill == true)) {
  5566. dataTable.Clear();
  5567. }
  5568. int returnValue = this.Adapter.Fill(dataTable);
  5569. return returnValue;
  5570. }
  5571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5573. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5574. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5575. public virtual KhozeeevPC_12DataSet.БлокПитанияDataTable GetData() {
  5576. this.Adapter.SelectCommand = this.CommandCollection[0];
  5577. KhozeeevPC_12DataSet.БлокПитанияDataTable dataTable = new KhozeeevPC_12DataSet.БлокПитанияDataTable();
  5578. this.Adapter.Fill(dataTable);
  5579. return dataTable;
  5580. }
  5581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5583. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5584. public virtual int Update(KhozeeevPC_12DataSet.БлокПитанияDataTable dataTable) {
  5585. return this.Adapter.Update(dataTable);
  5586. }
  5587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5589. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5590. public virtual int Update(KhozeeevPC_12DataSet dataSet) {
  5591. return this.Adapter.Update(dataSet, "БлокПитания");
  5592. }
  5593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5595. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5596. public virtual int Update(global::System.Data.DataRow dataRow) {
  5597. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5598. dataRow});
  5599. }
  5600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5602. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5603. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5604. return this.Adapter.Update(dataRows);
  5605. }
  5606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5608. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5609. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5610. public virtual int Delete(string Original_Название, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, int Original_КодБлокаПитания) {
  5611. if ((Original_Название == null)) {
  5612. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(1));
  5613. this.Adapter.DeleteCommand.Parameters[1].Value = global::System.DBNull.Value;
  5614. }
  5615. else {
  5616. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(0));
  5617. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Название));
  5618. }
  5619. if ((Original_Цена.HasValue == true)) {
  5620. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  5621. this.Adapter.DeleteCommand.Parameters[3].Value = ((decimal)(Original_Цена.Value));
  5622. }
  5623. else {
  5624. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  5625. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  5626. }
  5627. if ((Original_Количество.HasValue == true)) {
  5628. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  5629. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_Количество.Value));
  5630. }
  5631. else {
  5632. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  5633. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  5634. }
  5635. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_КодБлокаПитания));
  5636. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5637. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5638. != global::System.Data.ConnectionState.Open)) {
  5639. this.Adapter.DeleteCommand.Connection.Open();
  5640. }
  5641. try {
  5642. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5643. return returnValue;
  5644. }
  5645. finally {
  5646. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5647. this.Adapter.DeleteCommand.Connection.Close();
  5648. }
  5649. }
  5650. }
  5651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5653. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5654. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5655. public virtual int Insert(string Название, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, int КодБлокаПитания) {
  5656. if ((Название == null)) {
  5657. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5658. }
  5659. else {
  5660. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  5661. }
  5662. if ((Цена.HasValue == true)) {
  5663. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Цена.Value));
  5664. }
  5665. else {
  5666. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5667. }
  5668. if ((Количество.HasValue == true)) {
  5669. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Количество.Value));
  5670. }
  5671. else {
  5672. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5673. }
  5674. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(КодБлокаПитания));
  5675. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5676. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5677. != global::System.Data.ConnectionState.Open)) {
  5678. this.Adapter.InsertCommand.Connection.Open();
  5679. }
  5680. try {
  5681. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5682. return returnValue;
  5683. }
  5684. finally {
  5685. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5686. this.Adapter.InsertCommand.Connection.Close();
  5687. }
  5688. }
  5689. }
  5690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5692. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5693. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5694. public virtual int Update(string Название, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, int КодБлокаПитания, string Original_Название, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, int Original_КодБлокаПитания) {
  5695. if ((Название == null)) {
  5696. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5697. }
  5698. else {
  5699. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  5700. }
  5701. if ((Цена.HasValue == true)) {
  5702. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Цена.Value));
  5703. }
  5704. else {
  5705. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5706. }
  5707. if ((Количество.HasValue == true)) {
  5708. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Количество.Value));
  5709. }
  5710. else {
  5711. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5712. }
  5713. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(КодБлокаПитания));
  5714. if ((Original_Название == null)) {
  5715. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  5716. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5717. }
  5718. else {
  5719. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  5720. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Название));
  5721. }
  5722. if ((Original_Цена.HasValue == true)) {
  5723. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  5724. this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(Original_Цена.Value));
  5725. }
  5726. else {
  5727. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  5728. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  5729. }
  5730. if ((Original_Количество.HasValue == true)) {
  5731. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  5732. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Количество.Value));
  5733. }
  5734. else {
  5735. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  5736. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5737. }
  5738. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_КодБлокаПитания));
  5739. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5740. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5741. != global::System.Data.ConnectionState.Open)) {
  5742. this.Adapter.UpdateCommand.Connection.Open();
  5743. }
  5744. try {
  5745. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5746. return returnValue;
  5747. }
  5748. finally {
  5749. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5750. this.Adapter.UpdateCommand.Connection.Close();
  5751. }
  5752. }
  5753. }
  5754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5756. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5757. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5758. public virtual int Update(string Название, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, string Original_Название, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, int Original_КодБлокаПитания) {
  5759. return this.Update(Название, Цена, Количество, Original_КодБлокаПитания, Original_Название, Original_Цена, Original_Количество, Original_КодБлокаПитания);
  5760. }
  5761. }
  5762. /// <summary>
  5763. ///Represents the connection and commands used to retrieve and save data.
  5764. ///</summary>
  5765. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5766. [global::System.ComponentModel.ToolboxItem(true)]
  5767. [global::System.ComponentModel.DataObjectAttribute(true)]
  5768. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5769. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5770. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5771. public partial class ВидеокартыTableAdapter : global::System.ComponentModel.Component {
  5772. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5773. private global::System.Data.SqlClient.SqlConnection _connection;
  5774. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5775. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5776. private bool _clearBeforeFill;
  5777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5779. public ВидеокартыTableAdapter() {
  5780. this.ClearBeforeFill = true;
  5781. }
  5782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5784. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5785. get {
  5786. if ((this._adapter == null)) {
  5787. this.InitAdapter();
  5788. }
  5789. return this._adapter;
  5790. }
  5791. }
  5792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5794. internal global::System.Data.SqlClient.SqlConnection Connection {
  5795. get {
  5796. if ((this._connection == null)) {
  5797. this.InitConnection();
  5798. }
  5799. return this._connection;
  5800. }
  5801. set {
  5802. this._connection = value;
  5803. if ((this.Adapter.InsertCommand != null)) {
  5804. this.Adapter.InsertCommand.Connection = value;
  5805. }
  5806. if ((this.Adapter.DeleteCommand != null)) {
  5807. this.Adapter.DeleteCommand.Connection = value;
  5808. }
  5809. if ((this.Adapter.UpdateCommand != null)) {
  5810. this.Adapter.UpdateCommand.Connection = value;
  5811. }
  5812. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5813. if ((this.CommandCollection[i] != null)) {
  5814. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5815. }
  5816. }
  5817. }
  5818. }
  5819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5821. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5822. get {
  5823. return this._transaction;
  5824. }
  5825. set {
  5826. this._transaction = value;
  5827. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5828. this.CommandCollection[i].Transaction = this._transaction;
  5829. }
  5830. if (((this.Adapter != null)
  5831. && (this.Adapter.DeleteCommand != null))) {
  5832. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5833. }
  5834. if (((this.Adapter != null)
  5835. && (this.Adapter.InsertCommand != null))) {
  5836. this.Adapter.InsertCommand.Transaction = this._transaction;
  5837. }
  5838. if (((this.Adapter != null)
  5839. && (this.Adapter.UpdateCommand != null))) {
  5840. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5841. }
  5842. }
  5843. }
  5844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5846. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5847. get {
  5848. if ((this._commandCollection == null)) {
  5849. this.InitCommandCollection();
  5850. }
  5851. return this._commandCollection;
  5852. }
  5853. }
  5854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5856. public bool ClearBeforeFill {
  5857. get {
  5858. return this._clearBeforeFill;
  5859. }
  5860. set {
  5861. this._clearBeforeFill = value;
  5862. }
  5863. }
  5864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5866. private void InitAdapter() {
  5867. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5868. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5869. tableMapping.SourceTable = "Table";
  5870. tableMapping.DataSetTable = "Видеокарты";
  5871. tableMapping.ColumnMappings.Add("Название", "Название");
  5872. tableMapping.ColumnMappings.Add("Цена", "Цена");
  5873. tableMapping.ColumnMappings.Add("Количество", "Количество");
  5874. tableMapping.ColumnMappings.Add("КодВидеокарты", "КодВидеокарты");
  5875. this._adapter.TableMappings.Add(tableMapping);
  5876. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5877. this._adapter.DeleteCommand.Connection = this.Connection;
  5878. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Видеокарты] WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ([КодВидеокарты] = @Original_КодВидеокарты))";
  5879. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5880. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5881. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5882. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5883. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5884. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5885. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5886. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодВидеокарты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВидеокарты", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5887. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5888. this._adapter.InsertCommand.Connection = this.Connection;
  5889. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Видеокарты] ([Название], [Цена], [Количество], [КодВидеокарты]" +
  5890. ") VALUES (@Название, @Цена, @Количество, @КодВидеокарты);\r\nSELECT Название, Цена" +
  5891. ", Количество, КодВидеокарты FROM Видеокарты WHERE (КодВидеокарты = @КодВидеокарт" +
  5892. "ы)";
  5893. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5894. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5895. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5896. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5897. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодВидеокарты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВидеокарты", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5898. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5899. this._adapter.UpdateCommand.Connection = this.Connection;
  5900. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Видеокарты] SET [Название] = @Название, [Цена] = @Цена, [Количество] = @Количество, [КодВидеокарты] = @КодВидеокарты WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ([КодВидеокарты] = @Original_КодВидеокарты));
  5901. SELECT Название, Цена, Количество, КодВидеокарты FROM Видеокарты WHERE (КодВидеокарты = @КодВидеокарты)";
  5902. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5903. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5904. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5905. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5906. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодВидеокарты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВидеокарты", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5907. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5908. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5909. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5910. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5911. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5912. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5913. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодВидеокарты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВидеокарты", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5914. }
  5915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5917. private void InitConnection() {
  5918. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5919. this._connection.ConnectionString = global::Khozeev8.Properties.Settings.Default.KhozeeevPC_12ConnectionString;
  5920. }
  5921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5923. private void InitCommandCollection() {
  5924. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5925. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5926. this._commandCollection[0].Connection = this.Connection;
  5927. this._commandCollection[0].CommandText = "SELECT Название, Цена, Количество, КодВидеокарты FROM dbo.Видеокарты";
  5928. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5929. }
  5930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5932. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5933. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5934. public virtual int Fill(KhozeeevPC_12DataSet.ВидеокартыDataTable dataTable) {
  5935. this.Adapter.SelectCommand = this.CommandCollection[0];
  5936. if ((this.ClearBeforeFill == true)) {
  5937. dataTable.Clear();
  5938. }
  5939. int returnValue = this.Adapter.Fill(dataTable);
  5940. return returnValue;
  5941. }
  5942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5944. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5945. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5946. public virtual KhozeeevPC_12DataSet.ВидеокартыDataTable GetData() {
  5947. this.Adapter.SelectCommand = this.CommandCollection[0];
  5948. KhozeeevPC_12DataSet.ВидеокартыDataTable dataTable = new KhozeeevPC_12DataSet.ВидеокартыDataTable();
  5949. this.Adapter.Fill(dataTable);
  5950. return dataTable;
  5951. }
  5952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5954. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5955. public virtual int Update(KhozeeevPC_12DataSet.ВидеокартыDataTable dataTable) {
  5956. return this.Adapter.Update(dataTable);
  5957. }
  5958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5960. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5961. public virtual int Update(KhozeeevPC_12DataSet dataSet) {
  5962. return this.Adapter.Update(dataSet, "Видеокарты");
  5963. }
  5964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5966. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5967. public virtual int Update(global::System.Data.DataRow dataRow) {
  5968. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5969. dataRow});
  5970. }
  5971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5973. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5974. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5975. return this.Adapter.Update(dataRows);
  5976. }
  5977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5979. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5980. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5981. public virtual int Delete(string Original_Название, global::System.Nullable<decimal> Original_Цена, string Original_Количество, int Original_КодВидеокарты) {
  5982. if ((Original_Название == null)) {
  5983. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(1));
  5984. this.Adapter.DeleteCommand.Parameters[1].Value = global::System.DBNull.Value;
  5985. }
  5986. else {
  5987. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(0));
  5988. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Название));
  5989. }
  5990. if ((Original_Цена.HasValue == true)) {
  5991. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  5992. this.Adapter.DeleteCommand.Parameters[3].Value = ((decimal)(Original_Цена.Value));
  5993. }
  5994. else {
  5995. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  5996. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  5997. }
  5998. if ((Original_Количество == null)) {
  5999. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  6000. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  6001. }
  6002. else {
  6003. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  6004. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Количество));
  6005. }
  6006. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_КодВидеокарты));
  6007. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6008. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6009. != global::System.Data.ConnectionState.Open)) {
  6010. this.Adapter.DeleteCommand.Connection.Open();
  6011. }
  6012. try {
  6013. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6014. return returnValue;
  6015. }
  6016. finally {
  6017. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6018. this.Adapter.DeleteCommand.Connection.Close();
  6019. }
  6020. }
  6021. }
  6022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6024. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6025. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6026. public virtual int Insert(string Название, global::System.Nullable<decimal> Цена, string Количество, int КодВидеокарты) {
  6027. if ((Название == null)) {
  6028. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6029. }
  6030. else {
  6031. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  6032. }
  6033. if ((Цена.HasValue == true)) {
  6034. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Цена.Value));
  6035. }
  6036. else {
  6037. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6038. }
  6039. if ((Количество == null)) {
  6040. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6041. }
  6042. else {
  6043. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Количество));
  6044. }
  6045. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(КодВидеокарты));
  6046. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6047. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6048. != global::System.Data.ConnectionState.Open)) {
  6049. this.Adapter.InsertCommand.Connection.Open();
  6050. }
  6051. try {
  6052. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6053. return returnValue;
  6054. }
  6055. finally {
  6056. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6057. this.Adapter.InsertCommand.Connection.Close();
  6058. }
  6059. }
  6060. }
  6061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6063. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6064. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6065. public virtual int Update(string Название, global::System.Nullable<decimal> Цена, string Количество, int КодВидеокарты, string Original_Название, global::System.Nullable<decimal> Original_Цена, string Original_Количество, int Original_КодВидеокарты) {
  6066. if ((Название == null)) {
  6067. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6068. }
  6069. else {
  6070. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  6071. }
  6072. if ((Цена.HasValue == true)) {
  6073. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Цена.Value));
  6074. }
  6075. else {
  6076. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6077. }
  6078. if ((Количество == null)) {
  6079. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6080. }
  6081. else {
  6082. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Количество));
  6083. }
  6084. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(КодВидеокарты));
  6085. if ((Original_Название == null)) {
  6086. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  6087. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6088. }
  6089. else {
  6090. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  6091. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Название));
  6092. }
  6093. if ((Original_Цена.HasValue == true)) {
  6094. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  6095. this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(Original_Цена.Value));
  6096. }
  6097. else {
  6098. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  6099. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  6100. }
  6101. if ((Original_Количество == null)) {
  6102. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  6103. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  6104. }
  6105. else {
  6106. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  6107. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Количество));
  6108. }
  6109. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_КодВидеокарты));
  6110. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6111. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6112. != global::System.Data.ConnectionState.Open)) {
  6113. this.Adapter.UpdateCommand.Connection.Open();
  6114. }
  6115. try {
  6116. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6117. return returnValue;
  6118. }
  6119. finally {
  6120. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6121. this.Adapter.UpdateCommand.Connection.Close();
  6122. }
  6123. }
  6124. }
  6125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6127. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6128. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6129. public virtual int Update(string Название, global::System.Nullable<decimal> Цена, string Количество, string Original_Название, global::System.Nullable<decimal> Original_Цена, string Original_Количество, int Original_КодВидеокарты) {
  6130. return this.Update(Название, Цена, Количество, Original_КодВидеокарты, Original_Название, Original_Цена, Original_Количество, Original_КодВидеокарты);
  6131. }
  6132. }
  6133. /// <summary>
  6134. ///Represents the connection and commands used to retrieve and save data.
  6135. ///</summary>
  6136. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6137. [global::System.ComponentModel.ToolboxItem(true)]
  6138. [global::System.ComponentModel.DataObjectAttribute(true)]
  6139. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6140. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6141. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6142. public partial class ВодянаяСистемаОхлажденияTableAdapter : global::System.ComponentModel.Component {
  6143. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6144. private global::System.Data.SqlClient.SqlConnection _connection;
  6145. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6146. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6147. private bool _clearBeforeFill;
  6148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6150. public ВодянаяСистемаОхлажденияTableAdapter() {
  6151. this.ClearBeforeFill = true;
  6152. }
  6153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6155. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6156. get {
  6157. if ((this._adapter == null)) {
  6158. this.InitAdapter();
  6159. }
  6160. return this._adapter;
  6161. }
  6162. }
  6163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6165. internal global::System.Data.SqlClient.SqlConnection Connection {
  6166. get {
  6167. if ((this._connection == null)) {
  6168. this.InitConnection();
  6169. }
  6170. return this._connection;
  6171. }
  6172. set {
  6173. this._connection = value;
  6174. if ((this.Adapter.InsertCommand != null)) {
  6175. this.Adapter.InsertCommand.Connection = value;
  6176. }
  6177. if ((this.Adapter.DeleteCommand != null)) {
  6178. this.Adapter.DeleteCommand.Connection = value;
  6179. }
  6180. if ((this.Adapter.UpdateCommand != null)) {
  6181. this.Adapter.UpdateCommand.Connection = value;
  6182. }
  6183. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6184. if ((this.CommandCollection[i] != null)) {
  6185. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6186. }
  6187. }
  6188. }
  6189. }
  6190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6192. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6193. get {
  6194. return this._transaction;
  6195. }
  6196. set {
  6197. this._transaction = value;
  6198. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6199. this.CommandCollection[i].Transaction = this._transaction;
  6200. }
  6201. if (((this.Adapter != null)
  6202. && (this.Adapter.DeleteCommand != null))) {
  6203. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6204. }
  6205. if (((this.Adapter != null)
  6206. && (this.Adapter.InsertCommand != null))) {
  6207. this.Adapter.InsertCommand.Transaction = this._transaction;
  6208. }
  6209. if (((this.Adapter != null)
  6210. && (this.Adapter.UpdateCommand != null))) {
  6211. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6212. }
  6213. }
  6214. }
  6215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6217. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6218. get {
  6219. if ((this._commandCollection == null)) {
  6220. this.InitCommandCollection();
  6221. }
  6222. return this._commandCollection;
  6223. }
  6224. }
  6225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6227. public bool ClearBeforeFill {
  6228. get {
  6229. return this._clearBeforeFill;
  6230. }
  6231. set {
  6232. this._clearBeforeFill = value;
  6233. }
  6234. }
  6235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6237. private void InitAdapter() {
  6238. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6239. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6240. tableMapping.SourceTable = "Table";
  6241. tableMapping.DataSetTable = "ВодянаяСистемаОхлаждения";
  6242. tableMapping.ColumnMappings.Add("Название", "Название");
  6243. tableMapping.ColumnMappings.Add("КодВодянойСистемы", "КодВодянойСистемы");
  6244. tableMapping.ColumnMappings.Add("Цена", "Цена");
  6245. tableMapping.ColumnMappings.Add("Количество", "Количество");
  6246. this._adapter.TableMappings.Add(tableMapping);
  6247. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6248. this._adapter.DeleteCommand.Connection = this.Connection;
  6249. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ВодянаяСистемаОхлаждения] WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ([КодВодянойСистемы] = @Original_КодВодянойСистемы) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)))";
  6250. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6251. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6252. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6253. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодВодянойСистемы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВодянойСистемы", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6254. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6255. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6256. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6257. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6258. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6259. this._adapter.InsertCommand.Connection = this.Connection;
  6260. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ВодянаяСистемаОхлаждения] ([Название], [КодВодянойСистемы], [Цена], [Количество]) VALUES (@Название, @КодВодянойСистемы, @Цена, @Количество);
  6261. SELECT Название, КодВодянойСистемы, Цена, Количество FROM ВодянаяСистемаОхлаждения WHERE (КодВодянойСистемы = @КодВодянойСистемы)";
  6262. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6263. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6264. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодВодянойСистемы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВодянойСистемы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6265. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6266. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6267. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6268. this._adapter.UpdateCommand.Connection = this.Connection;
  6269. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ВодянаяСистемаОхлаждения] SET [Название] = @Название, [КодВодянойСистемы] = @КодВодянойСистемы, [Цена] = @Цена, [Количество] = @Количество WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ([КодВодянойСистемы] = @Original_КодВодянойСистемы) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)));
  6270. SELECT Название, КодВодянойСистемы, Цена, Количество FROM ВодянаяСистемаОхлаждения WHERE (КодВодянойСистемы = @КодВодянойСистемы)";
  6271. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6272. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6273. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодВодянойСистемы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВодянойСистемы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6274. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6275. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6276. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6277. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6278. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодВодянойСистемы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВодянойСистемы", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6279. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6280. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6281. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6282. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6283. }
  6284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6286. private void InitConnection() {
  6287. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6288. this._connection.ConnectionString = global::Khozeev8.Properties.Settings.Default.KhozeeevPC_12ConnectionString;
  6289. }
  6290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6292. private void InitCommandCollection() {
  6293. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6294. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6295. this._commandCollection[0].Connection = this.Connection;
  6296. this._commandCollection[0].CommandText = "SELECT Название, КодВодянойСистемы, Цена, Количество FROM dbo.ВодянаяСистемаОхлаж" +
  6297. "дения";
  6298. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6299. }
  6300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6302. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6303. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6304. public virtual int Fill(KhozeeevPC_12DataSet.ВодянаяСистемаОхлажденияDataTable dataTable) {
  6305. this.Adapter.SelectCommand = this.CommandCollection[0];
  6306. if ((this.ClearBeforeFill == true)) {
  6307. dataTable.Clear();
  6308. }
  6309. int returnValue = this.Adapter.Fill(dataTable);
  6310. return returnValue;
  6311. }
  6312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6314. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6315. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6316. public virtual KhozeeevPC_12DataSet.ВодянаяСистемаОхлажденияDataTable GetData() {
  6317. this.Adapter.SelectCommand = this.CommandCollection[0];
  6318. KhozeeevPC_12DataSet.ВодянаяСистемаОхлажденияDataTable dataTable = new KhozeeevPC_12DataSet.ВодянаяСистемаОхлажденияDataTable();
  6319. this.Adapter.Fill(dataTable);
  6320. return dataTable;
  6321. }
  6322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6324. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6325. public virtual int Update(KhozeeevPC_12DataSet.ВодянаяСистемаОхлажденияDataTable dataTable) {
  6326. return this.Adapter.Update(dataTable);
  6327. }
  6328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6330. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6331. public virtual int Update(KhozeeevPC_12DataSet dataSet) {
  6332. return this.Adapter.Update(dataSet, "ВодянаяСистемаОхлаждения");
  6333. }
  6334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6336. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6337. public virtual int Update(global::System.Data.DataRow dataRow) {
  6338. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6339. dataRow});
  6340. }
  6341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6343. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6344. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6345. return this.Adapter.Update(dataRows);
  6346. }
  6347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6349. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6350. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6351. public virtual int Delete(string Original_Название, int Original_КодВодянойСистемы, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество) {
  6352. if ((Original_Название == null)) {
  6353. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(1));
  6354. this.Adapter.DeleteCommand.Parameters[1].Value = global::System.DBNull.Value;
  6355. }
  6356. else {
  6357. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(0));
  6358. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Название));
  6359. }
  6360. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_КодВодянойСистемы));
  6361. if ((Original_Цена.HasValue == true)) {
  6362. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6363. this.Adapter.DeleteCommand.Parameters[4].Value = ((decimal)(Original_Цена.Value));
  6364. }
  6365. else {
  6366. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6367. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6368. }
  6369. if ((Original_Количество.HasValue == true)) {
  6370. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6371. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Количество.Value));
  6372. }
  6373. else {
  6374. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6375. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6376. }
  6377. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6378. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6379. != global::System.Data.ConnectionState.Open)) {
  6380. this.Adapter.DeleteCommand.Connection.Open();
  6381. }
  6382. try {
  6383. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6384. return returnValue;
  6385. }
  6386. finally {
  6387. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6388. this.Adapter.DeleteCommand.Connection.Close();
  6389. }
  6390. }
  6391. }
  6392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6394. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6395. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6396. public virtual int Insert(string Название, int КодВодянойСистемы, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество) {
  6397. if ((Название == null)) {
  6398. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6399. }
  6400. else {
  6401. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  6402. }
  6403. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(КодВодянойСистемы));
  6404. if ((Цена.HasValue == true)) {
  6405. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  6406. }
  6407. else {
  6408. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6409. }
  6410. if ((Количество.HasValue == true)) {
  6411. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Количество.Value));
  6412. }
  6413. else {
  6414. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6415. }
  6416. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6417. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6418. != global::System.Data.ConnectionState.Open)) {
  6419. this.Adapter.InsertCommand.Connection.Open();
  6420. }
  6421. try {
  6422. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6423. return returnValue;
  6424. }
  6425. finally {
  6426. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6427. this.Adapter.InsertCommand.Connection.Close();
  6428. }
  6429. }
  6430. }
  6431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6433. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6434. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6435. public virtual int Update(string Название, int КодВодянойСистемы, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, string Original_Название, int Original_КодВодянойСистемы, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество) {
  6436. if ((Название == null)) {
  6437. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6438. }
  6439. else {
  6440. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  6441. }
  6442. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(КодВодянойСистемы));
  6443. if ((Цена.HasValue == true)) {
  6444. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  6445. }
  6446. else {
  6447. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6448. }
  6449. if ((Количество.HasValue == true)) {
  6450. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Количество.Value));
  6451. }
  6452. else {
  6453. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6454. }
  6455. if ((Original_Название == null)) {
  6456. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  6457. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6458. }
  6459. else {
  6460. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  6461. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Название));
  6462. }
  6463. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_КодВодянойСистемы));
  6464. if ((Original_Цена.HasValue == true)) {
  6465. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  6466. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Цена.Value));
  6467. }
  6468. else {
  6469. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  6470. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6471. }
  6472. if ((Original_Количество.HasValue == true)) {
  6473. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  6474. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_Количество.Value));
  6475. }
  6476. else {
  6477. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  6478. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  6479. }
  6480. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6481. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6482. != global::System.Data.ConnectionState.Open)) {
  6483. this.Adapter.UpdateCommand.Connection.Open();
  6484. }
  6485. try {
  6486. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6487. return returnValue;
  6488. }
  6489. finally {
  6490. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6491. this.Adapter.UpdateCommand.Connection.Close();
  6492. }
  6493. }
  6494. }
  6495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6497. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6498. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6499. public virtual int Update(string Название, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, string Original_Название, int Original_КодВодянойСистемы, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество) {
  6500. return this.Update(Название, Original_КодВодянойСистемы, Цена, Количество, Original_Название, Original_КодВодянойСистемы, Original_Цена, Original_Количество);
  6501. }
  6502. }
  6503. /// <summary>
  6504. ///Represents the connection and commands used to retrieve and save data.
  6505. ///</summary>
  6506. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6507. [global::System.ComponentModel.ToolboxItem(true)]
  6508. [global::System.ComponentModel.DataObjectAttribute(true)]
  6509. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6510. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6511. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6512. public partial class ГотоваяСборкаTableAdapter : global::System.ComponentModel.Component {
  6513. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6514. private global::System.Data.SqlClient.SqlConnection _connection;
  6515. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6516. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6517. private bool _clearBeforeFill;
  6518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6520. public ГотоваяСборкаTableAdapter() {
  6521. this.ClearBeforeFill = true;
  6522. }
  6523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6525. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6526. get {
  6527. if ((this._adapter == null)) {
  6528. this.InitAdapter();
  6529. }
  6530. return this._adapter;
  6531. }
  6532. }
  6533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6535. internal global::System.Data.SqlClient.SqlConnection Connection {
  6536. get {
  6537. if ((this._connection == null)) {
  6538. this.InitConnection();
  6539. }
  6540. return this._connection;
  6541. }
  6542. set {
  6543. this._connection = value;
  6544. if ((this.Adapter.InsertCommand != null)) {
  6545. this.Adapter.InsertCommand.Connection = value;
  6546. }
  6547. if ((this.Adapter.DeleteCommand != null)) {
  6548. this.Adapter.DeleteCommand.Connection = value;
  6549. }
  6550. if ((this.Adapter.UpdateCommand != null)) {
  6551. this.Adapter.UpdateCommand.Connection = value;
  6552. }
  6553. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6554. if ((this.CommandCollection[i] != null)) {
  6555. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6556. }
  6557. }
  6558. }
  6559. }
  6560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6562. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6563. get {
  6564. return this._transaction;
  6565. }
  6566. set {
  6567. this._transaction = value;
  6568. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6569. this.CommandCollection[i].Transaction = this._transaction;
  6570. }
  6571. if (((this.Adapter != null)
  6572. && (this.Adapter.DeleteCommand != null))) {
  6573. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6574. }
  6575. if (((this.Adapter != null)
  6576. && (this.Adapter.InsertCommand != null))) {
  6577. this.Adapter.InsertCommand.Transaction = this._transaction;
  6578. }
  6579. if (((this.Adapter != null)
  6580. && (this.Adapter.UpdateCommand != null))) {
  6581. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6582. }
  6583. }
  6584. }
  6585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6587. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6588. get {
  6589. if ((this._commandCollection == null)) {
  6590. this.InitCommandCollection();
  6591. }
  6592. return this._commandCollection;
  6593. }
  6594. }
  6595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6597. public bool ClearBeforeFill {
  6598. get {
  6599. return this._clearBeforeFill;
  6600. }
  6601. set {
  6602. this._clearBeforeFill = value;
  6603. }
  6604. }
  6605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6607. private void InitAdapter() {
  6608. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6609. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6610. tableMapping.SourceTable = "Table";
  6611. tableMapping.DataSetTable = "ГотоваяСборка";
  6612. tableMapping.ColumnMappings.Add("КодСборки", "КодСборки");
  6613. tableMapping.ColumnMappings.Add("КодБлокаПитания", "КодБлокаПитания");
  6614. tableMapping.ColumnMappings.Add("КодВидеокарты", "КодВидеокарты");
  6615. tableMapping.ColumnMappings.Add("КодВодянойСистемы", "КодВодянойСистемы");
  6616. tableMapping.ColumnMappings.Add("КодЖесткогоДиска", "КодЖесткогоДиска");
  6617. tableMapping.ColumnMappings.Add("КодКулера", "КодКулера");
  6618. tableMapping.ColumnMappings.Add("КодМатеринскойПлаты", "КодМатеринскойПлаты");
  6619. tableMapping.ColumnMappings.Add("КодОперативнойПамяти", "КодОперативнойПамяти");
  6620. tableMapping.ColumnMappings.Add("КодПроцессора", "КодПроцессора");
  6621. tableMapping.ColumnMappings.Add("КодССД", "КодССД");
  6622. tableMapping.ColumnMappings.Add("Сотрудник", "Сотрудник");
  6623. this._adapter.TableMappings.Add(tableMapping);
  6624. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6625. this._adapter.DeleteCommand.Connection = this.Connection;
  6626. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ГотоваяСборка] WHERE (([КодСборки] = @Original_КодСборки) AND ((@IsNull_КодБлокаПитания = 1 AND [КодБлокаПитания] IS NULL) OR ([КодБлокаПитания] = @Original_КодБлокаПитания)) AND ((@IsNull_КодВидеокарты = 1 AND [КодВидеокарты] IS NULL) OR ([КодВидеокарты] = @Original_КодВидеокарты)) AND ((@IsNull_КодВодянойСистемы = 1 AND [КодВодянойСистемы] IS NULL) OR ([КодВодянойСистемы] = @Original_КодВодянойСистемы)) AND ((@IsNull_КодЖесткогоДиска = 1 AND [КодЖесткогоДиска] IS NULL) OR ([КодЖесткогоДиска] = @Original_КодЖесткогоДиска)) AND ((@IsNull_КодКулера = 1 AND [КодКулера] IS NULL) OR ([КодКулера] = @Original_КодКулера)) AND ((@IsNull_КодМатеринскойПлаты = 1 AND [КодМатеринскойПлаты] IS NULL) OR ([КодМатеринскойПлаты] = @Original_КодМатеринскойПлаты)) AND ((@IsNull_КодОперативнойПамяти = 1 AND [КодОперативнойПамяти] IS NULL) OR ([КодОперативнойПамяти] = @Original_КодОперативнойПамяти)) AND ((@IsNull_КодПроцессора = 1 AND [КодПроцессора] IS NULL) OR ([КодПроцессора] = @Original_КодПроцессора)) AND ((@IsNull_КодССД = 1 AND [КодССД] IS NULL) OR ([КодССД] = @Original_КодССД)) AND ((@IsNull_Сотрудник = 1 AND [Сотрудник] IS NULL) OR ([Сотрудник] = @Original_Сотрудник)))";
  6627. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6628. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодСборки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодСборки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6629. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодБлокаПитания", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодБлокаПитания", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6630. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодБлокаПитания", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодБлокаПитания", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6631. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодВидеокарты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВидеокарты", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6632. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодВидеокарты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВидеокарты", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6633. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодВодянойСистемы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВодянойСистемы", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6634. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодВодянойСистемы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВодянойСистемы", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6635. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодЖесткогоДиска", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодЖесткогоДиска", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6636. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодЖесткогоДиска", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодЖесткогоДиска", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6637. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодКулера", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодКулера", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6638. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодКулера", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодКулера", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6639. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодМатеринскойПлаты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодМатеринскойПлаты", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6640. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодМатеринскойПлаты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодМатеринскойПлаты", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6641. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодОперативнойПамяти", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодОперативнойПамяти", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6642. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодОперативнойПамяти", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодОперативнойПамяти", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6643. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодПроцессора", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПроцессора", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6644. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодПроцессора", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПроцессора", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6645. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодССД", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодССД", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6646. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодССД", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодССД", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6647. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Сотрудник", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сотрудник", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6648. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Сотрудник", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сотрудник", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6649. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6650. this._adapter.InsertCommand.Connection = this.Connection;
  6651. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ГотоваяСборка] ([КодСборки], [КодБлокаПитания], [КодВидеокарты], [КодВодянойСистемы], [КодЖесткогоДиска], [КодКулера], [КодМатеринскойПлаты], [КодОперативнойПамяти], [КодПроцессора], [КодССД], [Сотрудник]) VALUES (@КодСборки, @КодБлокаПитания, @КодВидеокарты, @КодВодянойСистемы, @КодЖесткогоДиска, @КодКулера, @КодМатеринскойПлаты, @КодОперативнойПамяти, @КодПроцессора, @КодССД, @Сотрудник);
  6652. SELECT КодСборки, КодБлокаПитания, КодВидеокарты, КодВодянойСистемы, КодЖесткогоДиска, КодКулера, КодМатеринскойПлаты, КодОперативнойПамяти, КодПроцессора, КодССД, Сотрудник FROM ГотоваяСборка WHERE (КодСборки = @КодСборки)";
  6653. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6654. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодСборки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодСборки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6655. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодБлокаПитания", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодБлокаПитания", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6656. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодВидеокарты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВидеокарты", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6657. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодВодянойСистемы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВодянойСистемы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6658. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодЖесткогоДиска", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодЖесткогоДиска", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6659. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодКулера", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодКулера", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6660. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодМатеринскойПлаты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодМатеринскойПлаты", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6661. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодОперативнойПамяти", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодОперативнойПамяти", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6662. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодПроцессора", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПроцессора", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6663. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодССД", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодССД", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6664. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Сотрудник", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сотрудник", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6665. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6666. this._adapter.UpdateCommand.Connection = this.Connection;
  6667. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[ГотоваяСборка] SET [КодСборки] = @КодСборки, [КодБлокаПитания] = @К" +
  6668. "одБлокаПитания, [КодВидеокарты] = @КодВидеокарты, [КодВодянойСистемы] = @КодВодя" +
  6669. "нойСистемы, [КодЖесткогоДиска] = @КодЖесткогоДиска, [КодКулера] = @КодКулера, [К" +
  6670. "одМатеринскойПлаты] = @КодМатеринскойПлаты, [КодОперативнойПамяти] = @КодОперати" +
  6671. "внойПамяти, [КодПроцессора] = @КодПроцессора, [КодССД] = @КодССД, [Сотрудник] = " +
  6672. "@Сотрудник WHERE (([КодСборки] = @Original_КодСборки) AND ((@IsNull_КодБлокаПита" +
  6673. "ния = 1 AND [КодБлокаПитания] IS NULL) OR ([КодБлокаПитания] = @Original_КодБлок" +
  6674. "аПитания)) AND ((@IsNull_КодВидеокарты = 1 AND [КодВидеокарты] IS NULL) OR ([Код" +
  6675. "Видеокарты] = @Original_КодВидеокарты)) AND ((@IsNull_КодВодянойСистемы = 1 AND " +
  6676. "[КодВодянойСистемы] IS NULL) OR ([КодВодянойСистемы] = @Original_КодВодянойСисте" +
  6677. "мы)) AND ((@IsNull_КодЖесткогоДиска = 1 AND [КодЖесткогоДиска] IS NULL) OR ([Код" +
  6678. "ЖесткогоДиска] = @Original_КодЖесткогоДиска)) AND ((@IsNull_КодКулера = 1 AND [К" +
  6679. "одКулера] IS NULL) OR ([КодКулера] = @Original_КодКулера)) AND ((@IsNull_КодМате" +
  6680. "ринскойПлаты = 1 AND [КодМатеринскойПлаты] IS NULL) OR ([КодМатеринскойПлаты] = " +
  6681. "@Original_КодМатеринскойПлаты)) AND ((@IsNull_КодОперативнойПамяти = 1 AND [КодО" +
  6682. "перативнойПамяти] IS NULL) OR ([КодОперативнойПамяти] = @Original_КодОперативной" +
  6683. "Памяти)) AND ((@IsNull_КодПроцессора = 1 AND [КодПроцессора] IS NULL) OR ([КодПр" +
  6684. "оцессора] = @Original_КодПроцессора)) AND ((@IsNull_КодССД = 1 AND [КодССД] IS N" +
  6685. "ULL) OR ([КодССД] = @Original_КодССД)) AND ((@IsNull_Сотрудник = 1 AND [Сотрудни" +
  6686. "к] IS NULL) OR ([Сотрудник] = @Original_Сотрудник)));\r\nSELECT КодСборки, КодБлок" +
  6687. "аПитания, КодВидеокарты, КодВодянойСистемы, КодЖесткогоДиска, КодКулера, КодМате" +
  6688. "ринскойПлаты, КодОперативнойПамяти, КодПроцессора, КодССД, Сотрудник FROM Готова" +
  6689. "яСборка WHERE (КодСборки = @КодСборки)";
  6690. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6691. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодСборки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодСборки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6692. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодБлокаПитания", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодБлокаПитания", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6693. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодВидеокарты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВидеокарты", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6694. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодВодянойСистемы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВодянойСистемы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6695. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодЖесткогоДиска", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодЖесткогоДиска", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6696. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодКулера", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодКулера", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6697. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодМатеринскойПлаты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодМатеринскойПлаты", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6698. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодОперативнойПамяти", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодОперативнойПамяти", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6699. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодПроцессора", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПроцессора", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6700. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодССД", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодССД", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6701. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Сотрудник", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сотрудник", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6702. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодСборки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодСборки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6703. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодБлокаПитания", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодБлокаПитания", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6704. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодБлокаПитания", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодБлокаПитания", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6705. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодВидеокарты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВидеокарты", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6706. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодВидеокарты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВидеокарты", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6707. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодВодянойСистемы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВодянойСистемы", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6708. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодВодянойСистемы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодВодянойСистемы", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6709. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодЖесткогоДиска", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодЖесткогоДиска", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6710. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодЖесткогоДиска", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодЖесткогоДиска", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6711. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодКулера", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодКулера", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6712. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодКулера", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодКулера", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6713. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодМатеринскойПлаты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодМатеринскойПлаты", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6714. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодМатеринскойПлаты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодМатеринскойПлаты", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6715. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодОперативнойПамяти", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодОперативнойПамяти", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6716. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодОперативнойПамяти", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодОперативнойПамяти", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6717. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодПроцессора", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПроцессора", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6718. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодПроцессора", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПроцессора", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6719. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодССД", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодССД", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6720. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодССД", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодССД", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6721. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Сотрудник", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сотрудник", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6722. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Сотрудник", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сотрудник", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6723. }
  6724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6726. private void InitConnection() {
  6727. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6728. this._connection.ConnectionString = global::Khozeev8.Properties.Settings.Default.KhozeeevPC_12ConnectionString;
  6729. }
  6730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6732. private void InitCommandCollection() {
  6733. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6734. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6735. this._commandCollection[0].Connection = this.Connection;
  6736. this._commandCollection[0].CommandText = "SELECT КодСборки, КодБлокаПитания, КодВидеокарты, КодВодянойСистемы, КодЖесткогоД" +
  6737. "иска, КодКулера, КодМатеринскойПлаты, КодОперативнойПамяти, КодПроцессора, КодСС" +
  6738. "Д, Сотрудник FROM dbo.ГотоваяСборка";
  6739. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6740. }
  6741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6743. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6744. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6745. public virtual int Fill(KhozeeevPC_12DataSet.ГотоваяСборкаDataTable dataTable) {
  6746. this.Adapter.SelectCommand = this.CommandCollection[0];
  6747. if ((this.ClearBeforeFill == true)) {
  6748. dataTable.Clear();
  6749. }
  6750. int returnValue = this.Adapter.Fill(dataTable);
  6751. return returnValue;
  6752. }
  6753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6755. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6756. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6757. public virtual KhozeeevPC_12DataSet.ГотоваяСборкаDataTable GetData() {
  6758. this.Adapter.SelectCommand = this.CommandCollection[0];
  6759. KhozeeevPC_12DataSet.ГотоваяСборкаDataTable dataTable = new KhozeeevPC_12DataSet.ГотоваяСборкаDataTable();
  6760. this.Adapter.Fill(dataTable);
  6761. return dataTable;
  6762. }
  6763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6765. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6766. public virtual int Update(KhozeeevPC_12DataSet.ГотоваяСборкаDataTable dataTable) {
  6767. return this.Adapter.Update(dataTable);
  6768. }
  6769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6771. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6772. public virtual int Update(KhozeeevPC_12DataSet dataSet) {
  6773. return this.Adapter.Update(dataSet, "ГотоваяСборка");
  6774. }
  6775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6777. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6778. public virtual int Update(global::System.Data.DataRow dataRow) {
  6779. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6780. dataRow});
  6781. }
  6782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6784. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6785. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6786. return this.Adapter.Update(dataRows);
  6787. }
  6788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6790. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6791. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6792. public virtual int Delete(int Original_КодСборки, global::System.Nullable<int> Original_КодБлокаПитания, global::System.Nullable<int> Original_КодВидеокарты, global::System.Nullable<int> Original_КодВодянойСистемы, global::System.Nullable<int> Original_КодЖесткогоДиска, global::System.Nullable<int> Original_КодКулера, global::System.Nullable<int> Original_КодМатеринскойПлаты, global::System.Nullable<int> Original_КодОперативнойПамяти, global::System.Nullable<int> Original_КодПроцессора, global::System.Nullable<int> Original_КодССД, global::System.Nullable<int> Original_Сотрудник) {
  6793. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_КодСборки));
  6794. if ((Original_КодБлокаПитания.HasValue == true)) {
  6795. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6796. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_КодБлокаПитания.Value));
  6797. }
  6798. else {
  6799. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6800. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6801. }
  6802. if ((Original_КодВидеокарты.HasValue == true)) {
  6803. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6804. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_КодВидеокарты.Value));
  6805. }
  6806. else {
  6807. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6808. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6809. }
  6810. if ((Original_КодВодянойСистемы.HasValue == true)) {
  6811. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6812. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_КодВодянойСистемы.Value));
  6813. }
  6814. else {
  6815. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6816. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6817. }
  6818. if ((Original_КодЖесткогоДиска.HasValue == true)) {
  6819. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6820. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_КодЖесткогоДиска.Value));
  6821. }
  6822. else {
  6823. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6824. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6825. }
  6826. if ((Original_КодКулера.HasValue == true)) {
  6827. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6828. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_КодКулера.Value));
  6829. }
  6830. else {
  6831. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6832. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6833. }
  6834. if ((Original_КодМатеринскойПлаты.HasValue == true)) {
  6835. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  6836. this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_КодМатеринскойПлаты.Value));
  6837. }
  6838. else {
  6839. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  6840. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  6841. }
  6842. if ((Original_КодОперативнойПамяти.HasValue == true)) {
  6843. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  6844. this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_КодОперативнойПамяти.Value));
  6845. }
  6846. else {
  6847. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  6848. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  6849. }
  6850. if ((Original_КодПроцессора.HasValue == true)) {
  6851. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
  6852. this.Adapter.DeleteCommand.Parameters[16].Value = ((int)(Original_КодПроцессора.Value));
  6853. }
  6854. else {
  6855. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
  6856. this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
  6857. }
  6858. if ((Original_КодССД.HasValue == true)) {
  6859. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
  6860. this.Adapter.DeleteCommand.Parameters[18].Value = ((int)(Original_КодССД.Value));
  6861. }
  6862. else {
  6863. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
  6864. this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
  6865. }
  6866. if ((Original_Сотрудник.HasValue == true)) {
  6867. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
  6868. this.Adapter.DeleteCommand.Parameters[20].Value = ((int)(Original_Сотрудник.Value));
  6869. }
  6870. else {
  6871. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
  6872. this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
  6873. }
  6874. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6875. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6876. != global::System.Data.ConnectionState.Open)) {
  6877. this.Adapter.DeleteCommand.Connection.Open();
  6878. }
  6879. try {
  6880. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6881. return returnValue;
  6882. }
  6883. finally {
  6884. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6885. this.Adapter.DeleteCommand.Connection.Close();
  6886. }
  6887. }
  6888. }
  6889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6891. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6892. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6893. public virtual int Insert(int КодСборки, global::System.Nullable<int> КодБлокаПитания, global::System.Nullable<int> КодВидеокарты, global::System.Nullable<int> КодВодянойСистемы, global::System.Nullable<int> КодЖесткогоДиска, global::System.Nullable<int> КодКулера, global::System.Nullable<int> КодМатеринскойПлаты, global::System.Nullable<int> КодОперативнойПамяти, global::System.Nullable<int> КодПроцессора, global::System.Nullable<int> КодССД, global::System.Nullable<int> Сотрудник) {
  6894. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(КодСборки));
  6895. if ((КодБлокаПитания.HasValue == true)) {
  6896. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(КодБлокаПитания.Value));
  6897. }
  6898. else {
  6899. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6900. }
  6901. if ((КодВидеокарты.HasValue == true)) {
  6902. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(КодВидеокарты.Value));
  6903. }
  6904. else {
  6905. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6906. }
  6907. if ((КодВодянойСистемы.HasValue == true)) {
  6908. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(КодВодянойСистемы.Value));
  6909. }
  6910. else {
  6911. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6912. }
  6913. if ((КодЖесткогоДиска.HasValue == true)) {
  6914. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(КодЖесткогоДиска.Value));
  6915. }
  6916. else {
  6917. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6918. }
  6919. if ((КодКулера.HasValue == true)) {
  6920. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(КодКулера.Value));
  6921. }
  6922. else {
  6923. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6924. }
  6925. if ((КодМатеринскойПлаты.HasValue == true)) {
  6926. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(КодМатеринскойПлаты.Value));
  6927. }
  6928. else {
  6929. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  6930. }
  6931. if ((КодОперативнойПамяти.HasValue == true)) {
  6932. this.Adapter.InsertCommand.Parameters[7].Value = ((int)(КодОперативнойПамяти.Value));
  6933. }
  6934. else {
  6935. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  6936. }
  6937. if ((КодПроцессора.HasValue == true)) {
  6938. this.Adapter.InsertCommand.Parameters[8].Value = ((int)(КодПроцессора.Value));
  6939. }
  6940. else {
  6941. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  6942. }
  6943. if ((КодССД.HasValue == true)) {
  6944. this.Adapter.InsertCommand.Parameters[9].Value = ((int)(КодССД.Value));
  6945. }
  6946. else {
  6947. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  6948. }
  6949. if ((Сотрудник.HasValue == true)) {
  6950. this.Adapter.InsertCommand.Parameters[10].Value = ((int)(Сотрудник.Value));
  6951. }
  6952. else {
  6953. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  6954. }
  6955. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6956. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6957. != global::System.Data.ConnectionState.Open)) {
  6958. this.Adapter.InsertCommand.Connection.Open();
  6959. }
  6960. try {
  6961. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6962. return returnValue;
  6963. }
  6964. finally {
  6965. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6966. this.Adapter.InsertCommand.Connection.Close();
  6967. }
  6968. }
  6969. }
  6970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6972. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6973. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6974. public virtual int Update(
  6975. int КодСборки,
  6976. global::System.Nullable<int> КодБлокаПитания,
  6977. global::System.Nullable<int> КодВидеокарты,
  6978. global::System.Nullable<int> КодВодянойСистемы,
  6979. global::System.Nullable<int> КодЖесткогоДиска,
  6980. global::System.Nullable<int> КодКулера,
  6981. global::System.Nullable<int> КодМатеринскойПлаты,
  6982. global::System.Nullable<int> КодОперативнойПамяти,
  6983. global::System.Nullable<int> КодПроцессора,
  6984. global::System.Nullable<int> КодССД,
  6985. global::System.Nullable<int> Сотрудник,
  6986. int Original_КодСборки,
  6987. global::System.Nullable<int> Original_КодБлокаПитания,
  6988. global::System.Nullable<int> Original_КодВидеокарты,
  6989. global::System.Nullable<int> Original_КодВодянойСистемы,
  6990. global::System.Nullable<int> Original_КодЖесткогоДиска,
  6991. global::System.Nullable<int> Original_КодКулера,
  6992. global::System.Nullable<int> Original_КодМатеринскойПлаты,
  6993. global::System.Nullable<int> Original_КодОперативнойПамяти,
  6994. global::System.Nullable<int> Original_КодПроцессора,
  6995. global::System.Nullable<int> Original_КодССД,
  6996. global::System.Nullable<int> Original_Сотрудник) {
  6997. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(КодСборки));
  6998. if ((КодБлокаПитания.HasValue == true)) {
  6999. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(КодБлокаПитания.Value));
  7000. }
  7001. else {
  7002. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7003. }
  7004. if ((КодВидеокарты.HasValue == true)) {
  7005. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(КодВидеокарты.Value));
  7006. }
  7007. else {
  7008. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7009. }
  7010. if ((КодВодянойСистемы.HasValue == true)) {
  7011. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(КодВодянойСистемы.Value));
  7012. }
  7013. else {
  7014. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7015. }
  7016. if ((КодЖесткогоДиска.HasValue == true)) {
  7017. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(КодЖесткогоДиска.Value));
  7018. }
  7019. else {
  7020. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7021. }
  7022. if ((КодКулера.HasValue == true)) {
  7023. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(КодКулера.Value));
  7024. }
  7025. else {
  7026. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7027. }
  7028. if ((КодМатеринскойПлаты.HasValue == true)) {
  7029. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(КодМатеринскойПлаты.Value));
  7030. }
  7031. else {
  7032. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7033. }
  7034. if ((КодОперативнойПамяти.HasValue == true)) {
  7035. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(КодОперативнойПамяти.Value));
  7036. }
  7037. else {
  7038. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  7039. }
  7040. if ((КодПроцессора.HasValue == true)) {
  7041. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(КодПроцессора.Value));
  7042. }
  7043. else {
  7044. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7045. }
  7046. if ((КодССД.HasValue == true)) {
  7047. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(КодССД.Value));
  7048. }
  7049. else {
  7050. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  7051. }
  7052. if ((Сотрудник.HasValue == true)) {
  7053. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Сотрудник.Value));
  7054. }
  7055. else {
  7056. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7057. }
  7058. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_КодСборки));
  7059. if ((Original_КодБлокаПитания.HasValue == true)) {
  7060. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  7061. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_КодБлокаПитания.Value));
  7062. }
  7063. else {
  7064. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  7065. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  7066. }
  7067. if ((Original_КодВидеокарты.HasValue == true)) {
  7068. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  7069. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_КодВидеокарты.Value));
  7070. }
  7071. else {
  7072. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  7073. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  7074. }
  7075. if ((Original_КодВодянойСистемы.HasValue == true)) {
  7076. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  7077. this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_КодВодянойСистемы.Value));
  7078. }
  7079. else {
  7080. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  7081. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  7082. }
  7083. if ((Original_КодЖесткогоДиска.HasValue == true)) {
  7084. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  7085. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_КодЖесткогоДиска.Value));
  7086. }
  7087. else {
  7088. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  7089. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  7090. }
  7091. if ((Original_КодКулера.HasValue == true)) {
  7092. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  7093. this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_КодКулера.Value));
  7094. }
  7095. else {
  7096. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  7097. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  7098. }
  7099. if ((Original_КодМатеринскойПлаты.HasValue == true)) {
  7100. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
  7101. this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(Original_КодМатеринскойПлаты.Value));
  7102. }
  7103. else {
  7104. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
  7105. this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
  7106. }
  7107. if ((Original_КодОперативнойПамяти.HasValue == true)) {
  7108. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
  7109. this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_КодОперативнойПамяти.Value));
  7110. }
  7111. else {
  7112. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
  7113. this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
  7114. }
  7115. if ((Original_КодПроцессора.HasValue == true)) {
  7116. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
  7117. this.Adapter.UpdateCommand.Parameters[27].Value = ((int)(Original_КодПроцессора.Value));
  7118. }
  7119. else {
  7120. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
  7121. this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
  7122. }
  7123. if ((Original_КодССД.HasValue == true)) {
  7124. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
  7125. this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(Original_КодССД.Value));
  7126. }
  7127. else {
  7128. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
  7129. this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
  7130. }
  7131. if ((Original_Сотрудник.HasValue == true)) {
  7132. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
  7133. this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_Сотрудник.Value));
  7134. }
  7135. else {
  7136. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
  7137. this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
  7138. }
  7139. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7140. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7141. != global::System.Data.ConnectionState.Open)) {
  7142. this.Adapter.UpdateCommand.Connection.Open();
  7143. }
  7144. try {
  7145. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7146. return returnValue;
  7147. }
  7148. finally {
  7149. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7150. this.Adapter.UpdateCommand.Connection.Close();
  7151. }
  7152. }
  7153. }
  7154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7156. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7157. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7158. public virtual int Update(
  7159. global::System.Nullable<int> КодБлокаПитания,
  7160. global::System.Nullable<int> КодВидеокарты,
  7161. global::System.Nullable<int> КодВодянойСистемы,
  7162. global::System.Nullable<int> КодЖесткогоДиска,
  7163. global::System.Nullable<int> КодКулера,
  7164. global::System.Nullable<int> КодМатеринскойПлаты,
  7165. global::System.Nullable<int> КодОперативнойПамяти,
  7166. global::System.Nullable<int> КодПроцессора,
  7167. global::System.Nullable<int> КодССД,
  7168. global::System.Nullable<int> Сотрудник,
  7169. int Original_КодСборки,
  7170. global::System.Nullable<int> Original_КодБлокаПитания,
  7171. global::System.Nullable<int> Original_КодВидеокарты,
  7172. global::System.Nullable<int> Original_КодВодянойСистемы,
  7173. global::System.Nullable<int> Original_КодЖесткогоДиска,
  7174. global::System.Nullable<int> Original_КодКулера,
  7175. global::System.Nullable<int> Original_КодМатеринскойПлаты,
  7176. global::System.Nullable<int> Original_КодОперативнойПамяти,
  7177. global::System.Nullable<int> Original_КодПроцессора,
  7178. global::System.Nullable<int> Original_КодССД,
  7179. global::System.Nullable<int> Original_Сотрудник) {
  7180. return this.Update(Original_КодСборки, КодБлокаПитания, КодВидеокарты, КодВодянойСистемы, КодЖесткогоДиска, КодКулера, КодМатеринскойПлаты, КодОперативнойПамяти, КодПроцессора, КодССД, Сотрудник, Original_КодСборки, Original_КодБлокаПитания, Original_КодВидеокарты, Original_КодВодянойСистемы, Original_КодЖесткогоДиска, Original_КодКулера, Original_КодМатеринскойПлаты, Original_КодОперативнойПамяти, Original_КодПроцессора, Original_КодССД, Original_Сотрудник);
  7181. }
  7182. }
  7183. /// <summary>
  7184. ///Represents the connection and commands used to retrieve and save data.
  7185. ///</summary>
  7186. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7187. [global::System.ComponentModel.ToolboxItem(true)]
  7188. [global::System.ComponentModel.DataObjectAttribute(true)]
  7189. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7190. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7191. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7192. public partial class ЖесткийДискTableAdapter : global::System.ComponentModel.Component {
  7193. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7194. private global::System.Data.SqlClient.SqlConnection _connection;
  7195. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7196. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7197. private bool _clearBeforeFill;
  7198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7200. public ЖесткийДискTableAdapter() {
  7201. this.ClearBeforeFill = true;
  7202. }
  7203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7205. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7206. get {
  7207. if ((this._adapter == null)) {
  7208. this.InitAdapter();
  7209. }
  7210. return this._adapter;
  7211. }
  7212. }
  7213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7215. internal global::System.Data.SqlClient.SqlConnection Connection {
  7216. get {
  7217. if ((this._connection == null)) {
  7218. this.InitConnection();
  7219. }
  7220. return this._connection;
  7221. }
  7222. set {
  7223. this._connection = value;
  7224. if ((this.Adapter.InsertCommand != null)) {
  7225. this.Adapter.InsertCommand.Connection = value;
  7226. }
  7227. if ((this.Adapter.DeleteCommand != null)) {
  7228. this.Adapter.DeleteCommand.Connection = value;
  7229. }
  7230. if ((this.Adapter.UpdateCommand != null)) {
  7231. this.Adapter.UpdateCommand.Connection = value;
  7232. }
  7233. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7234. if ((this.CommandCollection[i] != null)) {
  7235. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7236. }
  7237. }
  7238. }
  7239. }
  7240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7242. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7243. get {
  7244. return this._transaction;
  7245. }
  7246. set {
  7247. this._transaction = value;
  7248. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7249. this.CommandCollection[i].Transaction = this._transaction;
  7250. }
  7251. if (((this.Adapter != null)
  7252. && (this.Adapter.DeleteCommand != null))) {
  7253. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7254. }
  7255. if (((this.Adapter != null)
  7256. && (this.Adapter.InsertCommand != null))) {
  7257. this.Adapter.InsertCommand.Transaction = this._transaction;
  7258. }
  7259. if (((this.Adapter != null)
  7260. && (this.Adapter.UpdateCommand != null))) {
  7261. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7262. }
  7263. }
  7264. }
  7265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7267. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7268. get {
  7269. if ((this._commandCollection == null)) {
  7270. this.InitCommandCollection();
  7271. }
  7272. return this._commandCollection;
  7273. }
  7274. }
  7275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7277. public bool ClearBeforeFill {
  7278. get {
  7279. return this._clearBeforeFill;
  7280. }
  7281. set {
  7282. this._clearBeforeFill = value;
  7283. }
  7284. }
  7285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7287. private void InitAdapter() {
  7288. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7289. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7290. tableMapping.SourceTable = "Table";
  7291. tableMapping.DataSetTable = "ЖесткийДиск";
  7292. tableMapping.ColumnMappings.Add("Название", "Название");
  7293. tableMapping.ColumnMappings.Add("Количество", "Количество");
  7294. tableMapping.ColumnMappings.Add("Цена", "Цена");
  7295. tableMapping.ColumnMappings.Add("КодЖесткогоДиска", "КодЖесткогоДиска");
  7296. this._adapter.TableMappings.Add(tableMapping);
  7297. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7298. this._adapter.DeleteCommand.Connection = this.Connection;
  7299. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ЖесткийДиск] WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ([КодЖесткогоДиска] = @Original_КодЖесткогоДиска))";
  7300. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7301. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7302. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7303. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7304. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7305. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7306. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7307. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодЖесткогоДиска", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодЖесткогоДиска", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7308. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7309. this._adapter.InsertCommand.Connection = this.Connection;
  7310. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ЖесткийДиск] ([Название], [Количество], [Цена], [КодЖесткогоДиска]) VALUES (@Название, @Количество, @Цена, @КодЖесткогоДиска);
  7311. SELECT Название, Количество, Цена, КодЖесткогоДиска FROM ЖесткийДиск WHERE (КодЖесткогоДиска = @КодЖесткогоДиска)";
  7312. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7313. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7314. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7315. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7316. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодЖесткогоДиска", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодЖесткогоДиска", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7317. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7318. this._adapter.UpdateCommand.Connection = this.Connection;
  7319. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ЖесткийДиск] SET [Название] = @Название, [Количество] = @Количество, [Цена] = @Цена, [КодЖесткогоДиска] = @КодЖесткогоДиска WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ([КодЖесткогоДиска] = @Original_КодЖесткогоДиска));
  7320. SELECT Название, Количество, Цена, КодЖесткогоДиска FROM ЖесткийДиск WHERE (КодЖесткогоДиска = @КодЖесткогоДиска)";
  7321. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7322. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7323. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7324. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7325. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодЖесткогоДиска", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодЖесткогоДиска", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7326. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7327. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7328. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7329. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7330. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7331. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7332. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодЖесткогоДиска", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодЖесткогоДиска", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7333. }
  7334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7336. private void InitConnection() {
  7337. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7338. this._connection.ConnectionString = global::Khozeev8.Properties.Settings.Default.KhozeeevPC_12ConnectionString;
  7339. }
  7340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7342. private void InitCommandCollection() {
  7343. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7344. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7345. this._commandCollection[0].Connection = this.Connection;
  7346. this._commandCollection[0].CommandText = "SELECT Название, Количество, Цена, КодЖесткогоДиска FROM dbo.ЖесткийДиск";
  7347. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7348. }
  7349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7351. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7352. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7353. public virtual int Fill(KhozeeevPC_12DataSet.ЖесткийДискDataTable dataTable) {
  7354. this.Adapter.SelectCommand = this.CommandCollection[0];
  7355. if ((this.ClearBeforeFill == true)) {
  7356. dataTable.Clear();
  7357. }
  7358. int returnValue = this.Adapter.Fill(dataTable);
  7359. return returnValue;
  7360. }
  7361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7363. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7364. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7365. public virtual KhozeeevPC_12DataSet.ЖесткийДискDataTable GetData() {
  7366. this.Adapter.SelectCommand = this.CommandCollection[0];
  7367. KhozeeevPC_12DataSet.ЖесткийДискDataTable dataTable = new KhozeeevPC_12DataSet.ЖесткийДискDataTable();
  7368. this.Adapter.Fill(dataTable);
  7369. return dataTable;
  7370. }
  7371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7373. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7374. public virtual int Update(KhozeeevPC_12DataSet.ЖесткийДискDataTable dataTable) {
  7375. return this.Adapter.Update(dataTable);
  7376. }
  7377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7379. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7380. public virtual int Update(KhozeeevPC_12DataSet dataSet) {
  7381. return this.Adapter.Update(dataSet, "ЖесткийДиск");
  7382. }
  7383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7385. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7386. public virtual int Update(global::System.Data.DataRow dataRow) {
  7387. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7388. dataRow});
  7389. }
  7390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7392. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7393. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7394. return this.Adapter.Update(dataRows);
  7395. }
  7396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7398. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7399. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7400. public virtual int Delete(string Original_Название, global::System.Nullable<int> Original_Количество, global::System.Nullable<decimal> Original_Цена, int Original_КодЖесткогоДиска) {
  7401. if ((Original_Название == null)) {
  7402. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(1));
  7403. this.Adapter.DeleteCommand.Parameters[1].Value = global::System.DBNull.Value;
  7404. }
  7405. else {
  7406. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(0));
  7407. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Название));
  7408. }
  7409. if ((Original_Количество.HasValue == true)) {
  7410. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  7411. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Количество.Value));
  7412. }
  7413. else {
  7414. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  7415. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  7416. }
  7417. if ((Original_Цена.HasValue == true)) {
  7418. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  7419. this.Adapter.DeleteCommand.Parameters[5].Value = ((decimal)(Original_Цена.Value));
  7420. }
  7421. else {
  7422. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  7423. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  7424. }
  7425. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_КодЖесткогоДиска));
  7426. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7427. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7428. != global::System.Data.ConnectionState.Open)) {
  7429. this.Adapter.DeleteCommand.Connection.Open();
  7430. }
  7431. try {
  7432. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7433. return returnValue;
  7434. }
  7435. finally {
  7436. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7437. this.Adapter.DeleteCommand.Connection.Close();
  7438. }
  7439. }
  7440. }
  7441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7443. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7444. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7445. public virtual int Insert(string Название, global::System.Nullable<int> Количество, global::System.Nullable<decimal> Цена, int КодЖесткогоДиска) {
  7446. if ((Название == null)) {
  7447. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7448. }
  7449. else {
  7450. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  7451. }
  7452. if ((Количество.HasValue == true)) {
  7453. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Количество.Value));
  7454. }
  7455. else {
  7456. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7457. }
  7458. if ((Цена.HasValue == true)) {
  7459. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  7460. }
  7461. else {
  7462. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7463. }
  7464. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(КодЖесткогоДиска));
  7465. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7466. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7467. != global::System.Data.ConnectionState.Open)) {
  7468. this.Adapter.InsertCommand.Connection.Open();
  7469. }
  7470. try {
  7471. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7472. return returnValue;
  7473. }
  7474. finally {
  7475. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7476. this.Adapter.InsertCommand.Connection.Close();
  7477. }
  7478. }
  7479. }
  7480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7482. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7483. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7484. public virtual int Update(string Название, global::System.Nullable<int> Количество, global::System.Nullable<decimal> Цена, int КодЖесткогоДиска, string Original_Название, global::System.Nullable<int> Original_Количество, global::System.Nullable<decimal> Original_Цена, int Original_КодЖесткогоДиска) {
  7485. if ((Название == null)) {
  7486. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7487. }
  7488. else {
  7489. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  7490. }
  7491. if ((Количество.HasValue == true)) {
  7492. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Количество.Value));
  7493. }
  7494. else {
  7495. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7496. }
  7497. if ((Цена.HasValue == true)) {
  7498. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  7499. }
  7500. else {
  7501. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7502. }
  7503. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(КодЖесткогоДиска));
  7504. if ((Original_Название == null)) {
  7505. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  7506. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7507. }
  7508. else {
  7509. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  7510. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Название));
  7511. }
  7512. if ((Original_Количество.HasValue == true)) {
  7513. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  7514. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Количество.Value));
  7515. }
  7516. else {
  7517. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  7518. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  7519. }
  7520. if ((Original_Цена.HasValue == true)) {
  7521. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  7522. this.Adapter.UpdateCommand.Parameters[9].Value = ((decimal)(Original_Цена.Value));
  7523. }
  7524. else {
  7525. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  7526. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  7527. }
  7528. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_КодЖесткогоДиска));
  7529. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7530. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7531. != global::System.Data.ConnectionState.Open)) {
  7532. this.Adapter.UpdateCommand.Connection.Open();
  7533. }
  7534. try {
  7535. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7536. return returnValue;
  7537. }
  7538. finally {
  7539. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7540. this.Adapter.UpdateCommand.Connection.Close();
  7541. }
  7542. }
  7543. }
  7544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7546. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7547. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7548. public virtual int Update(string Название, global::System.Nullable<int> Количество, global::System.Nullable<decimal> Цена, string Original_Название, global::System.Nullable<int> Original_Количество, global::System.Nullable<decimal> Original_Цена, int Original_КодЖесткогоДиска) {
  7549. return this.Update(Название, Количество, Цена, Original_КодЖесткогоДиска, Original_Название, Original_Количество, Original_Цена, Original_КодЖесткогоДиска);
  7550. }
  7551. }
  7552. /// <summary>
  7553. ///Represents the connection and commands used to retrieve and save data.
  7554. ///</summary>
  7555. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7556. [global::System.ComponentModel.ToolboxItem(true)]
  7557. [global::System.ComponentModel.DataObjectAttribute(true)]
  7558. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7559. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7560. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7561. public partial class КулерыTableAdapter : global::System.ComponentModel.Component {
  7562. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7563. private global::System.Data.SqlClient.SqlConnection _connection;
  7564. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7565. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7566. private bool _clearBeforeFill;
  7567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7569. public КулерыTableAdapter() {
  7570. this.ClearBeforeFill = true;
  7571. }
  7572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7574. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7575. get {
  7576. if ((this._adapter == null)) {
  7577. this.InitAdapter();
  7578. }
  7579. return this._adapter;
  7580. }
  7581. }
  7582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7584. internal global::System.Data.SqlClient.SqlConnection Connection {
  7585. get {
  7586. if ((this._connection == null)) {
  7587. this.InitConnection();
  7588. }
  7589. return this._connection;
  7590. }
  7591. set {
  7592. this._connection = value;
  7593. if ((this.Adapter.InsertCommand != null)) {
  7594. this.Adapter.InsertCommand.Connection = value;
  7595. }
  7596. if ((this.Adapter.DeleteCommand != null)) {
  7597. this.Adapter.DeleteCommand.Connection = value;
  7598. }
  7599. if ((this.Adapter.UpdateCommand != null)) {
  7600. this.Adapter.UpdateCommand.Connection = value;
  7601. }
  7602. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7603. if ((this.CommandCollection[i] != null)) {
  7604. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7605. }
  7606. }
  7607. }
  7608. }
  7609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7611. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7612. get {
  7613. return this._transaction;
  7614. }
  7615. set {
  7616. this._transaction = value;
  7617. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7618. this.CommandCollection[i].Transaction = this._transaction;
  7619. }
  7620. if (((this.Adapter != null)
  7621. && (this.Adapter.DeleteCommand != null))) {
  7622. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7623. }
  7624. if (((this.Adapter != null)
  7625. && (this.Adapter.InsertCommand != null))) {
  7626. this.Adapter.InsertCommand.Transaction = this._transaction;
  7627. }
  7628. if (((this.Adapter != null)
  7629. && (this.Adapter.UpdateCommand != null))) {
  7630. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7631. }
  7632. }
  7633. }
  7634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7636. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7637. get {
  7638. if ((this._commandCollection == null)) {
  7639. this.InitCommandCollection();
  7640. }
  7641. return this._commandCollection;
  7642. }
  7643. }
  7644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7646. public bool ClearBeforeFill {
  7647. get {
  7648. return this._clearBeforeFill;
  7649. }
  7650. set {
  7651. this._clearBeforeFill = value;
  7652. }
  7653. }
  7654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7656. private void InitAdapter() {
  7657. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7658. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7659. tableMapping.SourceTable = "Table";
  7660. tableMapping.DataSetTable = "Кулеры";
  7661. tableMapping.ColumnMappings.Add("Название", "Название");
  7662. tableMapping.ColumnMappings.Add("Количество", "Количество");
  7663. tableMapping.ColumnMappings.Add("Цена", "Цена");
  7664. tableMapping.ColumnMappings.Add("КодКулера", "КодКулера");
  7665. this._adapter.TableMappings.Add(tableMapping);
  7666. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7667. this._adapter.DeleteCommand.Connection = this.Connection;
  7668. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Кулеры] WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ([КодКулера] = @Original_КодКулера))";
  7669. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7670. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7671. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7672. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7673. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7674. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7675. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7676. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодКулера", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодКулера", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7677. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7678. this._adapter.InsertCommand.Connection = this.Connection;
  7679. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Кулеры] ([Название], [Количество], [Цена], [КодКулера]) VALUES" +
  7680. " (@Название, @Количество, @Цена, @КодКулера);\r\nSELECT Название, Количество, Цена" +
  7681. ", КодКулера FROM Кулеры WHERE (КодКулера = @КодКулера)";
  7682. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7683. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7684. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7685. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7686. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодКулера", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодКулера", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7687. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7688. this._adapter.UpdateCommand.Connection = this.Connection;
  7689. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Кулеры] SET [Название] = @Название, [Количество] = @Количество, [Цена] = @Цена, [КодКулера] = @КодКулера WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ([КодКулера] = @Original_КодКулера));
  7690. SELECT Название, Количество, Цена, КодКулера FROM Кулеры WHERE (КодКулера = @КодКулера)";
  7691. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7692. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7693. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7694. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7695. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодКулера", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодКулера", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7696. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7697. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7698. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7699. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7700. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7701. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7702. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодКулера", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодКулера", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7703. }
  7704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7706. private void InitConnection() {
  7707. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7708. this._connection.ConnectionString = global::Khozeev8.Properties.Settings.Default.KhozeeevPC_12ConnectionString;
  7709. }
  7710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7712. private void InitCommandCollection() {
  7713. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7714. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7715. this._commandCollection[0].Connection = this.Connection;
  7716. this._commandCollection[0].CommandText = "SELECT Название, Количество, Цена, КодКулера FROM dbo.Кулеры";
  7717. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7718. }
  7719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7721. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7722. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7723. public virtual int Fill(KhozeeevPC_12DataSet.КулерыDataTable dataTable) {
  7724. this.Adapter.SelectCommand = this.CommandCollection[0];
  7725. if ((this.ClearBeforeFill == true)) {
  7726. dataTable.Clear();
  7727. }
  7728. int returnValue = this.Adapter.Fill(dataTable);
  7729. return returnValue;
  7730. }
  7731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7733. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7734. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7735. public virtual KhozeeevPC_12DataSet.КулерыDataTable GetData() {
  7736. this.Adapter.SelectCommand = this.CommandCollection[0];
  7737. KhozeeevPC_12DataSet.КулерыDataTable dataTable = new KhozeeevPC_12DataSet.КулерыDataTable();
  7738. this.Adapter.Fill(dataTable);
  7739. return dataTable;
  7740. }
  7741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7743. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7744. public virtual int Update(KhozeeevPC_12DataSet.КулерыDataTable dataTable) {
  7745. return this.Adapter.Update(dataTable);
  7746. }
  7747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7749. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7750. public virtual int Update(KhozeeevPC_12DataSet dataSet) {
  7751. return this.Adapter.Update(dataSet, "Кулеры");
  7752. }
  7753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7755. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7756. public virtual int Update(global::System.Data.DataRow dataRow) {
  7757. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7758. dataRow});
  7759. }
  7760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7762. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7763. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7764. return this.Adapter.Update(dataRows);
  7765. }
  7766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7768. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7769. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7770. public virtual int Delete(string Original_Название, global::System.Nullable<int> Original_Количество, global::System.Nullable<decimal> Original_Цена, int Original_КодКулера) {
  7771. if ((Original_Название == null)) {
  7772. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(1));
  7773. this.Adapter.DeleteCommand.Parameters[1].Value = global::System.DBNull.Value;
  7774. }
  7775. else {
  7776. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(0));
  7777. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Название));
  7778. }
  7779. if ((Original_Количество.HasValue == true)) {
  7780. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  7781. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Количество.Value));
  7782. }
  7783. else {
  7784. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  7785. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  7786. }
  7787. if ((Original_Цена.HasValue == true)) {
  7788. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  7789. this.Adapter.DeleteCommand.Parameters[5].Value = ((decimal)(Original_Цена.Value));
  7790. }
  7791. else {
  7792. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  7793. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  7794. }
  7795. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_КодКулера));
  7796. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7797. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7798. != global::System.Data.ConnectionState.Open)) {
  7799. this.Adapter.DeleteCommand.Connection.Open();
  7800. }
  7801. try {
  7802. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7803. return returnValue;
  7804. }
  7805. finally {
  7806. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7807. this.Adapter.DeleteCommand.Connection.Close();
  7808. }
  7809. }
  7810. }
  7811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7813. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7814. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7815. public virtual int Insert(string Название, global::System.Nullable<int> Количество, global::System.Nullable<decimal> Цена, int КодКулера) {
  7816. if ((Название == null)) {
  7817. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7818. }
  7819. else {
  7820. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  7821. }
  7822. if ((Количество.HasValue == true)) {
  7823. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Количество.Value));
  7824. }
  7825. else {
  7826. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7827. }
  7828. if ((Цена.HasValue == true)) {
  7829. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  7830. }
  7831. else {
  7832. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7833. }
  7834. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(КодКулера));
  7835. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7836. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7837. != global::System.Data.ConnectionState.Open)) {
  7838. this.Adapter.InsertCommand.Connection.Open();
  7839. }
  7840. try {
  7841. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7842. return returnValue;
  7843. }
  7844. finally {
  7845. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7846. this.Adapter.InsertCommand.Connection.Close();
  7847. }
  7848. }
  7849. }
  7850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7852. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7853. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7854. public virtual int Update(string Название, global::System.Nullable<int> Количество, global::System.Nullable<decimal> Цена, int КодКулера, string Original_Название, global::System.Nullable<int> Original_Количество, global::System.Nullable<decimal> Original_Цена, int Original_КодКулера) {
  7855. if ((Название == null)) {
  7856. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7857. }
  7858. else {
  7859. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  7860. }
  7861. if ((Количество.HasValue == true)) {
  7862. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Количество.Value));
  7863. }
  7864. else {
  7865. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7866. }
  7867. if ((Цена.HasValue == true)) {
  7868. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  7869. }
  7870. else {
  7871. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7872. }
  7873. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(КодКулера));
  7874. if ((Original_Название == null)) {
  7875. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  7876. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7877. }
  7878. else {
  7879. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  7880. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Название));
  7881. }
  7882. if ((Original_Количество.HasValue == true)) {
  7883. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  7884. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Количество.Value));
  7885. }
  7886. else {
  7887. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  7888. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  7889. }
  7890. if ((Original_Цена.HasValue == true)) {
  7891. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  7892. this.Adapter.UpdateCommand.Parameters[9].Value = ((decimal)(Original_Цена.Value));
  7893. }
  7894. else {
  7895. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  7896. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  7897. }
  7898. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_КодКулера));
  7899. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7900. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7901. != global::System.Data.ConnectionState.Open)) {
  7902. this.Adapter.UpdateCommand.Connection.Open();
  7903. }
  7904. try {
  7905. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7906. return returnValue;
  7907. }
  7908. finally {
  7909. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7910. this.Adapter.UpdateCommand.Connection.Close();
  7911. }
  7912. }
  7913. }
  7914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7916. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7917. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7918. public virtual int Update(string Название, global::System.Nullable<int> Количество, global::System.Nullable<decimal> Цена, string Original_Название, global::System.Nullable<int> Original_Количество, global::System.Nullable<decimal> Original_Цена, int Original_КодКулера) {
  7919. return this.Update(Название, Количество, Цена, Original_КодКулера, Original_Название, Original_Количество, Original_Цена, Original_КодКулера);
  7920. }
  7921. }
  7922. /// <summary>
  7923. ///Represents the connection and commands used to retrieve and save data.
  7924. ///</summary>
  7925. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7926. [global::System.ComponentModel.ToolboxItem(true)]
  7927. [global::System.ComponentModel.DataObjectAttribute(true)]
  7928. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7929. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7930. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7931. public partial class МатеринскаяПлатаTableAdapter : global::System.ComponentModel.Component {
  7932. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7933. private global::System.Data.SqlClient.SqlConnection _connection;
  7934. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7935. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7936. private bool _clearBeforeFill;
  7937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7939. public МатеринскаяПлатаTableAdapter() {
  7940. this.ClearBeforeFill = true;
  7941. }
  7942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7944. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7945. get {
  7946. if ((this._adapter == null)) {
  7947. this.InitAdapter();
  7948. }
  7949. return this._adapter;
  7950. }
  7951. }
  7952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7954. internal global::System.Data.SqlClient.SqlConnection Connection {
  7955. get {
  7956. if ((this._connection == null)) {
  7957. this.InitConnection();
  7958. }
  7959. return this._connection;
  7960. }
  7961. set {
  7962. this._connection = value;
  7963. if ((this.Adapter.InsertCommand != null)) {
  7964. this.Adapter.InsertCommand.Connection = value;
  7965. }
  7966. if ((this.Adapter.DeleteCommand != null)) {
  7967. this.Adapter.DeleteCommand.Connection = value;
  7968. }
  7969. if ((this.Adapter.UpdateCommand != null)) {
  7970. this.Adapter.UpdateCommand.Connection = value;
  7971. }
  7972. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7973. if ((this.CommandCollection[i] != null)) {
  7974. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7975. }
  7976. }
  7977. }
  7978. }
  7979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7981. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7982. get {
  7983. return this._transaction;
  7984. }
  7985. set {
  7986. this._transaction = value;
  7987. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7988. this.CommandCollection[i].Transaction = this._transaction;
  7989. }
  7990. if (((this.Adapter != null)
  7991. && (this.Adapter.DeleteCommand != null))) {
  7992. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7993. }
  7994. if (((this.Adapter != null)
  7995. && (this.Adapter.InsertCommand != null))) {
  7996. this.Adapter.InsertCommand.Transaction = this._transaction;
  7997. }
  7998. if (((this.Adapter != null)
  7999. && (this.Adapter.UpdateCommand != null))) {
  8000. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8001. }
  8002. }
  8003. }
  8004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8006. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8007. get {
  8008. if ((this._commandCollection == null)) {
  8009. this.InitCommandCollection();
  8010. }
  8011. return this._commandCollection;
  8012. }
  8013. }
  8014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8016. public bool ClearBeforeFill {
  8017. get {
  8018. return this._clearBeforeFill;
  8019. }
  8020. set {
  8021. this._clearBeforeFill = value;
  8022. }
  8023. }
  8024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8026. private void InitAdapter() {
  8027. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8028. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8029. tableMapping.SourceTable = "Table";
  8030. tableMapping.DataSetTable = "МатеринскаяПлата";
  8031. tableMapping.ColumnMappings.Add("Название", "Название");
  8032. tableMapping.ColumnMappings.Add("Цена", "Цена");
  8033. tableMapping.ColumnMappings.Add("Количество", "Количество");
  8034. tableMapping.ColumnMappings.Add("КодМатеринскойПлаты", "КодМатеринскойПлаты");
  8035. this._adapter.TableMappings.Add(tableMapping);
  8036. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8037. this._adapter.DeleteCommand.Connection = this.Connection;
  8038. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[МатеринскаяПлата] WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ([КодМатеринскойПлаты] = @Original_КодМатеринскойПлаты))";
  8039. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8040. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8041. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8042. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8043. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8044. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8045. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8046. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодМатеринскойПлаты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодМатеринскойПлаты", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8047. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8048. this._adapter.InsertCommand.Connection = this.Connection;
  8049. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[МатеринскаяПлата] ([Название], [Цена], [Количество], [КодМатеринскойПлаты]) VALUES (@Название, @Цена, @Количество, @КодМатеринскойПлаты);
  8050. SELECT Название, Цена, Количество, КодМатеринскойПлаты FROM МатеринскаяПлата WHERE (КодМатеринскойПлаты = @КодМатеринскойПлаты)";
  8051. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8052. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8053. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8054. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8055. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодМатеринскойПлаты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодМатеринскойПлаты", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8056. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8057. this._adapter.UpdateCommand.Connection = this.Connection;
  8058. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[МатеринскаяПлата] SET [Название] = @Название, [Цена] = @Цена, [Количество] = @Количество, [КодМатеринскойПлаты] = @КодМатеринскойПлаты WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ([КодМатеринскойПлаты] = @Original_КодМатеринскойПлаты));
  8059. SELECT Название, Цена, Количество, КодМатеринскойПлаты FROM МатеринскаяПлата WHERE (КодМатеринскойПлаты = @КодМатеринскойПлаты)";
  8060. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8061. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8062. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8063. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8064. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодМатеринскойПлаты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодМатеринскойПлаты", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8065. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8066. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8067. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8068. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8069. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8070. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8071. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодМатеринскойПлаты", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодМатеринскойПлаты", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8072. }
  8073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8075. private void InitConnection() {
  8076. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8077. this._connection.ConnectionString = global::Khozeev8.Properties.Settings.Default.KhozeeevPC_12ConnectionString;
  8078. }
  8079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8081. private void InitCommandCollection() {
  8082. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8083. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8084. this._commandCollection[0].Connection = this.Connection;
  8085. this._commandCollection[0].CommandText = "SELECT Название, Цена, Количество, КодМатеринскойПлаты FROM dbo.МатеринскаяПлата";
  8086. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8087. }
  8088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8090. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8091. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8092. public virtual int Fill(KhozeeevPC_12DataSet.МатеринскаяПлатаDataTable dataTable) {
  8093. this.Adapter.SelectCommand = this.CommandCollection[0];
  8094. if ((this.ClearBeforeFill == true)) {
  8095. dataTable.Clear();
  8096. }
  8097. int returnValue = this.Adapter.Fill(dataTable);
  8098. return returnValue;
  8099. }
  8100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8102. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8103. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8104. public virtual KhozeeevPC_12DataSet.МатеринскаяПлатаDataTable GetData() {
  8105. this.Adapter.SelectCommand = this.CommandCollection[0];
  8106. KhozeeevPC_12DataSet.МатеринскаяПлатаDataTable dataTable = new KhozeeevPC_12DataSet.МатеринскаяПлатаDataTable();
  8107. this.Adapter.Fill(dataTable);
  8108. return dataTable;
  8109. }
  8110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8112. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8113. public virtual int Update(KhozeeevPC_12DataSet.МатеринскаяПлатаDataTable dataTable) {
  8114. return this.Adapter.Update(dataTable);
  8115. }
  8116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8118. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8119. public virtual int Update(KhozeeevPC_12DataSet dataSet) {
  8120. return this.Adapter.Update(dataSet, "МатеринскаяПлата");
  8121. }
  8122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8124. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8125. public virtual int Update(global::System.Data.DataRow dataRow) {
  8126. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8127. dataRow});
  8128. }
  8129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8131. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8132. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8133. return this.Adapter.Update(dataRows);
  8134. }
  8135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8137. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8138. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8139. public virtual int Delete(string Original_Название, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, int Original_КодМатеринскойПлаты) {
  8140. if ((Original_Название == null)) {
  8141. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(1));
  8142. this.Adapter.DeleteCommand.Parameters[1].Value = global::System.DBNull.Value;
  8143. }
  8144. else {
  8145. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(0));
  8146. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Название));
  8147. }
  8148. if ((Original_Цена.HasValue == true)) {
  8149. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  8150. this.Adapter.DeleteCommand.Parameters[3].Value = ((decimal)(Original_Цена.Value));
  8151. }
  8152. else {
  8153. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  8154. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  8155. }
  8156. if ((Original_Количество.HasValue == true)) {
  8157. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  8158. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_Количество.Value));
  8159. }
  8160. else {
  8161. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  8162. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  8163. }
  8164. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_КодМатеринскойПлаты));
  8165. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8166. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8167. != global::System.Data.ConnectionState.Open)) {
  8168. this.Adapter.DeleteCommand.Connection.Open();
  8169. }
  8170. try {
  8171. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8172. return returnValue;
  8173. }
  8174. finally {
  8175. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8176. this.Adapter.DeleteCommand.Connection.Close();
  8177. }
  8178. }
  8179. }
  8180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8182. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8183. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8184. public virtual int Insert(string Название, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, int КодМатеринскойПлаты) {
  8185. if ((Название == null)) {
  8186. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8187. }
  8188. else {
  8189. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  8190. }
  8191. if ((Цена.HasValue == true)) {
  8192. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Цена.Value));
  8193. }
  8194. else {
  8195. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8196. }
  8197. if ((Количество.HasValue == true)) {
  8198. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Количество.Value));
  8199. }
  8200. else {
  8201. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8202. }
  8203. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(КодМатеринскойПлаты));
  8204. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8205. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8206. != global::System.Data.ConnectionState.Open)) {
  8207. this.Adapter.InsertCommand.Connection.Open();
  8208. }
  8209. try {
  8210. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8211. return returnValue;
  8212. }
  8213. finally {
  8214. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8215. this.Adapter.InsertCommand.Connection.Close();
  8216. }
  8217. }
  8218. }
  8219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8221. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8222. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8223. public virtual int Update(string Название, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, int КодМатеринскойПлаты, string Original_Название, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, int Original_КодМатеринскойПлаты) {
  8224. if ((Название == null)) {
  8225. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8226. }
  8227. else {
  8228. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  8229. }
  8230. if ((Цена.HasValue == true)) {
  8231. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Цена.Value));
  8232. }
  8233. else {
  8234. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8235. }
  8236. if ((Количество.HasValue == true)) {
  8237. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Количество.Value));
  8238. }
  8239. else {
  8240. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8241. }
  8242. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(КодМатеринскойПлаты));
  8243. if ((Original_Название == null)) {
  8244. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  8245. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8246. }
  8247. else {
  8248. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  8249. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Название));
  8250. }
  8251. if ((Original_Цена.HasValue == true)) {
  8252. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  8253. this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(Original_Цена.Value));
  8254. }
  8255. else {
  8256. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  8257. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  8258. }
  8259. if ((Original_Количество.HasValue == true)) {
  8260. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  8261. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Количество.Value));
  8262. }
  8263. else {
  8264. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  8265. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  8266. }
  8267. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_КодМатеринскойПлаты));
  8268. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8269. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8270. != global::System.Data.ConnectionState.Open)) {
  8271. this.Adapter.UpdateCommand.Connection.Open();
  8272. }
  8273. try {
  8274. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8275. return returnValue;
  8276. }
  8277. finally {
  8278. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8279. this.Adapter.UpdateCommand.Connection.Close();
  8280. }
  8281. }
  8282. }
  8283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8285. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8286. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8287. public virtual int Update(string Название, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, string Original_Название, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, int Original_КодМатеринскойПлаты) {
  8288. return this.Update(Название, Цена, Количество, Original_КодМатеринскойПлаты, Original_Название, Original_Цена, Original_Количество, Original_КодМатеринскойПлаты);
  8289. }
  8290. }
  8291. /// <summary>
  8292. ///Represents the connection and commands used to retrieve and save data.
  8293. ///</summary>
  8294. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8295. [global::System.ComponentModel.ToolboxItem(true)]
  8296. [global::System.ComponentModel.DataObjectAttribute(true)]
  8297. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8298. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8299. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8300. public partial class ОперативнаяПамятьTableAdapter : global::System.ComponentModel.Component {
  8301. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8302. private global::System.Data.SqlClient.SqlConnection _connection;
  8303. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8304. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8305. private bool _clearBeforeFill;
  8306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8308. public ОперативнаяПамятьTableAdapter() {
  8309. this.ClearBeforeFill = true;
  8310. }
  8311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8313. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8314. get {
  8315. if ((this._adapter == null)) {
  8316. this.InitAdapter();
  8317. }
  8318. return this._adapter;
  8319. }
  8320. }
  8321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8323. internal global::System.Data.SqlClient.SqlConnection Connection {
  8324. get {
  8325. if ((this._connection == null)) {
  8326. this.InitConnection();
  8327. }
  8328. return this._connection;
  8329. }
  8330. set {
  8331. this._connection = value;
  8332. if ((this.Adapter.InsertCommand != null)) {
  8333. this.Adapter.InsertCommand.Connection = value;
  8334. }
  8335. if ((this.Adapter.DeleteCommand != null)) {
  8336. this.Adapter.DeleteCommand.Connection = value;
  8337. }
  8338. if ((this.Adapter.UpdateCommand != null)) {
  8339. this.Adapter.UpdateCommand.Connection = value;
  8340. }
  8341. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8342. if ((this.CommandCollection[i] != null)) {
  8343. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8344. }
  8345. }
  8346. }
  8347. }
  8348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8350. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8351. get {
  8352. return this._transaction;
  8353. }
  8354. set {
  8355. this._transaction = value;
  8356. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8357. this.CommandCollection[i].Transaction = this._transaction;
  8358. }
  8359. if (((this.Adapter != null)
  8360. && (this.Adapter.DeleteCommand != null))) {
  8361. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8362. }
  8363. if (((this.Adapter != null)
  8364. && (this.Adapter.InsertCommand != null))) {
  8365. this.Adapter.InsertCommand.Transaction = this._transaction;
  8366. }
  8367. if (((this.Adapter != null)
  8368. && (this.Adapter.UpdateCommand != null))) {
  8369. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8370. }
  8371. }
  8372. }
  8373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8375. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8376. get {
  8377. if ((this._commandCollection == null)) {
  8378. this.InitCommandCollection();
  8379. }
  8380. return this._commandCollection;
  8381. }
  8382. }
  8383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8385. public bool ClearBeforeFill {
  8386. get {
  8387. return this._clearBeforeFill;
  8388. }
  8389. set {
  8390. this._clearBeforeFill = value;
  8391. }
  8392. }
  8393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8395. private void InitAdapter() {
  8396. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8397. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8398. tableMapping.SourceTable = "Table";
  8399. tableMapping.DataSetTable = "ОперативнаяПамять";
  8400. tableMapping.ColumnMappings.Add("Название", "Название");
  8401. tableMapping.ColumnMappings.Add("Цена", "Цена");
  8402. tableMapping.ColumnMappings.Add("Количество", "Количество");
  8403. tableMapping.ColumnMappings.Add("КодОперативнойПамяти", "КодОперативнойПамяти");
  8404. this._adapter.TableMappings.Add(tableMapping);
  8405. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8406. this._adapter.DeleteCommand.Connection = this.Connection;
  8407. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ОперативнаяПамять] WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ([КодОперативнойПамяти] = @Original_КодОперативнойПамяти))";
  8408. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8409. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8410. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8411. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8412. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8413. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8414. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8415. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодОперативнойПамяти", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодОперативнойПамяти", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8416. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8417. this._adapter.InsertCommand.Connection = this.Connection;
  8418. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ОперативнаяПамять] ([Название], [Цена], [Количество], [КодОперативнойПамяти]) VALUES (@Название, @Цена, @Количество, @КодОперативнойПамяти);
  8419. SELECT Название, Цена, Количество, КодОперативнойПамяти FROM ОперативнаяПамять WHERE (КодОперативнойПамяти = @КодОперативнойПамяти)";
  8420. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8421. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8422. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8423. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8424. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодОперативнойПамяти", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодОперативнойПамяти", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8425. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8426. this._adapter.UpdateCommand.Connection = this.Connection;
  8427. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ОперативнаяПамять] SET [Название] = @Название, [Цена] = @Цена, [Количество] = @Количество, [КодОперативнойПамяти] = @КодОперативнойПамяти WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ([КодОперативнойПамяти] = @Original_КодОперативнойПамяти));
  8428. SELECT Название, Цена, Количество, КодОперативнойПамяти FROM ОперативнаяПамять WHERE (КодОперативнойПамяти = @КодОперативнойПамяти)";
  8429. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8430. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8431. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8432. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8433. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодОперативнойПамяти", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодОперативнойПамяти", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8434. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8435. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8436. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8437. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8438. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8439. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8440. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодОперативнойПамяти", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодОперативнойПамяти", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8441. }
  8442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8444. private void InitConnection() {
  8445. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8446. this._connection.ConnectionString = global::Khozeev8.Properties.Settings.Default.KhozeeevPC_12ConnectionString;
  8447. }
  8448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8450. private void InitCommandCollection() {
  8451. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8452. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8453. this._commandCollection[0].Connection = this.Connection;
  8454. this._commandCollection[0].CommandText = "SELECT Название, Цена, Количество, КодОперативнойПамяти FROM dbo.ОперативнаяПамят" +
  8455. "ь";
  8456. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8457. }
  8458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8460. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8461. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8462. public virtual int Fill(KhozeeevPC_12DataSet.ОперативнаяПамятьDataTable dataTable) {
  8463. this.Adapter.SelectCommand = this.CommandCollection[0];
  8464. if ((this.ClearBeforeFill == true)) {
  8465. dataTable.Clear();
  8466. }
  8467. int returnValue = this.Adapter.Fill(dataTable);
  8468. return returnValue;
  8469. }
  8470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8472. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8473. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8474. public virtual KhozeeevPC_12DataSet.ОперативнаяПамятьDataTable GetData() {
  8475. this.Adapter.SelectCommand = this.CommandCollection[0];
  8476. KhozeeevPC_12DataSet.ОперативнаяПамятьDataTable dataTable = new KhozeeevPC_12DataSet.ОперативнаяПамятьDataTable();
  8477. this.Adapter.Fill(dataTable);
  8478. return dataTable;
  8479. }
  8480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8482. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8483. public virtual int Update(KhozeeevPC_12DataSet.ОперативнаяПамятьDataTable dataTable) {
  8484. return this.Adapter.Update(dataTable);
  8485. }
  8486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8488. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8489. public virtual int Update(KhozeeevPC_12DataSet dataSet) {
  8490. return this.Adapter.Update(dataSet, "ОперативнаяПамять");
  8491. }
  8492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8494. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8495. public virtual int Update(global::System.Data.DataRow dataRow) {
  8496. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8497. dataRow});
  8498. }
  8499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8501. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8502. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8503. return this.Adapter.Update(dataRows);
  8504. }
  8505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8507. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8508. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8509. public virtual int Delete(string Original_Название, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, int Original_КодОперативнойПамяти) {
  8510. if ((Original_Название == null)) {
  8511. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(1));
  8512. this.Adapter.DeleteCommand.Parameters[1].Value = global::System.DBNull.Value;
  8513. }
  8514. else {
  8515. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(0));
  8516. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Название));
  8517. }
  8518. if ((Original_Цена.HasValue == true)) {
  8519. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  8520. this.Adapter.DeleteCommand.Parameters[3].Value = ((decimal)(Original_Цена.Value));
  8521. }
  8522. else {
  8523. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  8524. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  8525. }
  8526. if ((Original_Количество.HasValue == true)) {
  8527. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  8528. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_Количество.Value));
  8529. }
  8530. else {
  8531. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  8532. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  8533. }
  8534. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_КодОперативнойПамяти));
  8535. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8536. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8537. != global::System.Data.ConnectionState.Open)) {
  8538. this.Adapter.DeleteCommand.Connection.Open();
  8539. }
  8540. try {
  8541. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8542. return returnValue;
  8543. }
  8544. finally {
  8545. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8546. this.Adapter.DeleteCommand.Connection.Close();
  8547. }
  8548. }
  8549. }
  8550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8552. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8553. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8554. public virtual int Insert(string Название, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, int КодОперативнойПамяти) {
  8555. if ((Название == null)) {
  8556. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8557. }
  8558. else {
  8559. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  8560. }
  8561. if ((Цена.HasValue == true)) {
  8562. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Цена.Value));
  8563. }
  8564. else {
  8565. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8566. }
  8567. if ((Количество.HasValue == true)) {
  8568. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Количество.Value));
  8569. }
  8570. else {
  8571. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8572. }
  8573. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(КодОперативнойПамяти));
  8574. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8575. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8576. != global::System.Data.ConnectionState.Open)) {
  8577. this.Adapter.InsertCommand.Connection.Open();
  8578. }
  8579. try {
  8580. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8581. return returnValue;
  8582. }
  8583. finally {
  8584. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8585. this.Adapter.InsertCommand.Connection.Close();
  8586. }
  8587. }
  8588. }
  8589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8591. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8592. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8593. public virtual int Update(string Название, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, int КодОперативнойПамяти, string Original_Название, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, int Original_КодОперативнойПамяти) {
  8594. if ((Название == null)) {
  8595. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8596. }
  8597. else {
  8598. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  8599. }
  8600. if ((Цена.HasValue == true)) {
  8601. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Цена.Value));
  8602. }
  8603. else {
  8604. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8605. }
  8606. if ((Количество.HasValue == true)) {
  8607. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Количество.Value));
  8608. }
  8609. else {
  8610. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8611. }
  8612. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(КодОперативнойПамяти));
  8613. if ((Original_Название == null)) {
  8614. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  8615. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8616. }
  8617. else {
  8618. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  8619. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Название));
  8620. }
  8621. if ((Original_Цена.HasValue == true)) {
  8622. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  8623. this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(Original_Цена.Value));
  8624. }
  8625. else {
  8626. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  8627. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  8628. }
  8629. if ((Original_Количество.HasValue == true)) {
  8630. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  8631. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Количество.Value));
  8632. }
  8633. else {
  8634. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  8635. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  8636. }
  8637. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_КодОперативнойПамяти));
  8638. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8639. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8640. != global::System.Data.ConnectionState.Open)) {
  8641. this.Adapter.UpdateCommand.Connection.Open();
  8642. }
  8643. try {
  8644. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8645. return returnValue;
  8646. }
  8647. finally {
  8648. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8649. this.Adapter.UpdateCommand.Connection.Close();
  8650. }
  8651. }
  8652. }
  8653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8655. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8656. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8657. public virtual int Update(string Название, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, string Original_Название, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, int Original_КодОперативнойПамяти) {
  8658. return this.Update(Название, Цена, Количество, Original_КодОперативнойПамяти, Original_Название, Original_Цена, Original_Количество, Original_КодОперативнойПамяти);
  8659. }
  8660. }
  8661. /// <summary>
  8662. ///Represents the connection and commands used to retrieve and save data.
  8663. ///</summary>
  8664. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8665. [global::System.ComponentModel.ToolboxItem(true)]
  8666. [global::System.ComponentModel.DataObjectAttribute(true)]
  8667. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8668. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8669. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8670. public partial class ПользователиTableAdapter : global::System.ComponentModel.Component {
  8671. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8672. private global::System.Data.SqlClient.SqlConnection _connection;
  8673. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8674. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8675. private bool _clearBeforeFill;
  8676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8678. public ПользователиTableAdapter() {
  8679. this.ClearBeforeFill = true;
  8680. }
  8681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8683. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8684. get {
  8685. if ((this._adapter == null)) {
  8686. this.InitAdapter();
  8687. }
  8688. return this._adapter;
  8689. }
  8690. }
  8691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8693. internal global::System.Data.SqlClient.SqlConnection Connection {
  8694. get {
  8695. if ((this._connection == null)) {
  8696. this.InitConnection();
  8697. }
  8698. return this._connection;
  8699. }
  8700. set {
  8701. this._connection = value;
  8702. if ((this.Adapter.InsertCommand != null)) {
  8703. this.Adapter.InsertCommand.Connection = value;
  8704. }
  8705. if ((this.Adapter.DeleteCommand != null)) {
  8706. this.Adapter.DeleteCommand.Connection = value;
  8707. }
  8708. if ((this.Adapter.UpdateCommand != null)) {
  8709. this.Adapter.UpdateCommand.Connection = value;
  8710. }
  8711. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8712. if ((this.CommandCollection[i] != null)) {
  8713. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8714. }
  8715. }
  8716. }
  8717. }
  8718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8720. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8721. get {
  8722. return this._transaction;
  8723. }
  8724. set {
  8725. this._transaction = value;
  8726. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8727. this.CommandCollection[i].Transaction = this._transaction;
  8728. }
  8729. if (((this.Adapter != null)
  8730. && (this.Adapter.DeleteCommand != null))) {
  8731. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8732. }
  8733. if (((this.Adapter != null)
  8734. && (this.Adapter.InsertCommand != null))) {
  8735. this.Adapter.InsertCommand.Transaction = this._transaction;
  8736. }
  8737. if (((this.Adapter != null)
  8738. && (this.Adapter.UpdateCommand != null))) {
  8739. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8740. }
  8741. }
  8742. }
  8743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8745. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8746. get {
  8747. if ((this._commandCollection == null)) {
  8748. this.InitCommandCollection();
  8749. }
  8750. return this._commandCollection;
  8751. }
  8752. }
  8753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8755. public bool ClearBeforeFill {
  8756. get {
  8757. return this._clearBeforeFill;
  8758. }
  8759. set {
  8760. this._clearBeforeFill = value;
  8761. }
  8762. }
  8763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8765. private void InitAdapter() {
  8766. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8767. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8768. tableMapping.SourceTable = "Table";
  8769. tableMapping.DataSetTable = "Пользователи";
  8770. tableMapping.ColumnMappings.Add("Логин", "Логин");
  8771. tableMapping.ColumnMappings.Add("Пароль", "Пароль");
  8772. tableMapping.ColumnMappings.Add("КодПользователя", "КодПользователя");
  8773. this._adapter.TableMappings.Add(tableMapping);
  8774. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8775. this._adapter.DeleteCommand.Connection = this.Connection;
  8776. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Пользователи] WHERE (((@IsNull_Логин = 1 AND [Логин] IS NULL) " +
  8777. "OR ([Логин] = @Original_Логин)) AND ((@IsNull_Пароль = 1 AND [Пароль] IS NULL) O" +
  8778. "R ([Пароль] = @Original_Пароль)) AND ([КодПользователя] = @Original_КодПользоват" +
  8779. "еля))";
  8780. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8781. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Логин", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8782. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8783. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Пароль", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8784. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8785. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодПользователя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПользователя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8786. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8787. this._adapter.InsertCommand.Connection = this.Connection;
  8788. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Пользователи] ([Логин], [Пароль], [КодПользователя]) VALUES (@" +
  8789. "Логин, @Пароль, @КодПользователя);\r\nSELECT Логин, Пароль, КодПользователя FROM П" +
  8790. "ользователи WHERE (КодПользователя = @КодПользователя)";
  8791. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8792. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8793. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8794. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодПользователя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПользователя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8795. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8796. this._adapter.UpdateCommand.Connection = this.Connection;
  8797. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Пользователи] SET [Логин] = @Логин, [Пароль] = @Пароль, [КодПользователя] = @КодПользователя WHERE (((@IsNull_Логин = 1 AND [Логин] IS NULL) OR ([Логин] = @Original_Логин)) AND ((@IsNull_Пароль = 1 AND [Пароль] IS NULL) OR ([Пароль] = @Original_Пароль)) AND ([КодПользователя] = @Original_КодПользователя));
  8798. SELECT Логин, Пароль, КодПользователя FROM Пользователи WHERE (КодПользователя = @КодПользователя)";
  8799. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8800. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8801. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8802. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодПользователя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПользователя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8803. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Логин", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8804. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8805. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Пароль", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8806. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8807. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодПользователя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПользователя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8808. }
  8809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8811. private void InitConnection() {
  8812. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8813. this._connection.ConnectionString = global::Khozeev8.Properties.Settings.Default.KhozeeevPC_12ConnectionString;
  8814. }
  8815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8817. private void InitCommandCollection() {
  8818. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8819. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8820. this._commandCollection[0].Connection = this.Connection;
  8821. this._commandCollection[0].CommandText = "SELECT Логин, Пароль, КодПользователя FROM dbo.Пользователи";
  8822. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8823. }
  8824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8826. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8827. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8828. public virtual int Fill(KhozeeevPC_12DataSet.ПользователиDataTable dataTable) {
  8829. this.Adapter.SelectCommand = this.CommandCollection[0];
  8830. if ((this.ClearBeforeFill == true)) {
  8831. dataTable.Clear();
  8832. }
  8833. int returnValue = this.Adapter.Fill(dataTable);
  8834. return returnValue;
  8835. }
  8836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8838. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8839. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8840. public virtual KhozeeevPC_12DataSet.ПользователиDataTable GetData() {
  8841. this.Adapter.SelectCommand = this.CommandCollection[0];
  8842. KhozeeevPC_12DataSet.ПользователиDataTable dataTable = new KhozeeevPC_12DataSet.ПользователиDataTable();
  8843. this.Adapter.Fill(dataTable);
  8844. return dataTable;
  8845. }
  8846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8848. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8849. public virtual int Update(KhozeeevPC_12DataSet.ПользователиDataTable dataTable) {
  8850. return this.Adapter.Update(dataTable);
  8851. }
  8852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8854. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8855. public virtual int Update(KhozeeevPC_12DataSet dataSet) {
  8856. return this.Adapter.Update(dataSet, "Пользователи");
  8857. }
  8858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8860. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8861. public virtual int Update(global::System.Data.DataRow dataRow) {
  8862. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8863. dataRow});
  8864. }
  8865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8867. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8868. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8869. return this.Adapter.Update(dataRows);
  8870. }
  8871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8873. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8874. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8875. public virtual int Delete(string Original_Логин, string Original_Пароль, int Original_КодПользователя) {
  8876. if ((Original_Логин == null)) {
  8877. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(1));
  8878. this.Adapter.DeleteCommand.Parameters[1].Value = global::System.DBNull.Value;
  8879. }
  8880. else {
  8881. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(0));
  8882. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Логин));
  8883. }
  8884. if ((Original_Пароль == null)) {
  8885. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  8886. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  8887. }
  8888. else {
  8889. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  8890. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Пароль));
  8891. }
  8892. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_КодПользователя));
  8893. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8894. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8895. != global::System.Data.ConnectionState.Open)) {
  8896. this.Adapter.DeleteCommand.Connection.Open();
  8897. }
  8898. try {
  8899. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8900. return returnValue;
  8901. }
  8902. finally {
  8903. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8904. this.Adapter.DeleteCommand.Connection.Close();
  8905. }
  8906. }
  8907. }
  8908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8910. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8911. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8912. public virtual int Insert(string Логин, string Пароль, int КодПользователя) {
  8913. if ((Логин == null)) {
  8914. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8915. }
  8916. else {
  8917. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Логин));
  8918. }
  8919. if ((Пароль == null)) {
  8920. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8921. }
  8922. else {
  8923. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Пароль));
  8924. }
  8925. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(КодПользователя));
  8926. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8927. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8928. != global::System.Data.ConnectionState.Open)) {
  8929. this.Adapter.InsertCommand.Connection.Open();
  8930. }
  8931. try {
  8932. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8933. return returnValue;
  8934. }
  8935. finally {
  8936. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8937. this.Adapter.InsertCommand.Connection.Close();
  8938. }
  8939. }
  8940. }
  8941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8943. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8944. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8945. public virtual int Update(string Логин, string Пароль, int КодПользователя, string Original_Логин, string Original_Пароль, int Original_КодПользователя) {
  8946. if ((Логин == null)) {
  8947. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8948. }
  8949. else {
  8950. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Логин));
  8951. }
  8952. if ((Пароль == null)) {
  8953. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8954. }
  8955. else {
  8956. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Пароль));
  8957. }
  8958. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(КодПользователя));
  8959. if ((Original_Логин == null)) {
  8960. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  8961. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  8962. }
  8963. else {
  8964. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  8965. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Логин));
  8966. }
  8967. if ((Original_Пароль == null)) {
  8968. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  8969. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8970. }
  8971. else {
  8972. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  8973. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Пароль));
  8974. }
  8975. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_КодПользователя));
  8976. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8977. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8978. != global::System.Data.ConnectionState.Open)) {
  8979. this.Adapter.UpdateCommand.Connection.Open();
  8980. }
  8981. try {
  8982. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8983. return returnValue;
  8984. }
  8985. finally {
  8986. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8987. this.Adapter.UpdateCommand.Connection.Close();
  8988. }
  8989. }
  8990. }
  8991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8993. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8994. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8995. public virtual int Update(string Логин, string Пароль, string Original_Логин, string Original_Пароль, int Original_КодПользователя) {
  8996. return this.Update(Логин, Пароль, Original_КодПользователя, Original_Логин, Original_Пароль, Original_КодПользователя);
  8997. }
  8998. }
  8999. /// <summary>
  9000. ///Represents the connection and commands used to retrieve and save data.
  9001. ///</summary>
  9002. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9003. [global::System.ComponentModel.ToolboxItem(true)]
  9004. [global::System.ComponentModel.DataObjectAttribute(true)]
  9005. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9006. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9007. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9008. public partial class ПроцессорыTableAdapter : global::System.ComponentModel.Component {
  9009. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9010. private global::System.Data.SqlClient.SqlConnection _connection;
  9011. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9012. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9013. private bool _clearBeforeFill;
  9014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9016. public ПроцессорыTableAdapter() {
  9017. this.ClearBeforeFill = true;
  9018. }
  9019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9021. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9022. get {
  9023. if ((this._adapter == null)) {
  9024. this.InitAdapter();
  9025. }
  9026. return this._adapter;
  9027. }
  9028. }
  9029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9031. internal global::System.Data.SqlClient.SqlConnection Connection {
  9032. get {
  9033. if ((this._connection == null)) {
  9034. this.InitConnection();
  9035. }
  9036. return this._connection;
  9037. }
  9038. set {
  9039. this._connection = value;
  9040. if ((this.Adapter.InsertCommand != null)) {
  9041. this.Adapter.InsertCommand.Connection = value;
  9042. }
  9043. if ((this.Adapter.DeleteCommand != null)) {
  9044. this.Adapter.DeleteCommand.Connection = value;
  9045. }
  9046. if ((this.Adapter.UpdateCommand != null)) {
  9047. this.Adapter.UpdateCommand.Connection = value;
  9048. }
  9049. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9050. if ((this.CommandCollection[i] != null)) {
  9051. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9052. }
  9053. }
  9054. }
  9055. }
  9056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9058. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9059. get {
  9060. return this._transaction;
  9061. }
  9062. set {
  9063. this._transaction = value;
  9064. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9065. this.CommandCollection[i].Transaction = this._transaction;
  9066. }
  9067. if (((this.Adapter != null)
  9068. && (this.Adapter.DeleteCommand != null))) {
  9069. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9070. }
  9071. if (((this.Adapter != null)
  9072. && (this.Adapter.InsertCommand != null))) {
  9073. this.Adapter.InsertCommand.Transaction = this._transaction;
  9074. }
  9075. if (((this.Adapter != null)
  9076. && (this.Adapter.UpdateCommand != null))) {
  9077. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9078. }
  9079. }
  9080. }
  9081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9083. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9084. get {
  9085. if ((this._commandCollection == null)) {
  9086. this.InitCommandCollection();
  9087. }
  9088. return this._commandCollection;
  9089. }
  9090. }
  9091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9093. public bool ClearBeforeFill {
  9094. get {
  9095. return this._clearBeforeFill;
  9096. }
  9097. set {
  9098. this._clearBeforeFill = value;
  9099. }
  9100. }
  9101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9103. private void InitAdapter() {
  9104. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9105. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9106. tableMapping.SourceTable = "Table";
  9107. tableMapping.DataSetTable = "Процессоры";
  9108. tableMapping.ColumnMappings.Add("Название", "Название");
  9109. tableMapping.ColumnMappings.Add("Цена", "Цена");
  9110. tableMapping.ColumnMappings.Add("Количество", "Количество");
  9111. tableMapping.ColumnMappings.Add("КодПроцессора", "КодПроцессора");
  9112. this._adapter.TableMappings.Add(tableMapping);
  9113. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9114. this._adapter.DeleteCommand.Connection = this.Connection;
  9115. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Процессоры] WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ([КодПроцессора] = @Original_КодПроцессора))";
  9116. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9117. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9118. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9119. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9120. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9121. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9122. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9123. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодПроцессора", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПроцессора", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9124. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9125. this._adapter.InsertCommand.Connection = this.Connection;
  9126. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Процессоры] ([Название], [Цена], [Количество], [КодПроцессора]" +
  9127. ") VALUES (@Название, @Цена, @Количество, @КодПроцессора);\r\nSELECT Название, Цена" +
  9128. ", Количество, КодПроцессора FROM Процессоры WHERE (КодПроцессора = @КодПроцессор" +
  9129. "а)";
  9130. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9131. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9132. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9133. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9134. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодПроцессора", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПроцессора", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9135. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9136. this._adapter.UpdateCommand.Connection = this.Connection;
  9137. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Процессоры] SET [Название] = @Название, [Цена] = @Цена, [Количество] = @Количество, [КодПроцессора] = @КодПроцессора WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ([КодПроцессора] = @Original_КодПроцессора));
  9138. SELECT Название, Цена, Количество, КодПроцессора FROM Процессоры WHERE (КодПроцессора = @КодПроцессора)";
  9139. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9140. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9141. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9142. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9143. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодПроцессора", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПроцессора", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9144. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9145. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9146. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9147. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9148. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9149. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9150. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодПроцессора", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПроцессора", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9151. }
  9152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9154. private void InitConnection() {
  9155. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9156. this._connection.ConnectionString = global::Khozeev8.Properties.Settings.Default.KhozeeevPC_12ConnectionString;
  9157. }
  9158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9160. private void InitCommandCollection() {
  9161. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9162. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9163. this._commandCollection[0].Connection = this.Connection;
  9164. this._commandCollection[0].CommandText = "SELECT Название, Цена, Количество, КодПроцессора FROM dbo.Процессоры";
  9165. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9166. }
  9167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9169. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9170. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9171. public virtual int Fill(KhozeeevPC_12DataSet.ПроцессорыDataTable dataTable) {
  9172. this.Adapter.SelectCommand = this.CommandCollection[0];
  9173. if ((this.ClearBeforeFill == true)) {
  9174. dataTable.Clear();
  9175. }
  9176. int returnValue = this.Adapter.Fill(dataTable);
  9177. return returnValue;
  9178. }
  9179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9181. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9182. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9183. public virtual KhozeeevPC_12DataSet.ПроцессорыDataTable GetData() {
  9184. this.Adapter.SelectCommand = this.CommandCollection[0];
  9185. KhozeeevPC_12DataSet.ПроцессорыDataTable dataTable = new KhozeeevPC_12DataSet.ПроцессорыDataTable();
  9186. this.Adapter.Fill(dataTable);
  9187. return dataTable;
  9188. }
  9189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9191. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9192. public virtual int Update(KhozeeevPC_12DataSet.ПроцессорыDataTable dataTable) {
  9193. return this.Adapter.Update(dataTable);
  9194. }
  9195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9197. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9198. public virtual int Update(KhozeeevPC_12DataSet dataSet) {
  9199. return this.Adapter.Update(dataSet, "Процессоры");
  9200. }
  9201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9203. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9204. public virtual int Update(global::System.Data.DataRow dataRow) {
  9205. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9206. dataRow});
  9207. }
  9208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9210. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9211. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9212. return this.Adapter.Update(dataRows);
  9213. }
  9214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9216. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9217. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9218. public virtual int Delete(string Original_Название, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, int Original_КодПроцессора) {
  9219. if ((Original_Название == null)) {
  9220. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(1));
  9221. this.Adapter.DeleteCommand.Parameters[1].Value = global::System.DBNull.Value;
  9222. }
  9223. else {
  9224. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(0));
  9225. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Название));
  9226. }
  9227. if ((Original_Цена.HasValue == true)) {
  9228. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  9229. this.Adapter.DeleteCommand.Parameters[3].Value = ((decimal)(Original_Цена.Value));
  9230. }
  9231. else {
  9232. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  9233. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  9234. }
  9235. if ((Original_Количество.HasValue == true)) {
  9236. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  9237. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_Количество.Value));
  9238. }
  9239. else {
  9240. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  9241. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  9242. }
  9243. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_КодПроцессора));
  9244. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9245. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9246. != global::System.Data.ConnectionState.Open)) {
  9247. this.Adapter.DeleteCommand.Connection.Open();
  9248. }
  9249. try {
  9250. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9251. return returnValue;
  9252. }
  9253. finally {
  9254. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9255. this.Adapter.DeleteCommand.Connection.Close();
  9256. }
  9257. }
  9258. }
  9259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9261. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9262. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9263. public virtual int Insert(string Название, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, int КодПроцессора) {
  9264. if ((Название == null)) {
  9265. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9266. }
  9267. else {
  9268. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  9269. }
  9270. if ((Цена.HasValue == true)) {
  9271. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Цена.Value));
  9272. }
  9273. else {
  9274. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9275. }
  9276. if ((Количество.HasValue == true)) {
  9277. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Количество.Value));
  9278. }
  9279. else {
  9280. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  9281. }
  9282. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(КодПроцессора));
  9283. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9284. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9285. != global::System.Data.ConnectionState.Open)) {
  9286. this.Adapter.InsertCommand.Connection.Open();
  9287. }
  9288. try {
  9289. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9290. return returnValue;
  9291. }
  9292. finally {
  9293. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9294. this.Adapter.InsertCommand.Connection.Close();
  9295. }
  9296. }
  9297. }
  9298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9300. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9301. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9302. public virtual int Update(string Название, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, int КодПроцессора, string Original_Название, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, int Original_КодПроцессора) {
  9303. if ((Название == null)) {
  9304. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9305. }
  9306. else {
  9307. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  9308. }
  9309. if ((Цена.HasValue == true)) {
  9310. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Цена.Value));
  9311. }
  9312. else {
  9313. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9314. }
  9315. if ((Количество.HasValue == true)) {
  9316. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Количество.Value));
  9317. }
  9318. else {
  9319. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  9320. }
  9321. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(КодПроцессора));
  9322. if ((Original_Название == null)) {
  9323. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  9324. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9325. }
  9326. else {
  9327. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  9328. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Название));
  9329. }
  9330. if ((Original_Цена.HasValue == true)) {
  9331. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  9332. this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(Original_Цена.Value));
  9333. }
  9334. else {
  9335. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  9336. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  9337. }
  9338. if ((Original_Количество.HasValue == true)) {
  9339. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  9340. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Количество.Value));
  9341. }
  9342. else {
  9343. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  9344. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  9345. }
  9346. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_КодПроцессора));
  9347. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9348. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9349. != global::System.Data.ConnectionState.Open)) {
  9350. this.Adapter.UpdateCommand.Connection.Open();
  9351. }
  9352. try {
  9353. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9354. return returnValue;
  9355. }
  9356. finally {
  9357. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9358. this.Adapter.UpdateCommand.Connection.Close();
  9359. }
  9360. }
  9361. }
  9362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9364. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9365. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9366. public virtual int Update(string Название, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, string Original_Название, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, int Original_КодПроцессора) {
  9367. return this.Update(Название, Цена, Количество, Original_КодПроцессора, Original_Название, Original_Цена, Original_Количество, Original_КодПроцессора);
  9368. }
  9369. }
  9370. /// <summary>
  9371. ///Represents the connection and commands used to retrieve and save data.
  9372. ///</summary>
  9373. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9374. [global::System.ComponentModel.ToolboxItem(true)]
  9375. [global::System.ComponentModel.DataObjectAttribute(true)]
  9376. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9377. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9378. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9379. public partial class ССДTableAdapter : global::System.ComponentModel.Component {
  9380. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9381. private global::System.Data.SqlClient.SqlConnection _connection;
  9382. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9383. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9384. private bool _clearBeforeFill;
  9385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9387. public ССДTableAdapter() {
  9388. this.ClearBeforeFill = true;
  9389. }
  9390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9392. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9393. get {
  9394. if ((this._adapter == null)) {
  9395. this.InitAdapter();
  9396. }
  9397. return this._adapter;
  9398. }
  9399. }
  9400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9402. internal global::System.Data.SqlClient.SqlConnection Connection {
  9403. get {
  9404. if ((this._connection == null)) {
  9405. this.InitConnection();
  9406. }
  9407. return this._connection;
  9408. }
  9409. set {
  9410. this._connection = value;
  9411. if ((this.Adapter.InsertCommand != null)) {
  9412. this.Adapter.InsertCommand.Connection = value;
  9413. }
  9414. if ((this.Adapter.DeleteCommand != null)) {
  9415. this.Adapter.DeleteCommand.Connection = value;
  9416. }
  9417. if ((this.Adapter.UpdateCommand != null)) {
  9418. this.Adapter.UpdateCommand.Connection = value;
  9419. }
  9420. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9421. if ((this.CommandCollection[i] != null)) {
  9422. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9423. }
  9424. }
  9425. }
  9426. }
  9427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9429. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9430. get {
  9431. return this._transaction;
  9432. }
  9433. set {
  9434. this._transaction = value;
  9435. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9436. this.CommandCollection[i].Transaction = this._transaction;
  9437. }
  9438. if (((this.Adapter != null)
  9439. && (this.Adapter.DeleteCommand != null))) {
  9440. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9441. }
  9442. if (((this.Adapter != null)
  9443. && (this.Adapter.InsertCommand != null))) {
  9444. this.Adapter.InsertCommand.Transaction = this._transaction;
  9445. }
  9446. if (((this.Adapter != null)
  9447. && (this.Adapter.UpdateCommand != null))) {
  9448. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9449. }
  9450. }
  9451. }
  9452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9454. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9455. get {
  9456. if ((this._commandCollection == null)) {
  9457. this.InitCommandCollection();
  9458. }
  9459. return this._commandCollection;
  9460. }
  9461. }
  9462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9464. public bool ClearBeforeFill {
  9465. get {
  9466. return this._clearBeforeFill;
  9467. }
  9468. set {
  9469. this._clearBeforeFill = value;
  9470. }
  9471. }
  9472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9474. private void InitAdapter() {
  9475. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9476. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9477. tableMapping.SourceTable = "Table";
  9478. tableMapping.DataSetTable = "ССД";
  9479. tableMapping.ColumnMappings.Add("Название", "Название");
  9480. tableMapping.ColumnMappings.Add("Цена", "Цена");
  9481. tableMapping.ColumnMappings.Add("Количество", "Количество");
  9482. tableMapping.ColumnMappings.Add("КодССД", "КодССД");
  9483. this._adapter.TableMappings.Add(tableMapping);
  9484. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9485. this._adapter.DeleteCommand.Connection = this.Connection;
  9486. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ССД] WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ([КодССД] = @Original_КодССД))";
  9487. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9488. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9489. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9490. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9491. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9492. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9493. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9494. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодССД", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодССД", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9495. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9496. this._adapter.InsertCommand.Connection = this.Connection;
  9497. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ССД] ([Название], [Цена], [Количество], [КодССД]) VALUES (@Наз" +
  9498. "вание, @Цена, @Количество, @КодССД);\r\nSELECT Название, Цена, Количество, КодССД " +
  9499. "FROM ССД WHERE (КодССД = @КодССД)";
  9500. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9501. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9502. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9503. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9504. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодССД", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодССД", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9505. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9506. this._adapter.UpdateCommand.Connection = this.Connection;
  9507. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ССД] SET [Название] = @Название, [Цена] = @Цена, [Количество] = @Количество, [КодССД] = @КодССД WHERE (((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ([КодССД] = @Original_КодССД));
  9508. SELECT Название, Цена, Количество, КодССД FROM ССД WHERE (КодССД = @КодССД)";
  9509. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9510. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9511. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9512. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9513. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодССД", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодССД", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9514. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9515. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9516. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9517. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9518. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9519. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9520. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодССД", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодССД", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9521. }
  9522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9524. private void InitConnection() {
  9525. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9526. this._connection.ConnectionString = global::Khozeev8.Properties.Settings.Default.KhozeeevPC_12ConnectionString;
  9527. }
  9528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9530. private void InitCommandCollection() {
  9531. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9532. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9533. this._commandCollection[0].Connection = this.Connection;
  9534. this._commandCollection[0].CommandText = "SELECT Название, Цена, Количество, КодССД FROM dbo.ССД";
  9535. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9536. }
  9537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9539. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9540. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9541. public virtual int Fill(KhozeeevPC_12DataSet.ССДDataTable dataTable) {
  9542. this.Adapter.SelectCommand = this.CommandCollection[0];
  9543. if ((this.ClearBeforeFill == true)) {
  9544. dataTable.Clear();
  9545. }
  9546. int returnValue = this.Adapter.Fill(dataTable);
  9547. return returnValue;
  9548. }
  9549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9551. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9552. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9553. public virtual KhozeeevPC_12DataSet.ССДDataTable GetData() {
  9554. this.Adapter.SelectCommand = this.CommandCollection[0];
  9555. KhozeeevPC_12DataSet.ССДDataTable dataTable = new KhozeeevPC_12DataSet.ССДDataTable();
  9556. this.Adapter.Fill(dataTable);
  9557. return dataTable;
  9558. }
  9559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9561. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9562. public virtual int Update(KhozeeevPC_12DataSet.ССДDataTable dataTable) {
  9563. return this.Adapter.Update(dataTable);
  9564. }
  9565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9567. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9568. public virtual int Update(KhozeeevPC_12DataSet dataSet) {
  9569. return this.Adapter.Update(dataSet, "ССД");
  9570. }
  9571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9573. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9574. public virtual int Update(global::System.Data.DataRow dataRow) {
  9575. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9576. dataRow});
  9577. }
  9578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9580. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9581. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9582. return this.Adapter.Update(dataRows);
  9583. }
  9584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9586. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9587. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9588. public virtual int Delete(string Original_Название, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, int Original_КодССД) {
  9589. if ((Original_Название == null)) {
  9590. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(1));
  9591. this.Adapter.DeleteCommand.Parameters[1].Value = global::System.DBNull.Value;
  9592. }
  9593. else {
  9594. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(0));
  9595. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Название));
  9596. }
  9597. if ((Original_Цена.HasValue == true)) {
  9598. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  9599. this.Adapter.DeleteCommand.Parameters[3].Value = ((decimal)(Original_Цена.Value));
  9600. }
  9601. else {
  9602. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  9603. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  9604. }
  9605. if ((Original_Количество.HasValue == true)) {
  9606. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  9607. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_Количество.Value));
  9608. }
  9609. else {
  9610. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  9611. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  9612. }
  9613. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_КодССД));
  9614. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9615. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9616. != global::System.Data.ConnectionState.Open)) {
  9617. this.Adapter.DeleteCommand.Connection.Open();
  9618. }
  9619. try {
  9620. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9621. return returnValue;
  9622. }
  9623. finally {
  9624. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9625. this.Adapter.DeleteCommand.Connection.Close();
  9626. }
  9627. }
  9628. }
  9629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9631. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9632. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9633. public virtual int Insert(string Название, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, int КодССД) {
  9634. if ((Название == null)) {
  9635. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9636. }
  9637. else {
  9638. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  9639. }
  9640. if ((Цена.HasValue == true)) {
  9641. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Цена.Value));
  9642. }
  9643. else {
  9644. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9645. }
  9646. if ((Количество.HasValue == true)) {
  9647. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Количество.Value));
  9648. }
  9649. else {
  9650. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  9651. }
  9652. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(КодССД));
  9653. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9654. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9655. != global::System.Data.ConnectionState.Open)) {
  9656. this.Adapter.InsertCommand.Connection.Open();
  9657. }
  9658. try {
  9659. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9660. return returnValue;
  9661. }
  9662. finally {
  9663. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9664. this.Adapter.InsertCommand.Connection.Close();
  9665. }
  9666. }
  9667. }
  9668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9670. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9671. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9672. public virtual int Update(string Название, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, int КодССД, string Original_Название, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, int Original_КодССД) {
  9673. if ((Название == null)) {
  9674. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9675. }
  9676. else {
  9677. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  9678. }
  9679. if ((Цена.HasValue == true)) {
  9680. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Цена.Value));
  9681. }
  9682. else {
  9683. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9684. }
  9685. if ((Количество.HasValue == true)) {
  9686. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Количество.Value));
  9687. }
  9688. else {
  9689. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  9690. }
  9691. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(КодССД));
  9692. if ((Original_Название == null)) {
  9693. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  9694. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9695. }
  9696. else {
  9697. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  9698. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Название));
  9699. }
  9700. if ((Original_Цена.HasValue == true)) {
  9701. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  9702. this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(Original_Цена.Value));
  9703. }
  9704. else {
  9705. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  9706. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  9707. }
  9708. if ((Original_Количество.HasValue == true)) {
  9709. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  9710. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Количество.Value));
  9711. }
  9712. else {
  9713. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  9714. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  9715. }
  9716. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_КодССД));
  9717. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9718. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9719. != global::System.Data.ConnectionState.Open)) {
  9720. this.Adapter.UpdateCommand.Connection.Open();
  9721. }
  9722. try {
  9723. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9724. return returnValue;
  9725. }
  9726. finally {
  9727. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9728. this.Adapter.UpdateCommand.Connection.Close();
  9729. }
  9730. }
  9731. }
  9732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9734. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9735. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9736. public virtual int Update(string Название, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, string Original_Название, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, int Original_КодССД) {
  9737. return this.Update(Название, Цена, Количество, Original_КодССД, Original_Название, Original_Цена, Original_Количество, Original_КодССД);
  9738. }
  9739. }
  9740. /// <summary>
  9741. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  9742. ///</summary>
  9743. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9744. [global::System.ComponentModel.ToolboxItem(true)]
  9745. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  9746. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9747. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  9748. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  9749. private UpdateOrderOption _updateOrder;
  9750. private БлокПитанияTableAdapter _блокПитанияTableAdapter;
  9751. private ВидеокартыTableAdapter _видеокартыTableAdapter;
  9752. private ВодянаяСистемаОхлажденияTableAdapter _водянаяСистемаОхлажденияTableAdapter;
  9753. private ГотоваяСборкаTableAdapter _готоваяСборкаTableAdapter;
  9754. private ЖесткийДискTableAdapter _жесткийДискTableAdapter;
  9755. private КулерыTableAdapter _кулерыTableAdapter;
  9756. private МатеринскаяПлатаTableAdapter _материнскаяПлатаTableAdapter;
  9757. private ОперативнаяПамятьTableAdapter _оперативнаяПамятьTableAdapter;
  9758. private ПользователиTableAdapter _пользователиTableAdapter;
  9759. private ПроцессорыTableAdapter _процессорыTableAdapter;
  9760. private ССДTableAdapter _сСДTableAdapter;
  9761. private bool _backupDataSetBeforeUpdate;
  9762. private global::System.Data.IDbConnection _connection;
  9763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9765. public UpdateOrderOption UpdateOrder {
  9766. get {
  9767. return this._updateOrder;
  9768. }
  9769. set {
  9770. this._updateOrder = value;
  9771. }
  9772. }
  9773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9775. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9776. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9777. "a", "System.Drawing.Design.UITypeEditor")]
  9778. public БлокПитанияTableAdapter БлокПитанияTableAdapter {
  9779. get {
  9780. return this._блокПитанияTableAdapter;
  9781. }
  9782. set {
  9783. this._блокПитанияTableAdapter = value;
  9784. }
  9785. }
  9786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9788. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9789. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9790. "a", "System.Drawing.Design.UITypeEditor")]
  9791. public ВидеокартыTableAdapter ВидеокартыTableAdapter {
  9792. get {
  9793. return this._видеокартыTableAdapter;
  9794. }
  9795. set {
  9796. this._видеокартыTableAdapter = value;
  9797. }
  9798. }
  9799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9801. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9802. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9803. "a", "System.Drawing.Design.UITypeEditor")]
  9804. public ВодянаяСистемаОхлажденияTableAdapter ВодянаяСистемаОхлажденияTableAdapter {
  9805. get {
  9806. return this._водянаяСистемаОхлажденияTableAdapter;
  9807. }
  9808. set {
  9809. this._водянаяСистемаОхлажденияTableAdapter = value;
  9810. }
  9811. }
  9812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9814. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9815. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9816. "a", "System.Drawing.Design.UITypeEditor")]
  9817. public ГотоваяСборкаTableAdapter ГотоваяСборкаTableAdapter {
  9818. get {
  9819. return this._готоваяСборкаTableAdapter;
  9820. }
  9821. set {
  9822. this._готоваяСборкаTableAdapter = value;
  9823. }
  9824. }
  9825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9827. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9828. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9829. "a", "System.Drawing.Design.UITypeEditor")]
  9830. public ЖесткийДискTableAdapter ЖесткийДискTableAdapter {
  9831. get {
  9832. return this._жесткийДискTableAdapter;
  9833. }
  9834. set {
  9835. this._жесткийДискTableAdapter = value;
  9836. }
  9837. }
  9838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9840. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9841. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9842. "a", "System.Drawing.Design.UITypeEditor")]
  9843. public КулерыTableAdapter КулерыTableAdapter {
  9844. get {
  9845. return this._кулерыTableAdapter;
  9846. }
  9847. set {
  9848. this._кулерыTableAdapter = value;
  9849. }
  9850. }
  9851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9853. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9854. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9855. "a", "System.Drawing.Design.UITypeEditor")]
  9856. public МатеринскаяПлатаTableAdapter МатеринскаяПлатаTableAdapter {
  9857. get {
  9858. return this._материнскаяПлатаTableAdapter;
  9859. }
  9860. set {
  9861. this._материнскаяПлатаTableAdapter = value;
  9862. }
  9863. }
  9864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9866. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9867. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9868. "a", "System.Drawing.Design.UITypeEditor")]
  9869. public ОперативнаяПамятьTableAdapter ОперативнаяПамятьTableAdapter {
  9870. get {
  9871. return this._оперативнаяПамятьTableAdapter;
  9872. }
  9873. set {
  9874. this._оперативнаяПамятьTableAdapter = value;
  9875. }
  9876. }
  9877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9879. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9880. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9881. "a", "System.Drawing.Design.UITypeEditor")]
  9882. public ПользователиTableAdapter ПользователиTableAdapter {
  9883. get {
  9884. return this._пользователиTableAdapter;
  9885. }
  9886. set {
  9887. this._пользователиTableAdapter = value;
  9888. }
  9889. }
  9890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9892. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9893. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9894. "a", "System.Drawing.Design.UITypeEditor")]
  9895. public ПроцессорыTableAdapter ПроцессорыTableAdapter {
  9896. get {
  9897. return this._процессорыTableAdapter;
  9898. }
  9899. set {
  9900. this._процессорыTableAdapter = value;
  9901. }
  9902. }
  9903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9905. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9906. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9907. "a", "System.Drawing.Design.UITypeEditor")]
  9908. public ССДTableAdapter ССДTableAdapter {
  9909. get {
  9910. return this._сСДTableAdapter;
  9911. }
  9912. set {
  9913. this._сСДTableAdapter = value;
  9914. }
  9915. }
  9916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9918. public bool BackupDataSetBeforeUpdate {
  9919. get {
  9920. return this._backupDataSetBeforeUpdate;
  9921. }
  9922. set {
  9923. this._backupDataSetBeforeUpdate = value;
  9924. }
  9925. }
  9926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9928. [global::System.ComponentModel.Browsable(false)]
  9929. public global::System.Data.IDbConnection Connection {
  9930. get {
  9931. if ((this._connection != null)) {
  9932. return this._connection;
  9933. }
  9934. if (((this._блокПитанияTableAdapter != null)
  9935. && (this._блокПитанияTableAdapter.Connection != null))) {
  9936. return this._блокПитанияTableAdapter.Connection;
  9937. }
  9938. if (((this._видеокартыTableAdapter != null)
  9939. && (this._видеокартыTableAdapter.Connection != null))) {
  9940. return this._видеокартыTableAdapter.Connection;
  9941. }
  9942. if (((this._водянаяСистемаОхлажденияTableAdapter != null)
  9943. && (this._водянаяСистемаОхлажденияTableAdapter.Connection != null))) {
  9944. return this._водянаяСистемаОхлажденияTableAdapter.Connection;
  9945. }
  9946. if (((this._готоваяСборкаTableAdapter != null)
  9947. && (this._готоваяСборкаTableAdapter.Connection != null))) {
  9948. return this._готоваяСборкаTableAdapter.Connection;
  9949. }
  9950. if (((this._жесткийДискTableAdapter != null)
  9951. && (this._жесткийДискTableAdapter.Connection != null))) {
  9952. return this._жесткийДискTableAdapter.Connection;
  9953. }
  9954. if (((this._кулерыTableAdapter != null)
  9955. && (this._кулерыTableAdapter.Connection != null))) {
  9956. return this._кулерыTableAdapter.Connection;
  9957. }
  9958. if (((this._материнскаяПлатаTableAdapter != null)
  9959. && (this._материнскаяПлатаTableAdapter.Connection != null))) {
  9960. return this._материнскаяПлатаTableAdapter.Connection;
  9961. }
  9962. if (((this._оперативнаяПамятьTableAdapter != null)
  9963. && (this._оперативнаяПамятьTableAdapter.Connection != null))) {
  9964. return this._оперативнаяПамятьTableAdapter.Connection;
  9965. }
  9966. if (((this._пользователиTableAdapter != null)
  9967. && (this._пользователиTableAdapter.Connection != null))) {
  9968. return this._пользователиTableAdapter.Connection;
  9969. }
  9970. if (((this._процессорыTableAdapter != null)
  9971. && (this._процессорыTableAdapter.Connection != null))) {
  9972. return this._процессорыTableAdapter.Connection;
  9973. }
  9974. if (((this._сСДTableAdapter != null)
  9975. && (this._сСДTableAdapter.Connection != null))) {
  9976. return this._сСДTableAdapter.Connection;
  9977. }
  9978. return null;
  9979. }
  9980. set {
  9981. this._connection = value;
  9982. }
  9983. }
  9984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9986. [global::System.ComponentModel.Browsable(false)]
  9987. public int TableAdapterInstanceCount {
  9988. get {
  9989. int count = 0;
  9990. if ((this._блокПитанияTableAdapter != null)) {
  9991. count = (count + 1);
  9992. }
  9993. if ((this._видеокартыTableAdapter != null)) {
  9994. count = (count + 1);
  9995. }
  9996. if ((this._водянаяСистемаОхлажденияTableAdapter != null)) {
  9997. count = (count + 1);
  9998. }
  9999. if ((this._готоваяСборкаTableAdapter != null)) {
  10000. count = (count + 1);
  10001. }
  10002. if ((this._жесткийДискTableAdapter != null)) {
  10003. count = (count + 1);
  10004. }
  10005. if ((this._кулерыTableAdapter != null)) {
  10006. count = (count + 1);
  10007. }
  10008. if ((this._материнскаяПлатаTableAdapter != null)) {
  10009. count = (count + 1);
  10010. }
  10011. if ((this._оперативнаяПамятьTableAdapter != null)) {
  10012. count = (count + 1);
  10013. }
  10014. if ((this._пользователиTableAdapter != null)) {
  10015. count = (count + 1);
  10016. }
  10017. if ((this._процессорыTableAdapter != null)) {
  10018. count = (count + 1);
  10019. }
  10020. if ((this._сСДTableAdapter != null)) {
  10021. count = (count + 1);
  10022. }
  10023. return count;
  10024. }
  10025. }
  10026. /// <summary>
  10027. ///Update rows in top-down order.
  10028. ///</summary>
  10029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10031. private int UpdateUpdatedRows(KhozeeevPC_12DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10032. int result = 0;
  10033. if ((this._блокПитанияTableAdapter != null)) {
  10034. global::System.Data.DataRow[] updatedRows = dataSet.БлокПитания.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10035. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10036. if (((updatedRows != null)
  10037. && (0 < updatedRows.Length))) {
  10038. result = (result + this._блокПитанияTableAdapter.Update(updatedRows));
  10039. allChangedRows.AddRange(updatedRows);
  10040. }
  10041. }
  10042. if ((this._видеокартыTableAdapter != null)) {
  10043. global::System.Data.DataRow[] updatedRows = dataSet.Видеокарты.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10044. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10045. if (((updatedRows != null)
  10046. && (0 < updatedRows.Length))) {
  10047. result = (result + this._видеокартыTableAdapter.Update(updatedRows));
  10048. allChangedRows.AddRange(updatedRows);
  10049. }
  10050. }
  10051. if ((this._водянаяСистемаОхлажденияTableAdapter != null)) {
  10052. global::System.Data.DataRow[] updatedRows = dataSet.ВодянаяСистемаОхлаждения.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10053. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10054. if (((updatedRows != null)
  10055. && (0 < updatedRows.Length))) {
  10056. result = (result + this._водянаяСистемаОхлажденияTableAdapter.Update(updatedRows));
  10057. allChangedRows.AddRange(updatedRows);
  10058. }
  10059. }
  10060. if ((this._жесткийДискTableAdapter != null)) {
  10061. global::System.Data.DataRow[] updatedRows = dataSet.ЖесткийДиск.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10062. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10063. if (((updatedRows != null)
  10064. && (0 < updatedRows.Length))) {
  10065. result = (result + this._жесткийДискTableAdapter.Update(updatedRows));
  10066. allChangedRows.AddRange(updatedRows);
  10067. }
  10068. }
  10069. if ((this._кулерыTableAdapter != null)) {
  10070. global::System.Data.DataRow[] updatedRows = dataSet.Кулеры.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10071. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10072. if (((updatedRows != null)
  10073. && (0 < updatedRows.Length))) {
  10074. result = (result + this._кулерыTableAdapter.Update(updatedRows));
  10075. allChangedRows.AddRange(updatedRows);
  10076. }
  10077. }
  10078. if ((this._материнскаяПлатаTableAdapter != null)) {
  10079. global::System.Data.DataRow[] updatedRows = dataSet.МатеринскаяПлата.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10080. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10081. if (((updatedRows != null)
  10082. && (0 < updatedRows.Length))) {
  10083. result = (result + this._материнскаяПлатаTableAdapter.Update(updatedRows));
  10084. allChangedRows.AddRange(updatedRows);
  10085. }
  10086. }
  10087. if ((this._оперативнаяПамятьTableAdapter != null)) {
  10088. global::System.Data.DataRow[] updatedRows = dataSet.ОперативнаяПамять.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10089. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10090. if (((updatedRows != null)
  10091. && (0 < updatedRows.Length))) {
  10092. result = (result + this._оперативнаяПамятьTableAdapter.Update(updatedRows));
  10093. allChangedRows.AddRange(updatedRows);
  10094. }
  10095. }
  10096. if ((this._пользователиTableAdapter != null)) {
  10097. global::System.Data.DataRow[] updatedRows = dataSet.Пользователи.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10098. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10099. if (((updatedRows != null)
  10100. && (0 < updatedRows.Length))) {
  10101. result = (result + this._пользователиTableAdapter.Update(updatedRows));
  10102. allChangedRows.AddRange(updatedRows);
  10103. }
  10104. }
  10105. if ((this._процессорыTableAdapter != null)) {
  10106. global::System.Data.DataRow[] updatedRows = dataSet.Процессоры.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10107. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10108. if (((updatedRows != null)
  10109. && (0 < updatedRows.Length))) {
  10110. result = (result + this._процессорыTableAdapter.Update(updatedRows));
  10111. allChangedRows.AddRange(updatedRows);
  10112. }
  10113. }
  10114. if ((this._сСДTableAdapter != null)) {
  10115. global::System.Data.DataRow[] updatedRows = dataSet.ССД.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10116. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10117. if (((updatedRows != null)
  10118. && (0 < updatedRows.Length))) {
  10119. result = (result + this._сСДTableAdapter.Update(updatedRows));
  10120. allChangedRows.AddRange(updatedRows);
  10121. }
  10122. }
  10123. if ((this._готоваяСборкаTableAdapter != null)) {
  10124. global::System.Data.DataRow[] updatedRows = dataSet.ГотоваяСборка.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10125. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10126. if (((updatedRows != null)
  10127. && (0 < updatedRows.Length))) {
  10128. result = (result + this._готоваяСборкаTableAdapter.Update(updatedRows));
  10129. allChangedRows.AddRange(updatedRows);
  10130. }
  10131. }
  10132. return result;
  10133. }
  10134. /// <summary>
  10135. ///Insert rows in top-down order.
  10136. ///</summary>
  10137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10139. private int UpdateInsertedRows(KhozeeevPC_12DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10140. int result = 0;
  10141. if ((this._блокПитанияTableAdapter != null)) {
  10142. global::System.Data.DataRow[] addedRows = dataSet.БлокПитания.Select(null, null, global::System.Data.DataViewRowState.Added);
  10143. if (((addedRows != null)
  10144. && (0 < addedRows.Length))) {
  10145. result = (result + this._блокПитанияTableAdapter.Update(addedRows));
  10146. allAddedRows.AddRange(addedRows);
  10147. }
  10148. }
  10149. if ((this._видеокартыTableAdapter != null)) {
  10150. global::System.Data.DataRow[] addedRows = dataSet.Видеокарты.Select(null, null, global::System.Data.DataViewRowState.Added);
  10151. if (((addedRows != null)
  10152. && (0 < addedRows.Length))) {
  10153. result = (result + this._видеокартыTableAdapter.Update(addedRows));
  10154. allAddedRows.AddRange(addedRows);
  10155. }
  10156. }
  10157. if ((this._водянаяСистемаОхлажденияTableAdapter != null)) {
  10158. global::System.Data.DataRow[] addedRows = dataSet.ВодянаяСистемаОхлаждения.Select(null, null, global::System.Data.DataViewRowState.Added);
  10159. if (((addedRows != null)
  10160. && (0 < addedRows.Length))) {
  10161. result = (result + this._водянаяСистемаОхлажденияTableAdapter.Update(addedRows));
  10162. allAddedRows.AddRange(addedRows);
  10163. }
  10164. }
  10165. if ((this._жесткийДискTableAdapter != null)) {
  10166. global::System.Data.DataRow[] addedRows = dataSet.ЖесткийДиск.Select(null, null, global::System.Data.DataViewRowState.Added);
  10167. if (((addedRows != null)
  10168. && (0 < addedRows.Length))) {
  10169. result = (result + this._жесткийДискTableAdapter.Update(addedRows));
  10170. allAddedRows.AddRange(addedRows);
  10171. }
  10172. }
  10173. if ((this._кулерыTableAdapter != null)) {
  10174. global::System.Data.DataRow[] addedRows = dataSet.Кулеры.Select(null, null, global::System.Data.DataViewRowState.Added);
  10175. if (((addedRows != null)
  10176. && (0 < addedRows.Length))) {
  10177. result = (result + this._кулерыTableAdapter.Update(addedRows));
  10178. allAddedRows.AddRange(addedRows);
  10179. }
  10180. }
  10181. if ((this._материнскаяПлатаTableAdapter != null)) {
  10182. global::System.Data.DataRow[] addedRows = dataSet.МатеринскаяПлата.Select(null, null, global::System.Data.DataViewRowState.Added);
  10183. if (((addedRows != null)
  10184. && (0 < addedRows.Length))) {
  10185. result = (result + this._материнскаяПлатаTableAdapter.Update(addedRows));
  10186. allAddedRows.AddRange(addedRows);
  10187. }
  10188. }
  10189. if ((this._оперативнаяПамятьTableAdapter != null)) {
  10190. global::System.Data.DataRow[] addedRows = dataSet.ОперативнаяПамять.Select(null, null, global::System.Data.DataViewRowState.Added);
  10191. if (((addedRows != null)
  10192. && (0 < addedRows.Length))) {
  10193. result = (result + this._оперативнаяПамятьTableAdapter.Update(addedRows));
  10194. allAddedRows.AddRange(addedRows);
  10195. }
  10196. }
  10197. if ((this._пользователиTableAdapter != null)) {
  10198. global::System.Data.DataRow[] addedRows = dataSet.Пользователи.Select(null, null, global::System.Data.DataViewRowState.Added);
  10199. if (((addedRows != null)
  10200. && (0 < addedRows.Length))) {
  10201. result = (result + this._пользователиTableAdapter.Update(addedRows));
  10202. allAddedRows.AddRange(addedRows);
  10203. }
  10204. }
  10205. if ((this._процессорыTableAdapter != null)) {
  10206. global::System.Data.DataRow[] addedRows = dataSet.Процессоры.Select(null, null, global::System.Data.DataViewRowState.Added);
  10207. if (((addedRows != null)
  10208. && (0 < addedRows.Length))) {
  10209. result = (result + this._процессорыTableAdapter.Update(addedRows));
  10210. allAddedRows.AddRange(addedRows);
  10211. }
  10212. }
  10213. if ((this._сСДTableAdapter != null)) {
  10214. global::System.Data.DataRow[] addedRows = dataSet.ССД.Select(null, null, global::System.Data.DataViewRowState.Added);
  10215. if (((addedRows != null)
  10216. && (0 < addedRows.Length))) {
  10217. result = (result + this._сСДTableAdapter.Update(addedRows));
  10218. allAddedRows.AddRange(addedRows);
  10219. }
  10220. }
  10221. if ((this._готоваяСборкаTableAdapter != null)) {
  10222. global::System.Data.DataRow[] addedRows = dataSet.ГотоваяСборка.Select(null, null, global::System.Data.DataViewRowState.Added);
  10223. if (((addedRows != null)
  10224. && (0 < addedRows.Length))) {
  10225. result = (result + this._готоваяСборкаTableAdapter.Update(addedRows));
  10226. allAddedRows.AddRange(addedRows);
  10227. }
  10228. }
  10229. return result;
  10230. }
  10231. /// <summary>
  10232. ///Delete rows in bottom-up order.
  10233. ///</summary>
  10234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10236. private int UpdateDeletedRows(KhozeeevPC_12DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  10237. int result = 0;
  10238. if ((this._готоваяСборкаTableAdapter != null)) {
  10239. global::System.Data.DataRow[] deletedRows = dataSet.ГотоваяСборка.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10240. if (((deletedRows != null)
  10241. && (0 < deletedRows.Length))) {
  10242. result = (result + this._готоваяСборкаTableAdapter.Update(deletedRows));
  10243. allChangedRows.AddRange(deletedRows);
  10244. }
  10245. }
  10246. if ((this._сСДTableAdapter != null)) {
  10247. global::System.Data.DataRow[] deletedRows = dataSet.ССД.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10248. if (((deletedRows != null)
  10249. && (0 < deletedRows.Length))) {
  10250. result = (result + this._сСДTableAdapter.Update(deletedRows));
  10251. allChangedRows.AddRange(deletedRows);
  10252. }
  10253. }
  10254. if ((this._процессорыTableAdapter != null)) {
  10255. global::System.Data.DataRow[] deletedRows = dataSet.Процессоры.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10256. if (((deletedRows != null)
  10257. && (0 < deletedRows.Length))) {
  10258. result = (result + this._процессорыTableAdapter.Update(deletedRows));
  10259. allChangedRows.AddRange(deletedRows);
  10260. }
  10261. }
  10262. if ((this._пользователиTableAdapter != null)) {
  10263. global::System.Data.DataRow[] deletedRows = dataSet.Пользователи.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10264. if (((deletedRows != null)
  10265. && (0 < deletedRows.Length))) {
  10266. result = (result + this._пользователиTableAdapter.Update(deletedRows));
  10267. allChangedRows.AddRange(deletedRows);
  10268. }
  10269. }
  10270. if ((this._оперативнаяПамятьTableAdapter != null)) {
  10271. global::System.Data.DataRow[] deletedRows = dataSet.ОперативнаяПамять.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10272. if (((deletedRows != null)
  10273. && (0 < deletedRows.Length))) {
  10274. result = (result + this._оперативнаяПамятьTableAdapter.Update(deletedRows));
  10275. allChangedRows.AddRange(deletedRows);
  10276. }
  10277. }
  10278. if ((this._материнскаяПлатаTableAdapter != null)) {
  10279. global::System.Data.DataRow[] deletedRows = dataSet.МатеринскаяПлата.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10280. if (((deletedRows != null)
  10281. && (0 < deletedRows.Length))) {
  10282. result = (result + this._материнскаяПлатаTableAdapter.Update(deletedRows));
  10283. allChangedRows.AddRange(deletedRows);
  10284. }
  10285. }
  10286. if ((this._кулерыTableAdapter != null)) {
  10287. global::System.Data.DataRow[] deletedRows = dataSet.Кулеры.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10288. if (((deletedRows != null)
  10289. && (0 < deletedRows.Length))) {
  10290. result = (result + this._кулерыTableAdapter.Update(deletedRows));
  10291. allChangedRows.AddRange(deletedRows);
  10292. }
  10293. }
  10294. if ((this._жесткийДискTableAdapter != null)) {
  10295. global::System.Data.DataRow[] deletedRows = dataSet.ЖесткийДиск.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10296. if (((deletedRows != null)
  10297. && (0 < deletedRows.Length))) {
  10298. result = (result + this._жесткийДискTableAdapter.Update(deletedRows));
  10299. allChangedRows.AddRange(deletedRows);
  10300. }
  10301. }
  10302. if ((this._водянаяСистемаОхлажденияTableAdapter != null)) {
  10303. global::System.Data.DataRow[] deletedRows = dataSet.ВодянаяСистемаОхлаждения.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10304. if (((deletedRows != null)
  10305. && (0 < deletedRows.Length))) {
  10306. result = (result + this._водянаяСистемаОхлажденияTableAdapter.Update(deletedRows));
  10307. allChangedRows.AddRange(deletedRows);
  10308. }
  10309. }
  10310. if ((this._видеокартыTableAdapter != null)) {
  10311. global::System.Data.DataRow[] deletedRows = dataSet.Видеокарты.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10312. if (((deletedRows != null)
  10313. && (0 < deletedRows.Length))) {
  10314. result = (result + this._видеокартыTableAdapter.Update(deletedRows));
  10315. allChangedRows.AddRange(deletedRows);
  10316. }
  10317. }
  10318. if ((this._блокПитанияTableAdapter != null)) {
  10319. global::System.Data.DataRow[] deletedRows = dataSet.БлокПитания.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10320. if (((deletedRows != null)
  10321. && (0 < deletedRows.Length))) {
  10322. result = (result + this._блокПитанияTableAdapter.Update(deletedRows));
  10323. allChangedRows.AddRange(deletedRows);
  10324. }
  10325. }
  10326. return result;
  10327. }
  10328. /// <summary>
  10329. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  10330. ///</summary>
  10331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10333. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10334. if (((updatedRows == null)
  10335. || (updatedRows.Length < 1))) {
  10336. return updatedRows;
  10337. }
  10338. if (((allAddedRows == null)
  10339. || (allAddedRows.Count < 1))) {
  10340. return updatedRows;
  10341. }
  10342. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10343. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  10344. global::System.Data.DataRow row = updatedRows[i];
  10345. if ((allAddedRows.Contains(row) == false)) {
  10346. realUpdatedRows.Add(row);
  10347. }
  10348. }
  10349. return realUpdatedRows.ToArray();
  10350. }
  10351. /// <summary>
  10352. ///Update all changes to the dataset.
  10353. ///</summary>
  10354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10356. public virtual int UpdateAll(KhozeeevPC_12DataSet dataSet) {
  10357. if ((dataSet == null)) {
  10358. throw new global::System.ArgumentNullException("dataSet");
  10359. }
  10360. if ((dataSet.HasChanges() == false)) {
  10361. return 0;
  10362. }
  10363. if (((this._блокПитанияTableAdapter != null)
  10364. && (this.MatchTableAdapterConnection(this._блокПитанияTableAdapter.Connection) == false))) {
  10365. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10366. "r, должны использовать одинаковую строку подключения.");
  10367. }
  10368. if (((this._видеокартыTableAdapter != null)
  10369. && (this.MatchTableAdapterConnection(this._видеокартыTableAdapter.Connection) == false))) {
  10370. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10371. "r, должны использовать одинаковую строку подключения.");
  10372. }
  10373. if (((this._водянаяСистемаОхлажденияTableAdapter != null)
  10374. && (this.MatchTableAdapterConnection(this._водянаяСистемаОхлажденияTableAdapter.Connection) == false))) {
  10375. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10376. "r, должны использовать одинаковую строку подключения.");
  10377. }
  10378. if (((this._готоваяСборкаTableAdapter != null)
  10379. && (this.MatchTableAdapterConnection(this._готоваяСборкаTableAdapter.Connection) == false))) {
  10380. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10381. "r, должны использовать одинаковую строку подключения.");
  10382. }
  10383. if (((this._жесткийДискTableAdapter != null)
  10384. && (this.MatchTableAdapterConnection(this._жесткийДискTableAdapter.Connection) == false))) {
  10385. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10386. "r, должны использовать одинаковую строку подключения.");
  10387. }
  10388. if (((this._кулерыTableAdapter != null)
  10389. && (this.MatchTableAdapterConnection(this._кулерыTableAdapter.Connection) == false))) {
  10390. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10391. "r, должны использовать одинаковую строку подключения.");
  10392. }
  10393. if (((this._материнскаяПлатаTableAdapter != null)
  10394. && (this.MatchTableAdapterConnection(this._материнскаяПлатаTableAdapter.Connection) == false))) {
  10395. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10396. "r, должны использовать одинаковую строку подключения.");
  10397. }
  10398. if (((this._оперативнаяПамятьTableAdapter != null)
  10399. && (this.MatchTableAdapterConnection(this._оперативнаяПамятьTableAdapter.Connection) == false))) {
  10400. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10401. "r, должны использовать одинаковую строку подключения.");
  10402. }
  10403. if (((this._пользователиTableAdapter != null)
  10404. && (this.MatchTableAdapterConnection(this._пользователиTableAdapter.Connection) == false))) {
  10405. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10406. "r, должны использовать одинаковую строку подключения.");
  10407. }
  10408. if (((this._процессорыTableAdapter != null)
  10409. && (this.MatchTableAdapterConnection(this._процессорыTableAdapter.Connection) == false))) {
  10410. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10411. "r, должны использовать одинаковую строку подключения.");
  10412. }
  10413. if (((this._сСДTableAdapter != null)
  10414. && (this.MatchTableAdapterConnection(this._сСДTableAdapter.Connection) == false))) {
  10415. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10416. "r, должны использовать одинаковую строку подключения.");
  10417. }
  10418. global::System.Data.IDbConnection workConnection = this.Connection;
  10419. if ((workConnection == null)) {
  10420. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  10421. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  10422. }
  10423. bool workConnOpened = false;
  10424. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  10425. == global::System.Data.ConnectionState.Broken)) {
  10426. workConnection.Close();
  10427. }
  10428. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  10429. workConnection.Open();
  10430. workConnOpened = true;
  10431. }
  10432. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  10433. if ((workTransaction == null)) {
  10434. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  10435. "и или текущее состояние не позволяет начать транзакцию.");
  10436. }
  10437. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10438. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10439. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  10440. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  10441. int result = 0;
  10442. global::System.Data.DataSet backupDataSet = null;
  10443. if (this.BackupDataSetBeforeUpdate) {
  10444. backupDataSet = new global::System.Data.DataSet();
  10445. backupDataSet.Merge(dataSet);
  10446. }
  10447. try {
  10448. // ---- Prepare for update -----------
  10449. //
  10450. if ((this._блокПитанияTableAdapter != null)) {
  10451. revertConnections.Add(this._блокПитанияTableAdapter, this._блокПитанияTableAdapter.Connection);
  10452. this._блокПитанияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10453. this._блокПитанияTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10454. if (this._блокПитанияTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10455. this._блокПитанияTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10456. adaptersWithAcceptChangesDuringUpdate.Add(this._блокПитанияTableAdapter.Adapter);
  10457. }
  10458. }
  10459. if ((this._видеокартыTableAdapter != null)) {
  10460. revertConnections.Add(this._видеокартыTableAdapter, this._видеокартыTableAdapter.Connection);
  10461. this._видеокартыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10462. this._видеокартыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10463. if (this._видеокартыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10464. this._видеокартыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10465. adaptersWithAcceptChangesDuringUpdate.Add(this._видеокартыTableAdapter.Adapter);
  10466. }
  10467. }
  10468. if ((this._водянаяСистемаОхлажденияTableAdapter != null)) {
  10469. revertConnections.Add(this._водянаяСистемаОхлажденияTableAdapter, this._водянаяСистемаОхлажденияTableAdapter.Connection);
  10470. this._водянаяСистемаОхлажденияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10471. this._водянаяСистемаОхлажденияTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10472. if (this._водянаяСистемаОхлажденияTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10473. this._водянаяСистемаОхлажденияTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10474. adaptersWithAcceptChangesDuringUpdate.Add(this._водянаяСистемаОхлажденияTableAdapter.Adapter);
  10475. }
  10476. }
  10477. if ((this._готоваяСборкаTableAdapter != null)) {
  10478. revertConnections.Add(this._готоваяСборкаTableAdapter, this._готоваяСборкаTableAdapter.Connection);
  10479. this._готоваяСборкаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10480. this._готоваяСборкаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10481. if (this._готоваяСборкаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10482. this._готоваяСборкаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10483. adaptersWithAcceptChangesDuringUpdate.Add(this._готоваяСборкаTableAdapter.Adapter);
  10484. }
  10485. }
  10486. if ((this._жесткийДискTableAdapter != null)) {
  10487. revertConnections.Add(this._жесткийДискTableAdapter, this._жесткийДискTableAdapter.Connection);
  10488. this._жесткийДискTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10489. this._жесткийДискTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10490. if (this._жесткийДискTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10491. this._жесткийДискTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10492. adaptersWithAcceptChangesDuringUpdate.Add(this._жесткийДискTableAdapter.Adapter);
  10493. }
  10494. }
  10495. if ((this._кулерыTableAdapter != null)) {
  10496. revertConnections.Add(this._кулерыTableAdapter, this._кулерыTableAdapter.Connection);
  10497. this._кулерыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10498. this._кулерыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10499. if (this._кулерыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10500. this._кулерыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10501. adaptersWithAcceptChangesDuringUpdate.Add(this._кулерыTableAdapter.Adapter);
  10502. }
  10503. }
  10504. if ((this._материнскаяПлатаTableAdapter != null)) {
  10505. revertConnections.Add(this._материнскаяПлатаTableAdapter, this._материнскаяПлатаTableAdapter.Connection);
  10506. this._материнскаяПлатаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10507. this._материнскаяПлатаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10508. if (this._материнскаяПлатаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10509. this._материнскаяПлатаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10510. adaptersWithAcceptChangesDuringUpdate.Add(this._материнскаяПлатаTableAdapter.Adapter);
  10511. }
  10512. }
  10513. if ((this._оперативнаяПамятьTableAdapter != null)) {
  10514. revertConnections.Add(this._оперативнаяПамятьTableAdapter, this._оперативнаяПамятьTableAdapter.Connection);
  10515. this._оперативнаяПамятьTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10516. this._оперативнаяПамятьTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10517. if (this._оперативнаяПамятьTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10518. this._оперативнаяПамятьTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10519. adaptersWithAcceptChangesDuringUpdate.Add(this._оперативнаяПамятьTableAdapter.Adapter);
  10520. }
  10521. }
  10522. if ((this._пользователиTableAdapter != null)) {
  10523. revertConnections.Add(this._пользователиTableAdapter, this._пользователиTableAdapter.Connection);
  10524. this._пользователиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10525. this._пользователиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10526. if (this._пользователиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10527. this._пользователиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10528. adaptersWithAcceptChangesDuringUpdate.Add(this._пользователиTableAdapter.Adapter);
  10529. }
  10530. }
  10531. if ((this._процессорыTableAdapter != null)) {
  10532. revertConnections.Add(this._процессорыTableAdapter, this._процессорыTableAdapter.Connection);
  10533. this._процессорыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10534. this._процессорыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10535. if (this._процессорыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10536. this._процессорыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10537. adaptersWithAcceptChangesDuringUpdate.Add(this._процессорыTableAdapter.Adapter);
  10538. }
  10539. }
  10540. if ((this._сСДTableAdapter != null)) {
  10541. revertConnections.Add(this._сСДTableAdapter, this._сСДTableAdapter.Connection);
  10542. this._сСДTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10543. this._сСДTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10544. if (this._сСДTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10545. this._сСДTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10546. adaptersWithAcceptChangesDuringUpdate.Add(this._сСДTableAdapter.Adapter);
  10547. }
  10548. }
  10549. //
  10550. //---- Perform updates -----------
  10551. //
  10552. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  10553. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  10554. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  10555. }
  10556. else {
  10557. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  10558. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  10559. }
  10560. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  10561. //
  10562. //---- Commit updates -----------
  10563. //
  10564. workTransaction.Commit();
  10565. if ((0 < allAddedRows.Count)) {
  10566. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  10567. allAddedRows.CopyTo(rows);
  10568. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10569. global::System.Data.DataRow row = rows[i];
  10570. row.AcceptChanges();
  10571. }
  10572. }
  10573. if ((0 < allChangedRows.Count)) {
  10574. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  10575. allChangedRows.CopyTo(rows);
  10576. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10577. global::System.Data.DataRow row = rows[i];
  10578. row.AcceptChanges();
  10579. }
  10580. }
  10581. }
  10582. catch (global::System.Exception ex) {
  10583. workTransaction.Rollback();
  10584. // ---- Restore the dataset -----------
  10585. if (this.BackupDataSetBeforeUpdate) {
  10586. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  10587. dataSet.Clear();
  10588. dataSet.Merge(backupDataSet);
  10589. }
  10590. else {
  10591. if ((0 < allAddedRows.Count)) {
  10592. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  10593. allAddedRows.CopyTo(rows);
  10594. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10595. global::System.Data.DataRow row = rows[i];
  10596. row.AcceptChanges();
  10597. row.SetAdded();
  10598. }
  10599. }
  10600. }
  10601. throw ex;
  10602. }
  10603. finally {
  10604. if (workConnOpened) {
  10605. workConnection.Close();
  10606. }
  10607. if ((this._блокПитанияTableAdapter != null)) {
  10608. this._блокПитанияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._блокПитанияTableAdapter]));
  10609. this._блокПитанияTableAdapter.Transaction = null;
  10610. }
  10611. if ((this._видеокартыTableAdapter != null)) {
  10612. this._видеокартыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._видеокартыTableAdapter]));
  10613. this._видеокартыTableAdapter.Transaction = null;
  10614. }
  10615. if ((this._водянаяСистемаОхлажденияTableAdapter != null)) {
  10616. this._водянаяСистемаОхлажденияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._водянаяСистемаОхлажденияTableAdapter]));
  10617. this._водянаяСистемаОхлажденияTableAdapter.Transaction = null;
  10618. }
  10619. if ((this._готоваяСборкаTableAdapter != null)) {
  10620. this._готоваяСборкаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._готоваяСборкаTableAdapter]));
  10621. this._готоваяСборкаTableAdapter.Transaction = null;
  10622. }
  10623. if ((this._жесткийДискTableAdapter != null)) {
  10624. this._жесткийДискTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._жесткийДискTableAdapter]));
  10625. this._жесткийДискTableAdapter.Transaction = null;
  10626. }
  10627. if ((this._кулерыTableAdapter != null)) {
  10628. this._кулерыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._кулерыTableAdapter]));
  10629. this._кулерыTableAdapter.Transaction = null;
  10630. }
  10631. if ((this._материнскаяПлатаTableAdapter != null)) {
  10632. this._материнскаяПлатаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._материнскаяПлатаTableAdapter]));
  10633. this._материнскаяПлатаTableAdapter.Transaction = null;
  10634. }
  10635. if ((this._оперативнаяПамятьTableAdapter != null)) {
  10636. this._оперативнаяПамятьTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._оперативнаяПамятьTableAdapter]));
  10637. this._оперативнаяПамятьTableAdapter.Transaction = null;
  10638. }
  10639. if ((this._пользователиTableAdapter != null)) {
  10640. this._пользователиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._пользователиTableAdapter]));
  10641. this._пользователиTableAdapter.Transaction = null;
  10642. }
  10643. if ((this._процессорыTableAdapter != null)) {
  10644. this._процессорыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._процессорыTableAdapter]));
  10645. this._процессорыTableAdapter.Transaction = null;
  10646. }
  10647. if ((this._сСДTableAdapter != null)) {
  10648. this._сСДTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._сСДTableAdapter]));
  10649. this._сСДTableAdapter.Transaction = null;
  10650. }
  10651. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  10652. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  10653. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  10654. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  10655. global::System.Data.Common.DataAdapter adapter = adapters[i];
  10656. adapter.AcceptChangesDuringUpdate = true;
  10657. }
  10658. }
  10659. }
  10660. return result;
  10661. }
  10662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10664. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  10665. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  10666. }
  10667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10669. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  10670. if ((this._connection != null)) {
  10671. return true;
  10672. }
  10673. if (((this.Connection == null)
  10674. || (inputConnection == null))) {
  10675. return true;
  10676. }
  10677. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  10678. return true;
  10679. }
  10680. return false;
  10681. }
  10682. /// <summary>
  10683. ///Update Order Option
  10684. ///</summary>
  10685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10686. public enum UpdateOrderOption {
  10687. InsertUpdateDelete = 0,
  10688. UpdateInsertDelete = 1,
  10689. }
  10690. /// <summary>
  10691. ///Used to sort self-referenced table's rows
  10692. ///</summary>
  10693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10694. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  10695. private global::System.Data.DataRelation _relation;
  10696. private int _childFirst;
  10697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10699. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  10700. this._relation = relation;
  10701. if (childFirst) {
  10702. this._childFirst = -1;
  10703. }
  10704. else {
  10705. this._childFirst = 1;
  10706. }
  10707. }
  10708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10710. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  10711. global::System.Diagnostics.Debug.Assert((row != null));
  10712. global::System.Data.DataRow root = row;
  10713. distance = 0;
  10714. 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>();
  10715. traversedRows[row] = row;
  10716. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  10717. for (
  10718. ; ((parent != null)
  10719. && (traversedRows.ContainsKey(parent) == false));
  10720. ) {
  10721. distance = (distance + 1);
  10722. root = parent;
  10723. traversedRows[parent] = parent;
  10724. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  10725. }
  10726. if ((distance == 0)) {
  10727. traversedRows.Clear();
  10728. traversedRows[row] = row;
  10729. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  10730. for (
  10731. ; ((parent != null)
  10732. && (traversedRows.ContainsKey(parent) == false));
  10733. ) {
  10734. distance = (distance + 1);
  10735. root = parent;
  10736. traversedRows[parent] = parent;
  10737. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  10738. }
  10739. }
  10740. return root;
  10741. }
  10742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10744. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  10745. if (object.ReferenceEquals(row1, row2)) {
  10746. return 0;
  10747. }
  10748. if ((row1 == null)) {
  10749. return -1;
  10750. }
  10751. if ((row2 == null)) {
  10752. return 1;
  10753. }
  10754. int distance1 = 0;
  10755. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  10756. int distance2 = 0;
  10757. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  10758. if (object.ReferenceEquals(root1, root2)) {
  10759. return (this._childFirst * distance1.CompareTo(distance2));
  10760. }
  10761. else {
  10762. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  10763. && (root2.Table != null)));
  10764. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  10765. return -1;
  10766. }
  10767. else {
  10768. return 1;
  10769. }
  10770. }
  10771. }
  10772. }
  10773. }
  10774. }
  10775. #pragma warning restore 1591