private void BrowseBtn_Click(object sender, EventArgs e) { ChooseClientDlg.FileName = ChooseClientDlg.SafeFileName; if (ChooseClientDlg.ShowDialog() == DialogResult.OK) { LoadGameClient(ChooseClientDlg.FileName); } }
private void BrowseBtn_Click(object sender, EventArgs e) { ChooseClientDlg.FileName = ChooseClientDlg.SafeFileName; if (ChooseClientDlg.ShowDialog() != DialogResult.OK) { return; } ProcessSwf(ChooseClientDlg.FileName); }
private async void BrowseBtn_Click(object sender, EventArgs e) { ChooseClientDlg.FileName = ChooseClientDlg.SafeFileName; if (ChooseClientDlg.ShowDialog() != DialogResult.OK) { return; } bool verifySuccess = await VerifyGameClientAsync( ChooseClientDlg.FileName); StatusTxt.StopDotAnimation("Standing By..."); if (!verifySuccess) { MessageBox.Show("Unable to disassemble the Shockwave Flash(.swf) file.", "Tanji ~ Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } CustomClientTxt.Text = verifySuccess ? MainUI.Game.Location : string.Empty; }