public JsonUploadWindow() { Instance = this; InitializeComponent(); DataContext = MyDataContext = new JsonUploadWindowViewModel(); }
private void Window_Closed(object sender, EventArgs e) { Instance = null; try { ProxyManagerWindow.Instance?.Close(); } catch { } }