示例#1
0
 public void SetContext(InstallContext context, EventHandler <InstallEventArgs> handler)
 {
     this.Context         = context;
     this.InstallChanged += handler;
     this.lblInfo.Text    = context.ConvertVars(info);
     this.SubTitle        = context.ConvertVars(subtitle);
     if (context.InstInfo.LicenceFile.EndsWith(".rtf", StringComparison.OrdinalIgnoreCase))
     {
         this.txtLicence.LoadFile(context.InstInfo.LicenceFile);
     }
     else
     {
         this.txtLicence.Text = File.ReadAllText(context.InstInfo.LicenceFile, Encoding.GetEncoding("GB18030"));
     }
 }
示例#2
0
        public void SetContext(InstallContext context, EventHandler <InstallEventArgs> handler)
        {
            this.Context                = context;
            this.InstallChanged        += handler;
            this.SubTitle               = context.ConvertVars(subtitle);
            this.lblInfo.Text           = context.ConvertVars(info);
            this.txtInstallPath.Text    = context.InstInfo.InstallPath.Trim("\\/".ToCharArray());
            this.lblNeedSize.Text       = string.Format(newdSizeFmt, Global.GetSizeString(context.NeedSize));
            this.txtInstallPath.Enabled = context.InstInfo.AllowChangeInstallPath;
            this.btnChangePath.Enabled  = context.InstInfo.AllowChangeInstallPath;

            this.gbChooseUser.Visible = this.Context.InstInfo.AllowChangeUser;
            this.chkAllUsers.Checked  = this.Context.InstInfo.ForAllUser;
            this.chkOnlyMe.Checked    = !this.Context.InstInfo.ForAllUser;
            this.gbChooseUser.Text    = context.ConvertVars(chooseUsers);
        }
示例#3
0
 public void SetContext(InstallContext context, EventHandler <InstallEventArgs> handler)
 {
     this.Context  = context;
     this.SubTitle = context.ConvertVars(subtitle);
     this.chkDesktopShortcut.Checked = true;
     this.txtIconGroup.Text          = context.InstInfo.IconGroup;
     this.chkIconGroup.Checked       = true;
     this.txtIconGroup.Enabled       = context.InstInfo.AllowChangeIconGroup;
 }