コード例 #1
0
            public static void Init(SyncDetailInfoForm2 form)
            {
                helpers = new SyncStatusFormHelper[7];

                helpers[0] = new SyncStatusFormHelper(SyncStatus.FetchingElements, new List <Control>()
                {
                    form.panel_fetchFD
                });
                helpers[1] = new SyncStatusFormHelper(SyncStatus.DetectingChanges, new List <Control>()
                {
                    form.panel_detectCh, form.panel_detectCh_chTypes
                });
                helpers[2] = new SyncStatusFormHelper(SyncStatus.CreatingFolders, new List <Control>()
                {
                    form.panel_crDirs
                });
                helpers[3] = new SyncStatusFormHelper(SyncStatus.ApplyingFileChanges, new List <Control>()
                {
                    form.panel_applyCh_speed, form.panel_applyCh_syncedFiles
                });
                helpers[4] = new SyncStatusFormHelper(SyncStatus.RemoveDirs, new List <Control>()
                {
                    form.panel_remDirs
                });
                helpers[5] = new SyncStatusFormHelper(SyncStatus.Finished, new List <Control>()
                {
                });
                helpers[6] = new SyncStatusFormHelper(SyncStatus.Aborted, new List <Control>()
                {
                });
            }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: tranquvis/WinSync
        /// <summary>
        /// open SyncDetailInfoForm of selected link
        /// </summary>
        void OpenSyncDetailInfoForm()
        {
            if (_selectedLink == null)
            {
                return;
            }

            SyncDetailInfoForm2 f = new SyncDetailInfoForm2(_selectedLink);

            f.FormClosed += delegate
            {
                f.Dispose();
                _statForms.Remove(f);
            };
            if (!f.IsDisposed)
            {
                Application.Run(f);
                _statForms.Add(f);
            }
        }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: tranquvis/WinSync
        /// <summary>
        /// open SyncDetailInfoForm of selected link
        /// </summary>
        void OpenSyncDetailInfoForm()
        {
            if (_selectedLink == null) return;

            SyncDetailInfoForm2 f = new SyncDetailInfoForm2(_selectedLink);

            f.FormClosed += delegate
            {
                f.Dispose();
                _statForms.Remove(f);
            };
            if (!f.IsDisposed)
            {
                Application.Run(f);
                _statForms.Add(f);
            }
        }
コード例 #4
0
            public static void Init(SyncDetailInfoForm2 form)
            {
                helpers = new SyncStatusFormHelper[7];

                helpers[0] = new SyncStatusFormHelper(SyncStatus.FetchingElements, new List<Control>()
                    {form.panel_fetchFD});
                helpers[1] = new SyncStatusFormHelper(SyncStatus.DetectingChanges, new List<Control>()
                    {form.panel_detectCh, form.panel_detectCh_chTypes});
                helpers[2] = new SyncStatusFormHelper(SyncStatus.CreatingFolders, new List<Control>()
                    {form.panel_crDirs });
                helpers[3] = new SyncStatusFormHelper(SyncStatus.ApplyingFileChanges, new List<Control>()
                    {form.panel_applyCh_speed, form.panel_applyCh_syncedFiles});
                helpers[4] = new SyncStatusFormHelper(SyncStatus.RemoveDirs, new List<Control>()
                    {form.panel_remDirs});
                helpers[5] = new SyncStatusFormHelper(SyncStatus.Finished, new List<Control>()
                { });
                helpers[6] = new SyncStatusFormHelper(SyncStatus.Aborted, new List<Control>()
                { });
            }