Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void
Exemplo n.º 1
0
        private void OpenSettings(object sender, EventArgs e)
        {
            SettingsGUI settings = new SettingsGUI(Plugin);

            settings.ShowDialog(this);
            settings.Dispose();
            listBox1.Refresh();
        }
Exemplo n.º 2
0
 private void OpenSettings(object sender, EventArgs e)
 {
     SettingsGUI settings = new SettingsGUI(Plugin);
     settings.ShowDialog(this);
     settings.Dispose();
     listBox1.Refresh();
 }