示例#1
0
 public AddItemForm(ConfigCmd cmdMgr)
 {
     InitializeComponent();
     cmd = cmdMgr;
     if ("" != cmd.CurItem.name)
     {
         txtName.Text = cmd.CurItem.name;
         txtVersion.Text = cmd.CurItem.version;
         txtUrl.Text = cmd.CurItem.url;
         rtxtDesc.Text = cmd.CurItem.description;
         cbPopularity.Text = cmd.CurItem.popular.ToString();
     }
     cbCatalogs.Text = cmd.CurItem.catalog;
     cbTypes.Text = cmd.CurItem.type;
 }
示例#2
0
 public AddItemForm(ConfigCmd cmdMgr)
 {
     InitializeComponent();
     cmd = cmdMgr;
     if ("" != cmd.CurItem.name)
     {
         txtName.Text      = cmd.CurItem.name;
         txtVersion.Text   = cmd.CurItem.version;
         txtUrl.Text       = cmd.CurItem.url;
         rtxtDesc.Text     = cmd.CurItem.description;
         cbPopularity.Text = cmd.CurItem.popular.ToString();
     }
     cbCatalogs.Text = cmd.CurItem.catalog;
     cbTypes.Text    = cmd.CurItem.type;
 }
 /// <summary>
 /// Initialization of the package; this method is called right after the package is sited, so this is the place
 /// where you can put all the initialization code that rely on services provided by VisualStudio.
 /// </summary>
 protected override void Initialize()
 {
     ConfigCmd.Initialize(this);
     base.Initialize();
 }