예제 #1
0
 public Form1()
 {
     InitializeComponent();
     capture = new Capture();
     // comboBox2.Items.Add(RemoteMgr.ExposeProperty
     // comboBox2.Items.Add(Properties.Resources.ResourceManager.BaseName);
     getMeTheResources();
     framecounter = 0;
     bIPV = new BikeIPV("Left");
     //problems.Enabled = false;
     btn_next.Enabled = false;
     arrayProblems = new string[3,10];
     arrayProblems[0, 0] = "Step1:Remove The Tire \n Hook the rounded end of one tire lever under the bead (the outer edge) of the tire to unseat it. Hook the other end onto a spoke to hold the lever in place and to keep the unseated tire from popping back into the rim. Hook the rounded end of the second lever under the bead next to the first and walk it around the tire/rim clockwise until one side of the tire is off the rim." ;
     arrayProblems[0, 1] = "Step2:Find The Culprit \n Remove the tube and pump air into it to find the leak. Two holes side by side is a pinch-flat--the tube got pinched between the tire and rim. A single hole was most likely caused by a sharp object such as a thorn or a piece of glass. Carefully run your fingers along the inside of the tire to make sure the foreign object is no longer there. If you don't, it could cause another flat.";
     arrayProblems[0, 2] = "Step3:If You Patch \n Clean the punctured area of the flat tire with an alcohol prep pad and rough the surface with an emery cloth. For a glueless patch, simply stick it over the hole and press firmly. For a patch that requires glue, apply a thin layer of glue to the tube and patch. Wait for the glue to get tacky, then apply the patch and press firmly until it adheres. If you don't patch, stuff the tube into your bag and fix it when you get home. It could be good for another season or more of use.";
     arrayProblems[0, 3] = "Step4:Install the Tube \n Inflate either your patched or new tube until it holds its shape, then insert it into the tire. With the valve stem installed straight, work the tire back into the rim with your hands by rolling the bead away from yourself. (Do not use levers to reseat the tire, as you could puncture the tube.) When you get to the valve stem, tuck both sides of the tire bead low into the rim then push upward on the stem to get the tube up inside the tire. Inflate completely, checking that the bead is seated correctly.";
     arrayProblems[1, 0] = "Step1:Remove The Tire \n Hook the rounded end of one tire lever under the bead (the outer edge) of the tire to unseat it. Hook the other end onto a spoke to hold the lever in place and to keep the unseated tire from popping back into the rim. Hook the rounded end of the second lever under the bead next to the first and walk it around the tire/rim clockwise until one side of the tire is off the rim.";
     arrayProblems[1, 1] = "Step2:Find The Culprit \n Remove the tube and pump air into it to find the leak. Two holes side by side is a pinch-flat--the tube got pinched between the tire and rim. A single hole was most likely caused by a sharp object such as a thorn or a piece of glass. Carefully run your fingers along the inside of the tire to make sure the foreign object is no longer there. If you don't, it could cause another flat.";
     arrayProblems[1, 2] = "Step3:If You Patch \n Clean the punctured area of the flat tire with an alcohol prep pad and rough the surface with an emery cloth. For a glueless patch, simply stick it over the hole and press firmly. For a patch that requires glue, apply a thin layer of glue to the tube and patch. Wait for the glue to get tacky, then apply the patch and press firmly until it adheres. If you don't patch, stuff the tube into your bag and fix it when you get home. It could be good for another season or more of use.";
     arrayProblems[1, 3] = "Step4:Install the Tube \n Inflate either your patched or new tube until it holds its shape, then insert it into the tire. With the valve stem installed straight, work the tire back into the rim with your hands by rolling the bead away from yourself. (Do not use levers to reseat the tire, as you could puncture the tube.) When you get to the valve stem, tuck both sides of the tire bead low into the rim then push upward on the stem to get the tube up inside the tire. Inflate completely, checking that the bead is seated correctly.";
     arrayProblems[2, 0] = "Step1:Unscrew The Bolt/nut \n Depending on the fitting of the square tapered crank bolt or nut, use either a socket or hex key to unscrew it. Make sure you remove any washer that’s under the head of the bolt.";
     arrayProblems[2, 1] = "Step2:Retract The Bolt From The Crank-puller \n A crank-puller is a unit that screws into the threads on the inside of the square tapered crank holes. A bolt that runs through it that jams against the axle to force the square tapered crank off the tapered axle. Retract the bolt from the crank puller. Almost all square tapered cranks use the Italian standard 22mm thread but some old French ‘Stronglight’ or ‘T.A.’ cranks need a different crank-puller.";
     arrayProblems[2, 2] = "Step3:Mount The Crank-puller \n Check the threads on the inside of the square tapered crank hole are clean and apply a smear of grease. Screw the crank-puller into the threads, do this carefully as the threads on the aluminium square tapered crank are soft and easily damaged. Finger strength is usually enough.";
     arrayProblems[2, 3] = "Step4:Drive The Bolt into the square tapered crank \n When the crank-puller is fully in the square tapered crank, screw in the bolt on the crank-puller, it will jam against the axle and force the crank off the taper.";
     arrayProblems[2, 4] = "Step5:Remove The Tool And Repeat \n Unscrew the tool from thesquare tapered crank arm and repeat the operation on the other side.";
 }
예제 #2
0
        private void button3_Click_1(object sender, EventArgs e)
        {
            String direction = "Left";
            try
            {
                direction = leftRightCombo.SelectedValue.ToString();
            }
            catch (NullReferenceException ev)
            {
                Console.WriteLine(ev);
            }
            BikeIPV bIPV = new BikeIPV(direction);

            if (comboBox2.SelectedIndex != -1)
            {
                Image<Bgr, Byte> image = new Image<Bgr, Byte>(BikesIPV.Properties.Resources.bike_white2);//.Resize(500, 400, Emgu.CV.CvEnum.INTER.CV_INTER_LINEAR, true );
                Image<Gray, Byte> imageReady = bIPV.init(image, imageBox1);
                imageBox1.Image = imageReady;
            }
        }