Exemplo n.º 1
0
        /// <summary>
        /// Opens the specified configuration.
        /// </summary>
        /// <param name="configuration">The configuration.</param>
        public void Open(BuildConfigurationViewModel configuration)
        {
            if (this._skipOpen)
            {
                this._skipOpen = false;
                return;
            }

            this.IsFlyoutOpen          = true;
            this.SelectedConfiguration = configuration;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Removes the specified configuration.
        /// </summary>
        /// <param name="configuration">The configuration.</param>
        public async void Remove(BuildConfigurationViewModel configuration)
        {
            this._skipOpen = true;
            var result = await this._showMessage("Are you sure?", $"You are about to delete {configuration.BuildName}", MessageDialogStyle.AffirmativeAndNegative);

            if (result == MessageDialogResult.Affirmative)
            {
                this.Configurations.Remove(configuration);
                this._buildService.RemoveBuild(configuration.Id);
                this._buildService.Save();
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Selects the specified build.
 /// </summary>
 /// <param name="build">The build.</param>
 public void Select(BuildConfigurationViewModel build)
 {
     this.BuildSelected?.Invoke(this, build.SimpleBuild);
 }