Esempio n. 1
0
 private void ChangeWindowState(string command)
 {
     if (command == Minimize.ToString())
     {
         this.window.WindowState = WindowState.Minimized;
     }
     else if (command == Maximize.ToString())
     {
         if (this.window.WindowState == WindowState.Maximized)
         {
             this.window.WindowState = WindowState.Normal;
         }
         else
         {
             this.window.WindowState = WindowState.Maximized;
         }
     }
     else if (command == Close.ToString())
     {
         this.window.Close();
     }
     else
     {
         throw new InvalidOperationException(INVALID_WINDOW_COMMAND_EXCEPTION);
     }
 }
    // Use this for initialization
    void Start()
    {
        m = GameObject.Find("GameLogic").GetComponent<Maximize>();
        ctrl  = this.GetComponent<Controller>();
        inner_crosshair = GameObject.Find("Crosshair"+ctrl.ctrlControlIndex).transform.Find("Inner").gameObject;
        outer_crosshair = GameObject.Find("Crosshair"+ctrl.ctrlControlIndex).transform.Find("Outer").gameObject;

        c = ctrl.ctrlAttachedCamera;
        cam_width = Screen.width / 2;
        cam_height = Screen.height / 2;

        // set the middle of the crosshair
        switch(ctrl.ctrlControlIndex){
            case 0: // player 1
                mx = cam_width/2;
                my = Screen.height - cam_height/2;
                break;
            case 1: // player 2
                mx = Screen.width - cam_width / 2;
                my = Screen.height - cam_height / 2;
                break;
            case 2: // player 3
                mx = cam_width / 2;
                my = cam_height / 2;
                break;
            case 3: // player 4
                mx = Screen.width - cam_width / 2;
                my = cam_height / 2;
                break;
        }
        // values for maximized
        fx = Screen.width / 2;
        fy = Screen.height / 2;
    }
Esempio n. 3
0
 /// <summary>
 /// Raises event 'Maximize'
 /// </summary>
 protected virtual void OnMaximize()
 {
     if (Maximize != null)
     {
         Maximize.Invoke(this, System.EventArgs.Empty);
     }
 }
Esempio n. 4
0
 private void front_canvas_MouseLeave(object sender, MouseEventArgs e)
 {
     this.front_canvas.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
     Maximize.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
     Close.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
     RdsIp.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
     KeyBoardControl.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
     this.Maximize.Visibility        = System.Windows.Visibility.Hidden;
     this.Close.Visibility           = System.Windows.Visibility.Hidden;
     this.KeyBoardControl.Visibility = System.Windows.Visibility.Hidden;
 }
