Esempio n. 1
0
        public ActivityEditorViewModel(IEventAggregator eventAggregator)
        {
label_1:
            int num1 = -197246532;

            while (true)
            {
                int  num2 = -1423646843;
                uint num3;
                switch ((num3 = (uint)(num1 ^ num2)) % 4U)
                {
                case 1:
                    this.Windows = new ObservableCollection <ZoomWindow>();
                    num1         = (int)num3 * -151890115 ^ -365968262;
                    continue;

                case 2:
                    this.selectedWindow = (ZoomWindow)null;
                    // ISSUE: method pointer
                    // ISSUE: method pointer
                    this.executeActivityCommand = ActivityEditorViewModel.\u206C‏​‎‮‬‫‪‪‌‌‎​‫‫‌‪‌‎​‭‪‬‏‭‎‌‮(new Action((object)this, __methodptr(ExecuteActivity)), new Func <bool>((object)this, __methodptr(CanExecuteActivity)));
                    num1 = (int)num3 * 648542634 ^ -672060411;
                    continue;

                case 3:
                    goto label_1;

                default:
                    goto label_5;
                }
            }
label_5:
            // ISSUE: method pointer
            this.activityCommand = new DelegateCommand <object>(new Action <object>(this.ExecuteActivityCommand), new Func <object, bool>((object)this, __methodptr(CanExecuteActivityCommand)));
        }
Esempio n. 2
0
        /// <summary>
        /// Function to create a zoom window.
        /// </summary>
        private void CreateZoomWindow()
        {
            if (_content.Texture == null)
            {
                return;
            }

            _zoomWindow = new ZoomWindow(_content.Renderer, _content.Texture)
            {
                Clipper           = _clipper,
                BackgroundTexture = _content.BackgroundTexture,
                Position          = _content.Texture.ToPixel(_content.Sprite.TextureOffset),
                ZoomAmount        = GorgonSpriteEditorPlugIn.Settings.ZoomWindowScaleFactor,
                ZoomWindowSize    = new Vector2(GorgonSpriteEditorPlugIn.Settings.ZoomWindowSize)
            };

            if (_zoomFont == null)
            {
                _zoomFont = ContentObject.Graphics.Fonts.CreateFont("MagnifierCaptionFont",
                                                                    new GorgonFontSettings
                {
                    AntiAliasingMode = FontAntiAliasMode.AntiAlias,
                    Characters       = _zoomWindow.ZoomWindowText + ":.01234567890x ",
                    FontFamilyName   = "Segoe UI",
                    FontHeightMode   = FontHeightMode.Points,
                    Size             = 10.0f,
                    TextureSize      = new Size(64, 64)
                });
            }

            _zoomWindow.ZoomWindowFont = _zoomFont;
        }
Esempio n. 3
0
 public ImageCaptureRequest(ZoomWindow targetWindow, bool forceForeground = true)
 {
     this.Window          = targetWindow;
     this.WindowHandle    = this.Window.Handle;
     this.ForceForeground = forceForeground;
     this.TargetRegion    = this.Window.Rectangle;
 }
Esempio n. 4
0
        internal static bool LoadMeetingUsers(ZoomWindow meetingWindow, ref List <ZoomUser> zMeetingUsers)
        {
label_1:
            int num1 = 1556824238;
            bool flag;

            while (true)
            {
                int  num2 = 1237549844;
                uint num3;
                switch ((num3 = (uint)(num1 ^ num2)) % 4U)
                {
                case 0:
                    goto label_1;

                case 2:
                    flag = false;
                    num1 = (int)num3 * 1821534487 ^ -1375471327;
                    continue;

                case 3:
                    num1 = (int)num3 * 1819569539 ^ -766594532;
                    continue;

                default:
                    goto label_5;
                }
            }
label_5:
            return(flag);
        }
        public CaptureRightClickMenuImage(ZoomWindow window)
        {
label_1:
            int num1 = -723846738;

            while (true)
            {
                int  num2 = -1393437668;
                uint num3;
                switch ((num3 = (uint)(num1 ^ num2)) % 4U)
                {
                case 0:
                    goto label_3;

                case 1:
                    this.Window = window;
                    num1        = (int)num3 * -1894045158 ^ 710255478;
                    continue;

                case 2:
                    num1 = (int)num3 * -769567524 ^ -2024370063;
                    continue;

                case 3:
                    goto label_1;

                default:
                    goto label_6;
                }
            }
label_6:
            return;

            label_3 :;
        }
        /// <summary>
        /// Zooms at the specified zoom.
        /// </summary>
        /// <param name="scale">The zoom scale.</param>
        public void ZoomAt(double scale)
        {
            Point3d min, max;

            this.CADGeometry.GetGeometricExtents(out min, out max);
            ZoomWindow zoom = new ZoomWindow(min, max);

            zoom.SetView(scale);
        }
Esempio n. 7
0
        public CaptureRequest(ZoomWindow targetWindow, Rectangle targetRegion, bool forceForeground = true)
        {
            label_1 :
            int num1 = -1645041939;

            while (true)
            {
                int  num2 = -372083023;
                uint num3;
                switch ((num3 = (uint)(num1 ^ num2)) % 7U)
                {
                case 0:
                    goto label_1;

                case 1:
                    goto label_3;

                case 2:
                    this.Window = targetWindow;
                    num1        = (int)num3 * -1565961458 ^ -2124097992;
                    continue;

                case 3:
                    num1 = (int)num3 * -798682562 ^ 1259955100;
                    continue;

                case 4:
                    this.WindowHandle = this.Window.Handle;
                    num1 = (int)num3 * 2109921138 ^ 1967472424;
                    continue;

                case 5:
                    num1 = (int)num3 * -1927987434 ^ 532454735;
                    continue;

                case 6:
                    this.ForceForeground = forceForeground;
                    System.Drawing.Point location = targetWindow.Location;
                    int x = location.X + targetRegion.X;
                    location = targetWindow.Location;
                    int y      = location.Y + targetRegion.Y;
                    int width  = targetRegion.Width;
                    int height = targetRegion.Height;
                    this.TargetRegion = new Rectangle(x, y, width, height);
                    num1 = (int)num3 * -1256847518 ^ -1819736482;
                    continue;

                default:
                    goto label_9;
                }
            }
label_9:
            return;

            label_3 :;
        }
