Ejemplo n.º 1
0
        public void OpenUpdateForm(Category category, ClipboardObject clipboardObject)
        {
            FormType = FormType.EDIT;

            this.category        = category;
            this.clipboardObject = clipboardObject;

            TitleLabel.Content       = "Edit Clip";
            ClipboardObjectName.Text = clipboardObject.Name;
            ClipboardPanel.Children.Clear();
            FrameworkElement previewPanel = clipboardObject.GenerateClipboardPreviewPanel();

            previewPanel.Height = 150;
            ClipboardPanel.Children.Add(previewPanel);

            Visibility = Visibility.Visible;
        }
Ejemplo n.º 2
0
        public void OpenCreateForm(Category category, ClipboardObject clipboardObject)
        {
            FormType = FormType.CREATE;

            this.category        = category;
            this.clipboardObject = clipboardObject;

            TitleLabel.Content       = "Save to " + (category.Name.Length > FormConstants.ADD_TO_CATEGORY_NAME_LIMIT ? category.Name.Substring(0, FormConstants.ADD_TO_CATEGORY_NAME_LIMIT) + "..." : category.Name);
            ClipboardObjectName.Text = clipboardObject.Name;
            ClipboardPanel.Children.Clear();
            FrameworkElement previewPanel = clipboardObject.GenerateClipboardPreviewPanel();

            previewPanel.Height = 150;
            ClipboardPanel.Children.Add(previewPanel);

            Visibility = Visibility.Visible;
        }