Example #1
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            ScriptGen scriptgenerator    = (ScriptGen)GetTopLevelControl(this);
            int       numberOfStackPanel = scriptgenerator.ScriptGen1.StackPanelScriptGen.Children.Count;

            FromTabStackPanelControl fs = new FromTabStackPanelControl();

            fs.Name   = "Fs2";
            fs.Margin = new Thickness(20, 250, 20, 255);
            fs.btnDelete.Visibility = System.Windows.Visibility.Visible;
            fs.btnDelete.Uid        = (numberOfStackPanel + 1).ToString();
            fs.btnDelete.Width      = 25.0;
        }
Example #2
0
 private void menuItemImportScript_Click(object sender, RoutedEventArgs e)
 {
     //var newW = new ScriptGenerator();
     var newW = new ScriptGen();
     newW.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
     newW.Show();
 }