Exemplo n.º 1
0
        public Sales()
        {
            InitializeComponent();

            // dockingMain.DataContext = new vmInvoice();
            DataContext = new vmPeople();
        }
Exemplo n.º 2
0
        public Sales(int pageNo)
        {
            InitializeComponent();

            DataContext = new vmPeople();

            rootPageNo = pageNo;


            //this.DataContext = this;
            //this.progressTimer = new DispatcherTimer();
            //this.progressTimer.Interval = TimeSpan.FromSeconds(0.1);
            //this.progressTimer.Tick += new EventHandler(this.progressTimer_Tick);


            //switch (pMenu)
            //{
            //    case 1:
            //        txtTitle.Text = "Sales Editor";
            //        transition.Content = new SalesEditor();
            //        radioEditor.IsChecked = true;
            //        radioHist.IsChecked = false;
            //        break;

            //    case 2:

            //        txtTitle.Text = "Sales History";
            //        transition.Content = new SalesHistory();
            //        radioEditor.IsChecked = false;
            //        radioHist.IsChecked = true;
            //        break;
            //}
        }
Exemplo n.º 3
0
        public People()
        {
            InitializeComponent();

            DataContext = new vmPeople();

            if (MainPage.lCurrentUser.UserRole.Name == "Read Only")
            {
                this.myRadDataForm.CommandButtonsVisibility = Telerik.Windows.Controls.Data.DataForm.DataFormCommandButtonsVisibility.None;
            }
        }