예제 #1
0
        public override void OnRefresh()
        {
            string FileName = XmlHelper.Value(Data, "filename");

            MetGraphControl1.OnRefresh();
            HelpText = FileName;
            OpenFileDialog.InitialDirectory = Path.GetDirectoryName(FileName);
            MetGraphControl1.SetFileName(FileName);
        }
예제 #2
0
 private void btnBrowse_Click(object sender, System.EventArgs e)
 {
     try {
         if (OpenFileDialog.ShowDialog() == DialogResult.OK)
         {
             MetGraphControl1.SetFileName(OpenFileDialog.FileName);
             this.HelpText = MetGraphControl1.GetFileName();
         }
     } catch (Exception ex) {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }