protected void OnIngresarClicked(object sender, EventArgs e)
    {
        SecondWindow secondWindow = new SecondWindow();

        this.Destroy();
        secondWindow.Show();
    }
예제 #2
0
    protected void OnEnterClicked(object sender, EventArgs e)
    {
        SecondWindow w2 = new SecondWindow(OLI, CodOf, CodPost, ST);

        this.Destroy();
        w2.Show();
    }
예제 #3
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            var sw = new SecondWindow();

            sw.Top  = 100;
            sw.Left = 400;
            sw.Show();
        }
예제 #4
0
파일: ViewModel3.cs 프로젝트: karmie/Sample
        void NextWindow(object parameter)
        {
            var win = new SecondWindow();

            win.Show();
            Application.Current.MainWindow.Close();
            //CloseWindow();
        }
예제 #5
0
    private void OnGUI()
    {
        GUILayout.BeginHorizontal();
        GUILayout.Label("BehaviourName", EditorStyles.boldLabel);
        xmlName = GUILayout.TextField(xmlName, EditorStyles.textField);
        GUILayout.EndHorizontal();

        for (int i = 0; i < mainStates.Count; i++)
        {
            GUILayout.BeginHorizontal();
            GUILayout.Label("MainStep" + (i), EditorStyles.boldLabel);
            button = GUILayout.Button("点击编辑");
            GUILayout.Label("跳转至-->");
            tempDict[i]     = int.Parse(GUILayout.TextField(tempDict[i].ToString(), EditorStyles.textField));
            changeStates[i] = tempDict[i];
            GUILayout.EndHorizontal();
            if (button)
            {
                tempData.curStateIndex = i;
                SecondWindow window = (SecondWindow)EditorWindow.GetWindow(typeof(SecondWindow), true, "具体行为编辑", true);
                window.position = new Rect(x, y, 322f, 544f);
                window.Show();
            }
        }

        if (GUILayout.Button("添加行为"))
        {
            AddMainStep();
        }
        if (GUILayout.Button("删除行为"))
        {
            RemoveMainStep();
        }
        if (GUILayout.Button("生成Xml"))
        {
            CreateXml();
        }
        if (GUILayout.Button("初始化"))
        {
            ResetAll();
        }
    }
예제 #6
0
        private void LoadData()
        {
            if (w2 != null && s2 != null)
            {
                Rectangle r2 = s2.WorkingArea;
                w2.Top       = r2.Top;
                w2.Left      = r2.Left;
                w2.Width     = r2.Width;
                w2.Height    = r2.Height;
                w2.Focusable = false;
                w2.Show();
            }

            todoLists.Add(new ToDoItem {
                Name = "Shopping", Price = 2.21M
            });
            todoLists.Add(new ToDoItem {
                Name = "Laundry", Price = 3.21M
            });
            //           throw new NotImplementedException();
        }
예제 #7
0
        void InitializeControls()
        {
            var firstWindow = new FirstWindow(this);

            firstWindow.Show();

            var secondWindow = new SecondWindow(this);

            secondWindow.Show();

            var thirdWindow = new ThirdWindow(this);

            thirdWindow.Show();

            var startEffectOverlay = new Overlay(this)
            {
                Opacity = 1
            };

            startEffectOverlay.Show();

            var startEffectOverlay_opacityAnimation = new FloatLerpAnimation
            {
                Action   = (current) => { startEffectOverlay.Opacity = current; },
                From     = 1,
                To       = 0,
                Duration = TimeSpan.FromSeconds(0.5d),
                Enabled  = true
            };

            startEffectOverlay_opacityAnimation.Completed += (s, e) =>
            {
                startEffectOverlay.Close();
                thirdWindow.Activate();
            };
            startEffectOverlay.Animations.Add(startEffectOverlay_opacityAnimation);
        }
예제 #8
0
        private void Second_Click(object sender, RoutedEventArgs e)
        {
            Window pm = new SecondWindow();

            pm.Show();
        }
예제 #9
0
        public void OpenNewSecondWindow()
        {
            var secondWindow = new SecondWindow();

            secondWindow.Show();
        }
예제 #10
0
 private void showSecondWindow()
 {
     _secondWindow.Show();
 }
예제 #11
0
 public void NextWindow()
 {
     secondWindow.Show();
     HidenWindow();
 }
예제 #12
0
        void InitializeControls()
        {
            var firstWindow = new FirstWindow(this);
            firstWindow.Show();

            var secondWindow = new SecondWindow(this);
            secondWindow.Show();

            var thirdWindow = new ThirdWindow(this);
            thirdWindow.Show();

            var startEffectOverlay = new Overlay(this)
            {
                Opacity = 1
            };
            startEffectOverlay.Show();

            var startEffectOverlay_opacityAnimation = new FloatLerpAnimation
            {
                Action = (current) => { startEffectOverlay.Opacity = current; },
                From = 1,
                To = 0,
                Duration = TimeSpan.FromSeconds(0.5d),
                Enabled = true
            };
            startEffectOverlay_opacityAnimation.Completed += (s, e) =>
            {
                startEffectOverlay.Close();
                thirdWindow.Activate();
            };
            startEffectOverlay.Animations.Add(startEffectOverlay_opacityAnimation);
        }