aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Automation/UI.cs
blob: 2c200e10f350b2995cf656554a29fc3edf318b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.MachineStudio.Common.Automation
{
    public class UI
    {
        public static String LoginButton { get; set; } = nameof(LoginButton);
    }
}
ks; using Tango.Core.Commands; using Tango.BL.Entities; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels { public class CatsViewVM : DbTableViewModel<Cat> { public CatsViewVM(INotificationProvider notification) : base(notification) { SelectDataFileCommand = new RelayCommand(SelectDataFile); } public RelayCommand SelectDataFileCommand { get; set; } private void SelectDataFile() { OpenFileDialog dlg = new OpenFileDialog(); dlg.Filter = "Color Adjustment Files|*.CAT"; dlg.Title = "Select Color Adjustment File"; if (dlg.ShowDialog().Value) { try { EditEntity.Data = File.ReadAllBytes(dlg.FileName); } catch (Exception ex) { _notification.ShowError(ex.Message); } } } } }