Esempio n. 1
0
        public void TrackignListSave()
        {
            var tlist = new TrackingList("Test");
            var track = new Trackable {Name = "Alpha", Pattern = "Alpha"};
            tlist.Trackables.Add(track);
            tlist.SoundFile = "TestSound";

            TrackingList.Save(tlist);
        }
Esempio n. 2
0
        public TrackableEditor(Trackable toEdit)
        {
            InitializeComponent();

            ToEdit = toEdit;
            OriginalName = toEdit.Name;
            OriginalPattern = toEdit.Pattern;
            _namePatternTxtBx.Text = toEdit.Pattern;
            _nameTxtBx.Text = string.IsNullOrEmpty(toEdit.Name) ? "NameMe!" : toEdit.Name;
        }
Esempio n. 3
0
        private void NewTrackable(object sender, EventArgs e)
        {
            var track = new Trackable();
            var te = new TrackableEditor(track);

            te.ShowDialog();

            if (string.IsNullOrEmpty(track.Pattern) || string.IsNullOrEmpty(track.Name))
            {
                return;
            }

            SelectedList.Trackables.Add(track);

            _trackablesLstBx.DataSource = null;
            _trackablesLstBx.DataSource = SelectedList.Trackables;
            _trackablesLstBx.DisplayMember = "Name";
            _trackablesLstBx.Refresh();
        }