Esempio n. 1
0
 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();
        }
 }
Esempio n. 2
0
 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();
        }
 }