public Menu_Layer(MainWindow mainWindow)
        {
            InitializeComponent();
            this.mainWindow = mainWindow;
            this.Height = STATICS.SCREEN_HEIGHT;
            this.Width = STATICS.SCREEN_WIDTH;
            this.IsManipulationEnabled = false;
            this.Background = null;
            //if (STATICS.ALEX_ACTIVE)
            //{
            //    menuBars[0] = new Menu_Container(this);
            //    double x = (STATICS.SCREEN_WIDTH - menuBars[0].Width) / 2;
            //    double y = STATICS.SCREEN_HEIGHT - menuBars[0].Height;

            //    Matrix matrix = new Matrix(1, 0, 0, 1, x, y);
            //    menuBars[0].RenderTransform = new MatrixTransform(matrix);
            //    menuBars[0].IsManipulationEnabled = false;
            //    menuBars[0].IsHitTestVisible = false;
            //    this.Children.Add(menuBars[0]);
            //}
            //if (STATICS.BEN_ACTIVE)
            //{
            //    menuBars[1] = new Menu_Container(this);
            //    double x = (STATICS.SCREEN_WIDTH + menuBars[1].Width) / 2;
            //    double y = menuBars[0].Height;
            //    Matrix matrix = new Matrix(1, 0, 0, 1, 0, 0);
            //    matrix.Rotate(180);
            //    matrix.Translate(x, y);
            //    menuBars[1].RenderTransform = new MatrixTransform(matrix);
            //    menuBars[1].IsManipulationEnabled = false;
            //    menuBars[1].IsHitTestVisible = false;
            //    this.Children.Add(menuBars[1]);
            //}
            if (STATICS.CHRIS_ACTIVE)
            {
                menuBars[2] = new Menu_Container(this);
                double x = menuBars[2].Height;
                double y = (STATICS.SCREEN_HEIGHT - menuBars[0].Width) / 2;
                Matrix matrix = new Matrix(1, 0, 0, 1, 0, 0);
                matrix.Rotate(90);
                matrix.Translate(x, y);
                menuBars[2].RenderTransform = new MatrixTransform(matrix);
                menuBars[2].IsManipulationEnabled = false;
                menuBars[2].IsHitTestVisible = false;
                this.Children.Add(menuBars[2]);
            }
            if (STATICS.DANNY_ACTIVE)
            {
                menuBars[3] = new Menu_Container(this);
                double x = STATICS.SCREEN_WIDTH - menuBars[3].Height;
                double y = (STATICS.SCREEN_HEIGHT + menuBars[3].Width) / 2;
                Matrix matrix = new Matrix(1, 0, 0, 1, 0, 0);
                matrix.Rotate(-90);
                matrix.Translate(x, y);
                menuBars[3].RenderTransform = new MatrixTransform(matrix);
                menuBars[3].IsManipulationEnabled = false;
                menuBars[3].IsHitTestVisible = false;
                this.Children.Add(menuBars[3]);
            }
        }
 public Sorting_Gesture_Layer(MainWindow mainwin)
 {
     this.mainWindow = mainwin;
     InitializeComponent();
     this.IsHitTestVisible = false;
     this.IsManipulationEnabled = false;
 }
 public Card_Layer(MainWindow mainWindow)
 {
     InitializeComponent();
     this.IsManipulationEnabled = false;
     this.mainWindow = mainWindow;
     this.Height = STATICS.SCREEN_HEIGHT;
     this.Width = STATICS.SCREEN_WIDTH;
 }
示例#4
0
        public static String PrintRecord(MainWindow mainWindow, Gesture_Event gesture, Gesture_Event_Args args, GESTURESTATUS status)
        {
            String oneRecord = "";
            if (STATICS.DEBUG_MODE)
            {
                RecordObj rObj = new RecordObj();
                oneRecord += DateTime.Now.ToString("h:mm:ss:fff tt");
                rObj.time_stemp = DateTime.Now.ToString("h:mm:ss:fff tt");

                oneRecord += "$"+gesture.GetType().Name.ToString();
                rObj.gesture_name=gesture.GetType().Name.ToString();

                oneRecord += "$" + status.ToString();
                rObj.status = status.ToString();

                List<String> cards = new List<string>();
                List<String> buttons = new List<string>();
                foreach (object obj in args.GestureObjects) {
                    if (obj is Card) {
                        Card c = obj as Card;
                        oneRecord += "$" + "Card={" + c.Owner + "," + c.UUID + ","  + "}";
                        cards.Add(c.Owner + "," + c.UUID + ",");
                    }
                    else if (obj is Menu_Sort_Box) {
                        Menu_Sort_Box b = obj as Menu_Sort_Box;
                        oneRecord += "$" + "Button={" + b.GroupID + "," + b.GroupText + "}";
                        buttons.Add(b.GroupID + "," + b.GroupText);
                    }
                }
                rObj.cards = cards.ToArray();
                rObj.buttons = buttons.ToArray();

                List<String> points = new List<string>();
                int index = 0;
                foreach (My_Point point in args.GesturePoints) {
                    oneRecord += "$" + "Point={" + index + "," + "[" + point.StartTime.ToString("h:mm:ss:fff tt") +","+ point.StartPoint.Position.ToString() + "]"
                        + "," + "[" +DateTime.Now.ToString("h:mm:ss:fff tt")+","+ point.CurrentPoint.Position.ToString() + "]" + "}";
                    points.Add(point.StartTime.ToString("h:mm:ss:fff tt") + "," + point.StartPoint.Position.ToString()+","+
                        DateTime.Now.ToString("h:mm:ss:fff tt") + "," + point.CurrentPoint.Position.ToString());
                    index++;
                }
                rObj.points = points.ToArray();
                mainWindow.ControlWindow.SaveRecord(rObj);
                mainWindow.ControlWindow.UpdateTextInfo(oneRecord, 2);
            }
            return oneRecord;
        }
 public User_Controler(MainWindow mainWin)
 {
     this.mainWindow = mainWin;
     User user = new User();
     user.Name = "Alex";
     user.UserColor = STATICS.USER_COLOR["Alex"];
     userList.Add("Alex", user);
     user = new User();
     user.Name = "Ben";
     user.UserColor = STATICS.USER_COLOR["Ben"];
     userList.Add("Ben", user);
     user = new User();
     user.Name = "Chris";
     user.UserColor = STATICS.USER_COLOR["Chris"];
     userList.Add("Chris", user);
     user = new User();
     user.Name = "Danny";
     user.UserColor = STATICS.USER_COLOR["Danny"];
     userList.Add("Danny", user);
 }
 public Control_Window(MainWindow mainwin)
 {
     InitializeComponent();
     this.mainWindow = mainwin;
     InitializeControlWindow();
 }
 public Card_Controler(MainWindow mainWindow)
 {
     this.mainWindow = mainWindow;
 }
 public Touch_Controler(MainWindow mainWindow)
 {
     this.mainWindow = mainWindow;
 }
 public Joint_Interest_Controler(MainWindow mainWindow)
 {
     this.mainWindow = mainWindow;
 }
示例#10
0
 public Loaders(MainWindow mainWindow)
 {
     this.mainWindow = mainWindow;
     groupBinLoader = new Sorting_Group_Loader(this);
     newsCardLoader = new News_Card_Loader(this);
 }
 public Sorting_Icon_Controler(MainWindow mainWindow)
 {
     this.mainWindow = mainWindow;
 }
 public Gesture_Controler(MainWindow mainWindow)
 {
     this.mainWindow = mainWindow;
     groupingControler = new Sorting_Group_Controler(this);
 }