Esempio n. 5
0
 private void front_canvas_MouseEnter(object sender, MouseEventArgs e)
 {
     KeyboardIconChange();
     this.Maximize.Visibility        = System.Windows.Visibility.Visible;
     this.Close.Visibility           = System.Windows.Visibility.Visible;
     this.KeyBoardControl.Visibility = System.Windows.Visibility.Visible;
     this.front_canvas.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
     KeyBoardControl.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
     Maximize.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
     Close.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
     RdsIp.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
 }
    // Use this for initialization
    void Start()
    {
        m = GameObject.Find("GameLogic").GetComponent<Maximize>();
        ctrl = this.GetComponent<Controller>();

        full = Resources.Load<Sprite>("Sprites/shot_icon");
        empty = Resources.Load<Sprite>("Sprites/shotempty_icon");
        // get the shots for each of the elements
        shotA = GameObject.Find("Shot" + ctrl.ctrlControlIndex).transform.Find("ShotA").gameObject;
        shotB = GameObject.Find("Shot" + ctrl.ctrlControlIndex).transform.Find("ShotB").gameObject;
        shotC = GameObject.Find("Shot" + ctrl.ctrlControlIndex).transform.Find("ShotC").gameObject;
        shotD = GameObject.Find("Shot" + ctrl.ctrlControlIndex).transform.Find("ShotD").gameObject;
        // set size
        shotA.GetComponent<RectTransform>().sizeDelta = new Vector2(17,33);
        shotB.GetComponent<RectTransform>().sizeDelta = new Vector2(17,33);
        shotC.GetComponent<RectTransform>().sizeDelta = new Vector2(17,33);
        shotD.GetComponent<RectTransform>().sizeDelta = new Vector2(17,33);
        // make the sprites visible
        shotA.GetComponent<Image>().color = new Color32(255, 255, 255, 255);
        shotB.GetComponent<Image>().color = new Color32(255, 255, 255, 255);
        shotC.GetComponent<Image>().color = new Color32(255, 255, 255, 255);
        shotD.GetComponent<Image>().color = new Color32(255, 255, 255, 255);
        // set inital sprites
        shotA.GetComponent<Image>().sprite = full;
        shotB.GetComponent<Image>().sprite = full;
        shotC.GetComponent<Image>().sprite = full;
        shotD.GetComponent<Image>().sprite = full;

        shots_left = 4;
        float cam_width = Screen.width / 2;
        float cam_height = Screen.height / 2;
        switch (ctrl.ctrlControlIndex) {
            case 0: // player 1
                split_anchor = new Vector2(cam_width-105, Screen.height - cam_height * 0.95f);
                fullscr_anchor = new Vector2(Screen.width-205, cam_height - cam_height * 0.92f);
                break;
            case 1: // player 2
                split_anchor = new Vector2(Screen.width - 105, Screen.height - cam_height * 0.95f);

                break;
            case 2: // player 3
                split_anchor = new Vector2(cam_width - 105, cam_height - cam_height * 0.95f);

                break;
            case 3: // player 4
                split_anchor = new Vector2(Screen.width - 105, cam_height - cam_height * 0.95f);

                break;
        }
    }
Esempio n. 7
0
        private async void Start(object sender, EventArgs e)
        {
            server = new ServerForm();
            enemy  = new EnemyForm(server);
            client = new ClientForm(server);

            client.Show();
            server.Show();

            StartModel.Enabled = false;



            await client.Initialize();

            Maximize.Show();
            Minimize.Show();
            StartModel.Hide();
            enemy.Show();
        }
        private void Window_Size_Changed()
        {
            int    LinkerGroupCount = LinkerGroups.Where(g => g.Value.Visibility == Visibility.Visible).Count();
            double LeftWidths       = buttonWidth + LinkerGroupCount * 12;
            double RightWidths      = buttonWidth * 3;

            if (!showLinker)
            {
                LeftWidths -= buttonWidth;
            }

            if (Emitter.Visibility == Visibility.Visible)
            {
                Emitter.SetValue(Canvas.LeftProperty, LeftWidths);
                LeftWidths += buttonWidth;
            }
            if (DockingButton.IsVisible)
            {
                RightWidths = buttonWidth * 4;
            }
            Title.SetValue(Canvas.LeftProperty, LeftWidths);
            Close.SetValue(Canvas.RightProperty, 0.0);
            Maximize.SetValue(Canvas.RightProperty, buttonWidth);
            if (DockingButton.Visibility == Visibility.Visible)
            {
                Minimize.SetValue(Canvas.RightProperty, buttonWidth * 3);
                DockingButton.SetValue(Canvas.RightProperty, buttonWidth * 2);
            }
            else
            {
                Minimize.SetValue(Canvas.RightProperty, buttonWidth * 2);
            }

            var titleWidth = Toolbar.ActualWidth - LeftWidths - RightWidths;

            if (titleWidth < 0)
            {
                titleWidth = 0;
            }
            Title.Width = titleWidth;
        }
