protected void OnIngresarClicked(object sender, EventArgs e) { SecondWindow secondWindow = new SecondWindow(); this.Destroy(); secondWindow.Show(); }
protected void OnEnterClicked(object sender, EventArgs e) { SecondWindow w2 = new SecondWindow(OLI, CodOf, CodPost, ST); this.Destroy(); w2.Show(); }
private void Application_Startup(object sender, StartupEventArgs e) { var sw = new SecondWindow(); sw.Top = 100; sw.Left = 400; sw.Show(); }
void NextWindow(object parameter) { var win = new SecondWindow(); win.Show(); Application.Current.MainWindow.Close(); //CloseWindow(); }
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(); } }
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(); }
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); }
private void Second_Click(object sender, RoutedEventArgs e) { Window pm = new SecondWindow(); pm.Show(); }
public void OpenNewSecondWindow() { var secondWindow = new SecondWindow(); secondWindow.Show(); }
private void showSecondWindow() { _secondWindow.Show(); }
public void NextWindow() { secondWindow.Show(); HidenWindow(); }
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); }