示例#1
0
        private void import_Click(object sender, EventArgs e)
        {
            bool res = accountManager.addAccount(accountInput.Text, passwdInput.Text, loginMethodInput.SelectedIndex);

            if (res == false)
            {
                errexit("帳號記錄新增失敗", 0);
            }
            refreshAccountList();

            if (Properties.Settings.Default.GAEnabled)
            {
                AutoMeasurement.Client.TrackEvent("add", "accountMananger");
            }
        }
示例#2
0
        private void import_Click(object sender, EventArgs e)
        {
            // Only Regular login is working, QRCode doesn't need to keep account or password.
            bool res = accountManager.addAccount(accountInput.Text, passwdInput.Text, (int)LoginMethod.Regular);

            if (res == false)
            {
                errexit("帳號記錄新增失敗", 0);
            }
            refreshAccountList();

            if (Properties.Settings.Default.GAEnabled)
            {
                AutoMeasurement.Client.TrackEvent("add", "accountMananger");
            }
        }