Esempio n. 8
0
        private void ShowZoomWindow(int x, int y)
        {
            if (_zoomWindow == null)
            {
                _zoomWindow                   = new ZoomWindow();
                _zoomWindow.Content           = _zoomViewModel;
                _zoomWindow.Loaded           += ZoomWindow_Loaded;
                _zoomWindow.IsVisibleChanged += ZoomWindow_IsVisibleChanged;
            }

            // we just started zooming, remember where we opened zoom window
            if (_currentZoomLevel == 1 && _previousZoomLevel == 0)
            {
                var dpi = MonitorResolutionHelper.GetCurrentMonitorDpi();
                _previousScaledX = x / dpi.DpiScaleX;
                _previousScaledY = y / dpi.DpiScaleY;
            }

            _lastLeft = Math.Floor(_previousScaledX - (BaseZoomImageSize * Math.Pow(ZoomFactor, _currentZoomLevel - 1) / 2));
            _lastTop  = Math.Floor(_previousScaledY - (BaseZoomImageSize * Math.Pow(ZoomFactor, _currentZoomLevel - 1) / 2));

            var justShown = false;

            if (!_zoomWindow.IsVisible)
            {
                _zoomWindow.Left      = _lastLeft;
                _zoomWindow.Top       = _lastTop;
                _zoomViewModel.Height = BaseZoomImageSize;
                _zoomViewModel.Width  = BaseZoomImageSize;
                _zoomWindow.Show();
                justShown = true;

                // make sure color picker window is on top of just opened zoom window
                AppStateHandler.SetTopMost();
            }

            // dirty hack - sometimes when we just show a window on a second monitor with different DPI,
            // window position is not set correctly on a first time, we need to "ping" it again to make it appear on the proper location
            if (justShown)
            {
                _zoomWindow.Left = _lastLeft + 1;
                _zoomWindow.Top  = _lastTop + 1;
                SessionEventHelper.Event.ZoomUsed = true;
            }

            _throttledActionInvoker.ScheduleAction(
                () =>
            {
                _zoomWindow.DesiredLeft      = _lastLeft;
                _zoomWindow.DesiredTop       = _lastTop;
                _zoomViewModel.DesiredHeight = BaseZoomImageSize * _zoomViewModel.ZoomFactor;
                _zoomViewModel.DesiredWidth  = BaseZoomImageSize * _zoomViewModel.ZoomFactor;
            },
                ZoomWindowChangeDelayInMS);
        }
        /// <summary>
        /// WARNING: This assumes the path has already been validated to exist.
        /// </summary>
        /// <param name="pathToScript"></param>
        private void OpenScript(string pathToScript)
        {
            StreamReader reader     = new StreamReader(pathToScript);
            string       fileString = reader.ReadToEnd();

            reader.Close();
            if (string.IsNullOrEmpty(fileString))
            {
                EditorPrefs.SetString(lastOpenScriptKey, "");
                Debug.Log("File is empty or invalid: " + pathToScript);
                return;
            }

            try
            {
                ScenimaticScript script = JsonUtility.FromJson <ScenimaticScript>(fileString);

                scenimaticGraph = new ScenimaticScriptGraph();
                if (window == null)
                {
                    CreateWindows();
                }
                window.position = new Rect(script.savedScreenPos, script.savedScreenSize);

                scenimaticGraph.Initialize(script);
            }
            catch (System.Exception e)
            {
                EditorPrefs.SetString(lastOpenScriptKey, "");
                Debug.LogError("Error parsing JSON in " + pathToScript + ":\n" + e.Message);
                return;
            }


            if (zoomer == null)
            {
                zoomer = new ZoomWindow();
            }


            zoomer.Reset(scenimaticGraph.zoomerSettings);

            EditorPrefs.SetString(lastOpenScriptKey, pathToScript);

            sceneFileName = Path.GetFileNameWithoutExtension(pathToScript);

            AssetDatabase.SaveAssets();
            AssetDatabase.Refresh();
            EditorUtility.SetDirty(this);
        }
Esempio n. 10
0
        public ImageCaptureRequest(ZoomWindow targetWindow, Rectangle targetRegion, bool forceForeground = true)
        {
            this.Window          = targetWindow;
            this.WindowHandle    = this.Window.Handle;
            this.ForceForeground = forceForeground;
            System.Drawing.Point location = targetWindow.Location;
            int x = location.X + targetRegion.X;

            location = targetWindow.Location;
            int y      = location.Y + targetRegion.Y;
            int width  = targetRegion.Width;
            int height = targetRegion.Height;

            this.TargetRegion = new Rectangle(x, y, width, height);
        }
Esempio n. 11
0
        public MeetingVideo(ZoomWindow videoWindow)
        {
label_1:
            int num1 = 1055219219;

            while (true)
            {
                int  num2 = 515277000;
                uint num3;
                switch ((num3 = (uint)(num1 ^ num2)) % 5U)
                {
                case 0:
                    goto label_3;

                case 1:
                    num1 = (int)num3 * 1059032548 ^ -758639986;
                    continue;

                case 2:
                    goto label_1;

                case 3:
                    num1 = (int)num3 * 1363503700 ^ 1161738177;
                    continue;

                case 4:
                    this.videoWindow = videoWindow;
                    this.chatLink    = new VideoChatLink(videoWindow);
                    num1             = (int)num3 * -1487329229 ^ 1814044044;
                    continue;

                default:
                    goto label_7;
                }
            }
label_7:
            return;

            label_3 :;
        }
Esempio n. 12
0
        public CaptureRequest(ZoomWindow targetWindow, bool forceForeground = true)
        {
label_1:
            int num1 = -2133736680;

            while (true)
            {
                int  num2 = -545492237;
                uint num3;
                switch ((num3 = (uint)(num1 ^ num2)) % 10U)
                {
                case 0:
                    num1 = (int)num3 * -1621665507 ^ -1342841789;
                    continue;

                case 1:
                    num1 = (int)num3 * -1501893859 ^ 1484083316;
                    continue;

                case 2:
                    goto label_1;

                case 3:
                    this.ForceForeground = forceForeground;
                    num1 = (int)num3 * -1189472741 ^ -1428519327;
                    continue;

                case 4:
                    this.WindowHandle = this.Window.Handle;
                    num1 = (int)num3 * 1662879771 ^ 1547216860;
                    continue;

                case 5:
                    num1 = (int)num3 * 428184193 ^ 999459334;
                    continue;

                case 6:
                    goto label_3;

                case 7:
                    num1 = (int)num3 * -844446131 ^ -1330332345;
                    continue;

                case 8:
                    this.Window = targetWindow;
                    num1        = (int)num3 * 1365531200 ^ 1866686119;
                    continue;

                case 9:
                    this.TargetRegion = this.Window.Rectangle;
                    num1 = (int)num3 * 601251357 ^ -1640996009;
                    continue;

                default:
                    goto label_12;
                }
            }
label_12:
            return;

            label_3 :;
        }
Esempio n. 13
0
        /// <summary>
        /// Handles the Click event of the buttonClip control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void buttonClip_Click(object sender, EventArgs e)
        {
            try
            {
                if (SpriteEditorMode == SpriteEditorMode.Edit)
                {
                    _zoomWindow               = null;
                    panelSprite.Cursor        = Cursors.Default;
                    panelZoomControls.Visible = false;
                    SpriteEditorMode          = SpriteEditorMode.View;
                    buttonCenter_Click(this, e);
                    return;
                }

                // If the texture rectangle and the sprite size are not equal, then inform the user that we
                // may need to make a destructive change to their sprite.
                if ((_content.Size.Width != _content.TextureRegion.Width) ||
                    (_content.Size.Height != _content.TextureRegion.Height))
                {
                    if (GorgonDialogs.ConfirmBox(ParentForm, Resources.GORSPR_DLG_CONFIRM_SPREDIT) == ConfirmationResult.No)
                    {
                        return;
                    }

                    // Reset the texture region to match the size of the sprite.
                    _content.TextureRegion = new Rectangle(_content.TextureRegion.Location, _content.Size);
                }

                _content.TextureSprite.Scale = new Vector2(1);
                panelZoomControls.Visible    = true;
                _clipper.NoBounds            = true;
                _clipper.ClipRegion          = new RectangleF(_content.TextureRegion.Location, _content.Size);
                _clipper.TextureSize         = _content.Texture.Settings.Size;
                _clipper.Offset = new Vector2(_halfScreen.X - _content.Size.Width / 2.0f - _content.TextureRegion.X,
                                              _halfScreen.Y - _content.Size.Height / 2.0f - _content.TextureRegion.Y);
                _clipper.HideNodes = false;
                _halfSprite        = new Point(_content.Size.Width / 2, _content.Size.Height / 2);

                CreateZoomWindow();

                SpriteEditorMode = SpriteEditorMode.Edit;

                scrollHorizontal.Value = _content.TextureRegion.X;
                scrollVertical.Value   = _content.TextureRegion.Y;

                CalculateSpritePosition();

                UpdateZoomWindow(Cursor.Position);

                // Force focus on the panel.
                panelSprite.Focus();
            }
            catch (Exception ex)
            {
                GorgonDialogs.ErrorBox(ParentForm, ex);
            }
            finally
            {
                ValidateControls();
            }
        }
