/*窗体与类启动函数 * */ public Main() { InitializeComponent(); RenderWorkerObject = new RenderWorker(ref axMapControl); statusTipLabel.Text = util.handleSystemError( ArcObject.UIToolControlAddItemFix(ref axToolbarControl)); }
public void Start(String configString, Settings settings) { try { mainForm.UpdateControlsForRender(); mainForm.SetPictureBoxImage(null); tempFileName = "temp.txt"; StreamWriter writer = new StreamWriter(tempFileName); writer.Write(configString); writer.Close(); worker = new RenderWorker(); worker.Start(renderMode, settings, tempFileName, StartRender, EndRender, Progress, Finish, SetPixel); } catch { } }
public void Start(String configString, Settings settings) { try { mainForm.UpdateControlsForRender (); mainForm.SetPictureBoxImage (null); tempFileName = "temp.txt"; StreamWriter writer = new StreamWriter (tempFileName); writer.Write (configString); writer.Close (); worker = new RenderWorker (); worker.Start (renderMode, settings, tempFileName, StartRender, EndRender, Progress, Finish, SetPixel); } catch { } }
private void EndRender() { worker = null; }