Esempio n. 1
0
        public void OnAddPositionCommand(object sender, EventArgs e)
        {
            NadexPosition newPosition = new NadexPosition {
                DisplayName = "New position..", Expiration = DateTime.Now
            };

            Positions.Add(newPosition);
            SelectedItem = newPosition;

            SavePositionsToXml();
        }
Esempio n. 2
0
        public void OnRemovePositionCommand(object sender, EventArgs e)
        {
            // this should never be possible
            if (SelectedItem == null)
            {
                return;
            }
            Positions.Remove(SelectedItem);
            SelectedItem = null;

            SavePositionsToXml();
        }
        public void OnRemovePositionCommand(object sender, EventArgs e)
        {
            // this should never be possible
            if (SelectedItem == null)
                return;
            Positions.Remove(SelectedItem);
            SelectedItem = null;            

            SavePositionsToXml();
        }
        public void OnAddPositionCommand(object sender, EventArgs e)
        {
            NadexPosition newPosition = new NadexPosition { DisplayName = "New position..", Expiration = DateTime.Now };
            Positions.Add(newPosition);
            SelectedItem = newPosition;

            SavePositionsToXml();
        }