Esempio n. 9
0
        private void Grid_MouseDown(object sender, MouseButtonEventArgs e)
        {
            if (!isShow)
            {
                ShowPanel.BeginAnimation(Grid.MarginProperty, MarginB_Animation);
                IntPtr hBmp_arrow = Images.arrowUp.GetHbitmap();
                this.Arrow.Source = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(hBmp_arrow, IntPtr.Zero, Int32Rect.Empty, System.Windows.Media.Imaging.BitmapSizeOptions.FromEmptyOptions());
                Utils.DeleteObject(hBmp_arrow);
                this.Maximize.Visibility        = System.Windows.Visibility.Visible;
                this.Close.Visibility           = System.Windows.Visibility.Visible;
                this.KeyBoardControl.Visibility = System.Windows.Visibility.Visible;
                this.ScreenMode.Visibility      = System.Windows.Visibility.Visible;
                this.front_canvas.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
                KeyBoardControl.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
                Maximize.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
                Close.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
                RdsIp.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
                ScreenMode.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation);
            }
            else
            {
                ShowPanel.BeginAnimation(Grid.MarginProperty, MarginE_Animation);
                IntPtr hBmp_arrow = Images._1427375812_double_arrow_down_32.GetHbitmap();
                this.Arrow.Source = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(hBmp_arrow, IntPtr.Zero, Int32Rect.Empty, System.Windows.Media.Imaging.BitmapSizeOptions.FromEmptyOptions());
                Utils.DeleteObject(hBmp_arrow);
                this.front_canvas.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);

                ScreenMode.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
                Maximize.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
                Close.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
                RdsIp.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
                KeyBoardControl.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation);
                this.Maximize.Visibility        = System.Windows.Visibility.Hidden;
                this.Close.Visibility           = System.Windows.Visibility.Hidden;
                this.KeyBoardControl.Visibility = System.Windows.Visibility.Hidden;
                this.ScreenMode.Visibility      = System.Windows.Visibility.Hidden;
            }
            isShow = !isShow;
        }
Esempio n. 10
0
 private void ExecuteMaximize(RoutedEventArgs e)
 {
     Maximize?.Invoke(this, e);
 }
 private void Max_Click(object sender, RoutedEventArgs e)
 {
     Maximize?.Invoke(this, EventArgs.Empty);
 }
Esempio n. 12
0
 /// <summary>
 /// Maximizeイベントを発生させる
 /// </summary>
 /// <param name="e">イベントデータを格納しているEventArgs</param>
 protected virtual void OnMaximize(EventArgs e) => Maximize?.Invoke(this, e);
    // Use this for initialization
    void Start()
    {
        speed = 100;
        m = GameObject.Find("GameLogic").GetComponent<Maximize>();
        ctrl = this.GetComponent<Controller>();

        // load sprites
        sprites = Resources.LoadAll<Sprite>("Sprites/MiddleNumbers");

        // first number A config
        hbar_numA = GameObject.Find("Speedbar" + ctrl.ctrlControlIndex).transform.Find("NumA").gameObject;
        hbar_numA.GetComponent<RectTransform>().sizeDelta = new Vector2(25, 25);
        hbar_numA.GetComponent<Image>().color = new Color32(255, 255, 255, 255);
        hbar_numA.GetComponent<Image>().sprite = sprites[0];

        // second number B config
        hbar_numB = GameObject.Find("Speedbar" + ctrl.ctrlControlIndex).transform.Find("NumB").gameObject;
        hbar_numB.GetComponent<RectTransform>().sizeDelta = new Vector2(25, 25);
        hbar_numB.GetComponent<Image>().color = new Color32(255, 255, 255, 255);
        hbar_numB.GetComponent<Image>().sprite = sprites[1];

        // third number C config
        hbar_numC = GameObject.Find("Speedbar" + ctrl.ctrlControlIndex).transform.Find("NumC").gameObject;
        hbar_numC.GetComponent<RectTransform>().sizeDelta = new Vector2(25, 25);
        hbar_numC.GetComponent<Image>().color = new Color32(255, 255, 255, 255);
        hbar_numC.GetComponent<Image>().sprite = sprites[2];

        // bar bg
        empty = GameObject.Find("Speedbar" + ctrl.ctrlControlIndex).transform.Find("Empty").gameObject;
        empty.GetComponent<RectTransform>().sizeDelta = new Vector2(200, 25);
        empty.GetComponent<Image>().color = new Color32(255, 255, 255, 255);
        empty.GetComponent<Image>().sprite = Resources.Load<Sprite>("Sprites/bar_empty");

        // get the bar
        bar = GameObject.Find("Speedbar" + ctrl.ctrlControlIndex).transform.Find("Bar").gameObject;
        bar.GetComponent<RectTransform>().sizeDelta = new Vector2(200, 25);
        bar.GetComponent<Image>().color = new Color32(255, 255, 255, 255);
        spbar = new Sprite[76];
        bar_width_info = new int[76];
        spbar[75] = Resources.Load<Sprite>("Sprites/spbar_full");
        for (int i = 0; i < 75; i++) {
            spbar[i] = cropSprite(spbar[75], 0, 0, i * 5 + 5, 50);
            bar_width_info[i] = i * 5 + 5;
        }

        // speedbar icon
        icon = GameObject.Find("Speedbar" + ctrl.ctrlControlIndex).transform.Find("Icon").gameObject;
        icon.GetComponent<RectTransform>().sizeDelta = new Vector2(32, 32);
        icon.GetComponent<Image>().color = new Color32(255, 255, 255, 255);
        icon.GetComponent<Image>().sprite = Resources.Load<Sprite>("Sprites/spbar_icon");

        float cam_width = Screen.width / 2;
        float cam_height = Screen.height / 2;
        // set the fullscrn_anchor & splitscreenanchor for each player
        switch (ctrl.ctrlControlIndex) {
            case 0: // player 1
                // 20% from left and 90% from top of camera
                // 210 since the texture is 200px width and 25 height
                split_anchor = new Vector2(cam_width-105, Screen.height - cam_height * 0.95f);
                fullscr_anchor = new Vector2(Screen.width-205, cam_height - cam_height * 0.92f);
                break;
            case 1: // player 2
                split_anchor = new Vector2(Screen.width - 105, Screen.height - cam_height * 0.95f);

                break;
            case 2: // player 3
                split_anchor = new Vector2(cam_width-105, cam_height - cam_height * 0.95f);

                break;
            case 3: // player 4
                split_anchor = new Vector2(Screen.width - 105, cam_height - cam_height * 0.95f);

                break;
        }
    }
