Пример #1
0
        public GpdModuleInfo()
        {
            InitializeComponent();

            var timer = new UpdateTimer();
            timer.Start(BtnOk, MainGrid);
        }
Пример #2
0
        public ChooseInitTask(DataInit step, Settings settings)
        {
            InitializeComponent();
            UpdateTimer timer = new UpdateTimer();
            timer.Start(Sol, grdMain);
            Settings = settings;
            //сохраняем для последующего получения данных

            fStep = step;
            //enumerable - матрица sUse, в виде списка
            //matA - матрица коэффициентов (каждый список - терм точка, а внутри списка - перечень станций)
            var matA = new List<int[]>();
            var pointCount = fStep.GetPointCount();
            var stationCount = fStep.GetStationCount();
            var matB = new int[pointCount];

            for (int i = 0; i < pointCount; i++)
            {
                matB[i] = fStep.GetPointTask(i);
                matA.Add(new int[stationCount]);

                for (int j = 0; j < stationCount; j++)
                {
                    matA[i][j] = fStep.GetPointNumber(j, i);
                }
            }

            pointsUse = matA;
            pointsMax = matB;
            DataContext = this;
            IntLinearEquationSolve.SetParam(pointsUse, pointsMax);
            stationMin = IntLinearEquationSolve.GetMin();
        }
Пример #3
0
 public SettingDlg(Settings setting, int type)
 {
     InitializeComponent();
     switch (type)
     {
         case 0:
             {
                 settArea.Visibility = Visibility.Visible;
                 settAreaGpd.Visibility = Visibility.Hidden;
             } break;
         case 1:
             {
                 settArea.Visibility = Visibility.Hidden;
                 settAreaGpd.Visibility = Visibility.Visible;
             } break;
     }
     var timer = new UpdateTimer();
     timer.Start(btnOk, mainGrid);
     settingRes = setting;
     settings = setting.Copy();
     DataContext = settings;
 }
Пример #4
0
        public StationAndPoints(Settings settings)
        {
            InitializeComponent();
            Settings = settings;

            if (!DataInit.IsAvailable())
            {
                Step = new DataInit();
                Step.AddStation();
                Step.AddPoint();
                AddCol(Step.GetPointCount() - 1);
            }
            else
            {
                RepearDataGrid();
            }
            var timer = new UpdateTimer();
            timer.Start(Next, grMain);

            mainGrid.ItemsSource = Step.Stations;
            pointGrid.ItemsSource = Step.PointsTask;
        }
Пример #5
0
 public ModuleSetting()
 {
     InitializeComponent();
     var timer = new UpdateTimer();
     timer.Start(BtnOk, MainGrid);
 }
Пример #6
0
 public ProcessEditDlg()
 {
     InitializeComponent();
     var timer = new UpdateTimer();
     timer.Start(BtnOk, MainGrid);
 }