小编jav*_*irs的帖子

JIRA:如何自动化子任务移动

我有关于子任务的故事(我们大量使用它们),我想

1)当故事的所有子任务都完成后,故事就独自完成

2)例如,将故事从“想法”移至“待办事项”,或从“待办事项”移至“就绪”时,其所有子任务都会随之移动。因此,在编码器语言中,通过拖动故事来移动故事时,所有相关的子任务状态都会被新的故事状态所覆盖。

董事会的结构保证没有问题,因为PO对于所有开发状态(开发,审查等)只有一个专栏,而开发Scrum董事会仅具有那些开发,审查等专栏的地位。

此外,PO董事会仅查看故事并将Epics用作泳道,因此他看不到子任务的移动。开发人员委员会仅显示使用故事作为游泳路线的子任务。

因此,开发人员无法将故事移至仅完成子任务。

jira

7
推荐指数
1
解决办法
105
查看次数

在内存中呈现WPF用户控件,而不是在屏幕上

我有一个复杂的用户控件,它显示一个图像并用阴影和东西覆盖它上面的某些标签.我想在内存中渲染所有这些内容,然后制作此地图的图像,然后在真实用户界面中使用此图像.这就是事情的结局.

在此输入图像描述

我这样做是因为界面开始慢慢移动所有这些元素,我正在尝试简化它.我会走正确的路吗?

这里的问题是我创建了brainMap,用数据提供它,然后尝试创建imagen和BAM!它无法完成,因为整个组件未呈现,ActualWith为零.

