Exemple #1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            SetAboutText();

            NUIManager.ApplyPalette(this);
            BackColor = Color.White;
        }
Exemple #2
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
        private void Palette_PaletteChanged(NPalette Palette, PaletteChangeEventArgs e)
        {
            m_CommandBarsManager.BeginUpdate();

            bool fade = Palette.Scheme == ColorScheme.Standard;

            SetFadeImageAndImageShadow(m_CommandBarsManager.CommandManager.GetAllCommands(false), fade, fade);

            NUIManager.ApplyPalette(this, Palette);
            m_CommandBarsManager.Palette.Copy(Palette);

            m_CommandBarsManager.EndUpdate(true);
        }
Exemple #4
0
        private void m_ShowFormButton_Click(object sender, System.EventArgs e)
        {
            NForm f = new NForm();

            f.FrameAppearance = NUIManager.GetPredefinedFrame(PredefinedFrame.Simple);
            f.StartPosition   = FormStartPosition.CenterParent;
            f.Text            = "Custom Caption Buttons";
            f.Palette.Copy(NUIManager.Palette);
            f.CaptionButtonClicked += new NUIItemEventHandler(f_CaptionButtonClicked);

            foreach (NFrameCaptionButton button in m_arrButtons)
            {
                f.CustomButtons.Add(button);
            }

            f.ShowDialog();
        }
        public NVisualStudioIDE(NIDELoadUC loader)
        {
            InitializeComponent();

            m_Loader = loader;
            m_SolutionExplorer.HideSelection = false;

            ResizeRedraw = false;

            m_SolutionExplorer.Dock = DockStyle.Fill;

            LoadDockingFramework();

            PopulateSolutionExplorer();
            LoadCommandBars();

            nStatusBar1.SendToBack();

            NUIManager.ApplyPalette(this);
        }
Exemple #6
0
        private void m_ShowFormButton_Click(object sender, System.EventArgs e)
        {
            NFrameAppearance appearance;

            if (m_PredefinedRadio.Checked)
            {
                appearance = NUIManager.GetPredefinedFrame((PredefinedFrame)m_PredefinedFrameCombo.SelectedItem);
            }
            else
            {
                appearance = m_CustomAppearance;
            }

            NForm form = new NForm();

            form.UseGlassIfEnabled = CommonTriState.False;
            form.EnableSkinning    = false;
            form.Palette.Copy(NUIManager.Palette);
            form.Text             = "Custom Form Example";
            form.FrameAppearance  = appearance;
            form.ShowCaptionImage = true;
            form.StartPosition    = FormStartPosition.CenterParent;
            form.ShowDialog();
        }