Esempio n. 1
0
        public LayerControl(VGCore.Application app)
        {
            InitializeComponent();
            LayerControlController layerControlController = new LayerControlController(app);

            layerControlController.LayerChange += (e) => { lba_layer.Content = e.LayerName; };
        }
        public FacaCaixaAutoUI(VGCore.Application app)
        {
            InitializeComponent();
            if (FacaBase.app == null)
            {
                FacaBase.app = app;
            }

            manager               = new FacaManager();
            listaComboBox         = manager.ListaClass();
            comboBox1.ItemsSource = listaComboBox.Keys;
            exp = new Regex("^(?<num>[0-9]{0,}[,.]?[0-9]{0,})", RegexOptions.IgnoreCase | RegexOptions.Compiled);

            comboBox1.SelectedIndex = -1;
            #if DEBUG
            comboBox1.SelectedIndex  = 1;
            textBox_Altura.Text      = "100";
            textBox_Largura.Text     = "60";
            textBox_Comprimento.Text = "90";
            #endif

            comboBox1_SelectionChanged(null, null);
            img_bonus.Source = FacaCaixaAuto.Properties.Resources.bonus630.ConvertToBitmapSource();
        }