Пример #1
0
        private void SetAttributes()
        {
            nxStudio.BaseClass.WordDict oDict = new nxStudio.BaseClass.WordDict(ConfigHelper.CurrentWordDict, ConfigHelper.CurrentLanguageId);

            amsFile.Text      = oDict.GetWord("file_main_menu");
            amsView.Text      = oDict.GetWord("view_main_menu");
            amsViewChs.Text   = oDict.GetWord("chs_main_menu");
            amsViewCht.Text   = oDict.GetWord("cht_main_menu");
            amsHelp.Text      = oDict.GetWord("help_main_menu");
            amsFileExit.Text  = oDict.GetWord("exit_main_menu");
            amsHelpAbout.Text = oDict.GetWord("about_main_menu");

            navTabs.Dock = DockStyle.Fill;

            wspPane.Text = oDict.GetWord("dashboard");
            wspPane.Dock = DockStyle.Fill;

            this.Menu      = null;
            atsPane.Height = 68;
            //
            var oTopPane = new TopPane();

            oTopPane.Dock = DockStyle.Fill;
            atsPane.Controls.Add(oTopPane);
        }
Пример #2
0
        private void ShowTopPanel()
        {
            if (TopPane == null)
            {
                FindName(nameof(TopPane));
                TopPane.EnableFluidVisibilityAnimation(AnimationAxis.Y, -100.0f, -100.0f, hideDuration: 400, showDelay: 400);
            }

            TopPane.Visibility = Visibility.Visible;
        }
Пример #3
0
        /// <summary>
        /// Text
        /// </summary>
        /// <returns>text</returns>
        public override string ToString()
        {
            if (SingleChild != null)
            {
                return("DC: " + SingleChild.Text);
            }

            if (LeftPane != null)
            {
                return("DC[" + LeftPane.ToString() + " | " + RightPane.ToString() + "]");
            }

            if (TopPane != null)
            {
                return("DC[" + TopPane.ToString() + " | " + BottomPane.ToString() + "]");
            }

            return("DC<ModeEmpty>");
        }