public MainFrameDriverWindow(MainFrameDriver MFD) { mDriver = MFD; InitializeComponent(); GingerCore.General.FillComboFromEnumObj(KeytoSend, TNkEy); MainFrameUIHelper.SetupMainframeDriverComponents(mDriver, this, ConsoleCanvas); }
public void Refresh() { try { XMLScreen XMLS = mDriver.MFE.GetScreenAsXML(); MainFrameUIHelper.RefreshCamvasComponents(mDriver, this, ConsoleCanvas, XMLS, null); } catch (Exception mfe) { XMLScreen XMLS = new XMLScreen(); XMLScreenField XF = new XMLScreenField(); XF.Text = "Mainframe not Connected " + mfe.Message; XF.Attributes = new XMLScreenAttributes(); XF.Attributes.Protected = true; XF.Location = new XMLScreenLocation(); XF.Location.position = 0; XF.Location.top = 0; XF.Location.left = 0; XF.Location.length = XF.Text.Length; MainFrameUIHelper.RefreshCamvasComponents(mDriver, this, ConsoleCanvas, XMLS, XF); } }
private void ConsoleCanvas_SizeChanged(object sender, SizeChangedEventArgs e) { MainFrameUIHelper.SetupMainframeDriverComponents(mDriver, this, ConsoleCanvas); }