Example #1
0
 /*窗体与类启动函数
  *
  */
 public Main()
 {
     InitializeComponent();
     RenderWorkerObject  = new RenderWorker(ref axMapControl);
     statusTipLabel.Text = util.handleSystemError(
         ArcObject.UIToolControlAddItemFix(ref axToolbarControl));
 }
Example #2
0
        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 {
            }
        }
Example #3
0
        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 {

            }
        }
Example #4
0
 private void EndRender()
 {
     worker = null;
 }
Example #5
0
 private void EndRender()
 {
     worker = null;
 }