Exemplo n.º 1
0
 private void FrameLoadButtonOnClick(object sender, ClickEventArgs args)
 {
     if (_editor.Animation == null)
     {
         return;
     }
     _editor.Animation.ApplyKeyFrame(_editor.SelectedKeyFrameIndex);
 }
Exemplo n.º 2
0
 public void ClickHandled(object obj, ClickEventArgs e)
 {
     if (null != OnClickHandled)
     {
         OnClickHandled(obj, e);
     }
     ;
 }
Exemplo n.º 3
0
        /// <summary>
        /// When the user cancels the main menu, ask if they want to exit the sample.
        /// </summary>
        protected void OnExit(object sender, ClickEventArgs e)
        {
            const string message = "Are you sure you want to exit?";
            var          confirmExitMessageBox = new MessageBoxScreen(message);

            confirmExitMessageBox.OnSelect += ConfirmExitMessageBoxAccepted;
            ScreenManager.AddScreen(confirmExitMessageBox, e.PlayerIndex);
        }
Exemplo n.º 4
0
        private void FocusRectCommandClick(
            object sender,
            ClickEventArgs e)
        {
            FocusRectEnum fr = (FocusRectEnum)((C1Command)sender).UserData;

            _flexGridOptions.FocusRect = fr;
            UpdateControls();
        }
Exemplo n.º 5
0
        private void C1TrueDBGridViewCommandClick(
            object sender,
            ClickEventArgs e)
        {
            DataViewEnum dv = (DataViewEnum)Enum.Parse(typeof(DataViewEnum), (string)((C1Command)sender).UserData);

            _trueGridOptions.DataView = dv;
            UpdateControls();
        }
Exemplo n.º 6
0
        public static void onCreateFolder(Object sender, ClickEventArgs e)
        {
            NlmTreeListView listView = e.ListView;

            // Calculate unique name in current level.
            IEnumerable <FolderTreeNode> folderNodes = listView.NodeControl.Query.FolderNodes;

            String folderName = "Folder";
            Int32  index      = 1;

            while (folderNodes.Any(x => x.Name == folderName + index.ToString("000")))
            {
                index += 1;
            }
            folderName += index.ToString("000");

            // Create folder node.
            FolderTreeNode folderTreeNode = new FolderTreeNode(folderName);

            // Get parent node.
            BaseTreeNode parentTreeNode = null;

            if (listView.SelectedObjects.Count > 0)
            {
                BaseTreeNode treeNode = listView.SelectedObjects[0] as BaseTreeNode;
                if (treeNode is FolderTreeNode)
                {
                    parentTreeNode = treeNode;
                }
                if (treeNode is LayerTreeNode)
                {
                    parentTreeNode = treeNode.Parent;
                }
            }

            // Add folder to listview, ensure is visible by expanding parents.
            listView.AddObject(folderTreeNode, parentTreeNode);
            if (parentTreeNode != null)
            {
                listView.Expand(parentTreeNode);
            }

            // Scroll to new item.
            Int32 parentIndex = listView.IndexOf(folderTreeNode);

            if (parentIndex != -1)
            {
                listView.EnsureVisible(parentIndex);
            }

            // Sort, select, and begin edit.
            listView.Sort(listView.NlmColumns.NameColumn, SortOrder.Ascending);
            listView.SelectedObjects = new List <Object> {
                folderTreeNode
            };
            listView.EditModel(folderTreeNode);
        }
Exemplo n.º 7
0
        private void SelectionModeCommandClick(
            object sender,
            ClickEventArgs e)
        {
            SelectionModeEnum sm = (SelectionModeEnum)((C1Command)sender).UserData;

            _flexGridOptions.SelectionMode = sm;
            UpdateControls();
        }
Exemplo n.º 8
0
        public void OnClickEvent(ConsoleKeyInfo key)
        {
            ClickEventArgs temp = new ClickEventArgs(key);

            if (Click != null)
            {
                Click(this, temp);
            }
        }
Exemplo n.º 9
0
 protected override void Grid_DblClick(object sender, ClickEventArgs e)
 {
     Infragistics.WebUI.UltraWebGrid.UltraGridRow Row = e.Row;
     if (Row != null)
     {
         SaveQuery();
         Response.Redirect(this.MakeRedirectUrl("FAlertEP.aspx", new string[] { "alertid" }, new string[] { Row.Cells[1].Value.ToString() }));
     }
 }
 public bool OnClick(ClickEventArgs e)
 {
     try { if (designer.PaintTool.Active)
           {
               OnPartPainted(GetPart(e.Position));
           }
     } catch (Exception ex) { Debug.Log("Error on OnPartPainted: " + ex); }
     return(false);
 }
        void NewButton_Clicked(IClickable sender, ClickEventArgs args, Event nativeEvent)
        {
            bool confirm = EditorUtility.DisplayDialog("Confirm New Behavior", "Are you sure you would like to create a new behavior? Current layout will be discarded!", "Ok", "Cancel");

            if (confirm)
            {
                m_editor.ClearAll();
            }
        }