Esempio n. 14
0
        public ZoomWindowEventArgs(ZoomWindow window)
        {
label_1:
            int num1 = -435400525;

            while (true)
            {
                int  num2 = -840015693;
                uint num3;
                System.Drawing.Point location;
                switch ((num3 = (uint)(num1 ^ num2)) % 15U)
                {
                case 0:
                    this.Height = window.Size.Height;
                    num1        = (int)num3 * 1150071976 ^ 797204234;
                    continue;

                case 1:
                    num1 = (int)num3 * 1373486184 ^ 68106145;
                    continue;

                case 2:
                    this.Window = window;
                    num1        = (int)num3 * -1947234246 ^ 942829525;
                    continue;

                case 3:
                    location = window.Location;
                    this.Y   = location.Y;
                    num1     = (int)num3 * -1326813987 ^ -1185085149;
                    continue;

                case 4:
                    this.Width = window.Size.Width;
                    num1       = (int)num3 * 1568777294 ^ -735440046;
                    continue;

                case 5:
                    goto label_3;

                case 6:
                    num1 = (int)num3 * 1254833064 ^ -408234140;
                    continue;

                case 7:
                    this.Handle = window.Handle;
                    num1        = (int)num3 * 446836721 ^ -1283891008;
                    continue;

                case 8:
                    this.Visible = window.IsVisible;
                    num1         = (int)num3 * 2047458513 ^ -1676862833;
                    continue;

                case 9:
                    num1 = (int)num3 * 39913071 ^ 2041562631;
                    continue;

                case 10:
                    this.Title = window.Title;
                    num1       = (int)num3 * -2034644688 ^ 465344911;
                    continue;

                case 11:
                    this.ClassName = window.ClassName;
                    num1           = (int)num3 * 1109726875 ^ 2035918975;
                    continue;

                case 12:
                    this.ZoomWindowType = window.ZoomWindowType;
                    location            = window.Location;
                    this.X = location.X;
                    num1   = (int)num3 * -910325988 ^ -222438880;
                    continue;

                case 13:
                    num1 = (int)num3 * 420981204 ^ 1343535230;
                    continue;

                case 14:
                    goto label_1;

                default:
                    goto label_17;
                }
            }
label_17:
            return;

            label_3 :;
        }
        public void OnGui(Event current, ZoomWindow zoomer)
        {
            if (script == null)
            {
                return;
            }

            if (refreshConnections == null)
            {
                throw new System.Exception("Graph in invalid state. Should have called Initialize().");
            }

            if (refreshConnections.Count > 0)
            {
                foreach (var cp in refreshConnections)
                {
                    foreach (var connGUID in cp.connection.connectedToGUIDs)
                    {
                        try
                        {
                            var otherCP = connectionPoints[connGUID];
                            otherCP.ConnectTo(cp);
                            cp.ConnectTo(otherCP);
                        }
                        catch (System.Exception)
                        {
                            Debug.Log("Could not find GUID " + connGUID);
                        }
                    }
                }

                refreshConnections.Clear();
            }

            Vector2 zoomerOffset = zoomer.GetContentOffset();

            save = false;
            warnings.Clear();

            inputNode.Offset(zoomerOffset);
            if (inputNode.ProcessEvents(current))
            {
                save = true;
            }
            inputNode.CheckForErrors(warnings);
            inputNode.DrawConnectionWires();
            outputNode.Offset(zoomerOffset);
            if (outputNode.ProcessEvents(current))
            {
                save = true;
            }
            outputNode.CheckForErrors(warnings);

            foreach (var node in branchEntityDatas)
            {
                node.Offset(zoomerOffset);
                if (node.ProcessEvents(current))
                {
                    save = true;
                }

                node.CheckForErrors(warnings);
                // draw connections
                node.DrawConnectionWires();
            }

            inputNode.OnGUI();
            outputNode.OnGUI();
            foreach (var node in branchEntityDatas)
            {
                node.OnGUI();
            }

            zoomer.DisplayMessage(warnings.Count > 0, warnings);

            if (startConnection != null)
            {            // we want to draw the line on-top of everything else
                startConnection.DrawConnectionTo(current.mousePosition);

                GUI.changed = true;
                if (current.button == 1 && current.type == EventType.MouseDown)
                {
                    startConnection.isCreatingNewConnection = false;
                    startConnection = null;
                    endConnection   = null;
                }
                else if (endConnection != null)
                {
                    CompleteConnection();
                }
                else if (current.button == 0 && current.type == EventType.MouseUp)
                {
                    // if this has not been consumed we can assume that
                    //		the mouse was not released over a connection point or a GraphEntity.

                    // check if the mouse was released over an entity.
                    // if so, && it's a valid entity (ie output is not on same entity as input),
                    //		open context menu to add new input/output
                    // if not && the connection type is ControlFlow, open context menu to make new branch
                    savedMousePos = current.mousePosition + zoomerOffset;

                    if (startConnection.connection.type == ConnectionType.ControlFlow)
                    {
                        CreateStandAloneContextMenu(startConnection);
                    }
                    startConnection.isCreatingNewConnection = false;
                    startConnection = null;
                }
            }
            else if (current.button == 1 &&
                     current.type == EventType.MouseUp &&
                     !zoomer.isScreenMoved)
            {             // open context menu to make new branch
                savedMousePos = current.mousePosition + zoomerOffset;
                CreateStandAloneContextMenu();
            }
            else
            {
                zoomer.UpdateWithCurrentZoomerSettings(zoomerSettings);
            }

            if (save)
            {
                // temp save. Do not save to json file.
                save = false;
            }
        }
