private void buttonAddDiscovered_Click_1(object sender, RoutedEventArgs e) { foreach (CheckedListBoxItem item in this.checkedListItems) { if (item.IsChecked) { StaticHelper.DeployZippedButton(item.SourcePath, item.Name); } } this.GetButtons(); }
private void buttonAddDiscovered_Click_1(object sender, RoutedEventArgs e) { foreach (CheckedListBoxItem item in this.checkedListItems) { if (item.IsChecked) { if (!StaticHelper.DeployZippedButton(item.SourcePath, item.Name)) { MessageBox.Show("Deploy Failed. Check your Event Log", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } } this.GetButtons(); }