ソースを参照

morkf

样式分支
NXX 2年前
コミット
e5eef6ea2f
5個のファイルの変更9行の追加11行の削除
  1. +0
    -8
      BPASmartClient.MorkBF/Class1.cs
  2. +2
    -2
      BPASmartClient.MorkF/View/LocalMenu.xaml
  3. +1
    -0
      BPASmartClient.MorkF/View/LocalMenu.xaml.cs
  4. +1
    -1
      BPASmartClient.MorkF/ViewModel/DebugViewModel.cs
  5. +5
    -0
      BPASmartClient.MorkF/ViewModel/LocalMenuViewModel.cs

+ 0
- 8
BPASmartClient.MorkBF/Class1.cs ファイルの表示

@@ -1,8 +0,0 @@
using System;

namespace BPASmartClient.MorkBF
{
public class Class1
{
}
}

+ 2
- 2
BPASmartClient.MorkF/View/LocalMenu.xaml ファイルの表示

@@ -25,7 +25,7 @@
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBox Grid.Column="0" Text="{Binding FryTime,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" VerticalAlignment="Center" />
<TextBox Grid.Column="0" Text="{Binding FryTime}" HorizontalAlignment="Center" VerticalAlignment="Center" />
<TextBox Grid.Column="1" Text="{Binding During}" Margin="10,0"/>
<ComboBox Grid.Column="2" Width="120" ItemsSource="{Binding DataContext.strPotActions , RelativeSource={RelativeSource AncestorType=Window,Mode=FindAncestor}}"
SelectedValue="{Binding Actions}" Margin="10,0"/>
@@ -72,7 +72,7 @@
</Grid>
<ListBox x:Name="listview1" Grid.Row="2" BorderBrush="Black" BorderThickness="0" HorizontalAlignment="Center" AllowDrop="True"
ScrollViewer.HorizontalScrollBarVisibility="Disabled" ItemsSource="{Binding PotActionStep}" Margin=" 10" Background="Transparent"
PreviewMouseMove="listview1_MouseMove" Drop="listview1_Drop" PreviewMouseUp="listview1_MouseLeftButtonUp"
>
</ListBox>


+ 1
- 0
BPASmartClient.MorkF/View/LocalMenu.xaml.cs ファイルの表示

@@ -43,6 +43,7 @@ namespace BPASmartClient.MorkF.View
public LocalMenu()
{
InitializeComponent();
ActionManage.GetInstance.Register(new Action(() => { this.Close(); }), "LocalMenuClose");
}

private void Button_Click(object sender, RoutedEventArgs e)


+ 1
- 1
BPASmartClient.MorkF/ViewModel/DebugViewModel.cs ファイルの表示

@@ -236,7 +236,7 @@ namespace BPASmartClient.MorkF.ViewModel

ThreadManage.GetInstance().StartLong(new Action(() =>
{
variableMonitors = Plugin.GetInstance()?.GetPlugin<DeviceMgr>()?.GetDevices()?.FirstOrDefault(p => p.DeviceId == DeviceId)?.variableMonitors;
//variableMonitors = Plugin.GetInstance()?.GetPlugin<DeviceMgr>()?.GetDevices()?.FirstOrDefault(p => p.DeviceId == DeviceId)?.variableMonitors;

if(variableMonitors != null)
{


+ 5
- 0
BPASmartClient.MorkF/ViewModel/LocalMenuViewModel.cs ファイルの表示

@@ -33,6 +33,10 @@ namespace BPASmartClient.MorkF.ViewModel
{
PotActionStep.Remove(p);
}
for (int i = 0; i < PotActionStep.Count; i++)
{
PotActionStep[i].FryTime = i + 1;
}
}


@@ -61,6 +65,7 @@ namespace BPASmartClient.MorkF.ViewModel
Json<LocalPotStep>.Data.LocalstirFryGoods.GoodsKey = 11;
Json<LocalPotStep>.Data.LocalstirFryGoods.StirPotActions = new List<PotActions>(PotActionStep);
Json<LocalPotStep>.Save();
ActionManage.GetInstance.Send("LocalMenuClose");
}));

foreach(var pot in Enum.GetNames(typeof(StirFryPotActionEnum)))


読み込み中…
キャンセル
保存