Esempio n. 16
0
        protected override void ExecuteLogic()
        {
            label_1 :
            int num1 = 1635697149;

            while (true)
            {
                int  num2 = 1548539289;
                uint num3;
                bool flag1;
                bool flag2;
                bool flag3;
                int  num4;
                switch ((num3 = (uint)(num1 ^ num2)) % 38U)
                {
                case 0:
                    num1 = (int)num3 * 817388502 ^ 1516195468;
                    continue;

                case 1:
                    flag2 = this.Image != null;
                    num1  = (int)num3 * -1552463733 ^ 739592665;
                    continue;

                case 2:
                    this.SelectedWindow = this.SelectWindowActivity.SelectedWindow;
                    num1 = (int)num3 * -733277401 ^ 1266568570;
                    continue;

                case 3:
                    num1 = (int)num3 * -1743578341 ^ 1713332418;
                    continue;

                case 4:
                    int num5 = !flag1 ? -546791168 : (num5 = -883883698);
                    int num6 = (int)num3 * -1435481213;
                    num1 = num5 ^ num6;
                    continue;

                case 5:
                    num1 = (int)num3 * -799245333 ^ 396749115;
                    continue;

                case 6:
                    num1 = (int)num3 * -434010976 ^ 645501731;
                    continue;

                case 7:
                    num1 = (int)num3 * 1451608575 ^ -1742017971;
                    continue;

                case 8:
                    num1 = (int)num3 * -1755395908 ^ -1652353021;
                    continue;

                case 9:
                    num1 = (int)num3 * 153377764 ^ 731091885;
                    continue;

                case 10:
                    num1 = 246013867;
                    continue;

                case 11:
                    CaptureWindow.\u206D‏‍‎​‪​‏‮‎‌‏‍‮‎‎‎‮‌‎‮‏‍‫​‍‮‮(CoreObject.log, \u003CModule\u003E.\u200E‏‍‬‌‌‌‫‎‮‎‌‍‌‮‬‎‎‌‎‌‫‬‮‮ <string>(3242682282U), (object)this.SelectedWindow.ZoomWindowType, (object)this.SelectedWindow.Location);
                    Engine       engine         = this.Engine;
                    ZoomWindow   selectedWindow = this.SelectedWindow;
                    Rectangle    empty          = Rectangle.Empty;
                    int          num7           = 4;
                    ImageOptions options        = new ImageOptions();
                    int          num8           = this.Options.DisplayAfterCapture ? 1 : 0;
                    options.DisplayAfterCapture = num8 != 0;
                    int num9 = this.Options.SaveAfterCapture ? 1 : 0;
                    options.SaveToDisk = num9 != 0;
                    this.Image         = engine.CaptureImage(selectedWindow, empty, (ImageEnums.ImageType)num7, options);
                    num1 = (int)num3 * -1488827451 ^ -613173373;
                    continue;

                case 12:
                    int num10 = !flag3 ? -1972703555 : (num10 = -1515655614);
                    int num11 = (int)num3 * 1927289461;
                    num1 = num10 ^ num11;
                    continue;

                case 13:
                    if (this.SelectedWindow == null)
                    {
                        num4 = 0;
                        break;
                    }
                    num1 = (int)num3 * 1792190431 ^ 1064619847;
                    continue;

                case 14:
                    this.SetActivityState(ActivityState.Error, \u003CModule\u003E.\u202A​‬‫‪‫‪‮‪‫‎‭‪‏‮‎‭‍‌‎‫‍​‎‎‮ <string>(912275313U));
                    num1 = 757508855;
                    continue;

                case 15:
                    flag3 = this.ExecuteSubActivity((ActivityBase)this.SelectWindowActivity, true) == ActivityState.Completed;
                    num1  = (int)num3 * 1772573488 ^ 1028897029;
                    continue;

                case 16:
                    num1 = (int)num3 * -1054487102 ^ 1742145425;
                    continue;

                case 17:
                    this.SetActivityState(ActivityState.Completed, \u003CModule\u003E.\u206B‎‏‎‮‌​‪‏‭‭‍‍‬‬‫‌‎‮‮‪‌‪‮ <string>(3867918917U));
                    num1 = (int)num3 * 1120419981 ^ 402066348;
                    continue;

                case 18:
                    this.SetActivityState(ActivityState.Completed, \u003CModule\u003E.\u206B‎‏‎‮‌​‪‏‭‭‍‍‬‬‫‌‎‮‮‪‌‪‮ <string>(2080111643U));
                    num1 = (int)num3 * -1238688538 ^ -2060013967;
                    continue;

                case 19:
                    num1 = (int)num3 * -1187976472 ^ 200346330;
                    continue;

                case 20:
                    num1 = 792080381;
                    continue;

                case 21:
                    int num12 = !flag2 ? 453108687 : (num12 = 1372017575);
                    int num13 = (int)num3 * 311536320;
                    num1 = num12 ^ num13;
                    continue;

                case 22:
                    goto label_3;

                case 23:
                    goto label_1;

                case 24:
                    CaptureVideoWindow captureVideoWindow = new CaptureVideoWindow(this.SelectedWindow);
                    int num14 = 1;
                    captureVideoWindow.AutoGenerated = num14 != 0;
                    this.CaptureVideoWindowActivity  = captureVideoWindow;
                    num1 = (int)num3 * -1758141322 ^ 721204073;
                    continue;

                case 25:
                    num1 = 977563480;
                    continue;

                case 26:
                    this.SelectWindowActivity = new SelectWindow((List <ZoomWindowType>)null);
                    num1 = (int)num3 * 349946333 ^ -1482052610;
                    continue;

                case 27:
                    num1 = (int)num3 * -983910695 ^ 1637485102;
                    continue;

                case 28:
                    num1 = (int)num3 * -808091807 ^ -822898148;
                    continue;

                case 29:
                    num4 = this.SelectedWindow.ZoomWindowType == ZoomWindowType.Video ? 1 : 0;
                    break;

                case 30:
                    num1 = (int)num3 * -1494712737 ^ 226378392;
                    continue;

                case 31:
                    flag1 = this.SelectedWindow != null;
                    num1  = 368755319;
                    continue;

                case 32:
                    num1 = (int)num3 * 527554281 ^ 2019595519;
                    continue;

                case 33:
                    this.Engine.AddActivity((ActivityBase)this.CaptureVideoWindowActivity, \u003CModule\u003E.\u200E‏‍‬‌‌‌‫‎‮‎‌‍‌‮‬‎‎‌‎‌‫‬‮‮ <string>(1431255308U));
                    num1 = (int)num3 * 155247578 ^ -1947810375;
                    continue;

                case 34:
                    num1 = (int)num3 * 2034461845 ^ -549995181;
                    continue;

                case 35:
                    num1 = (int)num3 * -985650129 ^ 830264663;
                    continue;

                case 36:
                    this.SetActivityState(this.SelectWindowActivity.ActivityState, this.SelectWindowActivity.Status);
                    num1 = 792080381;
                    continue;

                case 37:
                    this.SetActivityState(ActivityState.Error, \u003CModule\u003E.\u202A​‬‫‪‫‪‮‪‫‎‭‪‏‮‎‭‍‌‎‫‍​‎‎‮ <string>(2450088578U));
                    num1 = (int)num3 * -1981441049 ^ -1828609235;
                    continue;

                default:
                    goto label_43;
                }
                int num15;
                num1 = num15 = num4 == 0 ? 827305074 : (num15 = 872145089);
            }
label_43:
            return;

            label_3 :;
        }
Esempio n. 17
0
        private List <IntPtr> LoadExistingWindows()
        {
            label_1 :
            int num1 = 1696227998;
            List <IntPtr>     visibleWindowHandles;
            List <ZoomWindow> zoomWindowList;

            while (true)
            {
                int  num2 = 1402811833;
                uint num3;
                switch ((num3 = (uint)(num1 ^ num2)) % 4U)
                {
                case 0:
                    goto label_1;

                case 1:
                    zoomWindowList = new List <ZoomWindow>();
                    num1           = (int)num3 * -1136179074 ^ 323007573;
                    continue;

                case 3:
                    visibleWindowHandles = WindowManager.GetVisibleWindowHandles(this.Engine.ActiveMeetingWindow.ProcessId);
                    num1 = (int)num3 * -2079482401 ^ 1793256653;
                    continue;

                default:
                    goto label_5;
                }
            }
label_5:
            using (List <IntPtr> .Enumerator enumerator = visibleWindowHandles.GetEnumerator())
            {
label_12:
                int num2 = !enumerator.MoveNext() ? 360325190 : (num2 = 176832570);
                while (true)
                {
                    int        num3 = 1402811833;
                    uint       num4;
                    ZoomWindow zoomWindow;
                    IntPtr     current;
                    switch ((num4 = (uint)(num2 ^ num3)) % 8U)
                    {
                    case 0:
                        goto label_12;

                    case 1:
                        zoomWindow = ZoomWindow.New(current);
                        zoomWindow.Refresh(false, false);
                        num2 = (int)num4 * -1046809369 ^ -2076341976;
                        continue;

                    case 2:
                        num2 = (int)num4 * -525058933 ^ -583592305;
                        continue;

                    case 3:
                        current = enumerator.Current;
                        num2    = 1110823452;
                        continue;

                    case 4:
                        num2 = 176832570;
                        continue;

                    case 5:
                        num2 = (int)num4 * 986765509 ^ -1318405087;
                        continue;

                    case 6:
                        zoomWindowList.Add(zoomWindow);
                        num2 = (int)num4 * 1105867034 ^ -1447925849;
                        continue;

                    default:
                        goto label_16;
                    }
                }
            }
label_16:
            List <IntPtr> numList = visibleWindowHandles;

label_17:
            int num5 = 1306129172;

            while (true)
            {
                int  num2 = 1402811833;
                uint num3;
                switch ((num3 = (uint)(num5 ^ num2)) % 3U)
                {
                case 0:
                    goto label_17;

                case 1:
                    num5 = (int)num3 * -1445452396 ^ 709423800;
                    continue;

                default:
                    goto label_20;
                }
            }
label_20:
            return(numList);
        }
