Exemple #1
0
        /// <summary>
        /// Generates Material, Deliver, Work and Machine overview of selecteed vatiation
        /// </summary>
        /// <param name="variation">Variation to generate overview from</param>
        public void GenerateMaterialOverview(ConstructionVariation variation)
        {
            // Get data source
            Hashtable result = GetMaterialOverview(variation);

            // get columns
            List<ColumnDefinition> definitions = GenerateMaterialOverViewDatagridDefinition();

            // Show overview
            OverviewForm form = new OverviewForm(result, definitions);
            form.Owner = this.owner;
            form.Show();
        }
Exemple #2
0
        /// <summary>
        /// Generates overview using <see cref="Karafa.GUI.OverviewForm"/>.
        /// </summary>
        /// <param name="construction">Construction to generate invoices overview from</param>
        public void GenerateInvoiceOverview(Construction construction)
        {
            // Get data source
            Hashtable result = GetInvoiceOverview(construction);

            // Get column definition
            List<ColumnDefinition> definitions = GenerateInvoiceOverViewDatagridDefinition();

            // Show overview
            OverviewForm form = new OverviewForm(result, definitions);
            form.Owner = this.owner;
            form.Show();
        }