Esempio n. 1
0
        private void PlugProp(object sender, EventArgs e)
        {
            MenuItem         parent = ((MenuItem)((MenuItem)sender).Parent);
            Plugin           pl     = TempParameters.ParametersInstance.PluginList[parent.Text];
            PluginProperties pf     = new PluginProperties(pl);

            pf.ShowDialog(this);
            TempParameters.ParametersInstance.PluginList[TempParameters.ParametersInstance.PluginList.IndexOf(pl)] = pf.GetPlugin();
        }
Esempio n. 2
0
 private void pluginPropertiesButton_Click(object sender, EventArgs e)
 {
     if (pluginListView.SelectedIndices.Count != 0)
     {
         Plugin           p  = (Plugin)TempParameters.ParametersInstance.PluginList[pluginListView.SelectedIndices[0]];
         PluginProperties pf = new PluginProperties(p);
         pf.ShowDialog(this);
         TempParameters.ParametersInstance.PluginList[TempParameters.ParametersInstance.PluginList.IndexOf(p)] = pf.GetPlugin();
     }
 }