Пример #1
0
        private void tsOpen_Click(object sender, EventArgs e)
        {
            OpenBinForm frm = new OpenBinForm();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                m_mtkResource = new MTKResourceClass(frm.FileName);
            }
        }
Пример #2
0
        private void tsOLFont_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog1 = new OpenFileDialog();

            openFileDialog1.InitialDirectory = System.Windows.Forms.Application.StartupPath;
            openFileDialog1.Filter           = "BIN files (*.bin)|*.bin";
            openFileDialog1.FilterIndex      = 1;
            openFileDialog1.RestoreDirectory = true;

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                m_mtkResource = new MTKResourceClass(openFileDialog1.FileName, true);
            }
        }