Esempio n. 1
0
        private void btnWeapons_ItemClick(object sender, ItemClickEventArgs e)
        {
            FSD.ShowDialog();
            if (FSD.FileName == String.Empty || FSD.FileName == null)
            {
                return;
            }
            Forms.TfmPreviewFolderWBGWorker previewFolder = new Forms.TfmPreviewFolderWBGWorker(
                FSD.FileName,
                Common.FolderType.Data,
                Common.Gender.Both,
                Common.Direction.East,
                false,
                true,
                Common.OfficialMirType.Weapon);

            previewFolder.MdiParent = this;
            previewFolder.Show();

            GC.Collect();
        }
Esempio n. 2
0
        private void btnPreviewFolder_ItemClick(object sender, ItemClickEventArgs e)
        {
            Forms.TfmPreviewFolderConfig previewFolderConfig = new Forms.TfmPreviewFolderConfig();
            previewFolderConfig.ShowDialog();

            if (previewFolderConfig.ReturnType == Common.ReturnTye.Preview)
            {
                Forms.TfmPreviewFolderWBGWorker previewFolder = new Forms.TfmPreviewFolderWBGWorker(
                    previewFolderConfig.LibraryFolder,
                    previewFolderConfig.FolderType,
                    previewFolderConfig.Gender,
                    previewFolderConfig.Direction,
                    previewFolderConfig.CropImage,
                    previewFolderConfig.SleepThread);

                previewFolder.MdiParent = this;
                previewFolder.Show();
            }
            else
            {
                previewFolderConfig.Dispose();
            }
            GC.Collect();
        }