Beispiel #1
0
        private void btnFinished_Click(object sender, System.EventArgs e)
        {
            FrmParent.PostActivity();
            int VSSId = 0;
            foreach(OysterClassLibrary.VideoStorageServer VSS in AV)
                if(VSS.ControlAddress + ": " + VSS.ControlPort == cbVSS.Text)
                    VSSId = VSS.ID;
            if(VSSId == 0)
            {
                this.DialogResult = DialogResult.Abort;
                MessageBox.Show("Unable to aquire the Video Storage Server Id... aborting Create New Scene...");
                return;
            }
            if(RM != null)
            {
                RM.Update(tbDescription.Text,VSSId);
                Trace.WriteLine("Edited Scene: " + RM.Description +"(" + RM.ID.ToString() + ")",System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName + "." + System.Reflection.MethodBase.GetCurrentMethod().Name);

            }
            else
            {
                OysterClassLibrary.Functions F = new OysterClassLibrary.Functions();
                F.CreateRoom(tbDescription.Text,VSSId);
                Trace.WriteLine("Created Scene: " + tbDescription.Text +"(" + tbDescription + ")",System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName + "." + System.Reflection.MethodBase.GetCurrentMethod().Name);

                F.Dispose();
            }
        }