//public RunSourceFormExe(IRunSource runSource, ITrace trace, XmlConfig config, RunSourceRestartParameters runSourceParameters) public RunSourceFormExe(IRunSource runSource, XmlConfig config, RemoteRunSource remoteRunSource, RunSourceRestartParameters runSourceParameters) { _runSource = runSource; _remoteRunSource = remoteRunSource; TraceManager.Current.SetViewer(TraceWrited); remoteRunSource.GetTraceManager().SetViewer(TraceWrited); _config = config; _runSourceParameters = runSourceParameters; _source.TextChanged += source_TextChanged; CreateMenu(); CreateTopTools(); this.InitializeForm(); InitExe(); InitMenu(); UpdateRunSourceStatus(); Try(SetKeyboardShortcuts); this.KeyPreview = true; this.Load += RunSourceForm_Load; this.FormClosing += RunSourceForm_FormClosing; this.FormClosed += RunSourceForm_FormClosed; //this.KeyDown += RunSourceForm_KeyDown; }
public RunSourceForm(IRunSource runSource, XmlConfig config, RunSourceRestartParameters runSourceParameters) { _runSource = runSource; _config = config; _runSourceParameters = runSourceParameters; // http://stackoverflow.com/questions/9056418/resources-getobjectthis-icon-crashes-application-on-windows-xp // pour ne pas avoir une exection avec : // this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); // Thread.Sleep(100); // dont work InitializeComponent(); this.Icon = Properties.Resources.app; initGrid(); //initTestMenu(); tb_source.ConfigurationManager.CustomLocation = @"ScintillaNET.xml"; tb_source.ConfigurationManager.Language = "cs"; tc_result.SelectedTab = tab_message; //ActiveControl = me_source; ActiveControl = tb_source; cGrid.Culture = CultureInfo.CurrentUICulture; //_gridMaxWidth = _config.Get<int>("GridMaxWidth"); _gridMaxWidth = _config.Get("GridMaxWidth").zParseAs<int>(); _gridMaxHeight = _config.Get("GridMaxHeight").zParseAs<int>(); _dataTableMaxImageWidth = _config.Get("DataTableMaxImageWidth").zParseAs<int>(); _dataTableMaxImageHeight = _config.Get("DataTableMaxImageHeight").zParseAs<int>(); initRunSource(); InitLog(); SetFileSaved(); }
public RunSourceForm_copy(IRunSource runSource, ITrace trace, XmlConfig config, RunSourceRestartParameters runSourceParameters) { _trace = trace; try { Initialize(); _tabResultMessage = tab_message; _tabResultGrid = tab_result2; _tabResultTree = tab_result4; //this.Icon = Properties.Resources.app; //string title = config.Get("RunsourceTitle"); //if (title != null) // __title = title; //tc_result.SelectedTab = _tabResultMessage; //cGrid.Culture = CultureInfo.CurrentUICulture; //_gridMaxWidth = _config.Get("GridMaxWidth").zParseAs<int>(); //_gridMaxHeight = _config.Get("GridMaxHeight").zParseAs<int>(); //_dataTableMaxImageWidth = _config.Get("DataTableMaxImageWidth").zParseAs<int>(); //_dataTableMaxImageHeight = _config.Get("DataTableMaxImageHeight").zParseAs<int>(); //initRunSource(); //SetFileSaved(); } catch (Exception ex) { _trace.WriteError(ex); zerrf.ErrorMessageBox(ex); } }
public RunSourceForm(IRunSource runSource, ITrace trace, XmlConfig config, RunSourceRestartParameters runSourceParameters) { _runSource = runSource; _trace = trace; _config = config; _runSourceParameters = runSourceParameters; try { // http://stackoverflow.com/questions/9056418/resources-getobjectthis-icon-crashes-application-on-windows-xp // pour ne pas avoir une exection avec : // this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); // Thread.Sleep(100); // dont work Initialize(); _tabResultMessage = tab_message; _tabResultGrid = tab_result2; _tabResultTree = tab_result4; this.Icon = Properties.Resources.app; string title = config.Get("RunsourceTitle"); if (title != null) __title = title; //tb_source.ConfigurationManager.CustomLocation = "ScintillaNET.xml"; //tb_source.ConfigurationManager.Language = "cs"; //InitScintilla(); Try(InitScintilla); tc_result.SelectedTab = _tabResultMessage; //ActiveControl = tb_source; cGrid.Culture = CultureInfo.CurrentUICulture; _gridMaxWidth = _config.Get("GridMaxWidth").zParseAs<int>(); _gridMaxHeight = _config.Get("GridMaxHeight").zParseAs<int>(); _dataTableMaxImageWidth = _config.Get("DataTableMaxImageWidth").zParseAs<int>(); _dataTableMaxImageHeight = _config.Get("DataTableMaxImageHeight").zParseAs<int>(); initRunSource(); SetFileSaved(); } catch (Exception ex) { _trace.WriteError(ex); zerrf.ErrorMessageBox(ex); } }
static RunSourceRestartParameters GetRunSourceRestartParameters() { RunSourceRestartParameters runSourceRestartParameters = null; try { object o = AppDomain.CurrentDomain.GetData("RunSourceRestartParameters"); AppDomain.CurrentDomain.SetData("RunSourceRestartParameters", null); if (o != null) { runSourceRestartParameters = ((string)o).zXmlDeserialize <RunSourceRestartParameters>(); } } catch (Exception ex) { MessageBox.Show(Error.GetErrorMessage(ex), "error", MessageBoxButtons.OK, MessageBoxIcon.Error); } return(runSourceRestartParameters); }
public RunSourceFormExe(IRunSource runSource, ITrace trace, XmlConfig config, RunSourceRestartParameters runSourceParameters) { _runSource = runSource; _trace = trace; _trace.SetViewer(TraceWrited); _config = config; _runSourceParameters = runSourceParameters; _source.TextChanged += source_TextChanged; CreateMenu(); CreateTopTools(); this.InitializeForm(); InitExe(); InitMenu(); UpdateRunSourceStatus(); Try(SetKeyboardShortcuts); this.KeyPreview = true; this.Load += RunSourceForm_Load; this.FormClosing += RunSourceForm_FormClosing; this.FormClosed += RunSourceForm_FormClosed; //this.KeyDown += RunSourceForm_KeyDown; }
public RunSourceForm_v3(IRunSource runSource, ITrace trace, XmlConfig config, RunSourceRestartParameters runSourceParameters) { _runSource = runSource; _trace = trace; _trace.SetViewer(TraceWrited); _config = config; _runSourceParameters = runSourceParameters; this.ClientSize = new Size(1060, 650); CreateMenu(); CreateTopTools(); CreateScintillaControl(); _editPanel.Controls.Add(_source); CreateResultControls(); CreateStatusBar(); this.InitializeForm(); InitExe(); InitMenu(); this.KeyPreview = true; this.Load += RunSourceForm_Load; this.FormClosing += RunSourceForm_FormClosing; this.FormClosed += RunSourceForm_FormClosed; this.KeyDown += RunSourceForm_KeyDown; }
public RunSourceForm_v3(IRunSource runSource, ITrace trace, XmlConfig config, RunSourceRestartParameters runSourceParameters) { _runSource = runSource; _trace = trace; _trace.SetViewer(TraceWrited); _config = config; _runSourceParameters = runSourceParameters; this.ClientSize = new Size(1060, 650); CreateMenu(); CreateTopTools(); CreateScintillaControl(); _editPanel.Controls.Add(_source); CreateResultControls(); CreateStatusBar(); this.InitializeForm(); InitExe(); InitMenu(); this.KeyPreview = true; this.Load += RunSourceForm_Load; this.FormClosing += RunSourceForm_FormClosing; this.FormClosed += RunSourceForm_FormClosed; this.KeyDown += RunSourceForm_KeyDown; }
public RunSourceForm_copy(IRunSource runSource, ITrace trace, XmlConfig config, RunSourceRestartParameters runSourceParameters) { _trace = trace; try { Initialize(); _tabResultMessage = tab_message; _tabResultGrid = tab_result2; _tabResultTree = tab_result4; //this.Icon = Properties.Resources.app; //string title = config.Get("RunsourceTitle"); //if (title != null) // __title = title; //tc_result.SelectedTab = _tabResultMessage; //cGrid.Culture = CultureInfo.CurrentUICulture; //_gridMaxWidth = _config.Get("GridMaxWidth").zParseAs<int>(); //_gridMaxHeight = _config.Get("GridMaxHeight").zParseAs<int>(); //_dataTableMaxImageWidth = _config.Get("DataTableMaxImageWidth").zParseAs<int>(); //_dataTableMaxImageHeight = _config.Get("DataTableMaxImageHeight").zParseAs<int>(); //initRunSource(); //SetFileSaved(); } catch (Exception ex) { _trace.WriteError(ex); zerrf.ErrorMessageBox(ex); } }
static void FormSetRestartRunsource(RunSourceRestartParameters runSourceRestartParameters) { _runSourceRestartParameters = runSourceRestartParameters; }
static void FormSetRestartRunsource(RunSourceRestartParameters runSourceRestartParameters) { _runSourceRestartParameters = runSourceRestartParameters; }