Ejemplo n.º 1
0
        private void LoadArrow()
        {
            OpenFileDialog bleh = new OpenFileDialog();

            string path = Directory.GetCurrentDirectory().ToString() + "\\Arrows\\";

            bleh.InitialDirectory = path;
            bleh.ShowDialog();

            if (bleh.FileName != "")
            {
                cArrow tmpArrow = new cArrow();
                tmpArrow = tmpArrow.GetArrow(bleh.FileName);

                comboBoxUsrShafts.Text      = tmpArrow.ArrowShaft;
                comboBoxUsrInsert.Text      = tmpArrow.Insert;
                comboBoxUsrNock.Text        = tmpArrow.Nock;
                comboBoxUsrNockAdapter.Text = tmpArrow.NockAdapter;
                txtUsrShaftLength.Text      = tmpArrow.ShaftLength;
                txtUsrGpI.Text            = tmpArrow.GpI;
                comboBoxUsrTipWeight.Text = tmpArrow.TipWeight;
                comboBoxUsrFletches.Text  = tmpArrow.Fletches;
                lblSysRearWeight.Text     = tmpArrow.TotalRearWeight;
                lblSysShaftWeight.Text    = tmpArrow.TotalShaftWeight;
                lblSysTipWeight.Text      = tmpArrow.TotalTipWeight;
                lblSysTotalWeight.Text    = tmpArrow.TotalWeight;
                lblSysFOC.Text            = tmpArrow.FOC;
            }
        }
Ejemplo n.º 2
0
        private cArrow LoadArrow()
        {
            cArrow         cReturnVal = new cArrow();
            OpenFileDialog bleh       = new OpenFileDialog();

            string path = Directory.GetCurrentDirectory().ToString() + "\\Arrows\\";

            bleh.InitialDirectory = path;
            bleh.ShowDialog();

            if (bleh.FileName != "")
            {
                cReturnVal = cReturnVal.GetArrow(bleh.FileName);
            }
            return(cReturnVal);
        }