private void EditMenuItem_Click(object sender, RoutedEventArgs e)
        {
            EditExternalLinkWindow window = new EditExternalLinkWindow(mExternalLink.Target);

            window.Owner = mParentTaskControl.ParentPileControl.ParentWindow;

            if (window.ShowDialog() == true)
            {
                mExternalLink.Target = window.Target;
            }
        }
示例#2
0
        private void AddExternalLinkMenuItem_Click(object sender, RoutedEventArgs e)
        {
            EditExternalLinkWindow window = new EditExternalLinkWindow(null);

            window.Owner = this.ParentPileControl.ParentWindow;

            if (window.ShowDialog() != true)
            {
                return;
            }

            Workspace.ExternalLink new_link = new Workspace.ExternalLink();
            new_link.Target = window.Target;
            mTask.AddExternalLink(new_link);
            AddNewExternalLinkControl(new_link);
        }