public PackageBuilderInstance(Entities.PackageBuilder packageBuilder)
        {
            InitializeComponent();

            PackageBuilderData = packageBuilder;
            ProjectVersion     = Singleton.Instance.Settings.SelectedProjectVersion;

            Dashboard.MyProjectVersionChangedEvent += Dashboard_MyProjectVersionChangedEvent;
        }
        private void newPackageBuilder_Click(object sender, EventArgs e)
        {
            var f = new PackageBuilderEditor();

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                Entities.PackageBuilder data = f.PackageBuilderData;

                packageBuildersList.Controls.Add(new PackageBuilderInstance(data));
            }
        }
        private void editPackageBuilderButton_Click(object sender, EventArgs e)
        {
            using (var f = new PackageBuilderEditor(PackageBuilderData))
            {
                var dialogResult = f.ShowDialog(this);

                if (dialogResult == DialogResult.OK)
                {
                    this.PackageBuilderData = f.PackageBuilderData;
                }
            }
        }
Esempio n. 4
0
 public PackageBuilderEditor(Entities.PackageBuilder packageBuilder)
     : this()
 {
     PackageBuilderData = packageBuilder;
 }