//MoveNextPage
        private void MoveNextPage()
        {
            switch (index)
            {
            case 1:
                ContentTransition.ShowContent(admin_guide);
                img4.Source = bitmap_image;
                img1.Source = bitmap_image_focus;
                index++;
                break;

            case 2:
                ContentTransition.ShowContent(inventory_guide);
                img1.Source = bitmap_image;
                img2.Source = bitmap_image_focus;
                index++;
                break;

            case 3:
                ContentTransition.ShowContent(report_guide);
                img2.Source = bitmap_image;
                img3.Source = bitmap_image_focus;
                index++;
                break;

            case 4:
                ContentTransition.ShowContent(change_info_guide);
                img3.Source = bitmap_image;
                img4.Source = bitmap_image_focus;
                index       = 1;
                break;
            }
        }
Ejemplo n.º 2
0
        private void Button_TableInfo(object sender, RoutedEventArgs e)
        {
            ConstructTableInfoPanel infoPanel = new ConstructTableInfoPanel();

            infoPanel.DataContext = _ConstructFile;
            ContentTransition.ChangeContent(infoPanel, PathContentTranstitionType.NO_ANIM);
        }
Ejemplo n.º 3
0
        private void SetDataContent(ConstructItem item)
        {
            if (item == null)
            {
                return;
            }

            ConstructItemInfoPanel infoPanel = new ConstructItemInfoPanel();

            infoPanel.DataContext = item;
            ContentTransition.ChangeContent(infoPanel, PathContentTranstitionType.NO_ANIM);
            //ItemAttrPanel.Visibility = System.Windows.Visibility.Visible;
            //ItemAttrPanel.DataContext = item;

            //if (item.ItemReadOnly)
            //{
            //    this.Name.IsEnabled = false;
            //    this.ItemCode.IsEnabled = false;
            //    this.ItemDefault.IsEnabled = false;
            //    this.ItemRepeat.IsEnabled = false;
            //}
            //else
            {
                //this.Name.IsEnabled = true;
                //this.ItemCode.IsEnabled = true;
                //this.ItemDefault.IsEnabled = true;
                //this.ItemRepeat.IsEnabled = true;
            }
        }
 //FirstTimeLoginGuide
 public FirstTimeLoginGuide()
 {
     InitializeComponent();
     img1.Source       = bitmap_image;
     img2.Source       = bitmap_image;
     img3.Source       = bitmap_image;
     img4.Source       = bitmap_image;
     admin_guide       = new AdminGuide();
     inventory_guide   = new InventoryGuide();
     report_guide      = new ReportGuide();
     change_info_guide = new ChangeInfo();
     ContentTransition.ShowContent(admin_guide);
     index++;
     img1.Source = bitmap_image_focus;
 }
Ejemplo n.º 5
0
 protected virtual void OnIsExpandedChanged(AvaloniaPropertyChangedEventArgs e)
 {
     if (Content != null && ContentTransition != null && Presenter is Visual visualContent)
     {
         bool forward = ExpandDirection == ExpandDirection.Left ||
                        ExpandDirection == ExpandDirection.Up;
         if (IsExpanded)
         {
             ContentTransition.Start(null, visualContent, forward);
         }
         else
         {
             ContentTransition.Start(visualContent, null, !forward);
         }
     }
 }
Ejemplo n.º 6
0
        public void ShowContent(object param)
        {
            ConstructFile fileInfo = param as ConstructFile;

            if (fileInfo == null)
            {
                return;
            }

            _ConstructFile = fileInfo;

            //ItemAttrPanel.Visibility = System.Windows.Visibility.Collapsed;

            LinkList.ItemsSource = _ConstructFile.ConstructItems;
            //InitItemType1();
            ContentTransition.ChangeContent(null, PathContentTranstitionType.NO_ANIM);
        }