예제 #1
0
        public Page1()
        {
            InitializeComponent();

            desktopSevice = new DesktopSevice();
            Init();


            //button5.AddHandler(Button.MouseLeftButtonDownEvent, new MouseButtonEventHandler(canvas_MouseLeftButtonDown), true);//注册事件
            //button5.AddHandler(Button.MouseLeftButtonUpEvent, new MouseButtonEventHandler(canvas_MouseLeftButtonUp), true);//注册事件
            //button5.AddHandler(Button.MouseMoveEvent, new MouseEventHandler(canvas_MouseMove), true);//注册事件
        }
예제 #2
0
 public MainWindow()
 {
     InitializeComponent();
     desktopSevice = new DesktopSevice();
     Init();
 }