示例#1
0
        public void SetView(ViewEx view)
        {
            var old_view = GetView();

            if (old_view == view)
            {
                return;
            }
            if (old_view != null)
            {
                Controls.Clear();
                old_view.Dispose();
            }
            if (view != null)
            {
                _LockSize = ClientSize = view.Size;
                view.Dock = DockStyle.Fill;
                Controls.Add(view);
            }
            CopyStyle(view);
        }
示例#2
0
 protected void CopyStyle(ViewEx view)
 {
     Text = view.Text;
 }
示例#3
0
 public WindowEx(ViewEx view)
 {
     SetView(view);
     StartPosition = FormStartPosition.CenterScreen;
 }