Esempio n. 14
0
        /// <summary>
        /// defines all of the actions
        /// </summary>
        public void DefineActions()
        {
            Click              click             = new Click();
            Clear              clear             = new Clear();
            Close              close             = new Close();
            Exit               exit              = new Exit();
            Next_Tab           next_tab          = new Next_Tab();
            Previous_Tab       previous_tab      = new Previous_Tab();
            WindowsCtrlTab     wtab              = new WindowsCtrlTab();
            Idle               idle              = new Idle();
            Next_Selection     nextSelection     = new Next_Selection();
            Previous_Selection previousSelection = new Previous_Selection();
            Scroll_Down        scrollDown        = new Scroll_Down();
            Scroll_Up          scrollUp          = new Scroll_Up();
            MousePress         mousePress        = new MousePress();
            MouseRelease       mouseRelease      = new MouseRelease();
            MultipleSelection  multipleSelection = new MultipleSelection();
            Maximize           maximize          = new Maximize();
            Minimize           minimize          = new Minimize();
            Lock               locking           = new Lock();
            Unlock             unlocking         = new Unlock();
            Undo               undo              = new Undo();
            Redo               redo              = new Redo();
            Open               open              = new Open();


            //defining the click actions
            QlikMove.StandardHelper.ActionCore.Action clickAction = new QlikMove.StandardHelper.ActionCore.Action(ActionName.SIMPLE_SELECTION, new ActionPart[1] {
                click
            });
            this.AddAction(clickAction);

            //defining the mouse press actions
            QlikMove.StandardHelper.ActionCore.Action mousePressedAction = new QlikMove.StandardHelper.ActionCore.Action(ActionName.MOUSE_PRESS, new ActionPart[1] {
                mousePress
            });
            this.AddAction(mousePressedAction);

            //defining the mouse release actions
            QlikMove.StandardHelper.ActionCore.Action mouseReleasedAction = new QlikMove.StandardHelper.ActionCore.Action(ActionName.MOUSE_RELEASE, new ActionPart[1] {
                mouseRelease
            });
            this.AddAction(mouseReleasedAction);


            //defining the exit action
            QlikMove.StandardHelper.ActionCore.Action exitAction = new StandardHelper.ActionCore.Action(ActionName.EXIT, new ActionPart[1] {
                exit
            });
            this.AddAction(exitAction);

            //defining the next action
            QlikMove.StandardHelper.ActionCore.Action nextAction = new StandardHelper.ActionCore.Action(ActionName.NEXT_TAB, new ActionPart[1] {
                next_tab
            });
            this.AddAction(nextAction);

            //defining the previous action
            QlikMove.StandardHelper.ActionCore.Action previousAction = new StandardHelper.ActionCore.Action(ActionName.PREVIOUS_TAB, new ActionPart[1] {
                previous_tab
            });
            this.AddAction(previousAction);

            //defining the menu action
            QlikMove.StandardHelper.ActionCore.Action tabsAction = new QlikMove.StandardHelper.ActionCore.Action(ActionName.MENU, new ActionPart[1] {
                wtab
            });
            this.AddAction(tabsAction);

            //defining the idle action
            QlikMove.StandardHelper.ActionCore.Action idleAction = new QlikMove.StandardHelper.ActionCore.Action(ActionName.IDLE, new ActionPart[1] {
                idle
            });
            this.AddAction(idleAction);

            //defining the next selection action
            QlikMove.StandardHelper.ActionCore.Action nextSelectionAction = new QlikMove.StandardHelper.ActionCore.Action(ActionName.NEXT_SELECTION, new ActionPart[1] {
                nextSelection
            });
            this.AddAction(nextSelectionAction);

            //defining the previous selection action
            QlikMove.StandardHelper.ActionCore.Action previousSelectionAction = new QlikMove.StandardHelper.ActionCore.Action(ActionName.PREVIOUS_SELECTION, new ActionPart[1] {
                previousSelection
            });
            this.AddAction(previousSelectionAction);

            //defining the scrolling down action
            QlikMove.StandardHelper.ActionCore.Action scrollDownAction = new StandardHelper.ActionCore.Action(ActionName.SCROLL_DOWN, new ActionPart[1] {
                scrollDown
            });
            this.AddAction(scrollDownAction);

            //defining the scrolling up action
            QlikMove.StandardHelper.ActionCore.Action scrollUpAction = new StandardHelper.ActionCore.Action(ActionName.SCROLL_UP, new ActionPart[1] {
                scrollUp
            });
            this.AddAction(scrollUpAction);

            //defining the multiple selection action
            QlikMove.StandardHelper.ActionCore.Action multipleSelectionAction = new StandardHelper.ActionCore.Action(ActionName.MULTIPLE_SELECTION, new ActionPart[1] {
                multipleSelection
            });
            this.AddAction(multipleSelectionAction);

            //defining the maximize action
            QlikMove.StandardHelper.ActionCore.Action maximizeAction = new StandardHelper.ActionCore.Action(ActionName.MAX, new ActionPart[1] {
                maximize
            });
            this.AddAction(maximizeAction);

            //defining the minimize action
            QlikMove.StandardHelper.ActionCore.Action minimizeAction = new StandardHelper.ActionCore.Action(ActionName.MIN, new ActionPart[1] {
                minimize
            });
            this.AddAction(minimizeAction);

            //defining the clear action
            QlikMove.StandardHelper.ActionCore.Action clearAction = new StandardHelper.ActionCore.Action(ActionName.CLEAR, new ActionPart[1] {
                clear
            });
            this.AddAction(clearAction);

            //defining the undo action
            QlikMove.StandardHelper.ActionCore.Action undoAction = new StandardHelper.ActionCore.Action(ActionName.UNDO, new ActionPart[1] {
                undo
            });
            this.AddAction(undoAction);

            //defining the redo action
            QlikMove.StandardHelper.ActionCore.Action redoAction = new StandardHelper.ActionCore.Action(ActionName.REDO, new ActionPart[1] {
                redo
            });
            this.AddAction(redoAction);

            //defining the locking action
            QlikMove.StandardHelper.ActionCore.Action lockingAction = new StandardHelper.ActionCore.Action(ActionName.LOCK, new ActionPart[1] {
                locking
            });
            this.AddAction(lockingAction);

            //defining the unlocking action
            QlikMove.StandardHelper.ActionCore.Action unlockingAction = new StandardHelper.ActionCore.Action(ActionName.UNLOCK, new ActionPart[1] {
                unlocking
            });
            this.AddAction(unlockingAction);

            //defining the close action
            QlikMove.StandardHelper.ActionCore.Action closeAction = new StandardHelper.ActionCore.Action(ActionName.CLOSE, new ActionPart[1] {
                close
            });
            this.AddAction(closeAction);

            //defining the open action
            QlikMove.StandardHelper.ActionCore.Action openAction = new StandardHelper.ActionCore.Action(ActionName.OPEN, new ActionPart[1] {
                open
            });
            this.AddAction(openAction);

            LogHelper.logInput("Actions defined", LogHelper.logType.INFO, this);
        }
