| Line 4196... |
Line 4196... |
| 4196 |
this->ContextRemoveMirror->Visible = false;
|
4196 |
this->ContextRemoveMirror->Visible = false;
|
| 4197 |
m_pSelectedItem = item;
|
4197 |
m_pSelectedItem = item;
|
| 4198 |
e->Cancel = false;
|
4198 |
e->Cancel = false;
|
| 4199 |
}
|
4199 |
}
|
| 4200 |
private: System::Void clearAllToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
|
4200 |
private: System::Void clearAllToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
|
| 4201 |
m_pPackage->ClearWebMirrors();
|
4201 |
m_pPackage->clearWebMirrors();
|
| 4202 |
this->UpdateMirrors();
|
4202 |
this->UpdateMirrors();
|
| 4203 |
this->UpdateChanged();
|
4203 |
this->UpdateChanged();
|
| 4204 |
}
|
4204 |
}
|
| 4205 |
private: System::Void addMirrorToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
|
4205 |
private: System::Void addMirrorToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
|
| 4206 |
InputBox ^input = gcnew InputBox("Enter the web address to add", "http://");
|
4206 |
InputBox ^input = gcnew InputBox("Enter the web address to add", "http://");
|
| 4207 |
if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
|
4207 |
if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
|
| 4208 |
{
|
4208 |
{
|
| 4209 |
m_pPackage->AddWebMirror(CyStringFromSystemString(input->GetInput()));
|
4209 |
m_pPackage->addWebMirror(_S(input->GetInput()));
|
| 4210 |
this->UpdateChanged();
|
4210 |
this->UpdateChanged();
|
| 4211 |
this->UpdateMirrors();
|
4211 |
this->UpdateMirrors();
|
| 4212 |
}
|
4212 |
}
|
| 4213 |
}
|
4213 |
}
|
| 4214 |
private: System::Void ContextRemoveMirror_Click(System::Object^ sender, System::EventArgs^ e) {
|
4214 |
private: System::Void ContextRemoveMirror_Click(System::Object^ sender, System::EventArgs^ e) {
|
| 4215 |
if ( m_pSelectedItem )
|
4215 |
if ( m_pSelectedItem )
|
| 4216 |
{
|
4216 |
{
|
| 4217 |
m_pPackage->RemoveWebMirror(CyStringFromSystemString(m_pSelectedItem->Text));
|
4217 |
m_pPackage->removeWebMirror(_S(m_pSelectedItem->Text));
|
| 4218 |
this->UpdateMirrors();
|
4218 |
this->UpdateMirrors();
|
| 4219 |
this->UpdateChanged();
|
4219 |
this->UpdateChanged();
|
| 4220 |
}
|
4220 |
}
|
| 4221 |
}
|
4221 |
}
|
| 4222 |
private: System::Void ContextLangName_Opening(System::Object^ sender, System::ComponentModel::CancelEventArgs^ e) {
|
4222 |
private: System::Void ContextLangName_Opening(System::Object^ sender, System::ComponentModel::CancelEventArgs^ e) {
|
| Line 4932... |
Line 4932... |
| 4932 |
{
|
4932 |
{
|
| 4933 |
ListViewItem ^item = this->ListMirrors->SelectedItems[0];
|
4933 |
ListViewItem ^item = this->ListMirrors->SelectedItems[0];
|
| 4934 |
InputBox ^input = gcnew InputBox("Enter the web address for the mirror", item->Text);
|
4934 |
InputBox ^input = gcnew InputBox("Enter the web address for the mirror", item->Text);
|
| 4935 |
if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
|
4935 |
if ( input->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
|
| 4936 |
{
|
4936 |
{
|
| 4937 |
m_pPackage->RemoveWebMirror(CyStringFromSystemString(item->Text));
|
4937 |
m_pPackage->removeWebMirror(_S(item->Text));
|
| 4938 |
m_pPackage->AddWebMirror(CyStringFromSystemString(input->GetInput()));
|
4938 |
m_pPackage->addWebMirror(_S(input->GetInput()));
|
| 4939 |
item->Text = input->GetInput();
|
4939 |
item->Text = input->GetInput();
|
| 4940 |
this->UpdateChanged();
|
4940 |
this->UpdateChanged();
|
| 4941 |
}
|
4941 |
}
|
| 4942 |
}
|
4942 |
}
|
| 4943 |
}
|
4943 |
}
|