Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MetroSearchBox = ((EasyStore.helpers.MetroSearchBox)(target));
                return;

            case 2:
                this.StartPeriod = ((EasyStore.helpers.CustomDatePicker)(target));
                return;

            case 3:
                this.EndPeriod = ((EasyStore.helpers.CustomDatePicker)(target));
                return;

            case 4:
                this.AddBtn = ((EasyStore.helpers.MetroFlatButton)(target));
                return;

            case 5:
                this.RptBtn = ((EasyStore.helpers.MetroCircleButton)(target));
                return;

            case 6:
                this.StockDg = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ProductDg = ((System.Windows.Controls.DataGrid)(target));

            #line 48 "..\..\..\views\invoiceItemView.xaml"
                this.ProductDg.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ProductDg_OnSelectionChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.TxtQnt = ((MahApps.Metro.Controls.NumericUpDown)(target));
                return;

            case 3:
                this.TxtPrice = ((MahApps.Metro.Controls.NumericUpDown)(target));
                return;

            case 4:
                this.AddBtn = ((EasyStore.helpers.MetroFlatButton)(target));
                return;

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

            case 6:
                this.AmmoutpaidXTxt = ((MahApps.Metro.Controls.NumericUpDown)(target));
                return;

            case 7:
                this.TotalNetTxt = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.TotalTxt = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.SaveBtn = ((EasyStore.helpers.MetroCircleButton)(target));
                return;

            case 10:
                this.ExpPdfBtn = ((EasyStore.helpers.MetroCircleButton)(target));
                return;

            case 11:
                this.DeleteBtn = ((EasyStore.helpers.MetroCircleButton)(target));
                return;

            case 12:
                this.InvoiceItemDg = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.RefreshBtn = ((EasyStore.helpers.MetroCircleButton)(target));
                return;

            case 2:
                this.SaveBtn = ((EasyStore.helpers.MetroCircleButton)(target));
                return;

            case 3:
                this.CustomerInfo = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 5:
                this.TxtQnt = ((MahApps.Metro.Controls.NumericUpDown)(target));
                return;

            case 6:
                this.AddBtn = ((EasyStore.helpers.MetroFlatButton)(target));
                return;

            case 7:
                this.DEletebtn = ((EasyStore.helpers.MetroCircleButton)(target));
                return;

            case 8:
                this.ExpPdfBtn = ((EasyStore.helpers.MetroCircleButton)(target));
                return;

            case 9:
                this.InvoiceDg = ((System.Windows.Controls.DataGrid)(target));

            #line 123 "..\..\..\views\productView.xaml"
                this.InvoiceDg.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.InvoiceDg_OnSelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemple #4
0
 void IComponentConnector.Connect(int connectionId, object target)
 {
     if (connectionId != 1)
     {
         if (connectionId == 2)
         {
             this.BrowsePicons = (MetroFlatButton)target;
         }
         else
         {
             this._contentLoaded = true;
         }
     }
     else
     {
         this.Ribbon = (MetroRibbon)target;
     }
 }
Exemple #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AddOrderBtn = ((EasyStore.helpers.MetroFlatButton)(target));
                return;

            case 2:
                this.RptBtn = ((EasyStore.helpers.MetroFlatButton)(target));
                return;

            case 3:
                this.BlRptBtn = ((EasyStore.helpers.MetroFlatButton)(target));
                return;

            case 4:
                this.PrintBtn = ((EasyStore.helpers.MetroCircleButton)(target));
                return;

            case 5:
                this.ExpPdfBtn = ((EasyStore.helpers.MetroCircleButton)(target));
                return;

            case 6:
                this.InvoiceDg = ((System.Windows.Controls.DataGrid)(target));

            #line 80 "..\..\..\views\invoiceListView.xaml"
                this.InvoiceDg.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.InvoiceDg_OnSelectionChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.InvoiceItemDg = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }