private void button1_Click(object sender, RoutedEventArgs e) { string tempDisks = comboBox.Text; if (tempDisks == "1") { stackPanel1.Children.Add(rectangle1); } }
m_Parent.FunctionCall();
public partial class SecWindow : Window{ private MainWindow m_Parent; public SecWindow(MainWindow parent) { InitializeComponent(); m_Parent = parent; m_Parent.FunctionCall(); }}
public partial class SecWindow : Window { private MainWindow m_Parent; public SecWindow(MainWindow parent) { InitializeComponent(); m_Parent = parent; m_Parent.FunctionCall(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)