Ejemplo n.º 1
0
        private void menuItemImport_Click(object sender, EventArgs e)
        {
            SyncForm syncForm = new SyncForm();

            if (syncForm.ShowDialog() == DialogResult.OK)
            {
                LoadTracks();
            }
        }
Ejemplo n.º 2
0
        private void ShowFirstStartDialog()
        {
            if (Settings.Default.FirstStartFlag)
            {
                FirstStartDialog firstStartDialog = new FirstStartDialog();
                if (firstStartDialog.ShowDialog(this) == DialogResult.Yes)
                {
                    SyncForm syncForm = new SyncForm();
                    syncForm.ShowDialog();

                    // LoadTracks() is called anyway later in MainForm_Shown()
                }

                Settings.Default.FirstStartFlag = false;
                Settings.Default.Save();                                                                // TODO: save only when exiting?
            }
        }