Esempio n. 18
0
        public HighlightInfo(ZoomWindow higlightWindow, object source)
        {
label_1:
            int num1 = 465504161;

            while (true)
            {
                int  num2 = 138346698;
                uint num3;
                switch ((num3 = (uint)(num1 ^ num2)) % 14U)
                {
                case 0:
                    this.ZoomWindow = higlightWindow;
                    num1            = (int)num3 * 782003770 ^ 873730412;
                    continue;

                case 1:
                    this.Drawn = false;
                    num1       = (int)num3 * 1731709346 ^ -1076888368;
                    continue;

                case 2:
                    this.Color = Color.Yellow;
                    num1       = (int)num3 * 385379706 ^ 880576901;
                    continue;

                case 3:
                    num1 = (int)num3 * -592541421 ^ 140933936;
                    continue;

                case 4:
                    this.ZoomWindowType = higlightWindow.ZoomWindowType;
                    num1 = (int)num3 * 468079632 ^ 2036010866;
                    continue;

                case 5:
                    goto label_3;

                case 6:
                    this.Handle = higlightWindow.Handle;
                    num1        = (int)num3 * -247209371 ^ 1022573298;
                    continue;

                case 7:
                    this.Created = DateTime.Now;
                    num1         = (int)num3 * 1924014290 ^ 792967257;
                    continue;

                case 8:
                    num1 = (int)num3 * 1505108246 ^ -190389950;
                    continue;

                case 9:
                    this.Expires = DateTime.Now.AddSeconds(2.0);
                    num1         = (int)num3 * -1033959190 ^ 508593153;
                    continue;

                case 10:
                    this.Rectangle = higlightWindow.Rectangle;
                    num1           = (int)num3 * 1743525656 ^ 400833985;
                    continue;

                case 11:
                    num1 = (int)num3 * 1754880822 ^ -1678249582;
                    continue;

                case 12:
                    goto label_1;

                case 13:
                    num1 = (int)num3 * -2013823097 ^ -1385283884;
                    continue;

                default:
                    goto label_16;
                }
            }
label_16:
            return;

            label_3 :;
        }
Esempio n. 19
0
        public static void InvokeChat(ZoomWindow videoWindow)
        {
            System.Drawing.Point pt;
            ZoomZoom.NativeMethods.GetCursorPos(out pt);
            try
            {
                if (videoWindow == null)
                {
                    goto label_5;
                }
label_2:
                int num1 = 636061998;
label_3:
                while (true)
                {
                    int  num2 = 2070443284;
                    uint num3;
                    System.Drawing.Point location;
                    switch ((num3 = (uint)(num1 ^ num2)) % 14U)
                    {
                    case 0:
                        goto label_2;

                    case 1:
                        num1 = (int)num3 * -95136036 ^ -1772598997;
                        continue;

                    case 2:
                        num1 = (int)num3 * 755950489 ^ -1876305810;
                        continue;

                    case 3:
                        User32.mouse_event(MouseEventFlags.LEFTUP, 0, 0, 0U, 0);
                        num1 = (int)num3 * 1668372822 ^ 723477270;
                        continue;

                    case 4:
                        goto label_4;

                    case 5:
                        num1 = (int)num3 * 1922795880 ^ 921820613;
                        continue;

                    case 6:
                        User32.mouse_event(MouseEventFlags.RIGHTDOWN, 0, 0, 0U, 0);
                        num1 = (int)num3 * -1539076234 ^ -1922341653;
                        continue;

                    case 7:
                        User32.SetCursorPos(pt.X, pt.Y);
                        num1 = (int)num3 * 1912795145 ^ -1696354366;
                        continue;

                    case 8:
                        location = WindowHelper.GetWindowRectangle(videoWindow.Handle).Location;
                        location.Offset(25, 25);
                        User32.SetCursorPos(pt.X, pt.Y);
                        num1 = (int)num3 * -968308088 ^ 1885837716;
                        continue;

                    case 9:
                        User32.mouse_event(MouseEventFlags.LEFTUP, 0, 0, 0U, 0);
                        num1 = (int)num3 * 1559960784 ^ -1433729363;
                        continue;

                    case 10:
                        num1 = (int)num3 * 1109927590 ^ -1696860069;
                        continue;

                    case 12:
                        location.Offset(25, 25);
                        num1 = (int)num3 * -1534759896 ^ 1364224683;
                        continue;

                    case 13:
                        User32.mouse_event(MouseEventFlags.RIGHTUP, 0, 0, 0U, 0);
                        num1 = (int)num3 * -136068056 ^ 308862420;
                        continue;

                    default:
                        goto label_22;
                    }
                }
label_4:
                int num4 = videoWindow.ZoomWindowType == ZoomWindowType.Video ? 1 : 0;
                goto label_6;
label_5:
                num4 = 0;
label_6:
                num1 = num4 != 0 ? 965134888 : (num1 = 799017711);
                goto label_3;
            }
            catch (Exception ex)
            {
label_19:
                int num1 = 1663993825;
                while (true)
                {
                    int  num2 = 2070443284;
                    uint num3;
                    switch ((num3 = (uint)(num1 ^ num2)) % 3U)
                    {
                    case 0:
                        goto label_19;

                    case 2:
                        ChatHelper.log.Error((object)ex);
                        num1 = (int)num3 * -182813124 ^ -1412249593;
                        continue;

                    default:
                        goto label_22;
                    }
                }
            }
label_22:
            User32.SetCursorPos(pt.X, pt.Y);
        }