Esempio n. 15
0
    // Use this for initialization
    void Start()
    {
        // add render settings
        RenderSettings.ambientMode = UnityEngine.Rendering.AmbientMode.Flat;
        RenderSettings.ambientLight = new Color(255, 255, 152, 255); // rgb 0-255 NOT 0-1
        RenderSettings.ambientIntensity = 0.0028f;
        // set level settings
        //Level.drag = 0.3f;
        Level.drag = 1;
        Level.angularDrag = 0.4f;
        Level.InitializationDone();

        // set gui at start pos
        GameObject.Find("Crosshair0").transform.Find("Inner").gameObject.transform.position = new Vector3(-200, -200, 0);
        GameObject.Find("Crosshair0").transform.Find("Outer").gameObject.transform.position = new Vector3(-200, -200, 0);
        GameObject.Find("Crosshair1").transform.Find("Inner").gameObject.transform.position = new Vector3(-200, -200, 0);
        GameObject.Find("Crosshair1").transform.Find("Outer").gameObject.transform.position = new Vector3(-200, -200, 0);
        GameObject.Find("Crosshair2").transform.Find("Inner").gameObject.transform.position = new Vector3(-200, -200, 0);
        GameObject.Find("Crosshair2").transform.Find("Outer").gameObject.transform.position = new Vector3(-200, -200, 0);
        GameObject.Find("Crosshair3").transform.Find("Inner").gameObject.transform.position = new Vector3(-200, -200, 0);
        GameObject.Find("Crosshair3").transform.Find("Outer").gameObject.transform.position = new Vector3(-200, -200, 0);

        // deactivate the countdown
        countdown = GameObject.Find("Countdown").gameObject;
        countdown.active = false;

        // deactivate the gui
        gui = GameObject.Find("GUI").gameObject;
        gui.active = false;
        m = GameObject.Find("GameLogic").GetComponent<Maximize>();
        lastMState = m.maximized;
    }
