Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code>&lt;Window x:Class="BackupCiscoConfigs.ProcessRunning" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c="clr-namespace:BackupCiscoConfigs" Title="ProcessRunning" Height="300" Width="300" Closed="Window_Closed" ResizeMode="CanMinimize"&gt; &lt;Grid DataContext="{Binding RelativeSource={RelativeSource Mode=Self}}"&gt; &lt;Button Content="Run" Height="23" HorizontalAlignment="Center" Margin="0,0,0,0" Name="btnRun" VerticalAlignment="Bottom" Width="75" Click="btnRun_Click" /&gt; &lt;TextBlock Width="200" Height="85" Margin="35,80,43,65" Text="{Binding Mode=OneWay, Path=Results.Count}"&gt;&lt;/TextBlock&gt; &lt;/Grid&gt; &lt;/Window&gt; </code></pre> <p>Window codebehind:</p> <pre><code>namespace BackupCiscoConfigs { /// &lt;summary&gt; /// Interaction logic for ProcessRunning.xaml /// &lt;/summary&gt; public partial class ProcessRunning : Window, INotifyPropertyChanged { private MainWindow m_parent; private Configuration currentConfig; private DeviceInterface di; public event PropertyChangedEventHandler PropertyChanged; // This method is called by the Set accessor of each property. // The CallerMemberName attribute that is applied to the optional propertyName // parameter causes the property name of the caller to be substituted as an argument. private void NotifyPropertyChanged(String propertyName) { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } private ObservableCollection&lt;Task&gt; _results; public ObservableCollection&lt;Task&gt; Results get { return _results; } set { _results= value; NotifyPropertyChanged("results"); } public ProcessRunning(MainWindow parent) { currentConfig = Configuration.loadConfig(); m_parent = parent; InitializeComponent(); } private void btnRun_Click(object sender, RoutedEventArgs e) { List&lt;Device&gt; devices = currentConfig.devices; di = new DeviceInterface(currentConfig.tftpIP, currentConfig.tftpDIR, currentConfig.cmd); di.RunCommands(devices); Results = di.results; } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload