Exemplo n.º 1
0
        public void InitializeTransformTabs()
        {
            int L;
            Dictionary <string, string> transforms = TransformData.AllAlgebraAsNamedSets();

            for (L = 0; L < transforms.Count; L++)
            {
                NewTransformTab(false, transforms.ElementAt(L).Key, tabControlAlgebra);
                TransformTabTextBox(L, tabControlAlgebra).Text = transforms.ElementAt(L).Value;
            }
            transforms = TransformData.AllCalculusAsNamedSets();
            for (L = 0; L < transforms.Count; L++)
            {
                NewTransformTab(false, transforms.ElementAt(L).Key, tabControlCalculus);
                TransformTabTextBox(L, tabControlCalculus).Text = transforms.ElementAt(L).Value;
            }
            transforms = TransformData.AllVectorAsNamedSets();
            for (L = 0; L < transforms.Count; L++)
            {
                NewTransformTab(false, transforms.ElementAt(L).Key, tabControlVector);
                TransformTabTextBox(L, tabControlVector).Text = transforms.ElementAt(L).Value;
            }

            transforms = TransformData.AllLogicAsNamedSets();
            for (L = 0; L < transforms.Count; L++)
            {
                NewTransformTab(false, transforms.ElementAt(L).Key, tabControlLogic);
                TransformTabTextBox(L, tabControlLogic).Text = transforms.ElementAt(L).Value;
            }

            this.tabControlAlgebra.SelectedIndex  = 0;
            this.tabControlCalculus.SelectedIndex = 0;
            this.tabControlVector.SelectedIndex   = 0;

            this.tabControlLogic.SelectedIndex = 0;
        }