CreateScreen() public static method

public static CreateScreen ( StageDocument stage ) : void
stage StageDocument
return void
示例#1
0
        //***************
        // Tool Windows *
        //***************

        private void newScreenStripMenuItem_Click(object sender, EventArgs e)
        {
            if (ActiveStage != null)
            {
                ScreenProp.CreateScreen(ActiveStage);
            }
        }
示例#2
0
        private void buttonNewScreen_Click(object sender, EventArgs e)
        {
            if (projectView.SelectedNode != null)
            {
                var node = projectView.SelectedNode;
                var tag  = node.Tag as StageNodeHandler;
                while (tag == null && node.Parent != null)
                {
                    node = node.Parent;
                    tag  = node.Tag as StageNodeHandler;
                }

                if (tag != null && tag.Stage != null)
                {
                    ScreenProp.CreateScreen(tag.Stage);
                }
            }
        }