Exemplo n.º 12
0
 public void OnPointerUp(PointerEventData eventData)
 {
     if (onPointerUp != null)
     {
         ClickEventArgs args = new ClickEventArgs();
         args.eventData = eventData;
         onPointerUp(this, args);
     }
 }
Exemplo n.º 13
0
        private void C1ScheduleViewCommandClick(
            object sender,
            ClickEventArgs e)
        {
            ScheduleViewEnum sv = (ScheduleViewEnum)Enum.Parse(typeof(ScheduleViewEnum), (string)((C1Command)sender).UserData);

            _scheduleOptions.ViewType = sv;
            UpdateControls();
        }
        void LoadButton_Clicked(IClickable sender, ClickEventArgs args, Event nativeEvent)
        {
            string path = EditorUtility.OpenFilePanel("Load Behavior Layout", Application.dataPath, "xml");

            if (!string.IsNullOrEmpty(path))
            {
                LoadXML(path);
            }
        }
Exemplo n.º 15
0
        private void C1FlexGridViewCommandClick(
            object sender,
            ClickEventArgs e)
        {
            FlexViewModeEnum vm = (FlexViewModeEnum)Enum.Parse(typeof(FlexViewModeEnum), (string)((C1Command)sender).UserData);

            _flexGridOptions.ViewMode = vm;
            UpdateControls();
        }
Exemplo n.º 16
0
 protected override void Grid_DblClick(object sender, ClickEventArgs e)
 {
     Infragistics.WebUI.UltraWebGrid.UltraGridRow Row = e.Row;
     if (Row != null)
     {
         SaveQuery();
         Response.Redirect(this.MakeRedirectUrl("FAlertBillEP.aspx", new string[] { "billid", "alerttype" }, new string[] { Row.Cells[1].Text.Trim(), this._alertConst.GetCode(Row.Cells.FromKey("AlertType").Text.Trim()) }));
     }
 }
Exemplo n.º 17
0
            void MyGridBubbleBarEditControlButtonClick(
                object sender, ClickEventArgs e)
            {
                BubbleButton bb = (BubbleButton)sender;

                // Set the cell image to match the selected bubble image

                EditorCell.CellStyles.Default.Image = ImagesLarge.Images[bb.ImageIndex];
            }
Exemplo n.º 18
0
        public static void onSelectObjectsFromHighlight(Object sender, ClickEventArgs e)
        {
            NlmTreeListView listView = e.ListView;

            MaxNodes.ClearNodeSelection();

            IEnumerable <UIntPtr> handles = listView.NodeControl.Query.SelectionAndAllChildObjectHandles;

            MaxNodes.SelectNodes(handles);
        }
Exemplo n.º 19
0
        private void glacialList1_SelectedIndexChanged(object source, ClickEventArgs e)
        {
            Console.WriteLine(e.ItemIndex);
            btnFileSelect.Visible = true;
            btnIconSelect.Visible = true;
            AlignButtons(e.ItemIndex);


            //glacialList1.Items[e.ItemIndex].SubItems[3].LastCellRect
        }
Exemplo n.º 20
0
    public void SimulateClick()
    {
        if (Clicked != null)
        {
            ClickEventArgs args = new ClickEventArgs();
            args.Name = "Add";

            Clicked(this, args);
        }
    }
Exemplo n.º 21
0
    protected void ugrdEmpList_DblClick(object sender, ClickEventArgs e)
    {
        ugrdAppLine.Rows.Insert(0, e.Row, true);
        int iRow = ugrdAppLine.Rows.Count;

        for (int i = 0; i < iRow; i++)
        {
            ugrdAppLine.Rows[i].Cells.FromKey("LINE_STEP").Value = Convert.ToString((i + 1));
        }
    }
Exemplo n.º 22
0
 protected void ugrdKpiList_Click(object sender, ClickEventArgs e)
 {
     if (e.Row != null)
     {
         this.IEstTermRefID = int.Parse(e.Row.Cells.FromKey("ESTTERM_REF_ID").Value.ToString());
         this.IKpiRefID     = int.Parse(e.Row.Cells.FromKey("KPI_REF_ID").Value.ToString());
         this.SetFormClear();
         this.SetFormData();
     }
 }
Exemplo n.º 23
0
        private void OnDeleteItem(object sender, ClickEventArgs e)
        {
            RowCollection delDevices = this.flgView.Rows.Selected;

            foreach (Row delDevice in delDevices)
            {
                SendLabelUi info = delDevice.DataSource as SendLabelUi;
                _chVm.LabelList.Remove(info);
            }
        }