Esempio n. 16
0
        public void Dispose()
        {
            if (!_disposed)
            {
                if (CornerNW != null)
                {
                    CornerNW.Dispose();
                    CornerNW = null;
                }

                if (CornerNE != null)
                {
                    CornerNE.Dispose();
                    CornerNE = null;
                }

                if (CornerSE != null)
                {
                    CornerSE.Dispose();
                    CornerSE = null;
                }

                if (CornerSW != null)
                {
                    CornerSW.Dispose();
                    CornerSW = null;
                }

                if (BorderN != null)
                {
                    BorderN.Dispose();
                    BorderN = null;
                }

                if (BorderE != null)
                {
                    BorderE.Dispose();
                    BorderE = null;
                }

                if (BorderS != null)
                {
                    BorderS.Dispose();
                    BorderS = null;
                }

                if (BorderW != null)
                {
                    BorderW.Dispose();
                    BorderW = null;
                }

                if (Minimize != null)
                {
                    Minimize.Dispose();
                    Minimize = null;
                }

                if (Maximize != null)
                {
                    Maximize.Dispose();
                    Maximize = null;
                }

                if (Restore != null)
                {
                    Restore.Dispose();
                    Restore = null;
                }

                if (Close != null)
                {
                    Close.Dispose();
                    Close = null;
                }

                _disposed = true;
            }
        }
Esempio n. 17
0
 void Start()
 {
     g = GameObject.Find("GameLogic");
     if (g != null) {
         m = g.GetComponent<Maximize>();
     }
 }
Esempio n. 18
0
 private void MaximizeButton_Click(object sender, EventArgs e)
 {
     Maximize.Invoke(sender, e);
 }