void OpenFile(string file) { font = new Format.XF(File.OpenRead(file)); _fileOpened = true; LoadDataGrid(); LoadImages(); DrawCharInfo(); UpdateUI(); }
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(); } }
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(); }