Exemplo n.º 1
0
        private void Initialize_Pages()
        {
            try
            {
                Projects_Page = new Products();
                Pages_Page = new Outcome_Page();
                Tasks_Page = new Propertiess();
                Users_Page = new Transactions(Transactions_Types.Buy);
            }
            catch
            {

            }
        }
Exemplo n.º 2
0
        private void BTN_1_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Button btn = sender as Button;

                if(btn.Name.StartsWith("Tab_") && !Tab_Panel.Children.Contains(btn))
                {
                    Close_Page(btn);
                }
                else if(btn.Name != Selected_Button && btn.Name.Replace("Tab_", "") != Selected_Button)
                {
                    { Products_Page = new Products(); }
                    Frame.Navigate(Products_Page);
                    Set_Selected(btn);
                }
            }
            catch
            {

            }
        }