Ejemplo n.º 1
0
        // Loads packet based on user selection
        private void TransmitBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                PacketBox.Clear();

                if (TransmitBox.SelectedItems.Count > 0)
                {
                    packetLabel.Text = TransmitBox.SelectedItems[0].Text;

                    PacketBox.Text = XMLInterfaces.ReturnPacketDataDisplay(TransmitList.SelectedItem.ToString(), TransmitBox.SelectedItems[0].Text);
                }
            }
            catch
            {
                // No catch needed as no change
            }
        }
Ejemplo n.º 2
0
        public FrmMain()
        {
            InitializeComponent();

            SetCursorPicture(true);

            MotaScene.Width = GameIni.WindowWidth;
            MotaScene.Height = GameIni.WindowHeight;

            timer1.Interval = GameIni.RefreshInterval;

            (PropShow = new PacketBox(this.PropPack.Width, this.PropPack.Height)).Enable = true;

            IniGameSelect();

            MotaWorld.GetInstance().MapManager.OnIniEvent += new MainGame.IniEventHandle(Binding);

            SetBack();
        }