void Read() { if (binding != null) { btn_load.Enabled = true; lbl_file.Text = binding.GetRelativePath(); } else { btn_load.Enabled = false; lbl_file.Text = string.Empty; } }
void Read() { if (binding != null) { btn_load.Enabled = true; lbl_file.Text = binding.GetRelativePath(); if (lbl_file.Text.Length > 0) { UpdateInfo(); //this.Height = 60; } else { //this.Height = 20; } } else { btn_load.Enabled = false; lbl_file.Text = string.Empty; } }
void Read() { if (binding != null) { btn_load.Enabled = true; lbl_file.Text = binding.GetRelativePath(); if (lbl_file.Text.Length > 0) { UpdatePreview(binding.GetAbsolutePath()); } else { //this.Height = 20; } } else { btn_load.Enabled = false; lbl_file.Text = string.Empty; lbl_info.Text = string.Empty; pic_preview.Image = null; } }