예제 #1
0
        public void CreateWindow()
        {
            switch (ViewCode)
            {
            case 0:
            default:
                view = new OldCurrent(Size, Theme);
                break;

            case 1:
                view = new MaterialCardCurrent(Size, Theme);
                break;

            case 100:
                view = new OldForecast(Theme);
                break;

            case 101:
                view = new MaterialCardForecast(Theme);
                break;

            case 102:
                view = new MaterialChartCardForecast(Theme);
                break;
            }

            UpdateData();
            UpdateLook();

            view.SetLeft(Left);
            view.SetTop(Top);
            view.ShowWidget();
        }
예제 #2
0
        public void Destroy()
        {
            if (view == null)
            {
                return;
            }

            view.DestroyView();
            view = null;
        }