public ViewPck() { pckFile = null; Width = 8 * (width + 2 * space); this.Paint += new PaintEventHandler(paint); this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true); this.MouseDown += new MouseEventHandler(click); this.MouseMove += new MouseEventHandler(moving); clickX = clickY = -1; }
private void SaveMenuItem_Click(object sender, EventArgs e) { osFilter.SetFilter(IXCImageFile.Filter.Save); saveDictionary.Clear(); loadedTypes.CreateFilter(osFilter, saveDictionary); var dir = Path.GetDirectoryName(_currentFilePath); var fileWithoutExt = Path.GetFileNameWithoutExtension(_currentFilePath); // Backup _fileBackupManager.Backup(_currentFilePath); // Save PckFile.Save( dir, fileWithoutExt, _totalViewPck.Collection, _currentFileBpp); SavedFile = true; }