private void BtnPinTiles(object sender, RoutedEventArgs e)
 {
     ((SlideMenu)((Decorator)Parent).Parent).FreezeSlideUp = true;
     var tile= new ListDictionary();
     MessageBox.Show("Please select the file you would like to run.");
     var dialog = new OpenFileDialog();
     dialog.ShowDialog();
     if (dialog.FileName != string.Empty)
     {
         tile.Add("Program", dialog.FileName);
     }
     var res = MessageBox.Show("Please choose the image you would like to use. If you would like to use the normal program's icon, close this dialog.");
     if (res.Equals(MessageBoxResult.Cancel))
     {
         var colorpick = new colorpicker.ColorPickerSelector();
     }
 }
Exemple #2
0
        private void BtnPinTiles(object sender, RoutedEventArgs e)
        {
            ((SlideMenu)((Decorator)Parent).Parent).FreezeSlideUp = true;
            var tile = new ListDictionary();

            MessageBox.Show("Please select the file you would like to run.");
            var dialog = new OpenFileDialog();

            dialog.ShowDialog();
            if (dialog.FileName != string.Empty)
            {
                tile.Add("Program", dialog.FileName);
            }
            var res = MessageBox.Show("Please choose the image you would like to use. If you would like to use the normal program's icon, close this dialog.");

            if (res.Equals(MessageBoxResult.Cancel))
            {
                var colorpick = new colorpicker.ColorPickerSelector();
            }
        }