private void RefreshMessageWorker(InstantMessage im) { try { IMSetting ims = new IMSetting(im); refreshSignal = false; // retrieve value from ifix EDA float f; short nErr = Eda.GetOneFloat(ims.node, ims.tag, ims.field, out f); // set message if (nErr != FixError.FE_OK) { RefreshMessage(ims.getVal("????"), Color.FromArgb(ims.color)); } else { RefreshMessage(ims.getVal(f), Color.FromArgb(ims.color)); } } // Eda.dll not found if ifix haven't intalled catch (DllNotFoundException) { RefreshMessage("ifix連接失敗", Color.Red); LED.settingForm.RefreshStatus("請確認是否安裝ifix"); } }
public MainWindow() { todayMenu = new Eda(); InitializeComponent(); MenuView.ItemsSource = todayMenu.Edaa; SpisokZakaza.ItemsSource = oformlenie.MAX; SpisokVsehZakazov.ItemsSource = oformlenie.MAX2; }