示例#1
0
        public void MaterialsCommand_Executed(object sender)
        {
            if (!AppProperties.FormHaveModifications || DiscardFormModifications())
            {
                AppProperties.FormHaveModifications = false;

                SelfInvoiceButtonStyle = Application.Current.Resources["MainMenuButtonStyle"] as Style;
                InvoiceButtonStyle     = Application.Current.Resources["InvoiceMenuButtonStyle"] as Style;
                CashButtonStyle        = Application.Current.Resources["CashMenuButtonStyle"] as Style;
                MaterialsButtonStyle   = Application.Current.Resources["SelectedMenuButtonStyle"] as Style;
                ClientsButtonStyle     = Application.Current.Resources["ClientsMenuButtonStyle"] as Style;
                FirstInfo       = "Materiali inseriti nel sistema:";
                SecondInfo      = _contoData.MaterialsCountGet().ToString(CultureInfo.InvariantCulture);
                SelectedControl = new MaterialsUserControl();
            }
        }