Exemplo n.º 1
0
 private void InvoicesCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     if (e.Action == NotifyCollectionChangedAction.Add)
     {
         InvoiceAdded?.Invoke(this, new EventArgs());
     }
     else if (e.Action == NotifyCollectionChangedAction.Remove)
     {
         InvoiceDeleted?.Invoke(this, new EventArgs());
     }
 }
Exemplo n.º 2
0
        public AddNewInvoice(
            InvoiceAdded invoiceAddedCallback)
        {
            InitializeComponent();
            _invoiceAddedCallback = invoiceAddedCallback;

            var materialSkinManager = MaterialSkinManager.Instance;

            materialSkinManager.AddFormToManage(this);
            materialSkinManager.Theme       = MaterialSkinManager.Themes.LIGHT;
            materialSkinManager.ColorScheme = new ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE);
        }