本文整理汇总了C#中OCL类的典型用法代码示例。如果您正苦于以下问题:C# OCL类的具体用法?C# OCL怎么用?C# OCL使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OCL类属于命名空间,在下文中一共展示了OCL类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: frmFindSource
public frmFindSource(ref OCL.Oyster OSystem, ref OCL.User AccessingUser,bool EditingSystem)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
this.OSystem = OSystem;
this.AccessingUser = AccessingUser;
this.EditingSystem = EditingSystem;
}
示例2: frmLogin
public frmLogin(ref OCL.Oyster OSystem)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
m_oyster = OSystem;
//
// TODO: Add any constructor code after InitializeComponent call
//
}
示例3: OCLWriter2
public OCLWriter2(string ApplicationName, string ApplicationVersion, int UserId,ref OCL.Oyster OSystem)
{
this.ApplicationName = ApplicationName;
this.UserId = UserId;
this.OSystem = OSystem;
OSVersion = System.Environment.OSVersion.ToString();
MachineName = System.Environment.MachineName;
MachineIPAddress = System.Net.Dns.Resolve(Environment.MachineName).AddressList[0].ToString();
UserName = System.Environment.UserDomainName + "\\" + System.Environment.UserName;
this.ApplicationVersion = ApplicationVersion;
}
示例4: frmFindControl
public frmFindControl(ArrayList ExcludingControls,OCL.Scene CurrentScene,ref OCL.Oyster OSystem, ref OCL.User AccessingUser)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
this.OSystem = OSystem;
this.AccessingUser = AccessingUser;
this.ExcludingControls = ExcludingControls;
this.CurrentScene = CurrentScene;
}
示例5: frmUserPermissions
public frmUserPermissions(ref OCL.User AccessingUser,ref OCL.Oyster OSystem)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
this.AccessingUser = AccessingUser;
this.OSystem = OSystem;
//
// TODO: Add any constructor code after InitializeComponent call
//
}
示例6: frmFindGroup
public frmFindGroup(ref OCL.User LUser, ref OCL.Oyster OSystem, OCL.Group SelectedGroup)
{
this.LUser = LUser;
this.OSystem = OSystem;
this.SelectedGroup = SelectedGroup;
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
示例7: frmSessionProperties
public frmSessionProperties(OCL.RecordingSession RecordingSession, OCL.User AccessingUser)
{
this.RecordingSession = RecordingSession;
this.AccessingUser = AccessingUser;
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
//m_Editing = false;
}
示例8: frmNote
public frmNote(OCL.User AccessingUser,OCL.RecordingSession RS,OCL.Note CN)
{
this.AccessingUser = AccessingUser;
this.RS = RS;
this.CN = CN;
//
// Required for Windows Form Designer support
//
InitializeComponent();
NewFiles = new ArrayList();
DeletedFiles = new ArrayList();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
示例9: frmCreateScene
public frmCreateScene(ref OCL.Oyster OSystem, ref OCL.User AccessingUser,OCL.Scene CurrentScene)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
this.OSystem = OSystem;
this.AccessingUser = AccessingUser;
this.CurrentScene = CurrentScene;
this.Text = CarverLab.Utility.AppInfo.Title + ": Edit Scene Dialog: Editing " + CurrentScene.Description;
}
示例10: frmRecordingSessionPermissions
public frmRecordingSessionPermissions(ref OCL.Group G,ref OCL.RecordingSession RS)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
this.RS = RS;
this.G = G;
this.Text = G.Description + "'s " + RS.Description + " Permissions";
this.groupBox1.Text = "Modify User's access to " + RS.Description + " in group " +
G.Description;
this.gbRecordingSessions.Text = "Current permissions for " + RS.Description;
}
示例11: frmScenePermissions
public frmScenePermissions(ref OCL.Oyster OSystem, ref OCL.User AccessingUser,OCL.Group G,OCL.Scene S)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
this.OSystem = OSystem;
this.AccessingUser = AccessingUser;
this.CurrentScene = S;
this.CurrentGroup = G;
this.Text = G.Description + "'s " + S.Description + " Permissions";
this.groupBox1.Text = "Modify User's access to " + S.Description + " in group " +
G.Description;
this.gbScenes.Text = "Current permissions for " + S.Description;
}
示例12: DownloadSessions
public void DownloadSessions(User AccessingUser,string sDestination, bool IncludeAttachments,bool ShowProgress,ref OCL.FTPTransfer FTP)
{
Functions F = new Functions();
F.DownloadRecordingSession(AccessingUser,this,sDestination,IncludeAttachments, ShowProgress, ref FTP);
}
示例13: RunSearch
private void RunSearch(OCL.OysterRecordingSessionSearchType RecordingSessionSearchType, string SearchCriteria)
{
lvSearchResults.Items.Clear();
OCL.RecordingSessions ARS = new OCL.RecordingSessions();
if(SearchCriteria != string.Empty)
{
ARS = LUser.AllVisibleRecordingSessions(LUser,RecordingSessionSearchType,SearchCriteria);
}
else
{
try
{
ARS = LUser.AllVisibleRecordingSessions(LUser);
}
catch(Exception Err)
{
MessageBox.Show(Err.Message,"Programmer Error:");
return;
}
}
if(ARS.Count == 0)
{
lblInformation.Text = "No Recording Sessions found that match this search string";
lblInformation.ForeColor = Color.Red;
return;
}
foreach(OCL.RecordingSession RS in ARS)
{
ListViewItem LVI = lvSearchResults.Items.Add(RS.Description);
LVI.SubItems.Add(RS.CreatedDate.ToString());
OCL.User Owner = OSystem.GetUserById(RS.OwnerID);
LVI.SubItems.Add(Owner.Description);
LVI.SubItems.Add(RS.IsPresentation.ToString());
LVI.SubItems.Add(RS.CurrentRecordings(LUser).Count.ToString());
LVI.Tag = RS;
}
lblInformation.Text = "Search Results - Check recording sessions then click Add.";
lblInformation.ForeColor = Color.Black;
}
示例14: MarkSessionForDeletion
internal bool MarkSessionForDeletion(OCL.User AccessingUser,OCL.RecordingSession RS)
{
string sSQL = "";
int numrecs = 0;
try
{
sSQL = "DELETE FROM tblGroupTokens WHERE " +
" ObjectTypeId = " + Convert.ToInt32(OCL.OysterObjectType.RecordingSession) +
" AND ObjectId = " + RS.ID;
numrecs = RF.ExecuteCommandNonQuery(sSQL);
sSQL = "SELECT tblNotes.Id from tblNotes left outer join tblSession ON " +
"tblSession.Id = tblNotes.SessionId WHERE tblSession.Id = " + RS.ID;
DataSet DS = RF.GetDataSet(sSQL);
foreach(DataRow R1 in DS.Tables[0].Rows)
{
int NoteID = Convert.ToInt32(R1[0]);
sSQL = "DELETE FROM tblGroupTokens Where " +
" AND ObjectTypeId = " + Convert.ToInt32(OCL.OysterObjectType.Note)+
" AND ObjectId = " + NoteID;
numrecs = RF.ExecuteCommandNonQuery(sSQL);
sSQL = "SELECT ID from tblAttachments WHERE NoteId = " + NoteID;
DataSet DS2 = RF.GetDataSet(sSQL);
foreach(DataRow R2 in DS2.Tables[0].Rows)
{
int AttachmentID = Convert.ToInt32(R2[0]);
sSQL = "DELETE FROM tblGroupTokens Where " +
" AND ObjectTypeId = " + Convert.ToInt32(OCL.OysterObjectType.Attachment) +
" AND ObjectId = " + AttachmentID;
numrecs = RF.ExecuteCommandNonQuery(sSQL);
}
}
sSQL = "UPDATE tblSession SET OwnerId = " +
((OCL.User)this.GetUnassignedObject(OCL.OysterUnassignedObjects.User)).mvarID +
", IsMarkedForDeletion <> 0" +
" WHERE ID = " + RS.ID;
numrecs = RF.ExecuteCommandNonQuery(sSQL);
if(numrecs > 0)
return true;
else
return false;
}
catch(Exception Err)
{
throw new Exception(Err.Message);
}
}
示例15: PlayerOptions
public PlayerOptions(string DefaultOysterAddress,int DefaultOysterConnectionPort,int DefaultOysterFilePort, string DefaultOysterDeviceID,string OysterDeviceFriendlyName, bool ManualConfiguration,OCL.OysterRecordingSessionSearchType DefaultSearchType, string DefaultBeginDate, string DefaultEndDate)
{
ClassInit(DefaultOysterAddress,DefaultOysterConnectionPort,DefaultOysterFilePort,DefaultOysterDeviceID,OysterDeviceFriendlyName,ManualConfiguration,DefaultSearchType,DefaultBeginDate,DefaultEndDate);
}