Esempio n. 1
0
        private void ScriptSettingsImg_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            this.mMacroRecorderWindow.mOverlayGrid.Visibility = Visibility.Visible;
            MacroRecording macroRecording = MacroGraph.Instance.Vertices.Cast <MacroRecording>().Where <MacroRecording>((Func <MacroRecording, bool>)(macro => macro.Equals(this.mRecording))).FirstOrDefault <MacroRecording>();
            MacroRecording mRecording     = this.mRecording;

            if ((mRecording != null ? (mRecording.RecordingType == RecordingTypes.MultiRecording ? 1 : 0) : 0) != 0)
            {
                ClientStats.SendMiscellaneousStatsAsync("MacroOperations", RegistryManager.Instance.UserGuid, RegistryManager.Instance.ClientVersion, "merge_macro_edit", (string)null, (string)null, (string)null, (string)null, (string)null, "Android");
                if (this.mMacroRecorderWindow.mMergeMacroWindow == null)
                {
                    MacroRecorderWindow macroRecorderWindow = this.mMacroRecorderWindow;
                    MergeMacroWindow    mergeMacroWindow    = new MergeMacroWindow(this.mMacroRecorderWindow, this.ParentWindow);
                    mergeMacroWindow.Owner = (Window)this.ParentWindow;
                    macroRecorderWindow.mMergeMacroWindow = mergeMacroWindow;
                }
                this.mMacroRecorderWindow.mMergeMacroWindow.Init(macroRecording, this);
                this.mMacroRecorderWindow.mMergeMacroWindow.Show();
            }
            else
            {
                ClientStats.SendMiscellaneousStatsAsync("MacroOperations", RegistryManager.Instance.UserGuid, RegistryManager.Instance.ClientVersion, "macro_window_settings", (string)null, this.mRecording.RecordingType.ToString(), (string)null, (string)null, (string)null, "Android");
                if (this.mMacroSettingsWindow == null || this.mMacroSettingsWindow.IsClosed)
                {
                    this.mMacroSettingsWindow = new MacroSettingsWindow(this.ParentWindow, macroRecording, this.mMacroRecorderWindow);
                }
                this.mMacroSettingsWindow.ShowDialog();
            }
        }
 public MacroToAdd(MergeMacroWindow window, string macroName)
 {
     this.InitializeComponent();
     this.mMergeMacroWindow = window;
     this.Tag             = (object)macroName;
     this.mMacroName.Text = macroName;
 }