//--------------------------------------------------------------------------- #ifdef WORKSHEET //--------------------------------------------------------------------------- #include #pragma hdrstop #include "CombiItemEdit_F.h" #include "Combination.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma link "RzButton" #pragma link "RzCmboBx" #pragma link "RzEdit" #pragma link "RzLstBox" #pragma link "RzPanel" #pragma link "RzLabel" #pragma link "RzTabs" #pragma link "RzBckgnd" #pragma link "RzRadChk" #pragma link "RzSpnEdt" #pragma resource "*.dfm" //--------------------------------------------------------------------------- #define IDS_TITLE StringTable[0] #define IDS_STYLEEDIT StringTable[1] #define IDS_CLOTHINGSET StringTable[2] #define IDS_WORKSHEETCELLSSETTING StringTable[3] #define IDS_UPPERBOTTOMS StringTable[4] #define IDS_UPPER StringTable[5] #define IDS_BOTTOMS StringTable[6] #define IDS_CLOTHING StringTable[7] #define IDS_PART StringTable[8] #define IDS_UPPERSILHOUETTE StringTable[9] #define IDS_SLEEVE StringTable[10] #define IDS_COLLAR StringTable[11] #define IDS_UPPERSUBMATERIAL StringTable[12] #define IDS_BOTTOMSSILHOUETTE StringTable[13] #define IDS_BELT StringTable[14] #define IDS_BOTTOMSSUBMATERIAL StringTable[15] #define IDS_ADD StringTable[16] #define IDS_UPDATE StringTable[17] #define IDS_DELETE StringTable[18] #define IDS_TYPE StringTable[19] #define IDS_MAN StringTable[20] #define IDS_WOMAN StringTable[21] #define IDS_CHILD StringTable[22] #define IDS_BABY StringTable[23] #define IDS_SAVE StringTable[24] #define IDS_CLOSE StringTable[25] #define IDS_MESSAGE0 StringTable[26]//127°³ ÀÌ»ó Ãß°¡ÇÒ ¼ö ¾ø½À´Ï´Ù. #define IDS_MESSAGE1 StringTable[27]//ù¹øÂ° °ªÀº »èÁ¦ÇÒ ¼ö ¾ø½À´Ï´Ù. #define IDS_MESSAGE2 StringTable[28]//»èÁ¦ÇÒ °ÍÀÌ ¾ø½À´Ï´Ù. #define IDS_COMBINATIONONOFF StringTable[29] #define IDS_MATERIAL StringTable[30] //--------------------------------------------------------------------------- TCombiItemEditForm *CombiItemEditForm; //--------------------------------------------------------------------------- __fastcall TCombiItemEditForm::TCombiItemEditForm(TComponent* Owner) : TForm(Owner) { StringTable.Create(DirectoryItem, Language, "CombiItemEditForm"); } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::FormCreate(TObject *Sender) { Caption = IDS_TITLE; tabshtStyleEdit->Caption = IDS_STYLEEDIT; tabshtClothes->Caption = IDS_CLOTHINGSET; tabshtWorkSheetCell->Caption = IDS_WORKSHEETCELLSSETTING; rzbitbtnSave->Caption = IDS_SAVE; rzbitbtnClose->Caption = IDS_CLOSE; rzlbStyleUpperLower->Caption = IDS_UPPERBOTTOMS; rzcombobxStyleUpperLower->AddItem(IDS_UPPER, NULL); rzcombobxStyleUpperLower->AddItem(IDS_BOTTOMS, NULL); rzlbStylePart->Caption = IDS_PART; rzcombobxStylePart->AddItem(IDS_UPPERSILHOUETTE, NULL); rzcombobxStylePart->AddItem(IDS_SLEEVE, NULL); rzcombobxStylePart->AddItem(IDS_COLLAR, NULL); rzcombobxStylePart->AddItem(IDS_UPPERSUBMATERIAL, NULL); rzbitbtnStyleAdd->Caption = IDS_ADD; rzbitbtnStyleUpdate->Caption = IDS_UPDATE; rzbitbtnStyleDelete->Caption = IDS_DELETE; rzlbClothesDivision->Caption = IDS_TYPE; rzcombobxClothesDivision->AddItem(IDS_MAN, NULL); rzcombobxClothesDivision->AddItem(IDS_WOMAN, NULL); rzcombobxClothesDivision->AddItem(IDS_CHILD, NULL); rzcombobxClothesDivision->AddItem(IDS_BABY, NULL); rzlbClothesUpperLower->Caption = IDS_UPPERBOTTOMS; rzcombobxClothesUpperLower->AddItem(IDS_UPPER, NULL); rzcombobxClothesUpperLower->AddItem(IDS_BOTTOMS, NULL); rzlbClothesType->Caption = IDS_CLOTHING; rzlbClothesPart->Caption = IDS_PART; rzcombobxClothesPart->AddItem(IDS_UPPERSILHOUETTE, NULL); rzcombobxClothesPart->AddItem(IDS_SLEEVE, NULL); rzcombobxClothesPart->AddItem(IDS_COLLAR, NULL); rzcombobxClothesPart->AddItem(IDS_UPPERSUBMATERIAL, NULL); rzlbWorkSheetDivision->Caption = IDS_TYPE; rzcombobxWorkSheetDivision->AddItem(IDS_MAN, NULL); rzcombobxWorkSheetDivision->AddItem(IDS_WOMAN, NULL); rzcombobxWorkSheetDivision->AddItem(IDS_CHILD, NULL); rzcombobxWorkSheetDivision->AddItem(IDS_BABY, NULL); rzlbWorkSheetWorkSheetUpperLower->Caption = IDS_UPPERBOTTOMS; rzcombobxWorkSheetUpperLower->AddItem(IDS_UPPER, NULL); rzcombobxWorkSheetUpperLower->AddItem(IDS_BOTTOMS, NULL); rzlbWorkSheetWorkSheetType->Caption = IDS_CLOTHING; rzlbCombinationOnOff->Caption = IDS_COMBINATIONONOFF; rzlbCell1->Caption = IDS_MATERIAL + " Cell1"; rzlbCell2->Caption = IDS_MATERIAL + " Cell2"; rzlbCell3->Caption = IDS_MATERIAL + " Cell3"; rzlbCell4->Caption = IDS_MATERIAL + " Cell4"; rzlbCell5->Caption = IDS_MATERIAL + " Cell5"; rzlbCell6->Caption = IDS_MATERIAL + " Cell6"; rzlbCell7->Caption = IDS_MATERIAL + " Cell7"; InitForm(); } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::InitForm() { CopyFromVecDraw(); if (rzpgctrlCombiItem->ActivePage == tabshtStyleEdit) { rzcombobxStyleUpperLower->Clear(); rzcombobxStyleUpperLower->AddItem(IDS_UPPER, NULL); rzcombobxStyleUpperLower->AddItem(IDS_BOTTOMS, NULL); rzcombobxStyleUpperLower->ItemIndex = 0; rzcombobxStylePart->Clear(); rzcombobxStylePart->AddItem(IDS_UPPERSILHOUETTE, NULL); rzcombobxStylePart->AddItem(IDS_SLEEVE, NULL); rzcombobxStylePart->AddItem(IDS_COLLAR, NULL); rzcombobxStylePart->AddItem(IDS_UPPERSUBMATERIAL, NULL); rzcombobxStylePart->ItemIndex = 0; ChangeType(rzcombobxStylePart, rzcombobxStyleUpperLower, rzlstbxStylePartItemList); } else { rzpgctrlCombiItem->ActivePage = tabshtStyleEdit; } } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::FormDestroy(TObject *Sender) { // } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::rzpgctrlCombiItemChange( TObject *Sender) { // ÄÄÆ÷³ÍÆ® ÃʱâÈ­ if (rzpgctrlCombiItem->ActivePage == tabshtStyleEdit) { rzcombobxStyleUpperLower->Clear(); rzcombobxStyleUpperLower->AddItem(IDS_UPPER, NULL); rzcombobxStyleUpperLower->AddItem(IDS_BOTTOMS, NULL); rzcombobxStyleUpperLower->ItemIndex = 0; rzcombobxStylePart->Clear(); rzcombobxStylePart->AddItem(IDS_UPPERSILHOUETTE, NULL); rzcombobxStylePart->AddItem(IDS_SLEEVE, NULL); rzcombobxStylePart->AddItem(IDS_COLLAR, NULL); rzcombobxStylePart->AddItem(IDS_UPPERSUBMATERIAL, NULL); rzcombobxStylePart->ItemIndex = 0; ChangeType(rzcombobxStylePart, rzcombobxStyleUpperLower, rzlstbxStylePartItemList); } else if (rzpgctrlCombiItem->ActivePage == tabshtClothes) { rzcombobxClothesDivision->Clear(); rzcombobxClothesDivision->AddItem(IDS_MAN, NULL); rzcombobxClothesDivision->AddItem(IDS_WOMAN, NULL); rzcombobxClothesDivision->AddItem(IDS_CHILD, NULL); rzcombobxClothesDivision->AddItem(IDS_BABY, NULL); rzcombobxClothesDivision->ItemIndex = 0; rzcombobxClothesUpperLower->Clear(); rzcombobxClothesUpperLower->AddItem(IDS_UPPER, NULL); rzcombobxClothesUpperLower->AddItem(IDS_BOTTOMS, NULL); rzcombobxClothesUpperLower->ItemIndex = 0; rzcombobxClothesType->Clear(); for (int i = TP_NONE; i < TP_LAST; i++) { if (VecDraw->Man_Upper.Contains(i)) { rzcombobxClothesType->AddItem(CombiForm->StrType[i], (TObject *)i); } } rzcombobxClothesType->ItemIndex = 0; rzcombobxClothesPart->Clear(); rzcombobxClothesPart->AddItem(IDS_UPPERSILHOUETTE, NULL); rzcombobxClothesPart->AddItem(IDS_SLEEVE, NULL); rzcombobxClothesPart->AddItem(IDS_COLLAR, NULL); rzcombobxClothesPart->AddItem(IDS_UPPERSUBMATERIAL, NULL); rzcombobxClothesPart->ItemIndex = 0; CurrentSet = Man_Coat_Sil; ChangeType(rzcombobxClothesPart, rzcombobxClothesUpperLower, rzlstbxClothesPartItemList); ChangeClothes(); } else if (rzpgctrlCombiItem->ActivePage == tabshtWorkSheetCell) { rzcombobxWorkSheetDivision->Clear(); rzcombobxWorkSheetDivision->AddItem(IDS_MAN, NULL); rzcombobxWorkSheetDivision->AddItem(IDS_WOMAN, NULL); rzcombobxWorkSheetDivision->AddItem(IDS_CHILD, NULL); rzcombobxWorkSheetDivision->AddItem(IDS_BABY, NULL); rzcombobxWorkSheetDivision->ItemIndex = 0; rzcombobxWorkSheetUpperLower->Clear(); rzcombobxWorkSheetUpperLower->AddItem(IDS_UPPER, NULL); rzcombobxWorkSheetUpperLower->AddItem(IDS_BOTTOMS, NULL); rzcombobxWorkSheetUpperLower->ItemIndex = 0; rzcombobxWorkSheetType->Clear(); for (int i = TP_NONE; i < TP_LAST; i++) { if (VecDraw->Man_Upper.Contains(i)) { rzcombobxWorkSheetType->AddItem(CombiForm->StrType[i], (TObject *)i); } } rzcombobxWorkSheetType->ItemIndex = 0; CurrentSet = Man_Coat_Sil; ChangeDivision(rzcombobxWorkSheetDivision, rzcombobxWorkSheetUpperLower, rzcombobxWorkSheetType); ChangeMaterial(); } } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::rzcombobxStyleUpperLowerChange( TObject *Sender) { ChangeUpperLower(rzcombobxStyleUpperLower, rzcombobxStylePart); ChangeType(rzcombobxStylePart, rzcombobxStyleUpperLower, rzlstbxStylePartItemList); } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::rzcombobxStylePartChange( TObject *Sender) { ChangeType(rzcombobxStylePart, rzcombobxStyleUpperLower, rzlstbxStylePartItemList); } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::rzlstbxStylePartItemListClick(TObject *Sender) { if (0 <= rzlstbxStylePartItemList->ItemIndex && rzlstbxStylePartItemList->ItemIndex < rzlstbxStylePartItemList->Items->Count) { rzedStyleName->Text = rzlstbxStylePartItemList->Items->Strings[rzlstbxStylePartItemList->ItemIndex]; } } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::rzItemNameClick(TObject *Sender) { rzedStyleName->SelectAll(); } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::rzbitbtnInsertItemClick(TObject *Sender) { if (rzlstbxStylePartItemList->Items->Count < 127) { if (rzcombobxStyleUpperLower->ItemIndex == 0) { // »óÀÇ if (rzcombobxStylePart->ItemIndex == 0) { SilhouetteCount++; SilhouetteName[rzlstbxStylePartItemList->Count] = rzedStyleName->Text; } else if (rzcombobxStylePart->ItemIndex == 1) { SleeveCount++; SleeveName[rzlstbxStylePartItemList->Count] = rzedStyleName->Text; } else if (rzcombobxStylePart->ItemIndex == 2) { CollarCount++; CollarName[rzlstbxStylePartItemList->Count] = rzedStyleName->Text; } else if (rzcombobxStylePart->ItemIndex == 3) { UpperMaterialCount++; UpperMaterialName[rzlstbxStylePartItemList->Count] = rzedStyleName->Text; } } else if (rzcombobxStyleUpperLower->ItemIndex == 1) { // ÇÏÀÇ if (rzcombobxStylePart->ItemIndex == 0) { PantsCount++; PantsName[rzlstbxStylePartItemList->Count] = rzedStyleName->Text; } else if (rzcombobxStylePart->ItemIndex == 1) { BeltCount++; BeltName[rzlstbxStylePartItemList->Count] = rzedStyleName->Text; } else if (rzcombobxStylePart->ItemIndex == 2) { LowerMaterialCount++; LowerMaterialName[rzlstbxStylePartItemList->Count] = rzedStyleName->Text; } } rzlstbxStylePartItemList->AddItem(rzedStyleName->Text, (TObject *)rzlstbxStylePartItemList->Count); } else { // Message : 127°³ ÀÌ»ó Ãß°¡ÇÒ ¼ö ¾ø½À´Ï´Ù. MessageDlg(IDS_MESSAGE0, mtWarning, TMsgDlgButtons()<ItemIndex && rzlstbxStylePartItemList->ItemIndex < rzlstbxStylePartItemList->Items->Count) { if (rzcombobxStyleUpperLower->ItemIndex == 0) { // »óÀÇ if (rzcombobxStylePart->ItemIndex == 0) { SilhouetteName[rzlstbxStylePartItemList->ItemIndex] = rzedStyleName->Text; } else if (rzcombobxStylePart->ItemIndex == 1) { SleeveName[rzlstbxStylePartItemList->ItemIndex] = rzedStyleName->Text; } else if (rzcombobxStylePart->ItemIndex == 2) { CollarName[rzlstbxStylePartItemList->ItemIndex] = rzedStyleName->Text; } else if (rzcombobxStylePart->ItemIndex == 3) { UpperMaterialName[rzlstbxStylePartItemList->ItemIndex] = rzedStyleName->Text; } } else if (rzcombobxStyleUpperLower->ItemIndex == 1) { // ÇÏÀÇ if (rzcombobxStylePart->ItemIndex == 0) { PantsName[rzlstbxStylePartItemList->ItemIndex] = rzedStyleName->Text; } else if (rzcombobxStylePart->ItemIndex == 1) { BeltName[rzlstbxStylePartItemList->ItemIndex] = rzedStyleName->Text; } else if (rzcombobxStylePart->ItemIndex == 2) { LowerMaterialName[rzlstbxStylePartItemList->ItemIndex] = rzedStyleName->Text; } } rzlstbxStylePartItemList->Items->Strings[rzlstbxStylePartItemList->ItemIndex] = rzedStyleName->Text; } else if (0 == rzlstbxStylePartItemList->ItemIndex) { // Message : ù¹øÂ° °ªÀº »èÁ¦ÇÒ ¼ö ¾ø½À´Ï´Ù. MessageDlg(IDS_MESSAGE1, mtWarning, TMsgDlgButtons()<ItemIndex) { rzlstbxStylePartItemList->Items->Delete(rzlstbxStylePartItemList->ItemIndex); if (0 < rzlstbxStylePartItemList->Items->Count) rzlstbxStylePartItemList->ItemIndex = 0; if (rzcombobxStyleUpperLower->ItemIndex == 0) { // »óÀÇ if (rzcombobxStylePart->ItemIndex == 0) { // NoneÀº ¹«Á¶°Ç µé¾î°¡¾ß ÇÑ´Ù for (int i = 0; i < 127; i++) { if (i < rzlstbxStylePartItemList->Count) SilhouetteName[i] = rzlstbxStylePartItemList->Items->Strings[i]; else SilhouetteName[i] = ""; } SilhouetteCount--; } else if (rzcombobxStylePart->ItemIndex == 1) { // NoneÀº ¹«Á¶°Ç µé¾î°¡¾ß ÇÑ´Ù for (int i = 0; i < 127; i++) { if (i < rzlstbxStylePartItemList->Count) SleeveName[i] = rzlstbxStylePartItemList->Items->Strings[i]; else SleeveName[i] = ""; } SleeveCount--; } else if (rzcombobxStylePart->ItemIndex == 2) { // NoneÀº ¹«Á¶°Ç µé¾î°¡¾ß ÇÑ´Ù for (int i = 0; i < 127; i++) { if (i < rzlstbxStylePartItemList->Count) CollarName[i] = rzlstbxStylePartItemList->Items->Strings[i]; else CollarName[i] = ""; } CollarCount--; } else if (rzcombobxStylePart->ItemIndex == 3) { // NoneÀº ¹«Á¶°Ç µé¾î°¡¾ß ÇÑ´Ù for (int i = 0; i < 127; i++) { if (i < rzlstbxStylePartItemList->Count) UpperMaterialName[i] = rzlstbxStylePartItemList->Items->Strings[i]; else CollarName[i] = ""; } UpperMaterialCount--; } } else if (rzcombobxStyleUpperLower->ItemIndex == 1) { // ÇÏÀÇ if (rzcombobxStylePart->ItemIndex == 0) { // NoneÀº ¹«Á¶°Ç µé¾î°¡¾ß ÇÑ´Ù for (int i = 0; i < 127; i++) { if (i < rzlstbxStylePartItemList->Count) PantsName[i] = rzlstbxStylePartItemList->Items->Strings[i]; else PantsName[i] = ""; } PantsCount--; } else if (rzcombobxStylePart->ItemIndex == 1) { // NoneÀº ¹«Á¶°Ç µé¾î°¡¾ß ÇÑ´Ù for (int i = 0; i < 127; i++) { if (i < rzlstbxStylePartItemList->Count) BeltName[i] = rzlstbxStylePartItemList->Items->Strings[i]; else BeltName[i] = ""; } BeltCount--; } else if (rzcombobxStylePart->ItemIndex == 2) { // NoneÀº ¹«Á¶°Ç µé¾î°¡¾ß ÇÑ´Ù for (int i = 0; i < 127; i++) { if (i < rzlstbxStylePartItemList->Count) LowerMaterialName[i] = rzlstbxStylePartItemList->Items->Strings[i]; else LowerMaterialName[i] = ""; } LowerMaterialCount--; } } } else if (0 == rzlstbxStylePartItemList->ItemIndex) { // Mesasge : ù¹øÂ° °ªÀº »èÁ¦ÇÒ ¼ö ¾ø½À´Ï´Ù. MessageDlg(IDS_MESSAGE1, mtWarning, TMsgDlgButtons()<Items->Count; i++) { if (rzlstbxClothesItemList->Selected[i] == true) { Item = (int)rzlstbxClothesItemList->Items->Objects[i]; if (Item == 0) continue; // NoneÀº ¹«Á¶°Ç µé¾î°¡¾ß ÇÑ´Ù CurrentSet >> Item; } } rzlstbxClothesItemList->Clear(); // ÃʱâÈ­ // Ãß°¡ (NoneÀº ¹«Á¶°Ç µé¾î°¡¾ß ÇÑ´Ù) for (int i = 0; i < 127; i++) { if (CurrentSet.Contains(i)) { rzlstbxClothesItemList->AddItem(rzlstbxClothesPartItemList->Items->Strings[i], (TObject *)i); } } ApplyCombiSet(); } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::rzbitbtnAddItemClick(TObject *Sender) { // ¼±Åà (NoneÀº ¹«Á¶°Ç µé¾î°¡¾ß ÇÑ´Ù) for (int i = 0; i < rzlstbxClothesPartItemList->Items->Count; i++) { if (rzlstbxClothesPartItemList->Selected[i] == true) { CurrentSet << i; } } rzlstbxClothesItemList->Clear(); // ÃʱâÈ­ // Ãß°¡ (NoneÀº ¹«Á¶°Ç µé¾î°¡¾ß ÇÑ´Ù) for (int i = 0; i < 127; i++) { if (CurrentSet.Contains(i)) { rzlstbxClothesItemList->AddItem(rzlstbxClothesPartItemList->Items->Strings[i], (TObject *)i); } } ApplyCombiSet(); } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::rzcombobxWorkSheetDivisionChange( TObject *Sender) { ChangeDivision(rzcombobxWorkSheetDivision, rzcombobxWorkSheetUpperLower, rzcombobxWorkSheetType); ChangeMaterial(); } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::rzcombobxWorkSheetUpperLowerChange( TObject *Sender) { ChangeDivision(rzcombobxWorkSheetDivision, rzcombobxWorkSheetUpperLower, rzcombobxWorkSheetType); ChangeMaterial(); } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::rzcombobxWorkSheetTypeChange( TObject *Sender) { ChangeMaterial(); } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::rzcombobxCellChange(TObject *Sender) { EType Clothes = TP_NONE; TRzComboBox *rzcombobxSelectedCell = NULL; char cValue = 0; int nTag = 0; rzcombobxSelectedCell = dynamic_cast(Sender); if (rzcombobxSelectedCell && 0 <= rzcombobxSelectedCell->ItemIndex && rzcombobxSelectedCell->ItemIndex < rzcombobxSelectedCell->Items->Count) { nTag = rzcombobxSelectedCell->Tag; if (0 <= rzcombobxWorkSheetType->ItemIndex && rzcombobxWorkSheetType->ItemIndex < rzcombobxWorkSheetType->Items->Count && nTag < CELL_COUNT) { Clothes = (EType)rzcombobxWorkSheetType->Items->Objects[rzcombobxWorkSheetType->ItemIndex]; cValue = (char)rzcombobxSelectedCell->Items->Objects[rzcombobxSelectedCell->ItemIndex]; if (rzcombobxWorkSheetDivision->ItemIndex == 0) { // Man switch (Clothes) { case TP_COAT: Man_Coat_Cell_Order[nTag] = cValue; break; case TP_JACKET: Man_Jacket_Cell_Order[nTag] = cValue; break; case TP_JUMPER: Man_Jumper_Cell_Order[nTag] = cValue; break; case TP_KNIT: Man_Knit_Cell_Order[nTag] = cValue; break; case TP_SHIRTS: Man_Shirts_Cell_Order[nTag] = cValue; break; case TP_TOP: Man_Top_Cell_Order[nTag] = cValue; break; case TP_VEST: Man_Vest_Cell_Order[nTag] = cValue; break; case TP_PANTS: Man_Pants_Cell_Order[nTag] = cValue; break; } } else if (rzcombobxWorkSheetDivision->ItemIndex == 1) { // Woman switch (Clothes) { case TP_COAT: Woman_Coat_Cell_Order[nTag] = cValue; break; case TP_JACKET: Woman_Jacket_Cell_Order[nTag] = cValue; break; case TP_JUMPER: Woman_Jumper_Cell_Order[nTag] = cValue; break; case TP_KNIT: Woman_Knit_Cell_Order[nTag] = cValue; break; case TP_SHIRTS: Woman_Shirts_Cell_Order[nTag] = cValue; break; case TP_TOP: Woman_Top_Cell_Order[nTag] = cValue; break; case TP_VEST: Woman_Vest_Cell_Order[nTag] = cValue; break; case TP_ONEPIECE: Woman_OnePiece_Cell_Order[nTag] = cValue; break; case TP_BLOUSE: Woman_Blouse_Cell_Order[nTag] = cValue; break; case TP_PANTS: Woman_Pants_Cell_Order[nTag] = cValue; break; case TP_SKIRT: Woman_Skirt_Cell_Order[nTag] = cValue; break; } } else if (rzcombobxWorkSheetDivision->ItemIndex == 2) { // Child switch (Clothes) { case TP_COAT: Child_Coat_Cell_Order[nTag] = cValue; break; case TP_JACKET: Child_Jacket_Cell_Order[nTag] = cValue; break; case TP_JUMPER: Child_Jumper_Cell_Order[nTag] = cValue; break; case TP_KNIT: Child_Knit_Cell_Order[nTag] = cValue; break; case TP_SHIRTS: Child_Shirts_Cell_Order[nTag] = cValue; break; case TP_TOP: Child_Top_Cell_Order[nTag] = cValue; break; case TP_VEST: Child_Vest_Cell_Order[nTag] = cValue; break; case TP_ONEPIECE: Child_OnePiece_Cell_Order[nTag] = cValue; break; case TP_BLOUSE: Child_Blouse_Cell_Order[nTag] = cValue; break; case TP_CAPE: Child_Cape_Cell_Order[nTag] = cValue; break; case TP_PANTS: Child_Pants_Cell_Order[nTag] = cValue; break; case TP_SKIRT: Child_Skirt_Cell_Order[nTag] = cValue; break; } } if (rzcombobxWorkSheetDivision->ItemIndex == 3) { // Baby switch (Clothes) { case TP_SHIRTS: Baby_Shirts_Cell_Order[nTag] = cValue; break; case TP_ONEPIECE: Baby_OnePiece_Cell_Order[nTag] = cValue; break; case TP_CAPE: Baby_Cape_Cell_Order[nTag] = cValue; break; case TP_ROMPERS: Baby_Rompers_Cell_Order[nTag] = cValue; break; case TP_PANTS: Baby_Pants_Cell_Order[nTag] = cValue; break; case TP_SKIRT: Baby_Skirt_Cell_Order[nTag] = cValue; break; } } } } } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::rzrpdfirebtnCellClick(TObject *Sender) { EType Clothes = TP_NONE; TRzRapidFireButton *rzrpdfirebtnSelectedCell = NULL; bool bValue = false; int nTag = 0; rzrpdfirebtnSelectedCell = dynamic_cast(Sender); if (rzrpdfirebtnSelectedCell) { if (rzrpdfirebtnSelectedCell->Down) rzrpdfirebtnSelectedCell->Caption = "On"; else rzrpdfirebtnSelectedCell->Caption = "Off"; nTag = rzrpdfirebtnSelectedCell->Tag; if (0 <= rzcombobxWorkSheetType->ItemIndex && rzcombobxWorkSheetType->ItemIndex < rzcombobxWorkSheetType->Items->Count && nTag < CELL_COUNT) { Clothes = (EType)rzcombobxWorkSheetType->Items->Objects[rzcombobxWorkSheetType->ItemIndex]; bValue = rzrpdfirebtnSelectedCell->Down; if (rzcombobxWorkSheetDivision->ItemIndex == 0) { // Man switch (Clothes) { case TP_COAT: Man_Coat_Cell_Visible[nTag] = bValue; break; case TP_JACKET: Man_Jacket_Cell_Visible[nTag] = bValue; break; case TP_JUMPER: Man_Jumper_Cell_Visible[nTag] = bValue; break; case TP_KNIT: Man_Knit_Cell_Visible[nTag] = bValue; break; case TP_SHIRTS: Man_Shirts_Cell_Visible[nTag] = bValue; break; case TP_TOP: Man_Top_Cell_Visible[nTag] = bValue; break; case TP_VEST: Man_Vest_Cell_Visible[nTag] = bValue; break; case TP_PANTS: Man_Pants_Cell_Visible[nTag] = bValue; break; } } else if (rzcombobxWorkSheetDivision->ItemIndex == 1) { // Woman switch (Clothes) { case TP_COAT: Woman_Coat_Cell_Visible[nTag] = bValue; break; case TP_JACKET: Woman_Jacket_Cell_Visible[nTag] = bValue; break; case TP_JUMPER: Woman_Jumper_Cell_Visible[nTag] = bValue; break; case TP_KNIT: Woman_Knit_Cell_Visible[nTag] = bValue; break; case TP_SHIRTS: Woman_Shirts_Cell_Visible[nTag] = bValue; break; case TP_TOP: Woman_Top_Cell_Visible[nTag] = bValue; break; case TP_VEST: Woman_Vest_Cell_Visible[nTag] = bValue; break; case TP_ONEPIECE: Woman_OnePiece_Cell_Visible[nTag] = bValue; break; case TP_BLOUSE: Woman_Blouse_Cell_Visible[nTag] = bValue; break; case TP_PANTS: Woman_Pants_Cell_Visible[nTag] = bValue; break; case TP_SKIRT: Woman_Skirt_Cell_Visible[nTag] = bValue; break; } } else if (rzcombobxWorkSheetDivision->ItemIndex == 2) { // Child switch (Clothes) { case TP_COAT: Child_Coat_Cell_Visible[nTag] = bValue; break; case TP_JACKET: Child_Jacket_Cell_Visible[nTag] = bValue; break; case TP_JUMPER: Child_Jumper_Cell_Visible[nTag] = bValue; break; case TP_KNIT: Child_Knit_Cell_Visible[nTag] = bValue; break; case TP_SHIRTS: Child_Shirts_Cell_Visible[nTag] = bValue; break; case TP_TOP: Child_Top_Cell_Visible[nTag] = bValue; break; case TP_VEST: Child_Vest_Cell_Visible[nTag] = bValue; break; case TP_ONEPIECE: Child_OnePiece_Cell_Visible[nTag] = bValue; break; case TP_BLOUSE: Child_Blouse_Cell_Visible[nTag] = bValue; break; case TP_CAPE: Child_Cape_Cell_Visible[nTag] = bValue; break; case TP_PANTS: Child_Pants_Cell_Visible[nTag] = bValue; break; case TP_SKIRT: Child_Skirt_Cell_Visible[nTag] = bValue; break; } } if (rzcombobxWorkSheetDivision->ItemIndex == 3) { // Baby switch (Clothes) { case TP_SHIRTS: Baby_Shirts_Cell_Visible[nTag] = bValue; break; case TP_ONEPIECE: Baby_OnePiece_Cell_Visible[nTag] = bValue; break; case TP_CAPE: Baby_Cape_Cell_Visible[nTag] = bValue; break; case TP_ROMPERS: Baby_Rompers_Cell_Visible[nTag] = bValue; break; case TP_PANTS: Baby_Pants_Cell_Visible[nTag] = bValue; break; case TP_SKIRT: Baby_Skirt_Cell_Visible[nTag] = bValue; break; } } } } } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::rzbitbtnSaveClick(TObject *Sender) { CopyToVecDraw(); // Á¶ÇÕ ¾ÆÀÌÅÛ Á¤º¸ ÀúÀå VecDraw->SaveToCombiItem(DirectoryBin+"\\CombiItem.cdf"); } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::rzbitbtnCloseClick(TObject *Sender) { Close(); } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::CopyFromVecDraw() { for (int i = 0; i < 127; i++) { SilhouetteName[i] = VecDraw->SilhouetteName[i]; SleeveName[i] = VecDraw->SleeveName[i]; CollarName[i] = VecDraw->CollarName[i]; UpperMaterialName[i] = VecDraw->UpperMaterialName[i]; PantsName[i] = VecDraw->PantsName[i]; BeltName[i] = VecDraw->BeltName[i]; LowerMaterialName[i] = VecDraw->LowerMaterialName[i]; } // VecDrawÀÇ Combination¿¡ »ç¿ëÇÏ´Â µ¥ÀÌÅÍ º¹»ç Man_Coat_Sil = VecDraw->Man_Coat_Sil; Man_Coat_Sle = VecDraw->Man_Coat_Sle; Man_Coat_Col = VecDraw->Man_Coat_Col; Man_Coat_Mat = VecDraw->Man_Coat_Mat; Man_Jacket_Sil = VecDraw->Man_Jacket_Sil; Man_Jacket_Sle = VecDraw->Man_Jacket_Sle; Man_Jacket_Col = VecDraw->Man_Jacket_Col; Man_Jacket_Mat = VecDraw->Man_Jacket_Mat; Man_Jumper_Sil = VecDraw->Man_Jumper_Sil; Man_Jumper_Sle = VecDraw->Man_Jumper_Sle; Man_Jumper_Col = VecDraw->Man_Jumper_Col; Man_Jumper_Mat = VecDraw->Man_Jumper_Mat; Man_Knit_Sil = VecDraw->Man_Knit_Sil; Man_Knit_Sle = VecDraw->Man_Knit_Sle; Man_Knit_Col = VecDraw->Man_Knit_Col; Man_Knit_Mat = VecDraw->Man_Knit_Mat; Man_Shirts_Sil = VecDraw->Man_Shirts_Sil; Man_Shirts_Sle = VecDraw->Man_Shirts_Sle; Man_Shirts_Col = VecDraw->Man_Shirts_Col; Man_Shirts_Mat = VecDraw->Man_Shirts_Mat; Man_Top_Sil = VecDraw->Man_Top_Sil; Man_Top_Sle = VecDraw->Man_Top_Sle; Man_Top_Col = VecDraw->Man_Top_Col; Man_Top_Mat = VecDraw->Man_Top_Mat; Man_Vest_Sil = VecDraw->Man_Vest_Sil; Man_Vest_Sle = VecDraw->Man_Vest_Sle; Man_Vest_Col = VecDraw->Man_Vest_Col; Man_Vest_Mat = VecDraw->Man_Vest_Mat; Man_Pants_Sil = VecDraw->Man_Pants_Sil; Man_Pants_Belt = VecDraw->Man_Pants_Belt; Man_Pants_Mat = VecDraw->Man_Pants_Mat; Woman_Coat_Sil = VecDraw->Woman_Coat_Sil; Woman_Coat_Sle = VecDraw->Woman_Coat_Sle; Woman_Coat_Col = VecDraw->Woman_Coat_Col; Woman_Coat_Mat = VecDraw->Woman_Coat_Mat; Woman_Jacket_Sil = VecDraw->Woman_Jacket_Sil; Woman_Jacket_Sle = VecDraw->Woman_Jacket_Sle; Woman_Jacket_Col = VecDraw->Woman_Jacket_Col; Woman_Jacket_Mat = VecDraw->Woman_Jacket_Mat; Woman_Jumper_Sil = VecDraw->Woman_Jumper_Sil; Woman_Jumper_Sle = VecDraw->Woman_Jumper_Sle; Woman_Jumper_Col = VecDraw->Woman_Jumper_Col; Woman_Jumper_Mat = VecDraw->Woman_Jumper_Mat; Woman_Knit_Sil = VecDraw->Woman_Knit_Sil; Woman_Knit_Sle = VecDraw->Woman_Knit_Sle; Woman_Knit_Col = VecDraw->Woman_Knit_Col; Woman_Knit_Mat = VecDraw->Woman_Knit_Mat; Woman_Shirts_Sil = VecDraw->Woman_Shirts_Sil; Woman_Shirts_Sle = VecDraw->Woman_Shirts_Sle; Woman_Shirts_Col = VecDraw->Woman_Shirts_Col; Woman_Shirts_Mat = VecDraw->Woman_Shirts_Mat; Woman_Top_Sil = VecDraw->Woman_Top_Sil; Woman_Top_Sle = VecDraw->Woman_Top_Sle; Woman_Top_Col = VecDraw->Woman_Top_Col; Woman_Top_Mat = VecDraw->Woman_Top_Mat; Woman_Vest_Sil = VecDraw->Woman_Vest_Sil; Woman_Vest_Sle = VecDraw->Woman_Vest_Sle; Woman_Vest_Col = VecDraw->Woman_Vest_Col; Woman_Vest_Mat = VecDraw->Woman_Vest_Mat; Woman_OnePiece_Sil = VecDraw->Woman_OnePiece_Sil; Woman_OnePiece_Sle = VecDraw->Woman_OnePiece_Sle; Woman_OnePiece_Col = VecDraw->Woman_OnePiece_Col; Woman_OnePiece_Mat = VecDraw->Woman_OnePiece_Mat; Woman_Blouse_Sil = VecDraw->Woman_Blouse_Sil; Woman_Blouse_Sle = VecDraw->Woman_Blouse_Sle; Woman_Blouse_Col = VecDraw->Woman_Blouse_Col; Woman_Blouse_Mat = VecDraw->Woman_Blouse_Mat; Woman_Pants_Sil = VecDraw->Woman_Pants_Sil; Woman_Pants_Belt = VecDraw->Woman_Pants_Belt; Woman_Pants_Mat = VecDraw->Woman_Pants_Mat; Woman_Skirt_Sil = VecDraw->Woman_Skirt_Sil; Woman_Skirt_Belt = VecDraw->Woman_Skirt_Belt; Woman_Skirt_Mat = VecDraw->Woman_Skirt_Mat; Child_Coat_Sil = VecDraw->Child_Coat_Sil; Child_Coat_Sle = VecDraw->Child_Coat_Sle; Child_Coat_Col = VecDraw->Child_Coat_Col; Child_Coat_Mat = VecDraw->Child_Coat_Mat; Child_Jacket_Sil = VecDraw->Child_Jacket_Sil; Child_Jacket_Sle = VecDraw->Child_Jacket_Sle; Child_Jacket_Col = VecDraw->Child_Jacket_Col; Child_Jacket_Mat = VecDraw->Child_Jacket_Mat; Child_Jumper_Sil = VecDraw->Child_Jumper_Sil; Child_Jumper_Sle = VecDraw->Child_Jumper_Sle; Child_Jumper_Col = VecDraw->Child_Jumper_Col; Child_Jumper_Mat = VecDraw->Child_Jumper_Mat; Child_Knit_Sil = VecDraw->Child_Knit_Sil; Child_Knit_Sle = VecDraw->Child_Knit_Sle; Child_Knit_Col = VecDraw->Child_Knit_Col; Child_Knit_Mat = VecDraw->Child_Knit_Mat; Child_Shirts_Sil = VecDraw->Child_Shirts_Sil; Child_Shirts_Sle = VecDraw->Child_Shirts_Sle; Child_Shirts_Col = VecDraw->Child_Shirts_Col; Child_Shirts_Mat = VecDraw->Child_Shirts_Mat; Child_Top_Sil = VecDraw->Child_Top_Sil; Child_Top_Sle = VecDraw->Child_Top_Sle; Child_Top_Col = VecDraw->Child_Top_Col; Child_Top_Mat = VecDraw->Child_Top_Mat; Child_Vest_Sil = VecDraw->Child_Vest_Sil; Child_Vest_Sle = VecDraw->Child_Vest_Sle; Child_Vest_Col = VecDraw->Child_Vest_Col; Child_Vest_Mat = VecDraw->Child_Vest_Mat; Child_OnePiece_Sil = VecDraw->Child_OnePiece_Sil; Child_OnePiece_Sle = VecDraw->Child_OnePiece_Sle; Child_OnePiece_Col = VecDraw->Child_OnePiece_Col; Child_OnePiece_Mat = VecDraw->Child_OnePiece_Mat; Child_Blouse_Sil = VecDraw->Child_Blouse_Sil; Child_Blouse_Sle = VecDraw->Child_Blouse_Sle; Child_Blouse_Col = VecDraw->Child_Blouse_Col; Child_Blouse_Mat = VecDraw->Child_Blouse_Mat; Child_Cape_Sil = VecDraw->Child_Cape_Sil; Child_Cape_Sle = VecDraw->Child_Cape_Sle; Child_Cape_Col = VecDraw->Child_Cape_Col; Child_Cape_Mat = VecDraw->Child_Cape_Mat; Child_Pants_Sil = VecDraw->Child_Pants_Sil; Child_Pants_Belt = VecDraw->Child_Pants_Belt; Child_Pants_Mat = VecDraw->Child_Pants_Mat; Child_Skirt_Sil = VecDraw->Child_Skirt_Sil; Child_Skirt_Belt = VecDraw->Child_Skirt_Belt; Child_Skirt_Mat = VecDraw->Child_Skirt_Mat; Baby_Shirts_Sil = VecDraw->Baby_Shirts_Sil; Baby_Shirts_Sle = VecDraw->Baby_Shirts_Sle; Baby_Shirts_Col = VecDraw->Baby_Shirts_Col; Baby_Shirts_Mat = VecDraw->Baby_Shirts_Mat; Baby_OnePiece_Sil = VecDraw->Baby_OnePiece_Sil; Baby_OnePiece_Sle = VecDraw->Baby_OnePiece_Sle; Baby_OnePiece_Col = VecDraw->Baby_OnePiece_Col; Baby_OnePiece_Mat = VecDraw->Baby_OnePiece_Mat; Baby_Cape_Sil = VecDraw->Baby_Cape_Sil; Baby_Cape_Sle = VecDraw->Baby_Cape_Sle; Baby_Cape_Col = VecDraw->Baby_Cape_Col; Baby_Cape_Mat = VecDraw->Baby_Cape_Mat; Baby_Rompers_Sil = VecDraw->Baby_Rompers_Sil; Baby_Rompers_Sle = VecDraw->Baby_Rompers_Sle; Baby_Rompers_Col = VecDraw->Baby_Rompers_Col; Baby_Rompers_Mat = VecDraw->Baby_Rompers_Mat; Baby_Pants_Sil = VecDraw->Baby_Pants_Sil; Baby_Pants_Belt = VecDraw->Baby_Pants_Belt; Baby_Pants_Mat = VecDraw->Baby_Pants_Mat; Baby_Skirt_Sil = VecDraw->Baby_Skirt_Sil; Baby_Skirt_Belt = VecDraw->Baby_Skirt_Belt; Baby_Skirt_Mat = VecDraw->Baby_Skirt_Mat; SilhouetteCount = VecDraw->SilhouetteCount; SleeveCount = VecDraw->SleeveCount; CollarCount = VecDraw->CollarCount; UpperMaterialCount = VecDraw->UpperMaterialCount; PantsCount = VecDraw->PantsCount; BeltCount = VecDraw->BeltCount; LowerMaterialCount = VecDraw->LowerMaterialCount; memcpy(Man_Coat_Cell_Order, VecDraw->Man_Coat_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Man_Jacket_Cell_Order, VecDraw->Man_Jacket_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Man_Jumper_Cell_Order, VecDraw->Man_Jumper_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Man_Knit_Cell_Order, VecDraw->Man_Knit_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Man_Shirts_Cell_Order, VecDraw->Man_Shirts_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Man_Top_Cell_Order, VecDraw->Man_Top_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Man_Vest_Cell_Order, VecDraw->Man_Vest_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Man_Pants_Cell_Order, VecDraw->Man_Pants_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Woman_Coat_Cell_Order, VecDraw->Woman_Coat_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Woman_Jacket_Cell_Order, VecDraw->Woman_Jacket_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Woman_Jumper_Cell_Order, VecDraw->Woman_Jumper_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Woman_Knit_Cell_Order, VecDraw->Woman_Knit_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Woman_Shirts_Cell_Order, VecDraw->Woman_Shirts_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Woman_Top_Cell_Order, VecDraw->Woman_Top_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Woman_Vest_Cell_Order, VecDraw->Woman_Vest_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Woman_OnePiece_Cell_Order, VecDraw->Woman_OnePiece_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Woman_Blouse_Cell_Order, VecDraw->Woman_Blouse_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Woman_Pants_Cell_Order, VecDraw->Woman_Pants_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Woman_Skirt_Cell_Order, VecDraw->Woman_Skirt_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Child_Coat_Cell_Order, VecDraw->Child_Coat_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Child_Jacket_Cell_Order, VecDraw->Child_Jacket_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Child_Jumper_Cell_Order, VecDraw->Child_Jumper_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Child_Knit_Cell_Order, VecDraw->Child_Knit_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Child_Shirts_Cell_Order, VecDraw->Child_Shirts_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Child_Top_Cell_Order, VecDraw->Child_Top_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Child_Vest_Cell_Order, VecDraw->Child_Vest_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Child_OnePiece_Cell_Order, VecDraw->Child_OnePiece_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Child_Blouse_Cell_Order, VecDraw->Child_Blouse_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Child_Cape_Cell_Order, VecDraw->Man_Coat_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Child_Pants_Cell_Order, VecDraw->Child_Pants_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Child_Skirt_Cell_Order, VecDraw->Child_Skirt_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Baby_Shirts_Cell_Order, VecDraw->Baby_Shirts_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Baby_OnePiece_Cell_Order, VecDraw->Baby_OnePiece_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Baby_Cape_Cell_Order, VecDraw->Baby_Cape_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Baby_Rompers_Cell_Order, VecDraw->Baby_Rompers_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Baby_Pants_Cell_Order, VecDraw->Baby_Pants_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Baby_Skirt_Cell_Order, VecDraw->Baby_Skirt_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Man_Coat_Cell_Visible, VecDraw->Man_Coat_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Man_Jacket_Cell_Visible, VecDraw->Man_Jacket_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Man_Jumper_Cell_Visible, VecDraw->Man_Jumper_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Man_Knit_Cell_Visible, VecDraw->Man_Knit_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Man_Shirts_Cell_Visible, VecDraw->Man_Shirts_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Man_Top_Cell_Visible, VecDraw->Man_Top_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Man_Vest_Cell_Visible, VecDraw->Man_Vest_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Man_Pants_Cell_Visible, VecDraw->Man_Pants_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Woman_Coat_Cell_Visible, VecDraw->Woman_Coat_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Woman_Jacket_Cell_Visible, VecDraw->Woman_Jacket_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Woman_Jumper_Cell_Visible, VecDraw->Woman_Jumper_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Woman_Knit_Cell_Visible, VecDraw->Woman_Knit_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Woman_Shirts_Cell_Visible, VecDraw->Woman_Shirts_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Woman_Top_Cell_Visible, VecDraw->Woman_Top_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Woman_Vest_Cell_Visible, VecDraw->Woman_Vest_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Woman_OnePiece_Cell_Visible, VecDraw->Woman_OnePiece_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Woman_Blouse_Cell_Visible, VecDraw->Woman_Blouse_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Woman_Pants_Cell_Visible, VecDraw->Woman_Pants_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Woman_Skirt_Cell_Visible, VecDraw->Woman_Skirt_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Child_Coat_Cell_Visible, VecDraw->Child_Coat_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Child_Jacket_Cell_Visible, VecDraw->Child_Jacket_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Child_Jumper_Cell_Visible, VecDraw->Child_Jumper_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Child_Knit_Cell_Visible, VecDraw->Child_Knit_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Child_Shirts_Cell_Visible, VecDraw->Child_Shirts_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Child_Top_Cell_Visible, VecDraw->Child_Top_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Child_Vest_Cell_Visible, VecDraw->Child_Vest_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Child_OnePiece_Cell_Visible, VecDraw->Child_OnePiece_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Child_Blouse_Cell_Visible, VecDraw->Child_Blouse_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Child_Cape_Cell_Visible, VecDraw->Man_Coat_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Child_Pants_Cell_Visible, VecDraw->Child_Pants_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Child_Skirt_Cell_Visible, VecDraw->Child_Skirt_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Baby_Shirts_Cell_Visible, VecDraw->Baby_Shirts_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Baby_OnePiece_Cell_Visible, VecDraw->Baby_OnePiece_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Baby_Cape_Cell_Visible, VecDraw->Baby_Cape_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Baby_Rompers_Cell_Visible, VecDraw->Baby_Rompers_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Baby_Pants_Cell_Visible, VecDraw->Baby_Pants_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(Baby_Skirt_Cell_Visible, VecDraw->Baby_Skirt_Cell_Visible, sizeof(bool)*CELL_COUNT); } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::CopyToVecDraw() { for (int i = 1; i < 127; i++) { VecDraw->SilhouetteName[i] = SilhouetteName[i]; VecDraw->SleeveName[i] = SleeveName[i]; VecDraw->CollarName[i] = CollarName[i]; VecDraw->UpperMaterialName[i] = UpperMaterialName[i]; VecDraw->PantsName[i] = PantsName[i]; VecDraw->BeltName[i] = BeltName[i]; VecDraw->LowerMaterialName[i] = LowerMaterialName[i]; } VecDraw->Man_Coat_Sil = Man_Coat_Sil; VecDraw->Man_Coat_Sle = Man_Coat_Sle; VecDraw->Man_Coat_Col = Man_Coat_Col; VecDraw->Man_Coat_Mat = Man_Coat_Mat; VecDraw->Man_Jacket_Sil = Man_Jacket_Sil; VecDraw->Man_Jacket_Sle = Man_Jacket_Sle; VecDraw->Man_Jacket_Col = Man_Jacket_Col; VecDraw->Man_Jacket_Mat = Man_Jacket_Mat; VecDraw->Man_Jumper_Sil = Man_Jumper_Sil; VecDraw->Man_Jumper_Sle = Man_Jumper_Sle; VecDraw->Man_Jumper_Col = Man_Jumper_Col; VecDraw->Man_Jumper_Mat = Man_Jumper_Mat; VecDraw->Man_Knit_Sil = Man_Knit_Sil; VecDraw->Man_Knit_Sle = Man_Knit_Sle; VecDraw->Man_Knit_Col = Man_Knit_Col; VecDraw->Man_Knit_Mat = Man_Knit_Mat; VecDraw->Man_Shirts_Sil = Man_Shirts_Sil; VecDraw->Man_Shirts_Sle = Man_Shirts_Sle; VecDraw->Man_Shirts_Col = Man_Shirts_Col; VecDraw->Man_Shirts_Mat = Man_Shirts_Mat; VecDraw->Man_Top_Sil = Man_Top_Sil; VecDraw->Man_Top_Sle = Man_Top_Sle; VecDraw->Man_Top_Col = Man_Top_Col; VecDraw->Man_Top_Mat = Man_Top_Mat; VecDraw->Man_Vest_Sil = Man_Vest_Sil; VecDraw->Man_Vest_Sle = Man_Vest_Sle; VecDraw->Man_Vest_Col = Man_Vest_Col; VecDraw->Man_Vest_Mat = Man_Vest_Mat; VecDraw->Man_Pants_Sil = Man_Pants_Sil; VecDraw->Man_Pants_Belt = Man_Pants_Belt; VecDraw->Man_Pants_Mat = Man_Pants_Mat; VecDraw->Woman_Coat_Sil = Woman_Coat_Sil; VecDraw->Woman_Coat_Sle = Woman_Coat_Sle; VecDraw->Woman_Coat_Col = Woman_Coat_Col; VecDraw->Woman_Coat_Mat = Woman_Coat_Mat; VecDraw->Woman_Jacket_Sil = Woman_Jacket_Sil; VecDraw->Woman_Jacket_Sle = Woman_Jacket_Sle; VecDraw->Woman_Jacket_Col = Woman_Jacket_Col; VecDraw->Woman_Jacket_Mat = Woman_Jacket_Mat; VecDraw->Woman_Jumper_Sil = Woman_Jumper_Sil; VecDraw->Woman_Jumper_Sle = Woman_Jumper_Sle; VecDraw->Woman_Jumper_Col = Woman_Jumper_Col; VecDraw->Woman_Jumper_Mat = Woman_Jumper_Mat; VecDraw->Woman_Knit_Sil = Woman_Knit_Sil; VecDraw->Woman_Knit_Sle = Woman_Knit_Sle; VecDraw->Woman_Knit_Col = Woman_Knit_Col; VecDraw->Woman_Knit_Mat = Woman_Knit_Mat; VecDraw->Woman_Shirts_Sil = Woman_Shirts_Sil; VecDraw->Woman_Shirts_Sle = Woman_Shirts_Sle; VecDraw->Woman_Shirts_Col = Woman_Shirts_Col; VecDraw->Woman_Shirts_Mat = Woman_Shirts_Mat; VecDraw->Woman_Top_Sil = Woman_Top_Sil; VecDraw->Woman_Top_Sle = Woman_Top_Sle; VecDraw->Woman_Top_Col = Woman_Top_Col; VecDraw->Woman_Top_Mat = Woman_Top_Mat; VecDraw->Woman_Vest_Sil = Woman_Vest_Sil; VecDraw->Woman_Vest_Sle = Woman_Vest_Sle; VecDraw->Woman_Vest_Col = Woman_Vest_Col; VecDraw->Woman_Vest_Mat = Woman_Vest_Mat; VecDraw->Woman_OnePiece_Sil = Woman_OnePiece_Sil; VecDraw->Woman_OnePiece_Sle = Woman_OnePiece_Sle; VecDraw->Woman_OnePiece_Col = Woman_OnePiece_Col; VecDraw->Woman_OnePiece_Mat = Woman_OnePiece_Mat; VecDraw->Woman_Blouse_Sil = Woman_Blouse_Sil; VecDraw->Woman_Blouse_Sle = Woman_Blouse_Sle; VecDraw->Woman_Blouse_Col = Woman_Blouse_Col; VecDraw->Woman_Blouse_Mat = Woman_Blouse_Mat; VecDraw->Woman_Pants_Sil = Woman_Pants_Sil; VecDraw->Woman_Pants_Belt = Woman_Pants_Belt; VecDraw->Woman_Pants_Mat = Woman_Pants_Mat; VecDraw->Woman_Skirt_Sil = Woman_Skirt_Sil; VecDraw->Woman_Skirt_Belt = Woman_Skirt_Belt; VecDraw->Woman_Skirt_Mat = Woman_Skirt_Mat; VecDraw->Child_Coat_Sil = Child_Coat_Sil; VecDraw->Child_Coat_Sle = Child_Coat_Sle; VecDraw->Child_Coat_Col = Child_Coat_Col; VecDraw->Child_Coat_Mat = Child_Coat_Mat; VecDraw->Child_Jacket_Sil = Child_Jacket_Sil; VecDraw->Child_Jacket_Sle = Child_Jacket_Sle; VecDraw->Child_Jacket_Col = Child_Jacket_Col; VecDraw->Child_Jacket_Mat = Child_Jacket_Mat; VecDraw->Child_Jumper_Sil = Child_Jumper_Sil; VecDraw->Child_Jumper_Sle = Child_Jumper_Sle; VecDraw->Child_Jumper_Col = Child_Jumper_Col; VecDraw->Child_Jumper_Mat = Child_Jumper_Mat; VecDraw->Child_Knit_Sil = Child_Knit_Sil; VecDraw->Child_Knit_Sle = Child_Knit_Sle; VecDraw->Child_Knit_Col = Child_Knit_Col; VecDraw->Child_Knit_Mat = Child_Knit_Mat; VecDraw->Child_Shirts_Sil = Child_Shirts_Sil; VecDraw->Child_Shirts_Sle = Child_Shirts_Sle; VecDraw->Child_Shirts_Col = Child_Shirts_Col; VecDraw->Child_Shirts_Mat = Child_Shirts_Mat; VecDraw->Child_Top_Sil = Child_Top_Sil; VecDraw->Child_Top_Sle = Child_Top_Sle; VecDraw->Child_Top_Col = Child_Top_Col; VecDraw->Child_Top_Mat = Child_Top_Mat; VecDraw->Child_Vest_Sil = Child_Vest_Sil; VecDraw->Child_Vest_Sle = Child_Vest_Sle; VecDraw->Child_Vest_Col = Child_Vest_Col; VecDraw->Child_Vest_Mat = Child_Vest_Mat; VecDraw->Child_OnePiece_Sil = Child_OnePiece_Sil; VecDraw->Child_OnePiece_Sle = Child_OnePiece_Sle; VecDraw->Child_OnePiece_Col = Child_OnePiece_Col; VecDraw->Child_OnePiece_Mat = Child_OnePiece_Mat; VecDraw->Child_Blouse_Sil = Child_Blouse_Sil; VecDraw->Child_Blouse_Sle = Child_Blouse_Sle; VecDraw->Child_Blouse_Col = Child_Blouse_Col; VecDraw->Child_Blouse_Mat = Child_Blouse_Mat; VecDraw->Child_Cape_Sil = Child_Cape_Sil; VecDraw->Child_Cape_Sle = Child_Cape_Sle; VecDraw->Child_Cape_Col = Child_Cape_Col; VecDraw->Child_Cape_Mat = Child_Cape_Mat; VecDraw->Child_Pants_Sil = Child_Pants_Sil; VecDraw->Child_Pants_Belt = Child_Pants_Belt; VecDraw->Child_Pants_Mat = Child_Pants_Mat; VecDraw->Child_Skirt_Sil = Child_Skirt_Sil; VecDraw->Child_Skirt_Belt = Child_Skirt_Belt; VecDraw->Child_Skirt_Mat = Child_Skirt_Mat; VecDraw->Baby_Shirts_Sil = Baby_Shirts_Sil; VecDraw->Baby_Shirts_Sle = Baby_Shirts_Sle; VecDraw->Baby_Shirts_Col = Baby_Shirts_Col; VecDraw->Baby_Shirts_Mat = Baby_Shirts_Mat; VecDraw->Baby_OnePiece_Sil = Baby_OnePiece_Sil; VecDraw->Baby_OnePiece_Sle = Baby_OnePiece_Sle; VecDraw->Baby_OnePiece_Col = Baby_OnePiece_Col; VecDraw->Baby_OnePiece_Mat = Baby_OnePiece_Mat; VecDraw->Baby_Cape_Sil = Baby_Cape_Sil; VecDraw->Baby_Cape_Sle = Baby_Cape_Sle; VecDraw->Baby_Cape_Col = Baby_Cape_Col; VecDraw->Baby_Cape_Mat = Baby_Cape_Mat; VecDraw->Baby_Rompers_Sil = Baby_Rompers_Sil; VecDraw->Baby_Rompers_Sle = Baby_Rompers_Sle; VecDraw->Baby_Rompers_Col = Baby_Rompers_Col; VecDraw->Baby_Rompers_Mat = Baby_Rompers_Mat; VecDraw->Baby_Pants_Sil = Baby_Pants_Sil; VecDraw->Baby_Pants_Belt = Baby_Pants_Belt; VecDraw->Baby_Pants_Mat = Baby_Pants_Mat; VecDraw->Baby_Skirt_Sil = Baby_Skirt_Sil; VecDraw->Baby_Skirt_Belt = Baby_Skirt_Belt; VecDraw->Baby_Skirt_Mat = Baby_Skirt_Mat; VecDraw->SilhouetteCount = SilhouetteCount; VecDraw->SleeveCount = SleeveCount; VecDraw->CollarCount = CollarCount; VecDraw->UpperMaterialCount = UpperMaterialCount; VecDraw->PantsCount = PantsCount; VecDraw->BeltCount = BeltCount; VecDraw->LowerMaterialCount = LowerMaterialCount; memcpy(VecDraw->Man_Coat_Cell_Order, Man_Coat_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Man_Jacket_Cell_Order, Man_Jacket_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Man_Jumper_Cell_Order, Man_Jumper_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Man_Knit_Cell_Order, Man_Knit_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Man_Shirts_Cell_Order, Man_Shirts_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Man_Top_Cell_Order, Man_Top_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Man_Vest_Cell_Order, Man_Vest_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Man_Pants_Cell_Order, Man_Pants_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Woman_Coat_Cell_Order, Woman_Coat_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Woman_Jacket_Cell_Order, Woman_Jacket_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Woman_Jumper_Cell_Order, Woman_Jumper_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Woman_Knit_Cell_Order, Woman_Knit_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Woman_Shirts_Cell_Order, Woman_Shirts_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Woman_Top_Cell_Order, Woman_Top_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Woman_Vest_Cell_Order, Woman_Vest_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Woman_OnePiece_Cell_Order, Woman_OnePiece_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Woman_Blouse_Cell_Order, Woman_Blouse_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Woman_Pants_Cell_Order, Woman_Pants_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Woman_Skirt_Cell_Order, Woman_Skirt_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Child_Coat_Cell_Order, Child_Coat_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Child_Jacket_Cell_Order, Child_Jacket_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Child_Jumper_Cell_Order, Child_Jumper_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Child_Knit_Cell_Order, Child_Knit_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Child_Shirts_Cell_Order, Child_Shirts_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Child_Top_Cell_Order, Child_Top_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Child_Vest_Cell_Order, Child_Vest_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Child_OnePiece_Cell_Order, Child_OnePiece_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Child_Blouse_Cell_Order, Child_Blouse_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Child_Cape_Cell_Order, Man_Coat_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Child_Pants_Cell_Order, Child_Pants_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Child_Skirt_Cell_Order, Child_Skirt_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Baby_Shirts_Cell_Order, Baby_Shirts_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Baby_OnePiece_Cell_Order, Baby_OnePiece_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Baby_Cape_Cell_Order, Baby_Cape_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Baby_Rompers_Cell_Order, Baby_Rompers_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Baby_Pants_Cell_Order, Baby_Pants_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Baby_Skirt_Cell_Order, Baby_Skirt_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(VecDraw->Man_Coat_Cell_Visible, Man_Coat_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Man_Jacket_Cell_Visible, Man_Jacket_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Man_Jumper_Cell_Visible, Man_Jumper_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Man_Knit_Cell_Visible, Man_Knit_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Man_Shirts_Cell_Visible, Man_Shirts_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Man_Top_Cell_Visible, Man_Top_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Man_Vest_Cell_Visible, Man_Vest_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Man_Pants_Cell_Visible, Man_Pants_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Woman_Coat_Cell_Visible, Woman_Coat_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Woman_Jacket_Cell_Visible, Woman_Jacket_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Woman_Jumper_Cell_Visible, Woman_Jumper_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Woman_Knit_Cell_Visible, Woman_Knit_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Woman_Shirts_Cell_Visible, Woman_Shirts_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Woman_Top_Cell_Visible, Woman_Top_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Woman_Vest_Cell_Visible, Woman_Vest_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Woman_OnePiece_Cell_Visible, Woman_OnePiece_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Woman_Blouse_Cell_Visible, Woman_Blouse_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Woman_Pants_Cell_Visible, Woman_Pants_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Woman_Skirt_Cell_Visible, Woman_Skirt_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Child_Coat_Cell_Visible, Child_Coat_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Child_Jacket_Cell_Visible, Child_Jacket_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Child_Jumper_Cell_Visible, Child_Jumper_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Child_Knit_Cell_Visible, Child_Knit_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Child_Shirts_Cell_Visible, Child_Shirts_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Child_Top_Cell_Visible, Child_Top_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Child_Vest_Cell_Visible, Child_Vest_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Child_OnePiece_Cell_Visible, Child_OnePiece_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Child_Blouse_Cell_Visible, Child_Blouse_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Child_Cape_Cell_Visible, Man_Coat_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Child_Pants_Cell_Visible, Child_Pants_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Child_Skirt_Cell_Visible, Child_Skirt_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Baby_Shirts_Cell_Visible, Baby_Shirts_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Baby_OnePiece_Cell_Visible, Baby_OnePiece_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Baby_Cape_Cell_Visible, Baby_Cape_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Baby_Rompers_Cell_Visible, Baby_Rompers_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Baby_Pants_Cell_Visible, Baby_Pants_Cell_Visible, sizeof(bool)*CELL_COUNT); memcpy(VecDraw->Baby_Skirt_Cell_Visible, Baby_Skirt_Cell_Visible, sizeof(bool)*CELL_COUNT); } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::ChangeDivision(TRzComboBox *rzcombobxDivision, TRzComboBox *rzcombobxUpperLower, TRzComboBox *rzcombobxType) { rzcombobxType->Clear(); CombiSet ClothesSet; switch (rzcombobxDivision->ItemIndex) { case 0: // Man if (rzcombobxUpperLower->ItemIndex == 0) { // »óÀÇ ClothesSet = VecDraw->Man_Upper; } else if (rzcombobxUpperLower->ItemIndex == 1) { // ÇÏÀÇ ClothesSet = VecDraw->Man_Lower; } break; case 1: // Woman if (rzcombobxUpperLower->ItemIndex == 0) { // »óÀÇ ClothesSet = VecDraw->Woman_Upper; } else if (rzcombobxUpperLower->ItemIndex == 1) { // ÇÏÀÇ ClothesSet = VecDraw->Woman_Lower; } break; case 2: // Child if (rzcombobxUpperLower->ItemIndex == 0) { // »óÀÇ ClothesSet = VecDraw->Child_Upper; } else if (rzcombobxUpperLower->ItemIndex == 1) { // ÇÏÀÇ ClothesSet = VecDraw->Child_Lower; } break; case 3: // Baby if (rzcombobxUpperLower->ItemIndex == 0) { // »óÀÇ ClothesSet = VecDraw->Baby_Upper; } else if (rzcombobxUpperLower->ItemIndex == 1) { // ÇÏÀÇ ClothesSet = VecDraw->Baby_Lower; } break; } rzcombobxType->Clear(); for (int i = TP_NONE; i < TP_LAST; i++) { if (ClothesSet.Contains(i)) { rzcombobxType->AddItem(CombiForm->StrType[i], (TObject *)i); } } rzcombobxType->ItemIndex = 0; } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::ChangeUpperLower(TRzComboBox *rzcombobxUpperLower, TRzComboBox *rzcombobxPart) { if (rzcombobxUpperLower && rzcombobxPart) { rzcombobxPart->Clear(); if (rzcombobxUpperLower->ItemIndex == 0) { // »óÀÇ rzcombobxPart->AddItem(IDS_UPPERSILHOUETTE, NULL); rzcombobxPart->AddItem(IDS_SLEEVE, NULL); rzcombobxPart->AddItem(IDS_COLLAR, NULL); rzcombobxPart->AddItem(IDS_UPPERSUBMATERIAL, NULL); } else if (rzcombobxUpperLower->ItemIndex == 1) { // ÇÏÀÇ rzcombobxPart->AddItem(IDS_BOTTOMSSILHOUETTE, NULL); rzcombobxPart->AddItem(IDS_BELT, NULL); rzcombobxPart->AddItem(IDS_BOTTOMSSUBMATERIAL, NULL); } rzcombobxPart->ItemIndex = 0; } } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::ChangeClothes() { EType Clothes = TP_NONE; int nCount = 0; if (0 <= rzcombobxClothesType->ItemIndex && rzcombobxClothesType->ItemIndex < rzcombobxClothesType->Items->Count) { Clothes = (EType)rzcombobxClothesType->Items->Objects[rzcombobxClothesType->ItemIndex]; if (rzcombobxClothesDivision->ItemIndex == 0) { // Man switch (Clothes) { case TP_COAT: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Man_Coat_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Man_Coat_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Man_Coat_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Man_Coat_Mat; break; case TP_JACKET: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Man_Jacket_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Man_Jacket_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Man_Jacket_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Man_Jacket_Mat; break; case TP_JUMPER: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Man_Jumper_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Man_Jumper_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Man_Jumper_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Man_Jumper_Mat; break; case TP_KNIT: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Man_Knit_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Man_Knit_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Man_Knit_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Man_Knit_Mat; break; case TP_SHIRTS: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Man_Shirts_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Man_Shirts_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Man_Shirts_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Man_Shirts_Mat; break; case TP_TOP: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Man_Top_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Man_Top_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Man_Top_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Man_Top_Mat; break; case TP_VEST: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Man_Vest_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Man_Vest_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Man_Vest_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Man_Vest_Mat; break; case TP_PANTS: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Man_Pants_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Man_Pants_Belt; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Man_Pants_Mat; break; } } else if (rzcombobxClothesDivision->ItemIndex == 1) { // Woman switch (Clothes) { case TP_COAT: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Woman_Coat_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Woman_Coat_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Woman_Coat_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Woman_Coat_Mat; break; case TP_JACKET: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Woman_Jacket_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Woman_Jacket_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Woman_Jacket_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Woman_Jacket_Mat; break; case TP_JUMPER: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Woman_Jumper_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Woman_Jumper_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Woman_Jumper_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Woman_Jumper_Mat; break; case TP_KNIT: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Woman_Knit_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Woman_Knit_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Woman_Knit_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Woman_Knit_Mat; break; case TP_SHIRTS: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Woman_Shirts_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Woman_Shirts_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Woman_Shirts_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Woman_Shirts_Mat; break; case TP_TOP: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Woman_Top_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Woman_Top_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Woman_Top_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Woman_Top_Mat; break; case TP_VEST: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Woman_Vest_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Woman_Vest_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Woman_Vest_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Woman_Vest_Mat; break; case TP_ONEPIECE: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Woman_OnePiece_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Woman_OnePiece_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Woman_OnePiece_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Woman_OnePiece_Mat; break; case TP_BLOUSE: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Woman_Blouse_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Woman_Blouse_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Woman_Blouse_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Woman_Blouse_Mat; break; case TP_PANTS: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Woman_Pants_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Woman_Pants_Belt; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Woman_Pants_Mat; break; case TP_SKIRT: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Woman_Skirt_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Woman_Skirt_Belt; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Woman_Skirt_Mat; break; } } else if (rzcombobxClothesDivision->ItemIndex == 2) { // Child switch (Clothes) { case TP_COAT: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Child_Coat_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Child_Coat_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Child_Coat_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Child_Coat_Mat; break; case TP_JACKET: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Child_Jacket_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Child_Jacket_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Child_Jacket_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Child_Jacket_Mat; break; case TP_JUMPER: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Child_Jumper_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Child_Jumper_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Child_Jumper_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Child_Jumper_Mat; break; case TP_KNIT: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Child_Knit_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Child_Knit_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Child_Knit_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Child_Knit_Mat; break; case TP_SHIRTS: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Child_Shirts_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Child_Shirts_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Child_Shirts_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Child_Shirts_Mat; break; case TP_TOP: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Child_Top_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Child_Top_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Child_Top_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Child_Top_Mat; break; case TP_VEST: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Child_Vest_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Child_Vest_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Child_Vest_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Child_Vest_Mat; break; case TP_ONEPIECE: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Child_OnePiece_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Child_OnePiece_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Child_OnePiece_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Child_OnePiece_Mat; break; case TP_BLOUSE: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Child_Blouse_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Child_Blouse_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Child_Blouse_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Child_Blouse_Mat; break; case TP_CAPE: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Child_Cape_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Child_Cape_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Child_Cape_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Child_Cape_Mat; break; case TP_PANTS: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Child_Pants_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Child_Pants_Belt; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Child_Pants_Mat; break; case TP_SKIRT: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Child_Skirt_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Child_Skirt_Belt; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Child_Skirt_Mat; break; } } if (rzcombobxClothesDivision->ItemIndex == 3) { // Baby switch (Clothes) { case TP_SHIRTS: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Baby_Shirts_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Baby_Shirts_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Baby_Shirts_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Baby_Shirts_Mat; break; case TP_ONEPIECE: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Baby_OnePiece_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Baby_OnePiece_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Baby_OnePiece_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Baby_OnePiece_Mat; break; case TP_CAPE: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Baby_Cape_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Baby_Cape_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Baby_Cape_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Baby_Cape_Mat; break; case TP_ROMPERS: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Baby_Rompers_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Baby_Rompers_Sle; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Baby_Rompers_Col; else if (rzcombobxClothesPart->ItemIndex == 3) CurrentSet = Baby_Rompers_Mat; break; case TP_PANTS: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Baby_Pants_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Baby_Pants_Belt; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Baby_Pants_Mat; break; case TP_SKIRT: if (rzcombobxClothesPart->ItemIndex == 0) CurrentSet = Baby_Skirt_Sil; else if (rzcombobxClothesPart->ItemIndex == 1) CurrentSet = Baby_Skirt_Belt; else if (rzcombobxClothesPart->ItemIndex == 2) CurrentSet = Baby_Skirt_Mat; break; } } } if (Clothes != TP_NONE) { rzlstbxClothesItemList->Clear(); if (Clothes != TP_PANTS && Clothes != TP_SKIRT) { if (rzcombobxClothesPart->ItemIndex == 0) nCount = SilhouetteCount; else if (rzcombobxClothesPart->ItemIndex == 1) nCount = SleeveCount; else if (rzcombobxClothesPart->ItemIndex == 2) nCount = CollarCount; else if (rzcombobxClothesPart->ItemIndex == 3) nCount = UpperMaterialCount; for (int i = 0; i < nCount; i++) { // »óÀÇ if (CurrentSet.Contains(i)) { if (rzcombobxClothesPart->ItemIndex == 0) rzlstbxClothesItemList->AddItem(SilhouetteName[i], (TObject *)i); else if (rzcombobxClothesPart->ItemIndex == 1) rzlstbxClothesItemList->AddItem(SleeveName[i], (TObject *)i); else if (rzcombobxClothesPart->ItemIndex == 2) rzlstbxClothesItemList->AddItem(CollarName[i], (TObject *)i); else if (rzcombobxClothesPart->ItemIndex == 3) rzlstbxClothesItemList->AddItem(UpperMaterialName[i], (TObject *)i); } } } else { if (rzcombobxClothesPart->ItemIndex == 0) nCount = PantsCount; else if (rzcombobxClothesPart->ItemIndex == 1) nCount = CollarCount; else if (rzcombobxClothesPart->ItemIndex == 2) nCount = LowerMaterialCount; for (int i = 0; i < nCount; i++) { // ÇÏÀÇ if (CurrentSet.Contains(i)) { if (rzcombobxClothesPart->ItemIndex == 0) rzlstbxClothesItemList->AddItem(PantsName[i], (TObject *)i); else if (rzcombobxClothesPart->ItemIndex == 1) rzlstbxClothesItemList->AddItem(BeltName[i], (TObject *)i); else if (rzcombobxClothesPart->ItemIndex == 2) rzlstbxClothesItemList->AddItem(LowerMaterialName[i], (TObject *)i); } } } } } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::ChangeType(TRzComboBox *rzcombobxPart, TRzComboBox *rzcombobxUpperLower, TRzListBox *rzlstbxPartItemList) { int nCount = 0; if (rzcombobxPart && rzcombobxUpperLower && rzlstbxPartItemList) { rzlstbxPartItemList->Clear(); if (rzcombobxUpperLower->ItemIndex == 0) { // »óÀÇ if (rzcombobxPart->ItemIndex == 0) nCount = SilhouetteCount; else if (rzcombobxPart->ItemIndex == 1) nCount = SleeveCount; else if (rzcombobxPart->ItemIndex == 2) nCount = CollarCount; else if (rzcombobxPart->ItemIndex == 3) nCount = UpperMaterialCount; for (int i = 0; i < nCount; i++) { if (rzcombobxPart->ItemIndex == 0) { rzlstbxPartItemList->AddItem(SilhouetteName[i], (TObject *)i); } else if (rzcombobxPart->ItemIndex == 1) { rzlstbxPartItemList->AddItem(SleeveName[i], (TObject *)i); } else if (rzcombobxPart->ItemIndex == 2) { rzlstbxPartItemList->AddItem(CollarName[i], (TObject *)i); } else if (rzcombobxPart->ItemIndex == 3) { rzlstbxPartItemList->AddItem(UpperMaterialName[i], (TObject *)i); } } } else if (rzcombobxUpperLower->ItemIndex == 1) { // ÇÏÀÇ if (rzcombobxPart->ItemIndex == 0) nCount = PantsCount; else if (rzcombobxPart->ItemIndex == 1) nCount = BeltCount; else if (rzcombobxPart->ItemIndex == 2) nCount = LowerMaterialCount; for (int i = 0; i < nCount; i++) { if (rzcombobxPart->ItemIndex == 0) { rzlstbxPartItemList->AddItem(PantsName[i], (TObject *)i); } else if (rzcombobxPart->ItemIndex == 1) { rzlstbxPartItemList->AddItem(BeltName[i], (TObject *)i); } else if (rzcombobxPart->ItemIndex == 2) { rzlstbxPartItemList->AddItem(LowerMaterialName[i], (TObject *)i); } } } } } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::ChangeMaterial() { EType Clothes = TP_NONE; int nCount = 0; BYTE Cell_Order[CELL_COUNT]; bool Cell_Visible[CELL_COUNT]; int ItemIndex[CELL_COUNT]; TRzComboBox *combobxCells[CELL_COUNT]; TRzRapidFireButton *rzrpdfirebtnCell[CELL_COUNT]; if (0 <= rzcombobxWorkSheetType->ItemIndex && rzcombobxWorkSheetType->ItemIndex < rzcombobxWorkSheetType->Items->Count) { Clothes = (EType)rzcombobxWorkSheetType->Items->Objects[rzcombobxWorkSheetType->ItemIndex]; if (rzcombobxWorkSheetDivision->ItemIndex == 0) { // Man switch (Clothes) { case TP_COAT: CurrentSet = Man_Coat_Mat; memcpy(Cell_Order, Man_Coat_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Man_Coat_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_JACKET: CurrentSet = Man_Jacket_Mat; memcpy(Cell_Order, Man_Jacket_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Man_Jacket_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_JUMPER: CurrentSet = Man_Jumper_Mat; memcpy(Cell_Order, Man_Jumper_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Man_Jumper_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_KNIT: CurrentSet = Man_Knit_Mat; memcpy(Cell_Order, Man_Knit_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Man_Knit_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_SHIRTS: CurrentSet = Man_Shirts_Mat; memcpy(Cell_Order, Man_Shirts_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Man_Shirts_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_TOP: CurrentSet = Man_Top_Mat; memcpy(Cell_Order, Man_Top_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Man_Top_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_VEST: CurrentSet = Man_Vest_Mat; memcpy(Cell_Order, Man_Vest_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Man_Vest_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_PANTS: CurrentSet = Man_Pants_Mat; memcpy(Cell_Order, Man_Pants_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Man_Pants_Cell_Visible, sizeof(bool)*CELL_COUNT); break; } } else if (rzcombobxWorkSheetDivision->ItemIndex == 1) { // Woman switch (Clothes) { case TP_COAT: CurrentSet = Woman_Coat_Mat; memcpy(Cell_Order, Woman_Coat_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Woman_Coat_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_JACKET: CurrentSet = Woman_Jacket_Mat; memcpy(Cell_Order, Woman_Jacket_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Woman_Jacket_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_JUMPER: CurrentSet = Woman_Jumper_Mat; memcpy(Cell_Order, Woman_Jumper_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Woman_Jumper_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_KNIT: CurrentSet = Woman_Knit_Mat; memcpy(Cell_Order, Woman_Knit_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Woman_Knit_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_SHIRTS: CurrentSet = Woman_Shirts_Mat; memcpy(Cell_Order, Woman_Shirts_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Woman_Shirts_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_TOP: CurrentSet = Woman_Top_Mat; memcpy(Cell_Order, Woman_Top_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Woman_Top_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_VEST: CurrentSet = Woman_Vest_Mat; memcpy(Cell_Order, Woman_Vest_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Woman_Vest_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_ONEPIECE: CurrentSet = Woman_OnePiece_Mat; memcpy(Cell_Order, Woman_OnePiece_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Woman_OnePiece_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_BLOUSE: CurrentSet = Woman_Blouse_Mat; memcpy(Cell_Order, Woman_Blouse_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Woman_Blouse_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_PANTS: CurrentSet = Woman_Pants_Mat; memcpy(Cell_Order, Woman_Pants_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Woman_Pants_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_SKIRT: CurrentSet = Woman_Skirt_Mat; memcpy(Cell_Order, Woman_Skirt_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Woman_Skirt_Cell_Visible, sizeof(bool)*CELL_COUNT); break; } } else if (rzcombobxWorkSheetDivision->ItemIndex == 2) { // Child switch (Clothes) { case TP_COAT: CurrentSet = Child_Coat_Mat; memcpy(Cell_Order, Child_Coat_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Child_Coat_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_JACKET: CurrentSet = Child_Jacket_Mat; memcpy(Cell_Order, Child_Jacket_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Child_Jacket_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_JUMPER: CurrentSet = Child_Jumper_Mat; memcpy(Cell_Order, Child_Jumper_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Child_Jumper_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_KNIT: CurrentSet = Child_Knit_Mat; memcpy(Cell_Order, Child_Knit_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Child_Knit_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_SHIRTS: CurrentSet = Child_Shirts_Mat; memcpy(Cell_Order, Child_Shirts_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Child_Shirts_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_TOP: CurrentSet = Child_Top_Mat; memcpy(Cell_Order, Child_Top_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Child_Top_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_VEST: CurrentSet = Child_Vest_Mat; memcpy(Cell_Order, Child_Vest_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Child_Vest_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_ONEPIECE: CurrentSet = Child_OnePiece_Mat; memcpy(Cell_Order, Child_OnePiece_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Child_OnePiece_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_BLOUSE: CurrentSet = Child_Blouse_Mat; memcpy(Cell_Order, Child_Blouse_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Child_Blouse_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_CAPE: CurrentSet = Child_Cape_Mat; memcpy(Cell_Order, Child_Cape_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Child_Cape_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_PANTS: CurrentSet = Child_Pants_Mat; memcpy(Cell_Order, Child_Pants_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Child_Pants_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_SKIRT: CurrentSet = Child_Skirt_Mat; memcpy(Cell_Order, Child_Skirt_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Child_Skirt_Cell_Visible, sizeof(bool)*CELL_COUNT); break; } } if (rzcombobxWorkSheetDivision->ItemIndex == 3) { // Baby switch (Clothes) { case TP_SHIRTS: CurrentSet = Baby_Shirts_Mat; memcpy(Cell_Order, Baby_Shirts_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Baby_Shirts_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_ONEPIECE: CurrentSet = Baby_OnePiece_Mat; memcpy(Cell_Order, Baby_OnePiece_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Baby_OnePiece_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_CAPE: CurrentSet = Baby_Cape_Mat; memcpy(Cell_Order, Baby_Cape_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Baby_Cape_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_ROMPERS: CurrentSet = Baby_Rompers_Mat; memcpy(Cell_Order, Baby_Rompers_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Baby_Rompers_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_PANTS: CurrentSet = Baby_Pants_Mat; memcpy(Cell_Order, Baby_Pants_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Baby_Pants_Cell_Visible, sizeof(bool)*CELL_COUNT); break; case TP_SKIRT: CurrentSet = Baby_Skirt_Mat; memcpy(Cell_Order, Baby_Skirt_Cell_Order, sizeof(BYTE)*CELL_COUNT); memcpy(Cell_Visible, Baby_Skirt_Cell_Visible, sizeof(bool)*CELL_COUNT); break; } } } combobxCells[0] = rzcombobxCell1; combobxCells[1] = rzcombobxCell2; combobxCells[2] = rzcombobxCell3; combobxCells[3] = rzcombobxCell4; combobxCells[4] = rzcombobxCell5; combobxCells[5] = rzcombobxCell6; combobxCells[6] = rzcombobxCell7; rzrpdfirebtnCell[0] = rzrpdfirebtnCell1; rzrpdfirebtnCell[1] = rzrpdfirebtnCell2; rzrpdfirebtnCell[2] = rzrpdfirebtnCell3; rzrpdfirebtnCell[3] = rzrpdfirebtnCell4; rzrpdfirebtnCell[4] = rzrpdfirebtnCell5; rzrpdfirebtnCell[5] = rzrpdfirebtnCell6; rzrpdfirebtnCell[6] = rzrpdfirebtnCell7; for (int i = 0; i < CELL_COUNT; i++) { combobxCells[i]->Clear(); } if (Clothes != TP_NONE) { if (Clothes != TP_PANTS && Clothes != TP_SKIRT) { nCount = UpperMaterialCount; for (int i = 0; i < nCount; i++) { // »óÀÇ if (CurrentSet.Contains(i)) { for (int j = 0; j < CELL_COUNT; j++) { combobxCells[j]->AddItem(UpperMaterialName[i], (TObject *)i); if (Cell_Order[j] == i) ItemIndex[j] = combobxCells[j]->Items->Count-1; } } } } else { nCount = LowerMaterialCount; for (int i = 0; i < nCount; i++) { // ÇÏÀÇ if (CurrentSet.Contains(i)) { for (int j = 0; j < CELL_COUNT; j++) { combobxCells[j]->AddItem(LowerMaterialName[i], (TObject *)i); if (Cell_Order[j] == i) ItemIndex[j] = combobxCells[j]->Items->Count-1; } } } } } // ¼³Á¤µÇ¾î ÀÖ´Â ³»¿ëÀ¸·Î ¼³Á¤ÇØÁØ´Ù for (int i = 0; i < CELL_COUNT; i++) { combobxCells[i]->ItemIndex = ItemIndex[i]; rzrpdfirebtnCell[i]->Down = Cell_Visible[i]; if (rzrpdfirebtnCell[i]->Down) rzrpdfirebtnCell[i]->Caption = "On"; else rzrpdfirebtnCell[i]->Caption = "Off"; } } //--------------------------------------------------------------------------- void __fastcall TCombiItemEditForm::ApplyCombiSet() { EType Clothes = TP_NONE; int Item; if (0 <= rzcombobxClothesType->ItemIndex && rzcombobxClothesType->ItemIndex < rzcombobxClothesType->Items->Count) { Clothes = (EType)rzcombobxClothesType->Items->Objects[rzcombobxClothesType->ItemIndex]; if (rzcombobxClothesDivision->ItemIndex == 0) { // Man switch (Clothes) { case TP_COAT: if (rzcombobxClothesPart->ItemIndex == 0) Man_Coat_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Man_Coat_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Man_Coat_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Man_Coat_Mat = CurrentSet; break; case TP_JACKET: if (rzcombobxClothesPart->ItemIndex == 0) Man_Jacket_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Man_Jacket_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Man_Jacket_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Man_Jacket_Mat = CurrentSet; break; case TP_JUMPER: if (rzcombobxClothesPart->ItemIndex == 0) Man_Jumper_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Man_Jumper_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Man_Jumper_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Man_Jumper_Mat = CurrentSet; break; case TP_KNIT: if (rzcombobxClothesPart->ItemIndex == 0) Man_Knit_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Man_Knit_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Man_Knit_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Man_Knit_Mat = CurrentSet; break; case TP_SHIRTS: if (rzcombobxClothesPart->ItemIndex == 0) Man_Shirts_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Man_Shirts_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Man_Shirts_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Man_Shirts_Mat = CurrentSet; break; case TP_TOP: if (rzcombobxClothesPart->ItemIndex == 0) Man_Top_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Man_Top_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Man_Top_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Man_Top_Mat = CurrentSet; break; case TP_VEST: if (rzcombobxClothesPart->ItemIndex == 0) Man_Vest_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Man_Vest_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Man_Vest_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Man_Vest_Mat = CurrentSet; break; case TP_PANTS: if (rzcombobxClothesPart->ItemIndex == 0) Man_Pants_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Man_Pants_Belt = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Man_Pants_Mat = CurrentSet; break; } } else if (rzcombobxClothesDivision->ItemIndex == 1) { // Woman switch (Clothes) { case TP_COAT: if (rzcombobxClothesPart->ItemIndex == 0) Woman_Coat_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Woman_Coat_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Woman_Coat_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Woman_Coat_Mat = CurrentSet; break; case TP_JACKET: if (rzcombobxClothesPart->ItemIndex == 0) Woman_Jacket_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Woman_Jacket_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Woman_Jacket_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Woman_Jacket_Mat = CurrentSet; break; case TP_JUMPER: if (rzcombobxClothesPart->ItemIndex == 0) Woman_Jumper_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Woman_Jumper_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Woman_Jumper_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Woman_Jumper_Mat = CurrentSet; break; case TP_KNIT: if (rzcombobxClothesPart->ItemIndex == 0) Woman_Knit_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Woman_Knit_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Woman_Knit_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Woman_Knit_Mat = CurrentSet; break; case TP_SHIRTS: if (rzcombobxClothesPart->ItemIndex == 0) Woman_Shirts_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Woman_Shirts_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Woman_Shirts_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Woman_Shirts_Mat = CurrentSet; break; case TP_TOP: if (rzcombobxClothesPart->ItemIndex == 0) Woman_Top_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Woman_Top_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Woman_Top_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Woman_Top_Mat = CurrentSet; break; case TP_VEST: if (rzcombobxClothesPart->ItemIndex == 0) Woman_Vest_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Woman_Vest_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Woman_Vest_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Woman_Vest_Mat = CurrentSet; break; case TP_ONEPIECE: if (rzcombobxClothesPart->ItemIndex == 0) Woman_OnePiece_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Woman_OnePiece_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Woman_OnePiece_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Woman_OnePiece_Mat = CurrentSet; break; case TP_BLOUSE: if (rzcombobxClothesPart->ItemIndex == 0) Woman_Blouse_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Woman_Blouse_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Woman_Blouse_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Woman_Blouse_Mat = CurrentSet; break; case TP_PANTS: if (rzcombobxClothesPart->ItemIndex == 0) Woman_Pants_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Woman_Pants_Belt = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Woman_Pants_Mat = CurrentSet; break; case TP_SKIRT: if (rzcombobxClothesPart->ItemIndex == 0) Woman_Skirt_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Woman_Skirt_Belt = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Woman_Skirt_Mat = CurrentSet; break; } } else if (rzcombobxClothesDivision->ItemIndex == 2) { // Child switch (Clothes) { case TP_COAT: if (rzcombobxClothesPart->ItemIndex == 0) Child_Coat_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Child_Coat_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Child_Coat_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Child_Coat_Mat = CurrentSet; break; case TP_JACKET: if (rzcombobxClothesPart->ItemIndex == 0) Child_Jacket_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Child_Jacket_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Child_Jacket_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Child_Jacket_Mat = CurrentSet; break; case TP_JUMPER: if (rzcombobxClothesPart->ItemIndex == 0) Child_Jumper_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Child_Jumper_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Child_Jumper_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Child_Jumper_Mat = CurrentSet; break; case TP_KNIT: if (rzcombobxClothesPart->ItemIndex == 0) Child_Knit_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Child_Knit_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Child_Knit_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Child_Knit_Mat = CurrentSet; break; case TP_SHIRTS: if (rzcombobxClothesPart->ItemIndex == 0) Child_Shirts_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Child_Shirts_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Child_Shirts_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Child_Shirts_Mat = CurrentSet; break; case TP_TOP: if (rzcombobxClothesPart->ItemIndex == 0) Child_Top_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Child_Top_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Child_Top_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Child_Top_Mat = CurrentSet; break; case TP_VEST: if (rzcombobxClothesPart->ItemIndex == 0) Child_Vest_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Child_Vest_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Child_Vest_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Child_Vest_Mat = CurrentSet; break; case TP_ONEPIECE: if (rzcombobxClothesPart->ItemIndex == 0) Child_OnePiece_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Child_OnePiece_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Child_OnePiece_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Child_OnePiece_Mat = CurrentSet; break; case TP_BLOUSE: if (rzcombobxClothesPart->ItemIndex == 0) Child_Blouse_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Child_Blouse_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Child_Blouse_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Child_Blouse_Mat = CurrentSet; break; case TP_CAPE: if (rzcombobxClothesPart->ItemIndex == 0) Child_Cape_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Child_Cape_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Child_Cape_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Child_Cape_Mat = CurrentSet; break; case TP_PANTS: if (rzcombobxClothesPart->ItemIndex == 0) Child_Pants_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Child_Pants_Belt = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Child_Pants_Mat = CurrentSet; break; case TP_SKIRT: if (rzcombobxClothesPart->ItemIndex == 0) Child_Skirt_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Child_Skirt_Belt = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Child_Skirt_Mat = CurrentSet; break; } } if (rzcombobxClothesDivision->ItemIndex == 3) { // Baby switch (Clothes) { case TP_SHIRTS: if (rzcombobxClothesPart->ItemIndex == 0) Baby_Shirts_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Baby_Shirts_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Baby_Shirts_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Baby_Shirts_Mat = CurrentSet; break; case TP_ONEPIECE: if (rzcombobxClothesPart->ItemIndex == 0) Baby_OnePiece_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Baby_OnePiece_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Baby_OnePiece_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Baby_OnePiece_Mat = CurrentSet; break; case TP_CAPE: if (rzcombobxClothesPart->ItemIndex == 0) Baby_Cape_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Baby_Cape_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Baby_Cape_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Baby_Cape_Mat = CurrentSet; break; case TP_ROMPERS: if (rzcombobxClothesPart->ItemIndex == 0) Baby_Rompers_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Baby_Rompers_Sle = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Baby_Rompers_Col = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Baby_Rompers_Mat = CurrentSet; break; case TP_PANTS: if (rzcombobxClothesPart->ItemIndex == 0) Baby_Pants_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Baby_Pants_Belt = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 2) Baby_Pants_Mat = CurrentSet; break; case TP_SKIRT: if (rzcombobxClothesPart->ItemIndex == 0) Baby_Skirt_Sil = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 1) Baby_Skirt_Belt = CurrentSet; else if (rzcombobxClothesPart->ItemIndex == 3) Baby_Skirt_Mat = CurrentSet; break; } } } if (rzcombobxClothesUpperLower->ItemIndex == 0) { // »óÀÇ if (rzcombobxClothesPart->ItemIndex == 0) { // Silhouette SilhouetteCount = rzlstbxClothesPartItemList->Items->Count; for (int i = 0; i < rzlstbxClothesPartItemList->Items->Count; i++) { SilhouetteName[i] = rzlstbxClothesPartItemList->Items->Strings[i]; } } else if (rzcombobxClothesPart->ItemIndex == 1) { // Sleeve SleeveCount = rzlstbxClothesPartItemList->Items->Count; for (int i = 0; i < rzlstbxClothesPartItemList->Items->Count; i++) { SleeveName[i] = rzlstbxClothesPartItemList->Items->Strings[i]; } } else if (rzcombobxClothesPart->ItemIndex == 2) { // Collar CollarCount = rzlstbxClothesPartItemList->Items->Count; for (int i = 0; i < rzlstbxClothesPartItemList->Items->Count; i++) { CollarName[i] = rzlstbxClothesPartItemList->Items->Strings[i]; } } else if (rzcombobxClothesPart->ItemIndex == 3) { // UpperMaterial UpperMaterialCount = rzlstbxClothesPartItemList->Items->Count; for (int i = 0; i < rzlstbxClothesPartItemList->Items->Count; i++) { UpperMaterialName[i] = rzlstbxClothesPartItemList->Items->Strings[i]; } } } else if (rzcombobxClothesUpperLower->ItemIndex == 1) { // ÇÏÀÇ if (rzcombobxClothesPart->ItemIndex == 0) { // Pants PantsCount = rzlstbxClothesPartItemList->Items->Count; for (int i = 0; i < rzlstbxClothesPartItemList->Items->Count; i++) { PantsName[i] = rzlstbxClothesPartItemList->Items->Strings[i]; } } else if (rzcombobxClothesPart->ItemIndex == 1) { // Belt BeltCount = rzlstbxClothesPartItemList->Items->Count; for (int i = 0; i < rzlstbxClothesPartItemList->Items->Count; i++) { BeltName[i] = rzlstbxClothesPartItemList->Items->Strings[i]; } } else if (rzcombobxClothesPart->ItemIndex == 2) { // LowerMaterial LowerMaterialCount = rzlstbxClothesPartItemList->Items->Count; for (int i = 0; i < rzlstbxClothesPartItemList->Items->Count; i++) { LowerMaterialName[i] = rzlstbxClothesPartItemList->Items->Strings[i]; } } } } //--------------------------------------------------------------------------- #endif