Exemplo n.º 24
0
        private static void onCreateLayer(Object sender, ClickEventArgs e, Boolean addSelection)
        {
            NlmTreeListView listView = e.ListView;

            listView.NodeControl.MaxEvents.LayerEvents.LayerCreated.UnregisterNotification();

            IILayer layer  = MaxLayers.CreateLayer(true, addSelection);
            UIntPtr handle = MaxAnimatable.GetHandleByAnim(layer);

            LayerTreeNode layerTreeNode = new LayerTreeNode(handle, listView.NodeControl.HandleMap);

            // Get parent node.
            BaseTreeNode parentTreeNode = null;

            if (listView.SelectedObjects.Count > 0)
            {
                BaseTreeNode treeNode = listView.SelectedObjects[0] as BaseTreeNode;
                if (treeNode is FolderTreeNode)
                {
                    parentTreeNode = treeNode;
                }
                if (treeNode is LayerTreeNode)
                {
                    parentTreeNode = treeNode.Parent;
                }
            }

            // Add folder to listview, ensure is visible by expanding parents.
            listView.AddObject(layerTreeNode, parentTreeNode);
            if (parentTreeNode != null)
            {
                listView.Expand(parentTreeNode);
            }

            // Scroll to new item.
            Int32 parentIndex = listView.IndexOf(layerTreeNode);

            if (parentIndex != -1)
            {
                listView.EnsureVisible(parentIndex);
            }

            // Sort, select
            listView.Sort(listView.NlmColumns.NameColumn, SortOrder.Ascending);
            listView.SelectedObjects = new List <Object> {
                layerTreeNode
            };

            // Focus on the listview to ensure text entry goes to the edit box, and begin edit.
            listView.Focus();
            listView.EditModel(layerTreeNode);

            // Register notification.
            listView.NodeControl.MaxEvents.LayerEvents.LayerCreated.RegisterNotification();
        }
Exemplo n.º 25
0
 //double click your login button in the forms designer to add this click event handler
 public void LoginButton_Clicked(object sender, ClickEventArgs e)
 {
     if (txtUsername.Text == "user" && txtPassword.Text == "pass")
     {
         LoginCorrect();
     }
     else
     {
         MessageBox.Show("Login incorrect");
     }
 }
Exemplo n.º 26
0
 protected void GenreFilterClicked(ClickEventArgs args)
 {
     if (filteredGenres.Contains(args.Text))
     {
         filteredGenres.Remove(args.Text);
     }
     else
     {
         filteredGenres.Add(args.Text);
     }
 }
Exemplo n.º 27
0
        public override bool CheckClick(ClickEventArgs click)
        {
            //check if the user clicked one of the items
            if (!base.CheckClick(click))
            {
                //Once the user clicks anywhere on this screen, it gets popped off
                ExitScreen();
            }

            return(true);
        }
Exemplo n.º 28
0
        private void OnClickedInternal(ClickedEventArgs eventArgs)
        {
            Command?.Execute(CommandParameter);
            OnClicked(eventArgs);
            Extension?.OnClicked(this, eventArgs);

            ClickEventArgs nestedEventArgs = new ClickEventArgs();

            ClickEvent?.Invoke(this, nestedEventArgs);
            Clicked?.Invoke(this, eventArgs);
        }
        private async void EnjoyingGame(object sender, ClickEventArgs e)
        {
            var rateMsg = new MessageBoxScreen($"How about a rating on the app store?", string.Empty)
            {
                OkText     = "Ok!",
                CancelText = "No Thanks",
            };

            rateMsg.OnSelect += OkRating;
            await ScreenManager.AddScreen(rateMsg);
        }
        private async void NotEnjoyingGame(object sender, ClickEventArgs e)
        {
            var rateMsg = new MessageBoxScreen($"Would you mind giving us some feedback?", string.Empty)
            {
                OkText     = "Ok!",
                CancelText = "No Thanks",
            };

            rateMsg.OnSelect += OkFeedback;
            await ScreenManager.AddScreen(rateMsg);
        }
Exemplo n.º 31
0
 protected void OnContinueButton(object sender, ClickEventArgs e)
 {
     ContinueButton.IsEnabled = false;
     if (IsScoring)
     {
         UpdateDelay = 0;
         Invoke("Continue", 1);
     }
     else
     {
         Continue();
     }
 }
