예제 #1
0
 public ConfigDialog(SortImgSettings set)
 {
     InitializeComponent();
     settings                   = set;
     this.KeyUp                += new KeyEventHandler(Key);
     inkeys                     = settings.GetKeyBinds();
     currentKey.Text            = Convert.ToString(inkeys[0]);
     keyList.DataSource         = settings.GetKeyNames();
     dupCheckType.SelectedIndex = settings.DuplicateCheckMode;
 }
예제 #2
0
 public ConfigDialog(SortImgSettings set)
 {
     InitializeComponent();
     settings = set;
     this.KeyUp += new KeyEventHandler(Key);
     inkeys = settings.GetKeyBinds();
     currentKey.Text =  Convert.ToString( inkeys[0]);
     keyList.DataSource = settings.GetKeyNames();
     dupCheckType.SelectedIndex = settings.DuplicateCheckMode;
 }
예제 #3
0
        private string[] workingFolders = new string[64]; // 0-31 are source folders, 32 is dup folder. 64 for compatablity with copying

        public SourceDialog(SortImgSettings set)
        {
            string apppath = Application.StartupPath;

            // INI = new IniFile(apppath + "\\Settings.ini");
            InitializeComponent();
            buildtips();
            // buildINI();
            //lastDir = settings.LastDirectory;
            //  logval = settings.LogValue;
            settings = set;
            logval   = settings.LogValue;
            lastDir  = settings.LastDirectory;
        }
예제 #4
0
파일: Main.cs 프로젝트: Stmdotcom/sortimg
        private string[] workingFolders = new string[64]; // 0-31 are source folders, 32 is dup folder, 33-63 are destination folders

        #endregion Fields

        #region Constructors

        //Main constructor for the form
        public SortImg()
        {
            InitializeComponent();

            string version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
            this.Text = String.Format("SortImg (Ver. {0})", version);

            DoubleBuffered = true;
            is64bit = Utils.Is64BitOperatingSystem(); //Check address space for recycle bin strut construction diffrences.
            if (is64bit)
            {
                util64 = new Utils64();
            }
            else
            {
                util32 = new Utils32();
            }
            pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
            tnb = new ThumbnailBuilder();
            addImage = new DelegateAddImage(this.AddImage);
            thumbController = new ThumbnailController();
            thumbController.OnStart += new ThumbnailControllerEventHandler(thumbControllerStart);
            thumbController.OnAdd += new ThumbnailControllerEventHandler(thumbControllerAdd);
            thumbController.OnEnd += new ThumbnailControllerEventHandler(thumbControllerEnd);

            this.KeyUp += new KeyEventHandler(Key);
            ImageInfo = new ToolTip();
            imageMatcher = new ImageMatcherSpeed();
            logger = new Logging();
            buttonbuilder = new DynamicButtons();
            this.Closing += new CancelEventHandler(SortImg_Closing);
            FileCopyedsource = new ArrayList();
            FileCopyeddest = new ArrayList();
            ButtonDispose = new ArrayList();
            fileNameCreator = new FileNameBuilder(false);
            checkedTags = new List<string>();
            currentTagsList = new List<string>();
            selected = new List<ImageViewer>();
            storedSettings = new SortImgSettings(Application.StartupPath, logger);
            storedSettings.loadSettings(true, true);
            sourceAdd = new SourceDialog(storedSettings);
        }