Ejemplo n.º 1
0
        void OpenFile(string file)
        {
            font        = new Format.XF(File.OpenRead(file));
            _fileOpened = true;

            LoadDataGrid();

            LoadImages();
            DrawCharInfo();

            UpdateUI();
        }
Ejemplo n.º 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            if (File.Exists("./font.xf"))
            {
                font        = new Format.XF(File.OpenRead("./font.xf"));
                _fileOpened = true;

                LoadDataGrid();

                LoadImages();
                DrawCharInfo();

                UpdateUI();
            }
        }
Ejemplo n.º 3
0
        private void closeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            _fileOpened = false;

            font.Dispose();
            font = null;

            largeDict.Rows.Clear();
            smallDict.Rows.Clear();

            image0.Image.Dispose();
            image1.Image.Dispose();
            image2.Image.Dispose();

            UpdateUI();
        }