Exemple #1
0
        void CreateRossData()
        {
            RossPatterns = new ObservableCollection<RossData>();
            RossData val = new RossData(0);
            val.Ex1 = 70; val.SR = 20; val.Fl = 12; val.Fr = -22; val.N = -2; val.M = 159; val.L = -161;
            RossPatterns.Add(val);
            val = new RossData(1);
            val.Ex1 = 70; val.SR = 20; val.Fl = 12; val.Fr = 22; val.N = -2; val.M = 159; val.L = -161;
            RossPatterns.Add(val);
            val = new RossData(2);
            val.Ex1 = 60; val.SR = 60; val.Fl = 12; val.Fr = -27; val.N = -2; val.M = -121; val.L = 119;
            val.Phi1 = 60; val.Phi2 = 60; val.Phi3 = 60; val.Ex2 = 0; val.M = 0; val.V4 = 0;
            RossPatterns.Add(val);
            val = new RossData(3);
            val.Ex1 = 60; val.SR = 10; val.Fl = 10; val.Fr = -9; val.N = -2; val.M = -13; val.L = 11;
            val.Phi1 = 180; val.Phi2 = 180; val.Phi3 = 180;
            RossPatterns.Add(val);
            val = new RossData(4);
            val.Ex1 = 60; val.SR = 10; val.Fl = 10; val.Fr = -9; val.N = -2; val.M = -13; val.L = 11;
            val.Phi1 = 180;
            RossPatterns.Add(val);
            val = new RossData(5);
            val.Ex1 = 60; val.SR = 10; val.Fl = 10; val.Fr = 9; val.N = -2; val.M = -13; val.L = 11;
            val.Phi1 = 180; val.Phi2 = 180;
            RossPatterns.Add(val);
            val = new RossData(6);
            val.Ex1 = 60; val.SR = 10; val.Fl = 10; val.Fr = 9; val.N = -2; val.M = -13; val.L = 11;
            val.Phi1 = 180;
            RossPatterns.Add(val);
            val = new RossData(7);
            val.SuggestedMaxTurns = 4;
            val.Ex1 = 75; val.SR = 45; val.Fl = 10; val.Fr = -23; val.N = -3.5; val.M = 202.5; val.L = -207.5;
            val.Phi1 = 135; val.Phi2 = 135; val.Phi3 = 135;
            RossPatterns.Add(val);
            val = new RossData(8);
            val.Ex1 = 90; val.SR = 10; val.Fl = 12; val.Fr = -20; val.N = -4; val.M = -189; val.L = 183;
            RossPatterns.Add(val);
            val = new RossData(9);
            val.Ex1 = 75; val.SR = 40; val.Fl = 12; val.Fr = 18; val.N = -4; val.M = -253; val.L = 247;
            RossPatterns.Add(val);
            val = new RossData(10);
            val.Ex1 = 80; val.SR = 11; val.Fl = 23; val.Fr = -20; val.N = -4; val.M = -131; val.L = 253;
            val.Phi2 = 90;
            RossPatterns.Add(val);
            val = new RossData(11);
            val.Ex1 = 80; val.SR = 11; val.Fl = 23; val.Fr = -20; val.N = -4; val.M = -131; val.L = 253;
            val.Phi1 = 180; val.Phi2 = 180; val.Phi3 = 180;
            RossPatterns.Add(val);
            val = new RossData(12);
            val.Ex1 = 75; val.SR = 12; val.Fl = 25; val.Fr = -14; val.N = -4; val.M = -131; val.L = 189;
            val.Phi1 = 180; val.Phi2 = 180; val.Phi3 = 180;
            RossPatterns.Add(val);
            val = new RossData(13);
            val.Ex1 = 70; val.SR = 9; val.Fl = 40; val.Fr = -10; val.N = -4; val.M = 189; val.L = -195;
            val.Phi1 = 180; val.Phi3 = 180;
            RossPatterns.Add(val);
            val = new RossData(14);
            val.Ex1 = 80; val.SR = 13; val.Fl = 25; val.Fr = -6; val.N = -4; val.M = 189; val.L = 195;
            RossPatterns.Add(val);
            val = new RossData(15);
            val.Ex1 = 100; val.SR = 10; val.Fl = 12; val.Fr = -12; val.N = 8; val.M = 375; val.L = -357;
            val.Phi1 = 180; val.Phi2 = 180; val.Phi3 = 180;
            RossPatterns.Add(val);
            val = new RossData(16);
            val.Ex1 = 100; val.SR = 12; val.Fl = 12; val.Fr = 11; val.N = 8; val.M = 375; val.L = -357;
            RossPatterns.Add(val);
            val = new RossData(17);
            val.Ex1 = 90; val.SR = 14; val.Fl = 15; val.Fr = -14; val.N = -8; val.M = 313; val.L = -327;
            RossPatterns.Add(val);
            val = new RossData(18);
            val.Ex1 = 100; val.SR = 9; val.Fl = 12; val.Fr = 11; val.N = -8; val.M = 313; val.L = -327;
            RossPatterns.Add(val);
            val = new RossData(19);
            val.Ex1 = 100; val.SR = 50; val.Fl = -19; val.Fr = -7; val.N = 9; val.M = -17; val.L = 1000;
            RossPatterns.Add(val);
            val = new RossData(20);
            val.Ex1 = 85; val.SR = 40; val.Fl = 25; val.Fr = 6; val.N = -6; val.M = 19; val.L = 1000;
            RossPatterns.Add(val);
            val = new RossData(21);
            val.Ex1 = 90; val.SR = 20; val.Fl = 25; val.Fr = -15; val.N = -18; val.M = 19; val.L = 1000;
            RossPatterns.Add(val);
            val = new RossData(22);
            val.Ex1 = 90; val.SR = 20; val.Fl = 30; val.Fr = 20; val.N = 15; val.M = -14; val.L = 600;
            RossPatterns.Add(val);
            val = new RossData(23);
            val.Ex1 = 17; val.SR = 34; val.Fl = 34; val.Fr = 9; val.N = 2; val.M = -1; val.L = 192;
            RossPatterns.Add(val);
            val = new RossData(24);
            val.Ex2 = 17; val.Ex1 = 34; val.SR = 34; val.Fl = 12; val.Fr = 12;
            val.V4 = 2; val.M = -1; val.L = 189; val.K = -191;
            RossPatterns.Add(val);
            val = new RossData(25);
            val.Ex2 = 17; val.Ex1 = 34; val.SR = 34; val.Fl = 12; val.Fr = -12;
            val.V4 = 2; val.M = -1; val.L = 189; val.K = -191;
            RossPatterns.Add(val);
            val = new RossData(26);
            val.Ex2 = 80; val.Ex1 = 16; val.SR = 10; val.Fl = 9; val.Fr = 7;
            val.V4 = -2; val.M = 11; val.L = 469; val.K = -447;
            RossPatterns.Add(val);
            val = new RossData(27);
            val.Ex2 = 80; val.Ex1 = 30; val.SR = 11; val.Fl = -10; val.Fr = 0;
            val.V4 = -8; val.M = 249; val.L = -247; val.K = 0;
            RossPatterns.Add(val);
            val = new RossData(28);
            val.Ex2 = 80; val.Ex1 = 21; val.SR = 19; val.Fl = 20; val.Fr = 0;
            val.V4 = -8; val.M = 249; val.L = -247; val.K = 0;
            RossPatterns.Add(val);
            val = new RossData(29);
            val.Ex2 = 80; val.Ex1 = 21; val.SR = 19; val.Fl = -20; val.Fr = 0;
            val.V4 = -7; val.M = 330; val.L = -321; val.K = 0;
            RossPatterns.Add(val);
            val = new RossData(30);
            val.Ex2 = 70; val.Ex1 = 13; val.SR = 20; val.Fl = 23; val.Fr = 0;
            val.V4 = -5; val.M = 236; val.L = -229; val.K = 0;
            RossPatterns.Add(val);
            val = new RossData(31);
            val.Ex2 = 80; val.Ex1 = 32; val.SR = 19; val.Fl = -18; val.Fr = 0;
            val.V4 = 8; val.M = -375; val.L = 369; val.K = 0;
            RossPatterns.Add(val);
            val = new RossData(32);
            val.Ex2 = 75; val.Ex1 = 30; val.SR = 18; val.Fl = 17; val.Fr = 0;
            val.V4 = -6; val.M = 379; val.L = -365; val.K = 0;
            RossPatterns.Add(val);
            val = new RossData(33);
            val.Ex2 = 80; val.Ex1 = 32; val.SR = 8; val.Fl = -14; val.Fr = 0;
            val.V4 = 5; val.M = -314; val.L = 306; val.K = 0;
            RossPatterns.Add(val);
            val = new RossData(34);
            val.Ex2 = 70; val.Ex1 = 35; val.SR = 9; val.Fl = 18; val.Fr = 0;
            val.V4 = -6; val.M = 251; val.L = -245; val.K = 0;
            RossPatterns.Add(val);
            val = new RossData(35);
            val.Ex2 = 80; val.Ex1 = 35; val.SR = 11; val.Fl = -12; val.Fr = 0;
            val.V4 = 6; val.M = 331; val.L = -299; val.K = 0;
            RossPatterns.Add(val);
            val = new RossData(36);
            val.Ex2 = 80; val.Ex1 = 40; val.SR = 10; val.Fl = 11; val.Fr = 0;
            val.V4 = 6; val.M = 331; val.L = -299; val.K = 0;
            RossPatterns.Add(val);
            val = new RossData(37);
            val.Ex2 = 95; val.Ex1 = 30; val.SR = 30; val.Fl = 8; val.Fr = 7;
            val.V4 = -8; val.M = 13; val.L = 662; val.K = -588;
            RossPatterns.Add(val);
            val = new RossData(38);
            val.Ex2 = 96; val.Ex1 = 36; val.SR = 30; val.Fl = 9; val.Fr = -8;
            val.V4 = -8; val.M = 11; val.L = 662; val.K = -592;
            RossPatterns.Add(val);

        }
Exemple #2
0
 public ViewModel()
 {     
     NeedsInitialising = true;
     LastBazleyPattern = new BazelyChuck();
     LastRossPattern = new RossData();
     LastWheelsPattern = new WheelsData();
     LastBarrelPattern = new Barrel();
     LastLatticePattern = new LatticeData();
     LastBraidPattern = new BraidData();
 }