private void SimpleCalculatorBtn_Click(object sender, RoutedEventArgs e) { if (CalculatorWindow == null) { CalculatorWindow = new CalculatorWindow(); } CalculatorWindow.Show(); }
private void miCalculator_Click(object sender, RoutedEventArgs e) { Views.CalculatorWindow window = new CalculatorWindow(); this.CpCurrentScreenContent.Content = window.Content; ResetMenuButtons(); this.miCalculator.Background = Brushes.LightSlateGray; this.LblContentTitle.Content = "Calculator"; }
private void Button_Click_2(object sender, RoutedEventArgs e) { if (CalculatorWindow == null) { CalculatorWindow = new CalculatorWindow(); } CalculatorWindow.Show(); }
public void TestFixtureSetUp() { // Setup once per fixture // Define in autConfig located in your %localappdata%/LeanFT/config folder. // Create authConfig.json file if not present and structure it like described here // https://admhelp.microfocus.com/uftdev/en/15.0-15.0.2/HelpCenter/Content/HowTo/TestObjects_Manual.htm#Run // To make your app start up, follow instructions here // https://admhelp.microfocus.com/uftdev/en/15.0-15.0.2/NetSDKReference/webframe.html#CodeSamples_.NET/LaunchAUT_Samples.htm application = Desktop.LaunchAut("C:\\Users\\Jan Baetens\\source\\repos\\Calculator\\Calculator\\bin\\Debug\\Calculator.exe"); calculatorWindow = new CalculatorWindow(); settingsWindow = new SettingsWindow(); }
static void Evaluate() { StaticInit(); EditorWindow focusedWindow = EditorWindow.focusedWindow; if (focusedWindow != null) { //preserve this so we don't make anybody cry string oldCopyBuffer = EditorGUIUtility.systemCopyBuffer; focusedWindow.SendEvent(EditorGUIUtility.CommandEvent("SelectAll")); focusedWindow.SendEvent(EditorGUIUtility.CommandEvent("Copy")); var oldKeyboardControlID = GUIUtility.keyboardControl; CalculatorWindow calcWindow = CalculatorWindow.GetWindow(typeof(CalculatorWindow)) as CalculatorWindow; calcWindow.Init(focusedWindow, oldKeyboardControlID, oldCopyBuffer); } }
private void CalculatorMenuItem_Click(object sender, RoutedEventArgs e) { CalculatorWindow calculatorWindow = new CalculatorWindow(); calculatorWindow.Show(); }
static void Init() { // Get existing open window or if none, make a new one: CalculatorWindow window = (CalculatorWindow)EditorWindow.GetWindow(typeof(CalculatorWindow)); //SceneView.onSceneGUIDelegate }
public Calculator(CalculatorWindow calWindow) { calwin = calWindow; calwin.onValueChange(currentVal); }
private void btnFill_ClickCalculator(object sender, RoutedEventArgs e) { CalculatorWindow calculatorWindow = new CalculatorWindow(); calculatorWindow.ShowDialog(); //ждет закрытия окна }
public Class1(CalculatorWindow cal) { calwind = cal; }