示例#1
0
        private void BehaviorsListView_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (BehaviorsListView.SelectedItems.Count <= 0)
            {
                BehaviorTabs.Visible = false;
                return;
            }

            BehaviorEditWidget.Attach(BehaviorsListView.SelectedItems[0].Tag as Behavior);
            BehaviorTabs.Visible = true;

            RefreshConsiderationControls();
        }
示例#2
0
        private void BehaviorsListView_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (BehaviorsListView.SelectedItems.Count <= 0)
            {
                BehaviorTabs.Visible           = false;
                BehaviorNameEditWidget.Visible = false;
                return;
            }

            var b = BehaviorsListView.SelectedItems[0].Tag as Behavior;

            BehaviorNameEditWidget.Attach("Behavior", b, EditingProject);
            BehaviorEditWidget.Attach(b, EditingProject);
            BehaviorScoringWidget.Attach(b, EditingProject);
            BehaviorTabs.Visible           = true;
            BehaviorNameEditWidget.Visible = true;

            RefreshConsiderationControls(null);
        }