예제 #1
0
 void link_Click(object sender, EventArgs e)
 {
     if (fco1Object == null || fco2Object == null)
     {
         MessageBox.Show("Please choose both an old object and a new object");
         return;
     }
     Close();
     MgaGateway.PerformInTransaction(delegate
     {
         Switcher switcher = new Switcher(fco1Object, fco2Object, GMEConsole);
         switcher.UpdateSublibrary();
     }, abort: false);
 }
예제 #2
0
        public void SwitchReferences(object[] lib1Objects, object[] lib2Objects)
        {
            Switcher switcher = new Switcher(lib1Objects.Cast <IMgaObject>(), lib2Objects.Cast <IMgaObject>(), null);

            switcher.UpdateSublibrary();
        }