예제 #1
0
            public void UpdateStatus(HostUpgradeState state, string value)
            {
                try
                {
                    switch (state)
                    {
                    case HostUpgradeState.Upgraded:
                        imageCell.Value = Resources._000_Tick_h32bit_16;
                        break;

                    case HostUpgradeState.Upgrading:
                        imageCell.Value = animatedImage;
                        break;

                    case HostUpgradeState.Error:
                        imageCell.Value = Resources._000_Abort_h32bit_16;
                        break;

                    case HostUpgradeState.NotUpgraded:
                        imageCell.Value = new Bitmap(1, 1);
                        break;
                    }
                }
                catch (Exception) { }
                statusCell.Value = value;
            }
            public void UpdateStatus(HostUpgradeState state, string value)
            {
                switch (state)
                {
                    case HostUpgradeState.Upgraded:
                        imageCell.Value = Resources._000_Tick_h32bit_16;
                        break;
                    case HostUpgradeState.Upgrading:
                        try
                        {
                            imageCell.Value = animatedImage;
                        }
                        catch (Exception) { }
                        break;

                    case HostUpgradeState.Error:
                        imageCell.Value = Resources._000_Abort_h32bit_16;
                        break;

                    case HostUpgradeState.NotUpgraded:
                        imageCell.Value = new Bitmap(1, 1);
                        break;
                }

                statusCell.Value = value;
            }