public c_ActionHandler(c_Fabric cFabric) { m_cFabric = cFabric; m_cCurrentAction = new c_Action(); m_cLastAction = new c_Action(); m_cAdsWriteInterface = new ADSWriteInterface(); ADSReadJSon = new ADSReadInterface("MAIN.sJsonDocLastAction"); ADSReadJSon.Registrate((c_Base_ADSReadInterface)this); }
private void Button_Click_1(object sender, RoutedEventArgs e) { int iA, iB; if (int.TryParse(tbWPID.Text, out iA) && int.TryParse(tbCell.Text, out iB)) { ADSWriteInterface Interface = new ADSWriteInterface(); //Interface.writeToPLCInt("MAIN.m_iWPRequest", int.Parse(tbAction.Text)); //Interface.writeToPLCInt("MAIN.m_iCellRequest", int.Parse(tbCell.Text)); //Interface.writeToPLCInt("MAIN.m_iActionRequest", int.Parse(tbWPID.Text)); } }