123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- using System;
- using System.Runtime.InteropServices;
- using System.Windows;
- using System.Windows.Input;
- using Aitex.Core.RT.Log;
- using MECF.Framework.Common.DataCenter;
- using OpenSEMI.ClientBase;
- using OpenSEMI.ClientBase.Command;
- namespace VirgoUI.Client.Dialog
- {
- public class ThicknessDialogViewModel : DialogViewModel<string>
- {
-
- private ICommand _SetThickCommand;
- public ICommand SetThickCommand
- {
- get
- {
- if (this._SetThickCommand == null)
- this._SetThickCommand = new BaseCommand<EventCommandParameter<object, RoutedEventArgs>>((EventCommandParameter<object, RoutedEventArgs> arg) => this.OnSetThickCommand(arg));
- return this._SetThickCommand;
- }
- }
- private ICommand _SetThinCommand;
- public ICommand SetThinCommand
- {
- get
- {
- if (this._SetThinCommand == null)
- this._SetThinCommand = new BaseCommand<EventCommandParameter<object, RoutedEventArgs>>((EventCommandParameter<object, RoutedEventArgs> arg) => this.OnSetThinCommand(arg));
- return this._SetThinCommand;
- }
- }
- private ICommand _BtnCancelCommand;
- public ICommand CancelCommand
- {
- get
- {
- if (this._BtnCancelCommand == null)
- this._BtnCancelCommand = new BaseCommand<EventCommandParameter<object, RoutedEventArgs>>((EventCommandParameter<object, RoutedEventArgs> arg) => this.OnCancelCommand(arg));
- return this._BtnCancelCommand;
- }
- }
- private ICommand _BtnIgnoreCommand;
- public ICommand IgnoreCommand
- {
- get
- {
- if (this._BtnIgnoreCommand == null)
- this._BtnIgnoreCommand = new BaseCommand<EventCommandParameter<object, RoutedEventArgs>>((EventCommandParameter<object, RoutedEventArgs> arg) => this.OnIgnoreCommand(arg));
- return this._BtnIgnoreCommand;
- }
- }
- protected override void OnInitialize()
- {
- base.OnInitialize();
- }
- public ThicknessDialogViewModel( )
- {
- this.DisplayName = "Wafer Thickness Type Selection";
-
- }
-
- private void OnSetThickCommand(EventCommandParameter<object, RoutedEventArgs> arg)
- {
- DialogResult = "Thick";
- TryClose(true);
- }
- private void OnSetThinCommand(EventCommandParameter<object, RoutedEventArgs> arg)
- {
- DialogResult = "Thin";
- TryClose(true);
- }
-
- private void OnCancelCommand(EventCommandParameter<object, RoutedEventArgs> arg)
- {
- DialogResult = "";
- TryClose(false);
- }
- private void OnIgnoreCommand(EventCommandParameter<object, RoutedEventArgs> arg)
- {
- DialogResult = "Ignore";
- TryClose(true);
- }
- }
- }
|