示例#1
0
        public crewForm(CrewNumber crew)
        {
            InitializeComponent();

            Counts count = new Counts();

            crewNum = crew;
            //hookline = new List<Hookline>();
            hookline              = new Dictionary <string, int>();
            currentCrew           = new Crew((int)crew);
            this.Tag              = (int)crew;
            lblSaveStatus.Visible = false;

            loadComboBoxes(cboFirstSaw, count, currentCrew.FirstSaw);
            loadComboBoxes(cboFirstPuller, count, currentCrew.FirstPuller);
            loadComboBoxes(cboSecondSaw, count, currentCrew.SecondSaw);
            loadComboBoxes(cboSecondPuller, count, currentCrew.SecondPuller);
            loadComboBoxes(cboRhino, count, currentCrew.Rhino);
            loadComboBoxes(cboLeadPulaski, count, currentCrew.FirstPulaski);
            loadComboBoxes(cboSecondPulaski, count, currentCrew.SecondPulaski);
            loadComboBoxes(cboThirdPulaski, count, currentCrew.ThirdPulaski);
            loadComboBoxes(cboFourthPulaski, count, currentCrew.FourthPulaski);
            loadComboBoxes(cboFifthPulaski, count, currentCrew.FifthPulaski);
            loadComboBoxes(cboFirstMcLeod, count, currentCrew.FirstMcLeod);
            loadComboBoxes(cboSecondMcLeod, count, currentCrew.SecondMcLeod);
            loadComboBoxes(cboThirdMcLeod, count, currentCrew.ThirdMcLeod);
            loadComboBoxes(cboFourthMcLeod, count, currentCrew.FourthMcLeod);
            loadComboBoxes(cboFifthMcLeod, count, currentCrew.FifthMcLeod);
            loadComboBoxes(cboDragSpoon, count, currentCrew.Dragspoon);
            loadComboBoxes(cboSwamper, count, currentCrew.Swamper);
            loadCaptainCombo(count);
            loadVehicleCombo(count);
        }
示例#2
0
        private string crewNumber(CrewNumber crew)
        {
            string retVal = "";

            switch (crew)
            {
            case CrewNumber.crew1:
                retVal        = "1";
                lblTitle.Text = "Crew 1 Hookline";
                break;

            case CrewNumber.crew2:
                retVal        = "2";
                lblTitle.Text = "Crew 2 Hookline";
                break;

            case CrewNumber.crew3:
                retVal        = "3";
                lblTitle.Text = "Crew 3 Hookline";
                break;

            case CrewNumber.crew4:
                retVal        = "4";
                lblTitle.Text = "Crew 4 Hookline";
                break;
            }
            return(retVal);
        }