예제 #1
0
        private void ShowFormatSpecifier()
        {
            UIState ui = GetUIState(MeshDataStage.VSIn);

            if (m_FormatSpecifier == null)
                m_FormatSpecifier = new BufferFormatSpecifier(this, ui.m_Input.Buffers[0], m_FormatText);

            m_FormatSpecifier.Show(dockPanel, DockState.DockBottom);
        }
예제 #2
0
        private void ShowFormatSpecifier()
        {
            if (m_FormatSpecifier == null)
            {
                m_FormatSpecifier = new BufferFormatSpecifier(this, m_FormatText);

                var dock = Helpers.WrapDockContent(dockPanel, m_FormatSpecifier, m_FormatSpecifier.Text);
                dock.CloseButton = false;
                dock.CloseButtonVisible = false;
            }

            (m_FormatSpecifier.Parent as DockContent).Show(dockPanel, DockState.DockBottom);
        }
예제 #3
0
		private void setFormat_CheckedChanged(object sender, EventArgs e)
		{
			if (!setFormat.Checked)
			{
				split.Panel2.Controls.Remove(m_FormatSpecifier);
				split.Panel2Collapsed = true;
				
				ProcessBufferFormat("");

				return;
			}

			if (m_FormatSpecifier == null)
				m_FormatSpecifier = new BufferFormatSpecifier(this, "");

			split.Panel2.Controls.Add(m_FormatSpecifier);
			m_FormatSpecifier.Dock = DockStyle.Fill;
			split.Panel2Collapsed = false;
			split.SplitterDistance = split.ClientRectangle.Height / 2;
		}