Exemplo n.º 32
0
        private void EditControlButtonClick(object sender, ClickEventArgs e)
        {
            if (_SuspendUpdate == false)
            {
                if (_Cell != null)
                {
                    _Cell.Value = SelectedTab.Buttons.IndexOf((BubbleButton) sender);
                    _Cell.EditorValueChanged(this);

                    _Cell.EndEdit();
                }
            }
        }
 protected override void RaiseClick(ClickEventArgs e)
 {
     base.RaiseClick(e);
     if (shouldLockCursor)
         Screen.lockCursor = true;
     if (levelToLoad == "MenuScene")
     {
         AdManager.TryShowAd(AdManager.MainMenuTravels, () => Application.LoadLevel(levelToLoad));
     }
     else
     {
         Application.LoadLevel(levelToLoad);
     }
 }
 private void Clicked(object sender, ClickEventArgs e)
 {
     OnlineLeaderBoardManager.Show(OnlineLeaderBoardManager.EndlessBoard);
 }
Exemplo n.º 35
0
 public void RaiseClickEvent(ClickEventArgs args, object sender = null)
 {
     if (this.Clicked != null)
         this.Clicked(sender, args);
 }
Exemplo n.º 36
0
 private void ContinueButtonOnClick(object sender, ClickEventArgs clickEventArgs)
 {
     Continue();
 }
Exemplo n.º 37
0
        private void PaintBoard_MouseClick(object sender, MouseEventArgs e)
        {
            int x = e.X;
            int y = e.Y;

            int sideLengh = this.Height/this.NumberOfRow;

            int row = y / sideLengh ;
            int col = x / sideLengh;

            ClickEventArgs ea = new ClickEventArgs();
            ea.Row = row;
            ea.Col = col;
            ea.Width = this.Width;
            ea.Height = this.Height;

            if (OnClickGrid != null)
            {
                OnClickGrid(this, ea);
            }
            this.Invalidate();
        }
Exemplo n.º 38
0
 void cancelBtn_OnClick(object sender, ClickEventArgs ea)
 {
     this.Remove();
     if( OnCancel != null )
         OnCancel( this, null );
 }
Exemplo n.º 39
0
 protected void ContinueButtonOnClick(object sender, ClickEventArgs clickEventArgs)
 {
     Continue();
 }
Exemplo n.º 40
0
 void nodeSelectManager(object sender, ClickEventArgs ea )
 {
     SelectedNode = (TreeNode)sender;
     if( OnNodeSelected != null )
     {
         OnNodeSelected(this, new TreeNodeSelectedEventArgs( this, SelectedNode ) );
     }
 }
Exemplo n.º 41
0
 void forward_OnClick(object sender, ClickEventArgs ea)
 {
     rollImage();
 }
 protected virtual void RaiseClick(ClickEventArgs e)
 {
     EventHandler<ClickEventArgs> handler = Click;
     if (handler != null) handler(this, e);
 }
Exemplo n.º 43
0
 private void cmdCancelAction_Click(object sender, ClickEventArgs e)
 {
     CancelRunningThread();
 }
Exemplo n.º 44
0
 public void Clicked(object sender, ClickEventArgs ea )
 {
     img.Remove();
 }
Exemplo n.º 45
0
 private void cmdMatch_Click(object sender, ClickEventArgs e)
 {
     StartMatchThread();
 }
Exemplo n.º 46
0
 private void cmdmnuSelectInputFile_Click(object sender, ClickEventArgs e)
 {
     SelectInputFile();
 }
Exemplo n.º 47
0
 private void cmdmnuRefreshFromInputFile_Click(object sender, ClickEventArgs e)
 {
     RefreshTextFromInputFile();
 }
Exemplo n.º 48
0
 public override void HandleEvents(string evt, string args)
 {
     if (evt == "OnChanged")
     {
         //System.Console.WriteLine("changing {0} from {1} to {2}", this.Id, this.Text, args);
         Changed(args);
         RootContext.SendCommand("removeWaitFor({0});", this.ClientId);
     }
     else if (evt == "OnEnter")
     {
         ClickEventArgs ea = new ClickEventArgs(this );
         Changed(args);
         if (onEnter != null)
             onEnter(this, ea );
     }
     else if( evt == "OnKeyUp" )
     {
         KeyPressEventArgs ea = new KeyPressEventArgs(this, args );
         Changed(ea.Value);
         if (onKeyUp != null)
             onKeyUp(this, ea );
     }
     else
     {
         base.HandleEvents(evt, args);
     }
 }
 private void RetryButtonOnClick(object sender, ClickEventArgs clickEventArgs)
 {
     Screen.lockCursor = true;
     Messenger.Default.Send(new LevelRetryMessage());
     gameObject.SetActive(false);
 }
Exemplo n.º 50
0
 void back_OnClick(object sender, ClickEventArgs ea)
 {
     if (dataSource != null)
         if (Index == 0)
             Index = dataSource.Count - 1;
         else
             Index--;
 }
Exemplo n.º 51
0
 public void tabLabel_OnClick(object sender, ClickEventArgs ea)
 {
     log.Debug("tabLabel_OnClick", ea.Source );
     if( tabsByLabels.ContainsKey( ea.Source ) )
         SelectedTab = tabsByLabels[ ea.Source ];
 }