Esempio n. 20
0
        public static ZoomWindow CreateWindow(IntPtr handle)
        {
            label_1 :
            int num1 = -1459512476;
            object windowLock;

            while (true)
            {
                int  num2 = -63972959;
                uint num3;
                switch ((num3 = (uint)(num1 ^ num2)) % 4U)
                {
                case 0:
                    goto label_1;

                case 1:
                    Engine instance = Engine.Instance;
                    num1 = (int)num3 * -1820361914 ^ 1057907516;
                    continue;

                case 3:
                    windowLock = ZoomFactory.windowLock;
                    num1       = (int)num3 * -1039938373 ^ -1833872478;
                    continue;

                default:
                    goto label_5;
                }
            }
label_5:
            bool flag1 = false;
            ZoomWindow zoomWindow1;

            try
            {
                ZoomFactory.\u206D‍‬​‪‏‬‌​‪​‎‭‬​‬‮‬‌‍‍‎‌‏‫‏‌‎‏‬‮(windowLock, ref flag1);
label_7:
                int num2 = -491891838;
                ZoomWindow zoomWindow2;
                while (true)
                {
                    int  num3 = -63972959;
                    uint num4;
                    bool flag2;
                    bool flag3;
                    int  num5;
                    switch ((num4 = (uint)(num2 ^ num3)) % 13U)
                    {
                    case 0:
                        flag2 = zoomWindow2 != null;
                        num2  = (int)num4 * 1259960492 ^ -1980908033;
                        continue;

                    case 1:
                        if (zoomWindow2.WindowType != WindowType.Invalid)
                        {
                            num2 = (int)num4 * 1581623504 ^ 648728802;
                            continue;
                        }
                        break;

                    case 3:
                        int num6 = flag2 ? -1128306597 : (num6 = -1972581589);
                        int num7 = (int)num4 * 1714398498;
                        num2 = num6 ^ num7;
                        continue;

                    case 4:
                        zoomWindow2 = ZoomWindow.New(handle);
                        num2        = (int)num4 * -404801919 ^ 1748540984;
                        continue;

                    case 5:
                        if (zoomWindow2.WindowType != WindowType.Other)
                        {
                            num2 = (int)num4 * -389760811 ^ 756789440;
                            continue;
                        }
                        break;

                    case 6:
                        num2 = (int)num4 * -1967912559 ^ -717838262;
                        continue;

                    case 7:
                        goto label_20;

                    case 8:
                        num5 = (uint)zoomWindow2.WindowType > 0U ? 1 : 0;
                        goto label_19;

                    case 9:
                        int num8 = flag3 ? 1817699267 : (num8 = 1652683785);
                        int num9 = (int)num4 * -1640512314;
                        num2 = num8 ^ num9;
                        continue;

                    case 10:
                        goto label_7;

                    case 11:
                        zoomWindow2.Refresh(false, false);
                        num2 = (int)num4 * -59297130 ^ 598694273;
                        continue;

                    case 12:
                        num2 = -1965530329;
                        continue;

                    default:
                        goto label_30;
                    }
                    num5 = 0;
label_19:
                    flag3 = num5 != 0;
                    num2  = -870378604;
                }
label_20:
                zoomWindow1 = zoomWindow2;
                goto label_34;
            }
            finally
            {
                if (flag1)
                {
label_25:
                    int num2 = -1473116332;
                    while (true)
                    {
                        int  num3 = -63972959;
                        uint num4;
                        switch ((num4 = (uint)(num2 ^ num3)) % 4U)
                        {
                        case 0:
                            goto label_25;

                        case 1:
                            ZoomFactory.\u200B‏‍‌‏‮‪‭‪‭‬‏‎‭‫‬‬‪‎‫‭‌‬‬‏‭‮‮(windowLock);
                            num2 = (int)num4 * 813516823 ^ 428494393;
                            continue;

                        case 3:
                            num2 = (int)num4 * -1669098602 ^ 85053565;
                            continue;

                        default:
                            goto label_29;
                        }
                    }
                }
                label_29 :;
            }
            label_30 :
            zoomWindow1 = (ZoomWindow)null;
label_31:
            int num10 = -342799551;

            while (true)
            {
                int  num2 = -63972959;
                uint num3;
                switch ((num3 = (uint)(num10 ^ num2)) % 3U)
                {
                case 1:
                    num10 = (int)num3 * -819505513 ^ 185603953;
                    continue;

                case 2:
                    goto label_31;

                default:
                    goto label_34;
                }
            }
label_34:
            return(zoomWindow1);
        }
        void OnGUI()
        {
            if (rectStyle == null)
            {
                if (!CreateStyles())
                {
                    return;                     // couldn't create styles
                }
            }

            if (scenimaticGraph == null || scenimaticGraph.script == null)
            {
                if (EditorPrefs.HasKey(lastOpenScriptKey))
                {
                    string lastOpenedScript = EditorPrefs.GetString(lastOpenScriptKey);
                    if (!string.IsNullOrEmpty(lastOpenedScript) &&
                        File.Exists(lastOpenedScript))
                    {
                        OpenScript(lastOpenedScript);
                    }
                }
            }

            Rect headerRect = EditorGUILayout.BeginVertical(rectStyle);

            {
                // header toolbar
                EditorGUILayout.BeginHorizontal();
                {
                    if (scenimaticGraph == null)
                    {
                        GUILayout.Label(new GUIContent("No scene loaded"));
                    }
                    else
                    {
                        GUILayout.Label(sceneFileName);
                        scenimaticGraph.script.sceneName = GUILayout.TextField(scenimaticGraph.script.sceneName);
                        if (Event.current.type == EventType.MouseDown)
                        {
                            GUI.FocusControl(null);                             // deselects the textfield on a button click
                        }
                        if (GUILayout.Button("Save Scene"))
                        {
                            SaveScript(false);                             // this stuff should be done in update to prevent annoying error messages
                        }

                        if (GUILayout.Button("Save Scene As"))
                        {
                            SaveScript(true);                             // this stuff should be done in update to prevent annoying error messages
                        }
                    }

                    if (GUILayout.Button("Load Scene"))
                    {
                        LoadScene();
                    }

                    if (GUILayout.Button("New Scene"))
                    {
                        NewScene();
                    }
                }
                GUILayout.FlexibleSpace();
                EditorGUILayout.EndHorizontal();

                if (scenimaticGraph != null)
                {
                    scenimaticGraph.spriteAtlas = (SpriteAtlas)EditorGUILayout.ObjectField(
                        "SpriteAtlas", scenimaticGraph.spriteAtlas,
                        typeof(SpriteAtlas), false);
                    if (scenimaticGraph.spriteAtlas != null)
                    {
                        scenimaticGraph.script.spriteAtlas = scenimaticGraph.spriteAtlas.name;
                    }
                    else
                    {
                        scenimaticGraph.script.spriteAtlas = "";
                    }
                }
            }
            EditorGUILayout.EndVertical();

            if (scenimaticGraph == null)
            {
                return;
            }

            if (zoomer == null)
            {
                zoomer = new ZoomWindow();
                zoomer.Reset(scenimaticGraph.zoomerSettings);
            }

            zoomer.HandleEvents(Event.current);

            if (Event.current.type == EventType.Repaint)
            {
                zoomRect.position = new Vector2(
                    ZOOM_BORDER,
                    headerRect.yMax + TAB_HEIGHT + ZOOM_BORDER);
                zoomRect.size = new Vector2(
                    window.position.width - ZOOM_BORDER * 2,
                    window.position.height - (headerRect.height + ZOOM_BORDER * 2 + RESERVED_AREA_BELOW_ZOOM_HEIGHT));
            }

            zoomer.Begin(zoomRect);
            {
                scenimaticGraph.OnGui(Event.current, zoomer);
            }
            zoomer.End(new Rect(
                           0, zoomRect.yMax - headerRect.height,
                           window.position.width, window.position.height));

            headerRect = EditorGUILayout.BeginVertical(rectStyle);
            {
                if (GUILayout.Button("New Dialog Branch"))
                {
                    scenimaticGraph.AddBranch(CreateNewBranch(Vector2.zero));
                }
            }
            EditorGUILayout.EndVertical();

            //if (GUI.changed) // adding this check means there is a delay when hovering over connection points.
            Repaint();
        }
