コード例 #1
0
        private void btn_delete_Click(object sender, EventArgs e)
        {
            bs = new Bestaetigung(this);
            bs.ShowDialog();

            if (tabControl1.SelectedIndex == 0)
            {
                if (deleteSelected)
                {
                    c.deleteTrack(checked_items);
                    UpdateClickbox();
                }
            }
            else if (tabControl1.SelectedIndex == 1)
            {
                if (deleteSelected)
                {
                    c.deleteWaypoint(checked_waypoints);
                    UpdateClickbox();
                }
            }
        }
コード例 #2
0
ファイル: GPX_Main.cs プロジェクト: xXLupoXx/GpxViewer
        private void btn_delete_Click(object sender, EventArgs e)
        {
            bs = new Bestaetigung(this);
            bs.ShowDialog();

            if (tabControl1.SelectedIndex == 0)
            {
                if (deleteSelected)
                {
                    c.deleteTrack(checked_items);
                    UpdateClickbox();
                }
            }
            else if (tabControl1.SelectedIndex == 1)
            {
                if (deleteSelected)
                {
                    c.deleteWaypoint(checked_waypoints);
                    UpdateClickbox();
                }
            }
        }