Esempio n. 1
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            MainWindow              = new Panel();
            MainWindow.Name         = "MainWindow";
            ListPanel_FileList      = new StoryNameList();
            ListPanel_FileList.Name = "ListPanel_FileList";
            Button_DelAll           = new Button();
            Button_DelAll.Name      = "Button_DelAll";
            Add_New           = new Button();
            Add_New.Name      = "Add_New";
            ContentPanel      = new ReadScollPanel();
            ContentPanel.Name = "ContentPanel";

            // ListPanel_FileList
            ListPanel_FileList.ScrollBarVisibility = ScrollBarVisibility.ScrollableVisible;
            ListPanel_FileList.BackgroundColor     = new UIColor(200f / 255f, 153f / 255f, 100f / 255f, 255f / 255f);

            // Button_DelAll
            Button_DelAll.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            Button_DelAll.TextFont  = new Font(FontAlias.System, 25, FontStyle.Regular);

            // Add_New
            Add_New.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            Add_New.TextFont  = new Font(FontAlias.System, 25, FontStyle.Regular);
            // MainWindow
            MainWindow.Clip            = true;
            MainWindow.BackgroundColor = new UIColor(153f / 255f, 153f / 255f, 153f / 255f, 255f / 255f);
            this.MainWindow.AddChildLast(ListPanel_FileList);
            this.MainWindow.AddChildLast(ContentPanel);
            this.MainWindow.AddChildLast(Button_DelAll);
            this.MainWindow.AddChildLast(Add_New);

            // Scen
            this.RootWidget.AddChildLast(MainWindow);

            SetWidgetLayout(orientation);

            UpdateLanguage();

            CustomInit();
        }
Esempio n. 2
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            MainWindow = new Panel();
            MainWindow.Name = "MainWindow";
            ListPanel_FileList = new StoryNameList();
            ListPanel_FileList.Name = "ListPanel_FileList";
            Button_DelAll = new Button();
            Button_DelAll.Name = "Button_DelAll";
            Add_New = new Button();
            Add_New.Name = "Add_New";
            ContentPanel = new ReadScollPanel();
            ContentPanel.Name = "ContentPanel";

            // ListPanel_FileList
            ListPanel_FileList.ScrollBarVisibility = ScrollBarVisibility.ScrollableVisible;
            ListPanel_FileList.BackgroundColor = new UIColor(200f / 255f, 153f / 255f, 100f / 255f, 255f / 255f);

            // Button_DelAll
            Button_DelAll.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            Button_DelAll.TextFont = new Font( FontAlias.System, 25, FontStyle.Regular);

            // Add_New
            Add_New.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            Add_New.TextFont = new Font( FontAlias.System, 25, FontStyle.Regular);
            // MainWindow
            MainWindow.Clip = true;
            MainWindow.BackgroundColor = new UIColor(153f / 255f, 153f / 255f, 153f / 255f, 255f / 255f);
            this.MainWindow.AddChildLast(ListPanel_FileList);
            this.MainWindow.AddChildLast(ContentPanel);
            this.MainWindow.AddChildLast(Button_DelAll);
            this.MainWindow.AddChildLast(Add_New);

            // Scen
            this.RootWidget.AddChildLast(MainWindow);

            SetWidgetLayout(orientation);

            UpdateLanguage();

            CustomInit();
        }