public static AddNewCargo GetInstance() { if (_Instance == null) { _Instance = new AddNewCargo(); } return(_Instance); }
private void Dispose(object sender, EventArgs e) { _Instance = null; WindowsStatus.CargoEditWindowOpen = false; WeakReferenceMessenger.Default.UnregisterAll(DataContext); }