public void SetUpPictionary(bool isDrawer) { clientForm.Dispatcher.Invoke(() => { if (pictionaryForm == null || !pictionaryForm.IsVisible) { pictionaryForm = new PictionaryForm(this); pictionaryForm.SetUpDrawer(isDrawer); pictionaryForm.Title = "Pictionary | Nickname: " + clientNickname; pictionaryForm.Show(); } if (pictionaryForm.IsVisible) { pictionaryForm.SetUpDrawer(isDrawer); } }); }