Esempio n. 1
0
 private void openToolStripMenuItem_Click(object sender, EventArgs e)
 {
     OpenFileDialog openFileDialog = new OpenFileDialog();
     openFileDialog.Filter = "TIM2 files|*.tm2";
     if (openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         LIBKH.ALL.TM2 tm2 = new LIBKH.ALL.TM2(openFileDialog.FileName);
         panelImage.BackgroundImage = tm2.Image;
     }
 }
Esempio n. 2
0
        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();

            openFileDialog.Filter = "TIM2 files|*.tm2";
            if (openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                LIBKH.ALL.TM2 tm2 = new LIBKH.ALL.TM2(openFileDialog.FileName);
                panelImage.BackgroundImage = tm2.Image;
            }
        }