private void HomeEvent() { this.DialogResult = false; WindowFactory.windowbackhome -= HomeEvent; WindowFactory.BackHome_Event(); }