public static void SetBackend(string name)
 {
     PackageManagerSelectedEventArgs pmse = new PackageManagerSelectedEventArgs ();
     pmse.SelectedBackend = PackageManagerFactory.APT_BACKEND;
     if (null != PackageManagerSelected)
         PackageManagerSelected (null, pmse);
 }
 private void HandleChanged(object o, EventArgs args)
 {
     PackageManagerSelectedEventArgs pmse = new PackageManagerSelectedEventArgs ();
     TreeIter iter;
     if (combobox.GetActiveIter (out iter))
         pmse.SelectedBackend = (string) combobox.Model.GetValue (iter, 0);
     if (null != PackageManagerSelected)
         PackageManagerSelected (this, pmse);
 }
 private void HandlePackageManagerSelected(object sender, PackageManagerSelectedEventArgs e)
 {
     backend = PackageManagerFactory.GetBackend (e.SelectedBackend);
     Preferences.SelectedProvider = e.SelectedBackend;
 }