コード例 #1
0
        private void Btn_Open_Click(Object sender, RoutedEventArgs e)
        {
            ListBoxItem listBoxItem = (ListBoxItem)Lv_Request.ContainerFromElement(sender as Button);

            listBoxItem.IsSelected = true;
            ObjectRequest objectRequst = listBoxItem.Content as ObjectRequest;

            _presenter.SelectFile(objectRequst);
        }
コード例 #2
0
        private void Btn_Download_Click(Object sender, RoutedEventArgs e)
        {
            ListBoxItem listBoxItem = (ListBoxItem)Lv_Request.ContainerFromElement(sender as Button);

            listBoxItem.IsSelected = true;
            ObjectRequest objectRequst = listBoxItem.Content as ObjectRequest;

            _presenter.AddDownload(objectRequst.PsnPath);
        }
コード例 #3
0
        private void Tb_GotFocus(Object sender, RoutedEventArgs e)
        {
            ListBoxItem listBoxItem = (ListBoxItem)Lv_Request.ContainerFromElement(sender as TextBox);

            listBoxItem.IsSelected = true;
        }