(UTC)
Welcome, Guest. Please
Login
or
Register
News:
Board Index
Help
Search
Login
Register
The MindFusion Forums
›
Flow Diagramming Components
›
Windows Forms
› cut
(Moderator: Slavcho)
‹
Previous Topic
|
Next Topic
›
Pages:
1
2
[3]
Send Topic
Print
cut (Read 12415 times)
balajigcs
YaBB Newbies
Offline
I love YaBB 1G - SP1!
Posts: 32
Joined: Aug 18
th
, 2008
Re: cut
Reply #30 -
Oct 21
st
, 2008 at 9:26am
Print Post
Hi,
In LoadFrom() method I am using..
Variables = context.LoadObject() as VariableCollection;
In SaveTo() method i am using..
context.SaveObject(Variables as IPersists);
like this.. at the time of pasting the LoadFrom() calling after that the after loading context.LoadObect().. the variables goes to null..
Actually the variable is collection type.. so i type cast as context.LoadObject() as VariableCollection;
so how can i rectify that one..
Thanks & Regards,&&&&Balaji
IP Logged
Stoyo
God Member
Offline
MindFusion support
Posts: 13230
Joined: Jul 20
th
, 2005
Re: cut
Reply #31 -
Oct 21
st
, 2008 at 10:14am
Print Post
Hi,
Try the SaveTag and LoadTag methods. They should work with any [Serializable] objects, while SaveObject and LoadObject will require you to implement the IPersists interface.
I hope that helps,
Stoyan
IP Logged
balajigcs
YaBB Newbies
Offline
I love YaBB 1G - SP1!
Posts: 32
Joined: Aug 18
th
, 2008
Re: cut
Reply #32 -
Oct 21
st
, 2008 at 12:07pm
Print Post
ok thanks Stoyan.. now its working..
Thanks & Regards,&&&&Balaji
IP Logged
Dexter
Junior Member
Offline
I love YaBB 1G - SP1!
Posts: 62
Joined: Jun 25
th
, 2009
Re: cut
Reply #33 -
Jul 20
th
, 2009 at 10:34am
Print Post
Hi there,
the copy/paste sequence work for shape nodes and so on. But I have a custom shape node composed by several shapes attached to one and other.
When the paste node event is called in the event args I have shape node not my custom type.
How can I get my type and not shape node?
Regards
IP Logged
Stoyo
God Member
Offline
MindFusion support
Posts: 13230
Joined: Jul 20
th
, 2005
Re: cut
Reply #34 -
Jul 20
th
, 2009 at 12:25pm
Print Post
Hi,
You must implement binary serialization to enable clipboard support for your custom type. The IconNodes sample project shows how to do that. Additionally, you must add a copy constructor to your type.
I hope that helps,
Stoyan
IP Logged
Pages:
1
2
[3]
Send Topic
Print
‹
Previous Topic
|
Next Topic
›
Forum Jump »
Board Index
» 10 most recent Posts
» 10 most recent Topics
General
News
Discussion
Flow Diagramming Components
News
Feature Suggestions
Windows Forms ««
WPF
Html Canvas & JavaScript
Blazor
ASP.NET MVC
ASP.NET
Java Swing
ActiveX
.NET MAUI and Xamarin
Android
Cocoa Touch
Bug Reports
Scheduling and Gantt Components
News
Feature Suggestions
Windows Forms
WPF
Silverlight
ASP.NET
Html & JavaScript
Java Swing
.NET Compact Framework
.NET MAUI and Xamarin
Bug Reports
Gauge and Chart Components
News
Feature Suggestions
Windows Forms
WPF
Silverlight
ASP.NET
Html Canvas & JavaScript
Java Swing
Xamarin
Bug Reports
Grid and Spreadsheet Components
News
Feature Suggestions
Windows Forms
WPF
Html & JavaScript
Java Swing
Bug Reports
Virtual Keyboard Components
News
Windows Forms
WPF
Avalonia
Java Swing
Html & JavaScript
Bug Reports
MindFusion.Reporting
News
Feature Suggestions
Windows Forms
WPF
Silverlight
Bug Reports
MindFusion.UI controls
Windows Forms
WPF
ASP.NET
Other MindFusion tools
News
Feature Suggestions
Discussion
Bug Reports
Archived Boards
Silverlight
Universal Windows Platform
« Board Index
‹ Board
The MindFusion Forums
» Powered by
YaBB 2.6.11
!
YaBB Forum Software
© 2000-2024. All Rights Reserved.