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.
117 lines
2.8 KiB
117 lines
2.8 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 RobotViewModule : ViewModelBase
|
|
{
|
|
#region base parameters
|
|
private int rows = 20;
|
|
private int pagenumber = 1;
|
|
public RobotView View { get; set; }
|
|
private bool IsConfirm;
|
|
private bool isLoading;
|
|
private RobotManualViewModule robotManual;
|
|
private RobotStatusViewModule status;
|
|
#endregion
|
|
|
|
#region constructor
|
|
public RobotViewModule()
|
|
{
|
|
View = new RobotView();
|
|
View.DataContext = this;
|
|
|
|
robotManual = new RobotManualViewModule();
|
|
robotManual.LoadDefaultValue();
|
|
RobotManualView = robotManual;
|
|
|
|
status = new RobotStatusViewModule();
|
|
status.LoadDefaultValue();
|
|
RobotStatusView = status;
|
|
|
|
InitializeCommands();
|
|
InitializeParameters();
|
|
}
|
|
|
|
private void InitializeCommands()
|
|
{
|
|
robotManual.InitializeParameters();
|
|
status.InitializeParameters();
|
|
}
|
|
|
|
public override void InitializeParameters(object content = null)
|
|
{
|
|
IsConfirm = false;
|
|
WindowTitle = "";
|
|
if (robotManual == null)
|
|
{
|
|
robotManual = new RobotManualViewModule();
|
|
}
|
|
robotManual.LoadDefaultValue();
|
|
RobotManualView = robotManual;
|
|
|
|
if (status == null)
|
|
{
|
|
status = new RobotStatusViewModule();
|
|
}
|
|
status.LoadDefaultValue();
|
|
RobotStatusView = status;
|
|
}
|
|
|
|
~RobotViewModule()
|
|
{
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Binding Properties
|
|
public string WindowTitle { get; private set; }
|
|
|
|
|
|
private ViewModelBase _RobotManualView;
|
|
public ViewModelBase RobotManualView
|
|
{
|
|
get { return _RobotManualView; }
|
|
set
|
|
{
|
|
_RobotManualView = value;
|
|
OnPropertyChanged("RobotManualView");
|
|
}
|
|
}
|
|
private ViewModelBase _RobotStatusView;
|
|
public ViewModelBase RobotStatusView
|
|
{
|
|
get { return _RobotStatusView; }
|
|
set
|
|
{
|
|
_RobotStatusView = value;
|
|
OnPropertyChanged("RobotStatusView");
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region Binding Commands
|
|
|
|
#endregion
|
|
|
|
#region Private Methods
|
|
|
|
#endregion
|
|
}
|
|
}
|