Subversion Repositories spk

Rev

Rev 191 | Rev 197 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 191 Rev 193
Line 104... Line 104...
104
		this->RadioCockpitCustom->Enabled = (this->ComboCockpitCustom->Items->Count) ? true : false;
104
		this->RadioCockpitCustom->Enabled = (this->ComboCockpitCustom->Items->Count) ? true : false;
105
		this->GroupCockpit->Enabled = (this->ListTurret->SelectedItems->Count) ? true : false;
105
		this->GroupCockpit->Enabled = (this->ListTurret->SelectedItems->Count) ? true : false;
106
		if ( this->ListTurret->SelectedItems->Count )
106
		if ( this->ListTurret->SelectedItems->Count )
107
		{
107
		{
108
			ListViewItem ^item = this->ListTurret->SelectedItems[0];
108
			ListViewItem ^item = this->ListTurret->SelectedItems[0];
109
			if ( CyStringFromSystemString(item->SubItems[1]->Text).IsNumber() && Convert::ToInt32(item->SubItems[1]->Text) < this->ComboCockpitStd->Items->Count )
109
			if ( _WS(item->SubItems[1]->Text).isNumber() && Convert::ToInt32(item->SubItems[1]->Text) < this->ComboCockpitStd->Items->Count )
110
			{
110
			{
111
				this->RadioCockpitStd->Checked = true;
111
				this->RadioCockpitStd->Checked = true;
112
				this->ComboCockpitStd->SelectedIndex = Convert::ToInt32(item->SubItems[1]->Text);
112
				this->ComboCockpitStd->SelectedIndex = Convert::ToInt32(item->SubItems[1]->Text);
113
 
113
 
114
			}
114
			}