C# Class Spinach.ProgWin

ProgWin
Inheritance: System.Windows.Window, System.Windows.Markup.IComponentConnector
Show file Open project: shranjan/pinac Class Usage Examples

Public Properties

Property Type Description
et editorType

Public Methods

Method Description
ProgWin ( editorType e, SwarmConnection sconn, string ip, string port, string pid, string uname ) : System

ProgWin Constructor

SMObj ( ) : SwarmMemory

Returns the swarm memory object for the calling object

loadProgram ( string text ) : void

Loads the program text into the editor.

send_close_msg ( ) : void
setOwner ( string uname ) : void

Sets the owner of program, also updates the local variable 'owner'.

setPermissions ( string perm ) : void

Sets the permissions for the user for this particular program

setProgUserList ( List list ) : void

Sets the Program Collaborators user list

setUserList ( List list ) : void

Sets the swarm user list

Private Methods

Method Description
CollabEditing ( string SourceChanged ) : void
Display ( string res ) : void
EnablePlot ( System.Windows.Media.Imaging.PngBitmapEncoder encoder ) : void
InitializeComponent ( ) : void
LineNumbers ( ) : void
RunClicked ( bool Clicked ) : void
SM_CloseP ( bool CloseProg ) : void
SM_RerunP ( bool Rerun ) : void
ShowError ( string Msg ) : void
System ( int connectionId, object target ) : void
Window_Closed ( object sender, EventArgs e ) : void
Window_Loaded ( object sender, RoutedEventArgs e ) : void
Window_Unloaded ( object sender, RoutedEventArgs e ) : void
btnCompute_Click ( object sender, RoutedEventArgs e ) : void
compare ( tags t1, tags t2 ) : int
format ( ) : void
highlight ( ) : void
markLinepositions ( ) : void
mnuAccess_Click ( object sender, RoutedEventArgs e ) : void
mnuAdd_Click ( object sender, RoutedEventArgs e ) : void
mnuDelete_Click ( object sender, RoutedEventArgs e ) : void
mnuEdit_Click ( object sender, RoutedEventArgs e ) : void
mnuExit_Click ( object sender, RoutedEventArgs e ) : void
mnuFile_Click ( object sender, RoutedEventArgs e ) : void
mnuLine_Click ( object sender, RoutedEventArgs e ) : void
mnuOption_Click ( object sender, RoutedEventArgs e ) : void
mnuSavePlot_Click ( object sender, RoutedEventArgs e ) : void
mnuSave_Click ( object sender, RoutedEventArgs e ) : void
mnuShowPlot_Click ( object sender, RoutedEventArgs e ) : void
mnuWrap_Click ( object sender, RoutedEventArgs e ) : void
progUserListChange ( List PerListChanged ) : void
rtbInput_KeyUp ( object sender, System e ) : void
syntax ( ) : void
update ( string lno1, string s, string mod1, string uname ) : void
userformat ( ) : void
worker_DoWork ( object sender, DoWorkEventArgs e ) : void
worker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

Method Details

ProgWin() public method

ProgWin Constructor
public ProgWin ( editorType e, SwarmConnection sconn, string ip, string port, string pid, string uname ) : System
e editorType editor type
sconn SwarmConnection Swarm Connection Object
ip string Self IP
port string Self Port
pid string PID of the program
uname string Self USername
return System

SMObj() public method

Returns the swarm memory object for the calling object
public SMObj ( ) : SwarmMemory
return SwarmMemory

loadProgram() public method

Loads the program text into the editor.
public loadProgram ( string text ) : void
text string Program Text
return void

send_close_msg() public method

public send_close_msg ( ) : void
return void

setOwner() public method

Sets the owner of program, also updates the local variable 'owner'.
public setOwner ( string uname ) : void
uname string
return void

setPermissions() public method

Sets the permissions for the user for this particular program
public setPermissions ( string perm ) : void
perm string Permission String
return void

setProgUserList() public method

Sets the Program Collaborators user list
public setProgUserList ( List list ) : void
list List Program Collaboratos User List
return void

setUserList() public method

Sets the swarm user list
public setUserList ( List list ) : void
list List Swarm User List
return void

Property Details

et public property

public editorType et
return editorType