Beispiel #1
0
        private void DlgDepthCc_Load(object sender, System.EventArgs e)
        {
            string imageFileName = Project.GetMiscPath("depthcc.gif");

            try
            {
                if (!File.Exists(imageFileName))
                {
                    // load the file remotely, don't hold diagnostics if load fails:
                    string url = Project.MISC_FOLDER_URL + "/depthcc.gif";
//					DloadProgressForm loaderForm = new DloadProgressForm(url, imageFileName, false, true);
//					loaderForm.ShowDialog();
                    new DloadNoForm(url, imageFileName, 3000);
                }
                this.depthCcPictureBox.Image = new Bitmap(imageFileName);
                Project.setDlgIcon(this);
            }
            catch
            {
                // probably no connection, do not bring it up.
                Hide();
                Close();
                This = null;
            }
        }
Beispiel #2
0
        public DlgDepthCc()
        {
            if(This != null)
            {
                This.Dispose();
                //This.Hide();
                //This.Close();
            }
            This = this;

            InitializeComponent();
        }
Beispiel #3
0
        public DlgDepthCc()
        {
            if (This != null)
            {
                This.Dispose();
                //This.Hide();
                //This.Close();
            }
            This = this;

            InitializeComponent();
        }
Beispiel #4
0
 private void DlgDepthCc_Load(object sender, System.EventArgs e)
 {
     string imageFileName = Project.GetMiscPath("depthcc.gif");
     try
     {
         if(!File.Exists(imageFileName))
         {
             // load the file remotely, don't hold diagnostics if load fails:
             string url = Project.MISC_FOLDER_URL + "/depthcc.gif";
     //					DloadProgressForm loaderForm = new DloadProgressForm(url, imageFileName, false, true);
     //					loaderForm.ShowDialog();
             new DloadNoForm(url, imageFileName, 3000);
         }
         this.depthCcPictureBox.Image = new Bitmap(imageFileName);
         Project.setDlgIcon(this);
     }
     catch
     {
         // probably no connection, do not bring it up.
         Hide();
         Close();
         This = null;
     }
 }
Beispiel #5
0
 private void DlgDepthCc_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     This = null;
 }
Beispiel #6
0
 private void DlgDepthCc_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     This = null;
 }