Exemplo n.º 1
0
      private void _btnPlatformSelectOnClick(object sender, EventArgs e) {
         var frm = new FrmSelectPlatform();
         var dr = frm.ShowDialog(this);
         if (dr != DialogResult.OK) {
            return;
         }

         if (frm.SelectedPlatform == null) {
            return;
         }

         _installInfo.PlatformId = frm.SelectedPlatform.PlatformId;

         txtPlatformID.Text = _installInfo.PlatformId.LocalId.ToString();
         txtPlatformName.Text = frm.SelectedPlatform.PlatformName;
      }
Exemplo n.º 2
0
      private void _onBtnPlatformSelectClick(object sender, EventArgs e) {
         var frm = new FrmSelectPlatform();
         var dr = frm.ShowDialog(this);
         if (dr != DialogResult.OK) {
            return;
         }

         if (frm.SelectedPlatform == null) {
            return;
         }

         if (_campaignInfo.PlatformId != frm.SelectedPlatform.PlatformId) {
            _campaignInfo.PlatformId = frm.SelectedPlatform.PlatformId;
            _campaignInfo.PlatformName = frm.SelectedPlatform.PlatformName;

            txtPlatformID.Text = string.Format("{0}", _campaignInfo.PlatformId.LocalId.ToString());
            txtPlatformName.Text = _campaignInfo.PlatformName;

            _campaignInfo.DstInstallId = BplIdentity.Empty;
            txtImageVersionNumber.Text = null;
            txtImageDate.Text = null;

            listTargets.Items.Clear();
            _campaignTargetsInfo.Clear();
         }

         btnImageSelect.Enabled = true;
      }