Esempio n. 22
0
        internal ImageCapture(ZoomWindow window, Rectangle region, ImageEnums.ImageType imageType, ImageOptions options = null)
        {
label_1:
            int num1 = 825023927;

            while (true)
            {
                int  num2 = 1824119577;
                uint num3;
                bool flag1;
                bool flag2;
                switch ((num3 = (uint)(num1 ^ num2)) % 23U)
                {
                case 0:
                    int num4 = flag2 ? 467071218 : (num4 = 1596826391);
                    int num5 = (int)num3 * -49528297;
                    num1 = num4 ^ num5;
                    continue;

                case 1:
                    num1 = (int)num3 * -1378726830 ^ -1462532644;
                    continue;

                case 2:
                    goto label_1;

                case 3:
                    num1 = (int)num3 * 326879370 ^ 598809911;
                    continue;

                case 4:
                    num1 = (int)num3 * -624447466 ^ -1567617650;
                    continue;

                case 5:
                    options = new ImageOptions();
                    num1    = (int)num3 * -417238371 ^ -1973034047;
                    continue;

                case 6:
                    num1 = (int)num3 * 75634732 ^ -1805815581;
                    continue;

                case 7:
                    num1 = (int)num3 * 786681980 ^ -1456916102;
                    continue;

                case 8:
                    goto label_3;

                case 9:
                    this.Meeting = this.Engine.ActiveMeeting;
                    num1         = 421875908;
                    continue;

                case 10:
                    flag1 = options == null;
                    num1  = (int)num3 * 1792822887 ^ -1708356251;
                    continue;

                case 11:
                    goto label_24;

                case 12:
                    this.TargetRegion = region;
                    num1 = (int)num3 * -1808855775 ^ 947886405;
                    continue;

                case 13:
                    this.Window = window;
                    num1        = (int)num3 * 1743781892 ^ -494379153;
                    continue;

                case 14:
                    this.State = CaptureState.Pending;
                    num1       = (int)num3 * 1372435395 ^ 309658755;
                    continue;

                case 15:
                    num1 = (int)num3 * -1038803282 ^ -257315376;
                    continue;

                case 16:
                    num1 = (int)num3 * 1096378158 ^ -1522833310;
                    continue;

                case 17:
                    this.WindowHandle = window.Handle;
                    num1 = (int)num3 * -1599867635 ^ -625091584;
                    continue;

                case 18:
                    num1 = (int)num3 * 918658498 ^ -1790081367;
                    continue;

                case 19:
                    num1 = (int)num3 * -1698849711 ^ 2014829577;
                    continue;

                case 20:
                    this.WindowTitle = WindowHelper.GetWindowTitle(this.WindowHandle);
                    num1             = (int)num3 * -747989284 ^ 1743400376;
                    continue;

                case 21:
                    int num6 = flag1 ? -2028815004 : (num6 = -2005181193);
                    int num7 = (int)num3 * -906791573;
                    num1 = num6 ^ num7;
                    continue;

                case 22:
                    this.imageType = imageType;
                    flag2          = this.Window != null;
                    num1           = (int)num3 * -1967214755 ^ -1402574520;
                    continue;

                default:
                    goto label_25;
                }
            }
label_25:
            return;

label_3:
            return;

label_24:
            throw ImageCapture.\u202A‏‬​‪‮‪‭‌‌‫​‭‮‭‪​‮‏‮(\u003CModule\u003E.\u206A‪‫‬‫‎‭‬‌‫‏‭‭‏‍‫‌​‬‪‎‬‏‬‮ <string>(1814657193U));
        }
        protected override void ExecuteLogic()
        {
            CaptureRightClickMenuImage.\u202E‪‏‌‎‭‍‭‪​​‎​‬‍​‏‬‎‪‍‏‮(150);
label_1:
            int num1 = 1404912968;

            while (true)
            {
                int                  num2 = 885619381;
                uint                 num3;
                ZoomWindow           window;
                Bitmap               bitmap;
                long                 sqlScalarLong;
                bool                 flag;
                int                  X;
                int                  Y;
                System.Drawing.Point location;
                int                  num4;
                switch ((num3 = (uint)(num1 ^ num2)) % 25U)
                {
                case 0:
                    num1 = (int)num3 * 202975700 ^ 828776238;
                    continue;

                case 1:
                    int num5 = flag ? 791140083 : (num5 = 1051759578);
                    int num6 = (int)num3 * -180036566;
                    num1 = num5 ^ num6;
                    continue;

                case 2:
                    num1 = (int)num3 * -1903166557 ^ -1245049033;
                    continue;

                case 3:
                    Y = location.Y + 25;
                    User32.SetCursorPos(X, Y);
                    User32.mouse_event(MouseEventFlags.RIGHTDOWN, 0, 0, 0U, 0);
                    num1 = (int)num3 * -1729023121 ^ 2009974263;
                    continue;

                case 4:
                    flag = sqlScalarLong == 0L;
                    num1 = (int)num3 * 1680146852 ^ 898406319;
                    continue;

                case 5:
                    location = this.Window.Location;
                    num1     = (int)num3 * -1035027535 ^ -455697684;
                    continue;

                case 6:
                    User32.mouse_event(MouseEventFlags.RIGHTUP, 0, 0, 0U, 0);
                    num1 = (int)num3 * 1389639826 ^ -814516799;
                    continue;

                case 7:
                    this.SetActivityState(ActivityState.Completed, \u003CModule\u003E.\u206B‎‏‎‮‌​‪‏‭‭‍‍‬‬‫‌‎‮‮‪‌‪‮ <string>(1945440402U));
                    sqlScalarLong = Engine.Instance.ZoomZoomDatabase.GetSQLScalar_Long(string.Format(\u003CModule\u003E.\u202A‎‪‫‪‪‏‮‬‎‏‌‌‫‬‌‍‫‌‌‌‮‫‪‮‮ <string>(3272676367U), (object)bitmap.Height, (object)bitmap.Width, (object)ZoomWindowType.ZoomMenu));
                    num1          = (int)num3 * -1547764603 ^ 1261293311;
                    continue;

                case 8:
                    if (window == null)
                    {
                        num4 = 0;
                        break;
                    }
                    num1 = (int)num3 * -1078487760 ^ 1525597729;
                    continue;

                case 9:
                    window = this.Engine.GetWindow(ZoomWindowType.ZoomMenu);
                    num1   = (int)num3 * 2019296371 ^ -214776933;
                    continue;

                case 10:
                    Thread.Sleep(40);
                    num1 = (int)num3 * 2075741819 ^ 414404948;
                    continue;

                case 11:
                    bitmap = WindowHelper.PrintWindow(window.Handle);
                    num1   = (int)num3 * 930746091 ^ 1075488519;
                    continue;

                case 12:
                    X    = location.X + 25;
                    num1 = (int)num3 * 13752739 ^ -258924040;
                    continue;

                case 13:
                    num1 = 163372417;
                    continue;

                case 14:
                    num1 = (int)num3 * -1597276313 ^ -2072275847;
                    continue;

                case 15:
                    num4 = window.IsVisible ? 1 : 0;
                    break;

                case 16:
                    goto label_3;

                case 17:
                    this.SetActivityState(ActivityState.Completed, \u003CModule\u003E.\u206B‎‏‎‮‌​‪‏‭‭‍‍‬‬‫‌‎‮‮‪‌‪‮ <string>(666633269U));
                    num1 = (int)num3 * -1970558301 ^ 806703244;
                    continue;

                case 18:
                    num1 = (int)num3 * 1319796816 ^ 1725473759;
                    continue;

                case 19:
                    goto label_1;

                case 20:
                    Thread.Sleep(40);
                    num1 = (int)num3 * -148891044 ^ -428173612;
                    continue;

                case 21:
                    location = this.Window.Location;
                    num1     = (int)num3 * -463571417 ^ 1021144419;
                    continue;

                case 22:
                    num1 = 195827864;
                    continue;

                case 23:
                    User32.SetCursorPos(X, Y);
                    num1 = (int)num3 * -1265194510 ^ -1883750093;
                    continue;

                case 24:
                    new ZoomImage(window, bitmap).SaveDatabaseObject();
                    num1 = (int)num3 * 376189214 ^ -752893734;
                    continue;

                default:
                    goto label_30;
                }
                int num7;
                num1 = num7 = num4 != 0 ? 1362989178 : (num7 = 663676133);
            }
label_30:
            return;

            label_3 :;
        }
