コード例 #1
0
        public void UpdateModel()
        {
            CanadaGooseFunction newCGFunction = new CanadaGooseFunction();

            augmentFilePath = newCGFunction.GetAugmentFilePath();

            allAugments.AllAugments = null;
            allAugments.AllAugments = newCGFunction.LoadAugments(augmentFilePath);
        }
コード例 #2
0
        public CanadaGooseAugmentWindow(CanadaGooseModel currentCGData, DataGrid headerGrid, DataGrid lineGrid)
        {
            cgData   = currentCGData;
            headerDG = headerGrid;
            lineDG   = lineGrid;

            InitializeComponent();

            CanadaGooseFunction newCGFunction = new CanadaGooseFunction();

            augmentFilePath = newCGFunction.GetAugmentFilePath();

            allAugments.AllAugments = newCGFunction.LoadAugments(augmentFilePath);
        }
コード例 #3
0
        private void SaveBTN_Click(object sender, RoutedEventArgs e)
        {
            CanadaGooseFunction newCGFunction = new CanadaGooseFunction();
            string augmentFilePath            = newCGFunction.GetAugmentFilePath();

            newCGFunction.AddAugment(augmentFilePath, AugmentTypeTB.Text.ToString(), InitialValueTB.Text.ToString(), FinalValueTB.Text.ToString());

            CanadaGooseJson allAugments = new CanadaGooseJson();

            allAugments.AllAugments = newCGFunction.LoadAugments(augmentFilePath);

            ChangeType(AugmentTypeTB.Text.ToString(), allAugments);

            //CALL ACTION TO UPDATE PREVIOUS WINDOWS MODEL
        }