예제 #1
0
        public override DataSet Clone()
        {
            WorkstationlDS cln = ((WorkstationlDS)(base.Clone()));

            cln.InitVars();
            return(cln);
        }
예제 #2
0
        //Interface
        public dlgTerminalWorkstationDetail(ref WorkstationlDS workstation)
        {
            //Constructor
            try {
                //Required designer support
                InitializeComponent();
                this.btnOk.Text     = CMD_OK;
                this.btnCancel.Text = CMD_CANCEL;

                //Set mediator service, data, and titlebar caption
                this.mWorkstationDS = workstation;
                if (this.mWorkstationDS.TerminalWorkstationTable.Count > 0)
                {
                    this.m_sWorkstationName = this.mWorkstationDS.TerminalWorkstationTable[0].Name;
                    this.Text = (this.m_sWorkstationName != "") ? "Terminal Workstation (" + this.m_sWorkstationName.Trim() + ")" : "Terminal Workstation (New)";
                }
                else
                {
                    this.Text = "Terminal Workstation (Data Unavailable)";
                }
            }
            catch (Exception ex) { throw ex; }
        }