这就是我从控件中提取图像的方法(当控件在屏幕中呈现时,该方法非常有效)

    /// <summary>
    /// The controls need actual size, If they are not render an "UpdateLayout()" might be needed.
    /// </summary>
    /// <param name="control"></param>
    /// <param name="Container"></param>
    public static System.Windows.Controls.Image fromControlToImage(System.Windows.FrameworkElement control)
    {
        if (control.ActualWidth == 0)
            throw new Exception("The control has no size, UpdateLayout is needed");
     // Here is where I get fired if the control was not actually rendered in the screen

        RenderTargetBitmap rtb = new RenderTargetBitmap((int)control.ActualWidth, (int)control.ActualHeight, 96, 96, PixelFormats.Pbgra32);
        rtb.Render(control);

        var bitmapImage = …
Run Code Online (Sandbox Code Playgroud)

c# wpf

6
推荐指数
1
解决办法
2888
查看次数

000webhost和codeigniter

我试图在000webhost的共享服务器中使用codeigniter。我上传了包装的内容,如果输入

http://groceriesapi.000webhostapp.com/API/index.php/welcome/

它确实有效。但是,如果我访问:

http://groceriesapi.000webhostapp.com/API/welcome/

您得到404。

我在互联网上读到,应该用.htaccess文件解决此问题。首先,我的文件夹结构中有两个。它是这样的:

public_htm
    application
       plenty of things
       .htaccess
    other stuff
    .htaccess
Run Code Online (Sandbox Code Playgroud)

我编辑外部.htacces,位于public_html的.htacces看起来像这样:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Run Code Online (Sandbox Code Playgroud)

现在访问简化的URL(http://groceriesapi.000webhostapp.com/API/welcome/)时,出现500内部服务器错误!

任何线索???

PS:我不在乎URL中间的index.php,但是每当收到错误消息时,整个codeigniter都会崩溃,我不知道出了什么问题..那是一个问题:(

web-hosting codeigniter-3

6
推荐指数
1
解决办法
118
查看次数

WPF - 从触发器访问子项

我有一个ListBox声明,就像我在那里展示.关键是在Item定义中我有很多关于网格和元素的东西.我想仅更改项目中一个图像的可见性,使其仅在选择元素本身时才可见.

例如,我设法更改了项目的背景和一般外观,但是我无法访问内部元素:(

<ListBox stuff stuff stuff>
    <ListBox.ItemTemplate>
        <DataTemplate DataType="local:Patient">
            <grids , borders, things, stuff
                <Image Name="image1" source opacity stuff/>
            </ grids bordes and design in general>
        </DataTemplate>
    </ListBox.ItemTemplate>

    <ListBox.ItemContainerStyle>
        <Style TargetType="{x:Type ListBoxItem}">
            <Style.Triggers>
                <Trigger Property="IsSelected" Value="True">
                    <Setter Property="Foreground" Value="White"/>
                    <!--HERE I WANT TO CHANGE VISIBILITY OF THE IMAGE-->
                </Trigger>
            </Style.Triggers>
        </Style>
    </ListBox.ItemContainerStyle>

    <ListBox.Template>
        <!-- some other styles when deselected and other things -->
    </ListBox.Template>
</ListBox>
Run Code Online (Sandbox Code Playgroud)

我试过用:

<Setter TargetName="physiciansSettinsImage" Property="Visibility" Value="Visible"/>
Run Code Online (Sandbox Code Playgroud)

但它不能在Style Setter上设置.任何线索?

整个设计相当复杂,所以我想尽量避免重新编码.

c# wpf styles listbox itemcontainerstyle

4
推荐指数
1
解决办法
3998
查看次数

WPF动画StrokeDashArray

我正在尝试在WPF中创建一个动画,但我对于放置所有内容的地方感到很困惑.我需要一个像自己画画一样的圆圈.

要做到这一点,我有一个设计精美的圆圈(下面有一个带有模糊的描边圆圈的一个描边圆圈)然后我有另一个带有StrokeDashArray的圆圈.我计划将这个圆圈用作第一个的opacityMask,并为StrokeDashArray设置动画以显示circ.

我一直在玩,我可以修改从[0,100]到[50 100]的StrokeDashArray,我得到一条覆盖圆圈的增长线(我真的不明白0 100和50 100来自哪里..只是试过,直到看起来不错.

所以现在我的问题是在哪里分发这些东西.

我的代码到目前为止看起来像:

<UserControl bla bla bla bla>
    <!-- The mask that should be animated -- >
    <Ellipse Name="Mask" Stroke="White"StrokeThickness="13" StrokeDashArray="10 100"/>
    <!-- StrokeDashArray should be animated from "0 100" to "50 100"  -->

    <!-- The Blurry shadow of the line -->
    <Ellipse Name="blurry" Stroke="#FF7CA2CE" StrokeThickness="5">
        <Ellipse.Effect>
            <BlurEffect/>
        </Ellipse.Effect>
        <Ellipse.OpacityMask>
            <VisualBrush Visual="{Binding ElementName=Mask}"/>
        </Ellipse.OpacityMask>
    </Ellipse>

    <!-- The line itself -->
    <Ellipse Name="core" Stroke="Blue" StrokeThickness="1">
        <Ellipse.OpacityMask>
            <VisualBrush Visual="{Binding ElementName=Mask}"/>
        </Ellipse.OpacityMask>
    </Ellipse>
</UserControl>
Run Code Online (Sandbox Code Playgroud)

所以现在我需要在StrokeDashArray中的第一个元素上执行动画并从后面的代码中启动它(C#)我也可以将动画作为资源放在其中并从代码中启动它,或者在代码中执行整个动画,我不在乎,但请具体说明在哪里添加代码..我感到迷茫.

我还尝试将模糊和核心线添加到一个网格,然后将VisualBrush应用到它(所以我只应用它一次,而不是两次)但效果更加丑陋,因为模糊的线条被剪切而且不像我们那样轻柔地结束希望它是呵呵呵

Sooo,任何帮助?!?!?!?!?!

wpf animation

2
推荐指数
2
解决办法
2649
查看次数

我可以阻止用户修改C#中的参数吗

我正在为一群人编写C#编码,我正在设计要编码的方法的签名,我需要一种方法来确保人们不会修改他们将收到的一些参数.它们接收大结构,因此它们通过引用发送,但我希望它们在不修改原始值的情况下使用数据.但由于结构很大,我们不想复制它们.

我们可以假设他们不想改变数据,我们只需要保护他们不犯错误.

C#提供哪些解决方案?

这是一个例子

Class MyDataBlok {
    List<double> samples;
    int someParams;
    double lots of other params
    }

Class MySetOfDataBlock
{
    List<MyDataBlock> DataSet;
    bool SomeParam;
    Double lots of other params;
}

Class MethodsToBeCoded
{
    ProcessSetOfData( /*some tag defining data as protected*/ MySetOfDataBlock data)
    {
         //Here I want code that uses data without modifying data
         // nor the content on any data.DataSet[i]
    }
}
Run Code Online (Sandbox Code Playgroud)

c# performance

1
推荐指数
2
解决办法
133
查看次数