public frmSimTlv(SimTlv objTlv, EFrmType eFrmType)
        {
            InitializeComponent();

            m_eFrmType = eFrmType;
            switch (m_eFrmType)
            {
            case EFrmType.ADD:
                Text = "Create new Tlv";
                break;

            case EFrmType.EDIT:
                Text = "Edit Tlv";
                break;
            }

            if (objTlv == null)
            {
                m_objSimTlv = new SimTlv();
            }
            else
            {
                m_objSimTlv = objTlv;
            }
        }
Exemple #2
0
        public frmSmsMessage(SimSession objSession, SimMessage objMessage, EFrmType eType, int nMultipartMode, int nUseGsmEncoding)
        {
            InitializeComponent();

            m_objConstants             = new AxSms.Constants();
            m_objSmsAsm                = new AxSms.Smpp();
            m_objSmsAsm.MultipartMode  = nMultipartMode;
            m_objSmsAsm.UseGsmEncoding = nUseGsmEncoding;
            m_eFrmType = eType;

            switch (m_eFrmType)
            {
            case EFrmType.CREATE:
                Text         = "Create new SMS message";
                btnSend.Text = "Ok";
                break;

            case EFrmType.EDIT:
                Text         = "Edit SMS message";
                btnSend.Text = "Ok";
                break;

            case EFrmType.VIEW:
                Text            = "View SMS message";
                btnCancel.Text  = "Close";
                btnSend.Visible = false;
                break;

            case EFrmType.SEND:
                Text         = "Send SMS message";
                btnSend.Text = "Send";
                break;
            }

            if (objSession != null)
            {
                if (objSession.Ip.Contains("."))
                {   // IPv4 notation
                    lblIp.Text = string.Format("{0}:{1}", objSession.Ip, objSession.Port);
                }
                else
                {   // IPv6 notiation
                    lblIp.Text = string.Format("[{0}]:{1}", objSession.Ip, objSession.Port);
                }
                lblSystemId.Text = objSession.SystemId;
            }

            if (objMessage == null)
            {
                m_objMessage = new SimMessage();
            }
            else
            {
                m_objMessage = objMessage;
            }
        }
Exemple #3
0
        public frmGrids(EFrmType eFrmType)
        {
            InitializeComponent();

            _eFrmType = eFrmType;

            switch (_eFrmType)
            {
            case EFrmType.employees:
                Text             = "Zoznam zamestnancov";
                treeView.Visible = false;
                break;

            case EFrmType.departments:
                Text = "Zoznam oddelení";
                break;
            }
            RefreshGrid();
        }