Example #1
0
        public Form1(ParentForm parent)
        {
            this.parent = parent;
            InitializeComponent();

            //GET DIMENSION LIST
            List <Dimension> dimensionList = DimensionCatalog.GetDimensions();

            foreach (Dimension dimension in dimensionList)
            {
                comboBoxDim.Items.Add(dimension.ToString());
            }
        }
Example #2
0
        private void Form2_Load(object sender, EventArgs e)
        {
            //GET DIMENSION LIST
            List <Dimension> dimensionList = DimensionCatalog.GetCompartmentDimensions();

            foreach (Dimension dimension in dimensionList)
            {
                comboBoxH.Items.Add(dimension.ToString());
            }
            //get colors
            List <string> colorlList = DimensionCatalog.GetCompartmentColors();

            comboBoxC.Items.AddRange(colorlList.ToArray());
            DoorN.AutoCheck = true;
            DoorY.AutoCheck = true;
        }
Example #3
0
        private void comboBoxH_SelectedIndexChanged(object sender, EventArgs e)
        {
            //get colors
            if (comboBoxH.Text != "")
            {
                comboBoxC.Text = "";
                comboBoxC.Items.Clear();
                comboBox3.Text = "";
                comboBox3.Items.Clear();
                List <string> colorlList = DimensionCatalog.GetCompartmentColors(Int32.Parse(comboBoxH.Text));
                comboBoxC.Items.AddRange(colorlList.ToArray());

                List <string> colorlDList = DimensionCatalog.GetDoorColors(Int32.Parse(comboBoxH.Text));
                comboBox3.Items.AddRange(colorlDList.ToArray());
            }
        }
Example #4
0
 public Form5(ParentForm parent)
 {
     this.parent = parent;
     InitializeComponent();
     anglebarcolor.DataSource = DimensionCatalog.GetAngleBarColors(parent.Cup.Height);
 }