---------------------------------------------------------------------------
| 729 | } |
| 730 | //--------------------------------------------------------------------------- |
| 731 | void __fastcall TMainForm::aSetupExecute(TObject *Sender) |
| 732 | { |
| 733 | bool se = IsShortcutExist(CSIDL_STARTUP); |
| 734 | |
| 735 | SetupForm = new TSetupForm(this); |
| 736 | SetupForm->AutoStartCB->Checked = se; |
| 737 | |
| 738 | if( SetupForm->ShowModal() == mrOk ) |
| 739 | { |
| 740 | if( SetupForm->bUdpRestart ) |
| 741 | { |
| 742 | UdpServerStop(); |
| 743 | UdpServerStart(); |
| 744 | } |
| 745 | if( SetupForm->bTcpRestart ) |
| 746 | { |
| 747 | TcpServerStop(); |
| 748 | TcpServerStart(); |
| 749 | } |
| 750 | if( SetupForm->AutoStartCB->Checked != se ) |
| 751 | { |
| 752 | if( se ) |
| 753 | DeleteShortcut(CSIDL_STARTUP); |
| 754 | else |
| 755 | CreateShortcut(CSIDL_STARTUP); |
| 756 | } |
| 757 | |
| 758 | fdb->GetList(SelectFileCB->Items, true); |
| 759 | int i = SelectFileCB->Items->IndexOfObject((TObject *)FileNumber); |
| 760 | SelectFileCB->ItemIndex = i; |
| 761 | |
| 762 | LogSG->Invalidate(); // 3D |
| 763 | |
| 764 | MainCfg.Save(MainCfgFile, fdb); |
| 765 | } |
| 766 | delete SetupForm; |
| 767 | SetupForm = NULL; |
| 768 | } |
| 769 | //--------------------------------------------------------------------------- |
| 770 | void __fastcall TMainForm::RedrawProto(void) |
| 771 | { |
no test coverage detected