Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PunchButton = ((CRMDesktop.StyledButton)(target));
                return;

            case 2:
                this.TextEntry = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.ClockState = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.scroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 5:
                this.logGrid = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.topGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.Toggle = ((CRMDesktop.StyledButton)(target));
                return;

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

            case 4:
                this.SearchEntry = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.TSection = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.HeadData = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.nameLabel = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.phoneLabel = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.BookingDate = ((Xceed.Wpf.Toolkit.DateTimePicker)(target));
                return;

            case 5:
                this.advButton = ((CRMDesktop.StyledButton)(target));
                return;

            case 6:
                this.SaveButton = ((CRMDesktop.StyledButton)(target));
                return;

            case 7:
                this.AddButton = ((CRMDesktop.StyledButton)(target));
                return;

            case 8:
                this.noteLabel = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.navButton = ((CRMDesktop.StyledButton)(target));
                return;

            case 10:
                this.scroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 11:
                this.BodyGrid = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #4
0
        public void onClickAccess(object sender, RoutedEventArgs e)
        {
            StyledButton sb = (StyledButton)sender;

            if (sb.Content.Equals("Pricing Guide"))
            {
                Price_Page page = new Price_Page();
                ClientData.mainFrame.Navigate(page);
            }
            else if (sb.Content.Equals("Inventory"))
            {
                Items_Page page = new Items_Page();
                ClientData.mainFrame.Navigate(page);
            }
            else if (sb.Content.Equals("Chat"))
            {
                Chat_Page page = new Chat_Page();
                ClientData.mainFrame.Navigate(page);
            }
            else if (sb.Content.Equals("Coupon Checker"))
            {
                CouponChecker_Page page = new CouponChecker_Page();
                ClientData.mainFrame.Navigate(page);
            }
            else if (sb.Content.Equals("Manage Favourites"))
            {
                Favourites_Page page = new Favourites_Page();
                ClientData.mainFrame.Navigate(page);
            }
            else if (sb.Content.Equals("View Tasks"))
            {
                Tasks_Page page = new Tasks_Page();
                ClientData.mainFrame.Navigate(page);
            }
            else if (sb.Content.Equals("CDR"))
            {
                CDR_Page page = new CDR_Page(true, "");
                ClientData.mainFrame.Navigate(page);
            }
            else if (sb.Content.Equals("Missed Calls"))
            {
                Check_Page page = new Check_Page();
                ClientData.mainFrame.Navigate(page);
            }
            else if (sb.Content.Equals("View Customers"))
            {
                CustomerList_Page page = new CustomerList_Page();
                ClientData.sideFrame.Navigate(page);
            }
            else if (sb.Content.Equals("Role Assignment"))
            {
                RoleAssignment_Page page = new RoleAssignment_Page();
                ClientData.sideFrame.Navigate(page);
            }
            else if (sb.Content.Equals("Create Agent"))
            {
                Create_Agent page = new Create_Agent();
                ClientData.mainFrame.Navigate(page);
            }
            else if (sb.Content.Equals("Punch Clock"))
            {
                Punch_Page page = new Punch_Page();
                ClientData.mainFrame.Navigate(page);
            }
            else if (sb.Content.Equals("Punch Admin"))
            {
                PunchAdmin_Page page = new PunchAdmin_Page();
                ClientData.mainFrame.Navigate(page);
            }
            else if (sb.Content.Equals("Import"))
            {
                OldDataImport ol = new OldDataImport();
                ol.import();
            }
        }
Beispiel #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.scroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 2:
                this.quoteStack = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.nameLabel = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            case 6:
                this.phoneLabel = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.StageButton = ((CRMDesktop.StyledButton)(target));
                return;

            case 8:
                this.QuoteTotal = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.PriceGuidecombo = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 10:
                this.bottomStack = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this.row = ((CRMDesktop.StyledButton)(target));
                return;

            case 12:
                this.sig = ((CRMDesktop.StyledButton)(target));
                return;

            case 13:
                this.fie = ((CRMDesktop.StyledButton)(target));
                return;

            case 14:
                this.met = ((CRMDesktop.StyledButton)(target));
                return;

            case 15:
                this.fileGrid = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }