CSGO.UI.ModuleManager.Metro.MainWindow.loadModule_Click C# (CSharp) Метод

loadModule_Click() приватный Метод

private loadModule_Click ( object sender, System e ) : void
sender object
e System
Результат void
        private void loadModule_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            var selected = (string)listBoxAvailable.SelectedItem;
            if (selected == null)
            {
                statustextBlock.Text = "Not selected item " + ConfigurationPath + selected;
                return;
            }
            if (!ConfigurationPath.EndsWith("\\"))
                ConfigurationPath += "\\";
            if (!File.Exists(ConfigurationPath + selected))
            {
                statustextBlock.Text = "Not found " + ConfigurationPath + selected;
                return;
            }
            SelectedCfg = selected;
            var text =File.ReadAllText(ConfigurationPath + selected);
            textBox.Text = text;
            statustextBlock.Text = "Loaded " + ConfigurationPath + selected;
        }