Esempio n. 24
0
        public static ZoomWindowType GetZoomWindowType(ZoomWindow window)
        {
label_1:
            int num1 = -113306286;
            ZoomWindowType zoomWindowType;

            while (true)
            {
                int  num2 = -157183575;
                uint num3;
                bool flag;
                int  num4;
                int  num5;
                switch ((num3 = (uint)(num1 ^ num2)) % 19U)
                {
                case 0:
                    num4 = WindowTypes.\u200E‎‪‮‮​‌‭‭‌‪‌‍‍‫‍‮‌‪‭​‪‮(window.ClassName, \u003CModule\u003E.\u206B‎‏‎‮‌​‪‏‭‭‍‍‬‬‫‌‎‮‮‪‌‪‮ <string>(3917233848U)) ? 1 : 0;
                    break;

                case 1:
                    int num6 = !flag ? 547011304 : (num6 = 1502090082);
                    int num7 = (int)num3 * 1971440066;
                    num1 = num6 ^ num7;
                    continue;

                case 2:
                    zoomWindowType = ZoomWindowType.Join;
                    num1           = (int)num3 * 185298459 ^ 343370591;
                    continue;

                case 3:
                    zoomWindowType = ZoomWindowType.Notification;
                    num1           = (int)num3 * 2002562866 ^ -841383418;
                    continue;

                case 4:
                    int num8;
                    num1 = num8 = WindowTypes.\u202D‏‪‏‏‪‮​​‍‎‌‬‪‪‬​‏‍​‪‮(window.Title, \u003CModule\u003E.\u200E‏‍‬‌‌‌‫‎‮‎‌‍‌‮‬‎‎‌‎‌‫‬‮‮ <string>(150677755U)) ? -1262100552 : (num8 = -867555973);
                    continue;

                case 5:
                    num1 = (int)num3 * 1131882437 ^ 1978044921;
                    continue;

                case 6:
                    if (WindowTypes.\u200E‫‌‎‬‮​​‮‭‮‫‍‮‭‍‭‏‎‫‪‍​‏​‪​‮(window.Title, \u003CModule\u003E.\u202A‎‪‫‪‪‏‮‬‎‏‌‌‫‬‌‍‫‌‌‌‮‫‪‮‮ <string>(3720136570U)))
                    {
                        num5 = 1;
                        goto label_18;
                    }
                    else
                    {
                        num1 = -314179765;
                        continue;
                    }

                case 7:
                    num1 = (int)num3 * -194604559 ^ 1046849121;
                    continue;

                case 9:
                    num1 = (int)num3 * 312394706 ^ -30623049;
                    continue;

                case 10:
                    zoomWindowType = ZoomWindowType.Undefined;
                    num1           = -724914976;
                    continue;

                case 11:
                    if (!WindowTypes.\u200E‎‪‮‮​‌‭‭‌‪‌‍‍‫‍‮‌‪‭​‪‮(window.Title, \u003CModule\u003E.\u206A‪‫‬‫‎‭‬‌‫‏‭‭‏‍‫‌​‬‪‎‬‏‬‮ <string>(183836725U)))
                    {
                        num4 = 0;
                        break;
                    }
                    num1 = -724428175;
                    continue;

                case 12:
                    zoomWindowType = ZoomWindowType.Meeting;
                    num1           = (int)num3 * -1614610891 ^ 492327024;
                    continue;

                case 13:
                    num1 = (int)num3 * -10914553 ^ 636814010;
                    continue;

                case 14:
                    zoomWindowType = ZoomWindowType.EndMeeting;
                    num1           = (int)num3 * -2015177378 ^ -80329584;
                    continue;

                case 15:
                    num1 = (int)num3 * 1763878652 ^ -1373235088;
                    continue;

                case 16:
                    flag = WindowTypes.\u200E‎‪‮‮​‌‭‭‌‪‌‍‍‫‍‮‌‪‭​‪‮(window.Title, \u003CModule\u003E.\u206A‪‫‬‫‎‭‬‌‫‏‭‭‏‍‫‌​‬‪‎‬‏‬‮ <string>(1788301675U));
                    num1 = (int)num3 * 82380060 ^ 1539301191;
                    continue;

                case 17:
                    goto label_1;

                case 18:
                    num5 = WindowTypes.\u200E‫‌‎‬‮​​‮‭‮‫‍‮‭‍‭‏‎‫‪‍​‏​‪​‮(window.Title, \u003CModule\u003E.\u202A‎‪‫‪‪‏‮‬‎‏‌‌‫‬‌‍‫‌‌‌‮‫‪‮‮ <string>(1939817492U)) ? 1 : 0;
                    goto label_18;

                default:
                    goto label_26;
                }
                int num9;
                num1 = num9 = num4 == 0 ? -1686129474 : (num9 = -1505081886);
                continue;
label_18:
                int num10;
                num1 = num10 = num5 != 0 ? -1449701895 : (num10 = -2050817425);
            }
label_26:
            return(zoomWindowType);
        }
Esempio n. 25
0
        public ZoomEvent(ZoomWindow window)
        {
            label_1 :
            int num1 = -312311275;

            while (true)
            {
                int  num2 = -1445545548;
                uint num3;
                switch ((num3 = (uint)(num1 ^ num2)) % 14U)
                {
                case 0:
                    this.HookHandle = new IntPtr(0);
                    num1            = (int)num3 * -1685218354 ^ 590968739;
                    continue;

                case 1:
                    goto label_3;

                case 2:
                    this.EventDate = DateTime.Now;
                    num1           = (int)num3 * -1670542156 ^ 859891814;
                    continue;

                case 3:
                    this.ThreadId = this.ThreadId;
                    num1          = (int)num3 * -1976338354 ^ 558055422;
                    continue;

                case 4:
                    this.KeysDown = this.Engine.HookManager.GetKeysDown();
                    num1          = (int)num3 * -349370014 ^ 1300938673;
                    continue;

                case 5:
                    this.WindowHandle = window.Handle;
                    num1 = (int)num3 * 1688497370 ^ -919138526;
                    continue;

                case 6:
                    this.WindowClass = WindowHelper.GetWindowClass(this.WindowHandle);
                    num1             = (int)num3 * 605995114 ^ -1788065440;
                    continue;

                case 7:
                    this.Window = window;
                    num1        = (int)num3 * 299133261 ^ 1984263912;
                    continue;

                case 8:
                    this.EventType = ZoomEventType.Show;
                    num1           = (int)num3 * -797354212 ^ 1328218645;
                    continue;

                case 9:
                    num1 = (int)num3 * -1839948209 ^ -2115641465;
                    continue;

                case 10:
                    goto label_1;

                case 11:
                    this.WindowTitle = WindowHelper.GetWindowTitle(this.WindowHandle);
                    num1             = (int)num3 * 1966865505 ^ -173136105;
                    continue;

                case 12:
                    this.ProcessId = this.ProcessId;
                    num1           = (int)num3 * -330925377 ^ 1092576991;
                    continue;

                case 13:
                    num1 = (int)num3 * -521394514 ^ -580592939;
                    continue;

                default:
                    goto label_16;
                }
            }
label_16:
            return;

            label_3 :;
        }
Esempio n. 26
0
 public ClickButton(ZoomWindow window, ZoomButton button)
 {
     this.Meeting = this.Engine.ActiveMeeting;
     this.Window  = window;
     this.Button  = button;
 }