You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
2.7 KiB

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Threading;
using System.Windows;
using System.Windows.Forms;
using System.Windows.Input;
using GummingCommon;
using GummingEntity;
using GummingSupport;
using GummingControl;
using System.Text;
using GummingBusiness;
using Newtonsoft.Json;
using GummingLine;
namespace Gumming
{
public class MonitorViewModule : ViewModelBase
{
#region base parameters
private int rows = 20;
private int pagenumber = 1;
public MonitorView View { get; set; }
private bool IsConfirm;
private bool isLoading;
#endregion
#region constructor
public MonitorViewModule()
{
View = new MonitorView();
View.DataContext = this;
InitializeCommands();
InitializeParameters();
}
private void InitializeCommands()
{
}
public override void InitializeParameters(object content = null)
{
IsConfirm = false;
WindowTitle = "";
IOViewModule IO = new IOViewModule();
IO.LoadDefaultValue();
IOView = IO;
EnviromentViewModule enviroment = new EnviromentViewModule();
enviroment.LoadDefaultValue();
EnviromentView = enviroment;
TemperatureViewModule temperature = new TemperatureViewModule();
temperature.LoadDefaultValue();
TemperatureView = temperature;
}
~MonitorViewModule()
{
}
#endregion
#region Binding Properties
public string WindowTitle { get; private set; }
private ViewModelBase _IOView;
public ViewModelBase IOView
{
get { return _IOView; }
set
{
_IOView = value;
OnPropertyChanged("IOView");
}
}
private ViewModelBase _EnviromentView;
public ViewModelBase EnviromentView
{
get { return _EnviromentView; }
set
{
_EnviromentView = value;
OnPropertyChanged("EnviromentView");
}
}
private ViewModelBase _TemperatureView;
public ViewModelBase TemperatureView
{
get { return _TemperatureView; }
set
{
_TemperatureView = value;
OnPropertyChanged("TemperatureView");
}
}
#endregion
#region Binding Commands
#endregion
#region Private Methods
#endregion
}
}