Beispiel #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            var x = listBox1.SelectedItem.ToString().Split('\t');

            desk.Delete(x[0]);
            listBox1.Items.Clear();
            button1_Click(sender, e);
            button5.Visible  = false;
            button6.Visible  = false;
            textBox2.Visible = false;
            label1.Visible   = false;
            ChageVisible(false);
        }
        private void Delete_Click(object sender, RoutedEventArgs e)
        {
            var x = ViewWindow.SelectedItem.ToString().Split('\t');

            desktopRepo.Delete(x[0]);
            ViewWindow.Items.Clear();
            View_Click(sender, e);
            Delete.Visibility = Visibility.Hidden;
            Edit.Visibility   = Visibility.Hidden;
            Title.Visibility  = Visibility.Hidden;
            TitleL.Visibility = Visibility.Hidden;
            ChangeVisible(Visibility.Hidden);
        }