public MainWindow(Iniciando ini)
        {
            varejo_config db = new varejo_config();

            if (!db.Database.Exists())
            {
                PreparacaoSistema s = new PreparacaoSistema();
                s.ShowDialog();
            }

            if (!Directory.Exists(@"C:\Temp\Curae"))
            {
                Directory.CreateDirectory(@"C:\Temp\Curae");
            }

            foreach (string filename in Directory.GetFiles(@"C:\Temp\Curae\"))
            {
                File.Delete(filename);
            }

            InitializeComponent();
            dataGrid.AplicarPadroes();
            BStatus.Attach(1, lbStatus, image);

            txCod_rotina.ToNumeric();
            txCod_rotina.Focus();
            this.Title = "Curae - Mini ERP";

            Login l = new Login();

            l.Visibility = Visibility.Hidden;
            l.Start(ini);
            l.Show();
            l.EfetuouLogin += L_EfetuouLogin;
        }
Exemple #2
0
        private void Window_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            if (initializado)
            {
                return;
            }
            enabledChangeCb = true;
            LoadComboBox();

            BStatus.Attach(3, lbStatus, image);

            dataGrid.AplicarPadroes();
            dataGrid.FontSize                 = 15;
            dataGrid.MinRowHeight             = 20;
            dataGrid.AlternatingRowBackground = Brushes.Lavender;

            initializado = true;
            SelecionarConta();
        }
Exemple #3
0
        public LancamentoMovimentos()
        {
            InitializeComponent();

            dataGrid.AplicarPadroes();
            BStatus.Attach(2, lbStatus, image);
            Grid_Mov.IsEnabled = false;

            Desconto  = 0;
            Acrescimo = 0;
            txValor_final.ToMoney();
            txTotal_prod.ToMoney();
            txValor_unit.ToMoney();
            txDesconto.ToMoney();
            txAcrescimo.ToMoney();
            txTotal.ToMoney();
            lbDescricao_produto.Content = string.Empty;

            lbFatorConversao.Visibility = Visibility.Hidden;
        }