프로젝트

일반

사용자정보

개정판 f9cc5190

IDf9cc519089faedc1463bd9a16229d6c47ef4fff9
상위 32205389
하위 63c5305b

gaqhf 이(가) 5년 이상 전에 추가함

dev issue #000 : fix bug

Change-Id: If776f77b2e5603539c18a825404de4c4a364bb21

차이점 보기:

DTI_PID/SPPIDConverter/Form/SPPIDSplashScreen.cs
19 19
            InitializeComponent();
20 20
            this.labelControl1.Text = "Copyright © 2018-" + DateTime.Now.Year.ToString();
21 21
        }
22

  
22
        int allStepCount;
23
        int currentCount;
23 24
        private void SPPIDSplashScreen_Load(object sender, EventArgs e)
24 25
        {
25 26

  
......
45 46
            else if (command == SplashScreenCommand.SetStep)
46 47
            {
47 48
                string stepText = (string)arg;
48
                labelStep.Text = "Step : " + stepText;
49
                labelStep.Text = "Step : " + stepText + string.Format(" ({0}/{1})",++currentCount, allStepCount);
49 50
            }
50 51
            else if (command == SplashScreenCommand.SetAllProgress)
51 52
            {
......
71 72
                timer.Stop();
72 73
                SetParent(Handle, (IntPtr)0);
73 74
            }
74
                
75
            else if (command == SplashScreenCommand.SetAllStepCount)
76
            {
77
                allStepCount = (int)arg;
78
                currentCount = 0;
79
            }
80
            else if (command == SplashScreenCommand.SetStepMinus)
81
            {
82
                currentCount--;
83
            }
75 84

  
76 85
            //if (!IsTopMost)
77 86
            //    this.TopMost = true;
......
89 98
            SetProgress,
90 99
            UpProgress,
91 100
            SetAllProgress,
101
            SetAllStepCount,
92 102
            SetStep,
103
            SetStepMinus,
93 104
            SetDocumentName,
94 105
            SetParent,
95 106
            ClearParent
......
98 109
        private void timer_Tick(object sender, EventArgs e)
99 110
        {
100 111
            TimeSpan ts = sw.Elapsed;
101
            labelTime.Text = string.Format("{0:00} : {1:00}", ts.TotalMinutes, ts.Seconds);
112
            labelTime.Text = string.Format("{0:00} : {1:00} : {2:00}", ts.Hours, ts.Minutes, ts.Seconds);
102 113
        }
103 114
    }
104 115
}

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)