示例#1
0
        public static FormPack Create(String versionName, String versionCode, String commitId)
        {
            FormPack fp = new FormPack();

            fp.textBoxVersionName.Text = versionName;
            fp.textBoxVersionCode.Text = versionCode;
            fp.TextBoxCommitID.Text    = commitId;
            return(fp);
        }
示例#2
0
        private void ctrlPack_Click(object sender, EventArgs e)
        {
            String filename = this.apkList[0].Fullname;
            Regex  regex    = new Regex(@"_([0-9a-zA-Z]+)_g_\w+.apk$", RegexOptions.IgnoreCase | RegexOptions.Singleline);
            Match  match    = regex.Match(filename);
            String commitID;

            if (match.Success)
            {
                commitID = match.Groups[1].Value;
            }
            else
            {
                commitID = String.Empty;
            }
            using (FormPack fp = FormPack.Create(currentVersionName, currentVersionCode, commitID)) {
                if (fp.ShowDialog(this) == DialogResult.OK)
                {
                    TargetBuilder.Execute(this, currentVersionName, currentVersionCode, fp.CommitID);
                }
            }
        }