Fix Window Ownerships
This commit is contained in:
parent
ed80ab05c1
commit
b502b47a39
@ -37,7 +37,7 @@ namespace qtc_net_client_2
|
|||||||
{
|
{
|
||||||
// not logged in, load the login form
|
// not logged in, load the login form
|
||||||
Login frmLogin = new Login(_apiService);
|
Login frmLogin = new Login(_apiService);
|
||||||
var result = frmLogin.ShowDialog(this);
|
var result = frmLogin.ShowDialog();
|
||||||
|
|
||||||
if (result == DialogResult.OK)
|
if (result == DialogResult.OK)
|
||||||
await OnSuccessfulLogin();
|
await OnSuccessfulLogin();
|
||||||
@ -48,7 +48,7 @@ namespace qtc_net_client_2
|
|||||||
{
|
{
|
||||||
// just reshow the login dialog lol
|
// just reshow the login dialog lol
|
||||||
Login frmLogin = new Login(_apiService);
|
Login frmLogin = new Login(_apiService);
|
||||||
var result = frmLogin.ShowDialog(this);
|
var result = frmLogin.ShowDialog();
|
||||||
|
|
||||||
if (result == DialogResult.OK)
|
if (result == DialogResult.OK)
|
||||||
await OnSuccessfulLogin();
|
await OnSuccessfulLogin();
|
||||||
@ -67,7 +67,7 @@ namespace qtc_net_client_2
|
|||||||
if (!_gatewayService.InLobby) await _gatewayService.JoinLobbyAsync();
|
if (!_gatewayService.InLobby) await _gatewayService.JoinLobbyAsync();
|
||||||
|
|
||||||
Chat frmChat = new Chat(_gatewayService, _apiService);
|
Chat frmChat = new Chat(_gatewayService, _apiService);
|
||||||
frmChat.ShowDialog(this);
|
frmChat.Show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ namespace qtc_net_client_2
|
|||||||
if (_gatewayService.CurrentRoom != room) await _gatewayService.JoinRoomAsync(room);
|
if (_gatewayService.CurrentRoom != room) await _gatewayService.JoinRoomAsync(room);
|
||||||
|
|
||||||
Chat frmChat = new Chat(_gatewayService, _apiService);
|
Chat frmChat = new Chat(_gatewayService, _apiService);
|
||||||
frmChat.ShowDialog(this);
|
frmChat.Show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -146,7 +146,7 @@ namespace qtc_net_client_2
|
|||||||
if (res.Data != null && res.Success)
|
if (res.Data != null && res.Success)
|
||||||
{
|
{
|
||||||
Profile frmProfile = new Profile(res.Data, _apiService, _gatewayService);
|
Profile frmProfile = new Profile(res.Data, _apiService, _gatewayService);
|
||||||
frmProfile.ShowDialog(this);
|
frmProfile.ShowDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -155,7 +155,7 @@ namespace qtc_net_client_2
|
|||||||
private void llblEditProfile_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
private void llblEditProfile_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||||
{
|
{
|
||||||
ProfileEdit frmProfileEdit = new ProfileEdit(_apiService);
|
ProfileEdit frmProfileEdit = new ProfileEdit(_apiService);
|
||||||
var dialogResult = frmProfileEdit.ShowDialog(this);
|
var dialogResult = frmProfileEdit.ShowDialog();
|
||||||
if (dialogResult == DialogResult.OK)
|
if (dialogResult == DialogResult.OK)
|
||||||
{
|
{
|
||||||
MessageBox.Show("If you updated your username, hit the refresh button to see it update on your lists.\nThe top username will not update until you restart your client.");
|
MessageBox.Show("If you updated your username, hit the refresh button to see it update on your lists.\nThe top username will not update until you restart your client.");
|
||||||
@ -179,7 +179,7 @@ namespace qtc_net_client_2
|
|||||||
if (res.Data != null && res.Success)
|
if (res.Data != null && res.Success)
|
||||||
{
|
{
|
||||||
Profile frmProfile = new Profile(res.Data, _apiService, _gatewayService);
|
Profile frmProfile = new Profile(res.Data, _apiService, _gatewayService);
|
||||||
frmProfile.ShowDialog(this);
|
frmProfile.ShowDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user