Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Root = ((Nazv_orgsnizaciy.Frames.MainPage)(target));
                return;

            case 2:

            #line 28 "..\..\..\Frames\MainPage.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);

            #line default
            #line hidden
                return;

            case 3:

            #line 34 "..\..\..\Frames\MainPage.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);

            #line default
            #line hidden
                return;

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

            #line 43 "..\..\..\Frames\MainPage.xaml"
                this.DiscountFilterComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DiscountFilterComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.SearchFilterTextBox = ((System.Windows.Controls.TextBox)(target));

            #line 49 "..\..\..\Frames\MainPage.xaml"
                this.SearchFilterTextBox.KeyUp += new System.Windows.Input.KeyEventHandler(this.TextBox_KeyUp);

            #line default
            #line hidden
                return;

            case 6:
                this.MainDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
        public MainWindow()
        {
            InitializeComponent();
            this.DataContext = this;
            //MainWindRef = this;
            //MainFrame page = new MainFrame;
            //MainFrame.Content = MainFrame;

            MP = new Frames.MainPage();
            MainFrame.Navigate(MP);

            //ServiceList = Core.DB.Service.ToList();
        }