コード例 #1
0
        private void BrowseBtn_Click(object sender, EventArgs e)
        {
            ChooseClientDlg.FileName = ChooseClientDlg.SafeFileName;

            if (ChooseClientDlg.ShowDialog() == DialogResult.OK)
            {
                LoadGameClient(ChooseClientDlg.FileName);
            }
        }
コード例 #2
0
ファイル: TanjiConnect.cs プロジェクト: ErrorMaker/Tanji-5
        private void BrowseBtn_Click(object sender, EventArgs e)
        {
            ChooseClientDlg.FileName = ChooseClientDlg.SafeFileName;
            if (ChooseClientDlg.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            ProcessSwf(ChooseClientDlg.FileName);
        }
コード例 #3
0
ファイル: ConnectFrm.cs プロジェクト: Zantil/Tanji
        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;
        }