Exemple #1
0
        private void addButton_Click(object sender, EventArgs e)
        {
            IAnkhDiffHandler diffHandler = Context.GetService <IAnkhDiffHandler>();

            using (AddAdvancedDiffUserTool myAddAdvancedDiffUserTool = new AddAdvancedDiffUserTool(listView, diffHandler))
            {
                myAddAdvancedDiffUserTool.ShowDialog(Context);
            }
        }
Exemple #2
0
        private void modifyButton_Click(object sender, EventArgs e)
        {
            IAnkhDiffHandler diffHandler = Context.GetService <IAnkhDiffHandler>();

            using (AddAdvancedDiffUserTool myAddAdvancedUserTool = new AddAdvancedDiffUserTool(listView, diffHandler))
            {
                myAddAdvancedUserTool.setItem(listView.SelectedItems[0]);
                myAddAdvancedUserTool.ShowDialog(Context);
            }
        }