Esempio n. 1
0
        private void add_block_click(object sender, RoutedEventArgs e)
        {
            AddBlock variables_window = new AddBlock();

            variables_window.SetProgram(this.main_program);
            variables_window.ShowDialog();
            this.UpdateProgramView();
        }
Esempio n. 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.add_block = ((WpfApp2.AddBlock)(target));
                return;

            case 2:
                this.training_block_box = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.training_weeks_count = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 4:
                this.squat_main_focus = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:
                this.benchpress_main_focus = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 6:
                this.deadlift_main_focus = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 7:
                this.weekly_template_button = ((System.Windows.Controls.Button)(target));

            #line 58 "..\..\variables_window.xaml"
                this.weekly_template_button.Click += new System.Windows.RoutedEventHandler(this.weekly_template_browse);

            #line default
            #line hidden
                return;

            case 8:

            #line 59 "..\..\variables_window.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddBlockDone);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }