コード例 #1
0
        private void ButtonAdd_Click(object sender, RoutedEventArgs e)
        {
            Window_SetOnClickActions window_SetOnClickActions = new Window_SetOnClickActions(data, selpos);

            window_SetOnClickActions.Owner = Window.GetWindow(this);
            window_SetOnClickActions.ShowDialog();

            if (window_SetOnClickActions.isOK)
            {
                if (window_SetOnClickActions.actions != null)
                {
                    Actionlist.Add(window_SetOnClickActions.actions);
                    Debug.WriteLine(window_SetOnClickActions.actions);
                    AddActions();
                }
            }
        }
コード例 #2
0
        private void EditAction_Click(object sender, MouseEventArgs e)
        {
            int id = Actionlist.IndexOf((IActions)((FlatButton)sender).Tag);
            Window_SetOnClickActions window_SetOnClickActions = new Window_SetOnClickActions(Actionlist, data, id, selpos);

            window_SetOnClickActions.Owner = Window.GetWindow(this);
            window_SetOnClickActions.ShowDialog();

            if (window_SetOnClickActions.isOK)
            {
                if (window_SetOnClickActions.actions != null)
                {
                    Actionlist[id] = window_SetOnClickActions.actions;
                    Debug.WriteLine(window_SetOnClickActions.actions);
                    AddActions();
                }
            }
        }