public static void ChangeLocation() { if (locationDialog == null) { locationDialog = new InputDialog(); locationDialog.FormClosed += OnLocationDialogClosed; locationDialog.Show(); } else { locationDialog.Activate(); } }
public void UpdateLocation() { if (locationDialog == null) { locationDialog = new InputDialog { _wcsService = _wcsService }; locationDialog.FormClosed += OnLocationDialogClosed; locationDialog.Show(); } else { locationDialog.Activate(); } }