Esempio n. 1
0
 public static ObjectForm OpenObject(FMObject aRootObject)
 {
     ObjectForm vFrm = new ObjectForm();
     vFrm.rootObject = aRootObject;
     vFrm.rootObject_PropertyChanged(null, null);
     vFrm.Show();
     return vFrm;
 }
Esempio n. 2
0
        public static ObjectForm OpenObject(FMObject aRootObject)
        {
            ObjectForm vFrm = new ObjectForm();

            vFrm.rootObject = aRootObject;
            vFrm.rootObject_PropertyChanged(null, null);
            vFrm.Show();
            return(vFrm);
        }
Esempio n. 3
0
 private void button4_Click(object sender, EventArgs e)
 {
     foreach (ObjectForm OF in vObjectForms)
     {
         OF.Close();
     }
     objSpace.AllObjects.Clear();
     objSpace.PersistenceHandler.LoadPersistedObjects();
     foreach (FMObject FMO in objSpace.AllObjects)
     {
         vObjectForms.Add(ObjectForm.OpenObject(FMO));
     }
 }
Esempio n. 4
0
        private void button1_Click(object sender, EventArgs e)
        {
            FMObject vObj = new FMObject(objSpace);

            vObjectForms.Add(ObjectForm.OpenObject(vObj));
        }