StaticClass.cs

using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;

namespace ComputerDropDragControl
{
    public static class StaticClass
    {
        private static PanelDragDropTarget dragPanel;
        public static PanelDragDropTarget DragPanel
        {
            get
            {
                return dragPanel;
            }
            set
            {
                dragPanel = value;
                //MessageBox.Show("helloSet!");
            }
        }

        private static ListBoxDragDropTarget dragPanelList;
        public static ListBoxDragDropTarget DragPanelList
        {
            get
            {
                return dragPanelList;
            }
            set
            {
                dragPanelList = value;
            }
        }

        private static ListBoxDragDropTarget drogPanelList;
        public static ListBoxDragDropTarget DrogPanelList
        {
            get
            {
                return drogPanelList;
            }
            set
            {
                drogPanelList = value;
            }
        }

        private static PanelDragDropTarget dropPanel;
        public static PanelDragDropTarget DropPanel
        {
            get
            {
                return dropPanel;
            }
            set
            {
                dropPanel = value;
                //MessageBox.Show("dropPanel!");
            }
        }

        private static bool fromList;
        public static bool FromList
        {
            get
            {
                return fromList;
            }
            set
            {
                fromList = value;
            }
        }

        private static bool existPlace;
        public static bool ExistPlace
        {
            get
            {
                return existPlace;
            }
            set
            {
                existPlace = value;
            }
        }

        public static bool DropInHandCar { get; set; }
        public static bool DropInRecyle { get; set; }
        public static bool FromHandCar { get; set; }

        //public static ComputerUnit CUStatic { get; set; }

        private static List<ListBoxItem> handCarList = new List<ListBoxItem>();
        public static List<ListBoxItem> HandCarList
        {
            get
            {
                return handCarList;
            }
            set
            {
                handCarList = value;
            }
        }
    }
}

你可能感兴趣的:(Class)