public void onConvertTeamspace(object o, EventArgs args) { CollectionPicker cp = new CollectionPicker(); cp.IgnoreType = "AB:AddressBook"; int rc = cp.Run(); if(rc == -5) { Collection col = cp.Collection; col.SetType(col, "AB:AddressBook"); col.Commit(); RefreshBooks(); } }
public void on_add_slog(object o, EventArgs eventArgs) { CollectionPicker cp = new CollectionPicker(); cp.IgnoreType = typeof(Slog).Name; int rc = cp.Run(); if(rc == -5) { Collection col = cp.Collection; Console.WriteLine("Convert collection {0}", col.Name); col.SetType(col, typeof(Slog).Name); col.Commit(); Refresh(); } }