private void Emulatorcb_SelectedIndexChanged(object sender, EventArgs e) { string tempedir = Edirbox.Text; Edirbox.Text = null; label6.Text = SelectedEmu.Description; label6.ForeColor = SelectedEmu.Cdesc; Edirbox.Text = SelectedEmu.Path(); if (tempedir != Edirbox.Text) { Gdirbox.Text = null; } if (!string.IsNullOrWhiteSpace(Edirbox.Text) && Directory.Exists(Edirbox.Text) && !Directory.Exists(Edirbox.Text + @"ShortCutes")) { Directory.CreateDirectory(Edirbox.Text + @"ShortCutes"); MessageForm.Info("To avoid Anti-Virus problems with ShortCutes please exclude this path folder:\n\n" + Edirbox.Text + "ShortCutes\n\nDouble click on this text to copy path folder to clipboard", Edirbox.Text + "ShortCutes"); } if (Directory.Exists(Edirbox.Text + "ShortCutes")) { OpenFolder.Show(); } else { OpenFolder.Hide(); } Shortcutbox.Focus(); }
private void buttonFolderClick(TextBox textBox, string nodeName) { String path = currentRunDir; OpenFolder folder = new OpenFolder(path); folder.Show(textBox); Save2Config(textBox, nodeName); }