public InstrumentLenseNoMenisksTwoOkrs(ThreePosBtn instrumentPic)
     : base(instrumentPic)
 {
     control_modifier = false;
     alt_modifier     = false;
     shift_modifier   = false;
     instance         = this;
 }
Esempio n. 2
0
        public void CreateInstruments()
        {
            threePosBtn1.LoadImages(Application.StartupPath + "\\Images\\icon_select_move.png",
                                    Application.StartupPath + "\\Images\\icon_select_move_3.png",
                                    Application.StartupPath + "\\Images\\icon_select_move_2.png",
                                    Application.StartupPath + "\\Images\\icon_select_move_4.png");
            threePosBtn2.LoadImages(Application.StartupPath + "\\Images\\icon_luch.png",
                                    Application.StartupPath + "\\Images\\icon_luch_3.png",
                                    Application.StartupPath + "\\Images\\icon_luch_2.png",
                                    Application.StartupPath + "\\Images\\icon_luch_4.png");
            threePosBtn3.LoadImages(Application.StartupPath + "\\Images\\icon_mirror.png",
                                    Application.StartupPath + "\\Images\\icon_mirror_3.png",
                                    Application.StartupPath + "\\Images\\icon_mirror_2.png",
                                    Application.StartupPath + "\\Images\\icon_mirror_4.png");
            threePosBtn4.LoadImages(Application.StartupPath + "\\Images\\icon_point.png",
                                    Application.StartupPath + "\\Images\\icon_point_3.png",
                                    Application.StartupPath + "\\Images\\icon_point_2.png",
                                    Application.StartupPath + "\\Images\\icon_point_4.png");
            threePosBtn5.LoadImages(Application.StartupPath + "\\Images\\icon_circle.png",
                                    Application.StartupPath + "\\Images\\icon_circle_3.png",
                                    Application.StartupPath + "\\Images\\icon_circle_2.png",
                                    Application.StartupPath + "\\Images\\icon_circle_4.png");
            threePosBtn6.LoadImages(Application.StartupPath + "\\Images\\icon_linz_vip.png",
                                    Application.StartupPath + "\\Images\\icon_linz_vip_3.png",
                                    Application.StartupPath + "\\Images\\icon_linz_vip_2.png",
                                    Application.StartupPath + "\\Images\\icon_linz_vip_4.png");
            threePosBtn7.LoadImages(Application.StartupPath + "\\Images\\icon_lup.png",
                                    Application.StartupPath + "\\Images\\icon_lup_3.png",
                                    Application.StartupPath + "\\Images\\icon_lup_2.png",
                                    Application.StartupPath + "\\Images\\icon_lup_4.png");
            threePosBtn8.LoadImages(Application.StartupPath + "\\Images\\icon_linz_vp.png",
                                    Application.StartupPath + "\\Images\\icon_linz_vp_3.png",
                                    Application.StartupPath + "\\Images\\icon_linz_vp_2.png",
                                    Application.StartupPath + "\\Images\\icon_linz_vp_4.png");
            threePosBtn9.LoadImages(Application.StartupPath + "\\Images\\icon_hand.png",
                                    Application.StartupPath + "\\Images\\icon_hand_3.png",
                                    Application.StartupPath + "\\Images\\icon_hand_2.png",
                                    Application.StartupPath + "\\Images\\icon_hand_4.png");
            threePosBtn10.LoadImages(Application.StartupPath + "\\Images\\icon_mirrorc.png",
                                     Application.StartupPath + "\\Images\\icon_mirrorc_3.png",
                                     Application.StartupPath + "\\Images\\icon_mirrorc_2.png",
                                     Application.StartupPath + "\\Images\\icon_mirrorc_4.png");
            threePosBtn11.LoadImages(Application.StartupPath + "\\Images\\icon_polygon.png",
                                     Application.StartupPath + "\\Images\\icon_polygon_3.png",
                                     Application.StartupPath + "\\Images\\icon_polygon_2.png",
                                     Application.StartupPath + "\\Images\\icon_polygon_4.png");
            instruments         = new List <InstrumentBase>();
            instruments_bindage = new Dictionary <ThreePosBtn, InstrumentBase>();
            InstrumentBase rayer = new InstrumentRay(threePosBtn2);

            instruments.Add(rayer);
            instruments_bindage[threePosBtn2] = rayer;
            InstrumentBase mirrorer = new InstrumentMirror(threePosBtn3);

            instruments.Add(mirrorer);
            instruments_bindage[threePosBtn3] = mirrorer;
            InstrumentBase pointer = new InstrumentBrightPoint(threePosBtn4);

            instruments.Add(pointer);
            instruments_bindage[threePosBtn4] = pointer;
            InstrumentBase spherer = new InstrumentSphere(threePosBtn5);

            instruments.Add(spherer);
            instruments_bindage[threePosBtn5] = spherer;
            InstrumentBase SelecterAndMover = new InstrumentSelectAndMove(threePosBtn1);

            instruments.Add(SelecterAndMover);
            instruments_bindage[threePosBtn1] = SelecterAndMover;
            InstrumentBase Lenser1 = new InstrumentLenseNoMenisksTwoOkrs(threePosBtn6);

            instruments.Add(Lenser1);
            instruments_bindage[threePosBtn6] = Lenser1;
            InstrumentBase Lupa = new InstrumentLupa(threePosBtn7);

            instruments.Add(Lupa);
            instruments_bindage[threePosBtn7] = Lupa;
            InstrumentBase Lenser2 = new InstrumentLenseMenisksTwoOkrs(threePosBtn8);

            instruments.Add(Lenser2);
            instruments_bindage[threePosBtn8] = Lenser2;
            InstrumentBase Hander = new InstrumentHand(threePosBtn9);

            instruments.Add(Hander);
            instruments_bindage[threePosBtn9] = Hander;
            InstrumentBase Hander2 = new InstrumentSphericalMirror(threePosBtn10);

            instruments.Add(Hander2);
            instruments_bindage[threePosBtn10] = Hander2;
            InstrumentBase polygoner = new InstrumentPolygon(threePosBtn11);

            instruments.Add(polygoner);
            instruments_bindage[threePosBtn11] = polygoner;
            activeInstrument = SelecterAndMover;
            activeInstrument.Activate();
        }