private void èçìåíèòüToolStripMenuItem_Click(object sender, EventArgs e) { string spcd = SASPlanetCacheDir; if (KMZRebuilederForm.InputBox("SAS Planet Cache", "Enter Cache Path Here:", ref spcd) == DialogResult.OK) { SASPlanetCacheDir = spcd; } }
private void renameToolStripMenuItem_Click(object sender, EventArgs e) { if (layers.SelectedItems.Count == 0) { return; } string txti = layers.SelectedIndices[0].ToString() + ": "; string name = layers.Items[layers.SelectedIndices[0]].Text.Remove(0, txti.Length); KMZRebuilederForm.InputBox("Layer name", "Change layer name:", ref name, (Bitmap)images.Images[layers.Items[layers.SelectedIndices[0]].ImageKey]); layers.Items[layers.SelectedIndices[0]].Text = txti + name; }
private void renameToolStripMenuItem_Click(object sender, EventArgs e) { if (layers.SelectedIndices.Count == 0) { return; } string name = categories[layers.SelectedIndices[0]].name; KMZRebuilederForm.InputBox("Layer name", "Change layer name:", ref name, (Bitmap)images.Images[layers.Items[layers.SelectedIndices[0]].ImageKey]); categories[layers.SelectedIndices[0]].name = name; layers.Items[layers.SelectedIndices[0]].Text = String.Format("{0}: {1}", layers.SelectedIndices[0], name); }
private void èçìåíèòüUserDefinedUrlToolStripMenuItem_Click(object sender, EventArgs e) { string udu = UserDefindedUrl; if (KMZRebuilederForm.InputBox("User-Defined Url", "Enter Url Here:", ref udu) == DialogResult.OK) { UserDefindedUrl = udu; if (iStorages.SelectedIndex == 20) { MView.ImageSourceUrl = UserDefindedUrl; } } ; }