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; } }
public DlgDepthCc() { if(This != null) { This.Dispose(); //This.Hide(); //This.Close(); } This = this; InitializeComponent(); }
public DlgDepthCc() { if (This != null) { This.Dispose(); //This.Hide(); //This.Close(); } This = this; InitializeComponent(); }
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; } }
private void DlgDepthCc_Closing(object sender, System.ComponentModel.CancelEventArgs e) { This = null; }