예제 #1
0
 public void PrepForClose()
 {
     windowDragTimer.Stop();
     windowDragTimer.Elapsed   -= WindowDragTimer_Elapsed;
     windowDragTimer            = null;
     ValueEditors.ValueChanged -= ValueEditors_ValueChanged;
     ValueEditors.Clean(STR_PersistentEffectsEditorKey);
     frmPersistentEffectPropertyEditor?.Close();
     frmPersistentEffectPropertyEditor = null;
 }
예제 #2
0
        public FrmPropertyList()
        {
            InitializeComponent();
            windowDragTimer          = new System.Timers.Timer();
            windowDragTimer.Interval = 20;
            windowDragTimer.Elapsed += WindowDragTimer_Elapsed;

            ValueEditors.Register(STR_PersistentEffectsEditorKey);
            foreach (IValueEditor valueEditor in ValueEditors.GetAll(STR_PersistentEffectsEditorKey))
            {
                //Talespire.Log.Debug($"valueEditor ({valueEditor.GetType().Name}).Initialize(this);");
                valueEditor.Initialize(this);
            }

            if (frmPersistentEffectPropertyEditor == null)
            {
                //Talespire.Log.Debug($"frmPersistentEffectPropertyEditor = new FrmPersistentEffectPropertyEditor();");
                frmPersistentEffectPropertyEditor = new FrmPersistentEffectPropertyEditor();
            }

            //Talespire.Log.Debug($"ValueEditors.ValueChanged += ValueEditors_ValueChanged;");
            ValueEditors.ValueChanged += ValueEditors_ValueChanged;
        }