示例#1
0
        private void uc1Game_ClickTorpedo(object sender, WpfControlLibraryGame.PositionEventArgs e)
        {
            string x = Convert.ToString(e.X);
            string y = Convert.ToString(e.Y);

            MessageBox.Show("Torpedo position are: x = " + x + " y = " + y);
        }
示例#2
0
        private void Uc1Game_MoveTorpedoAndPeriscope(object sender, WpfControlLibraryGame.PositionEventArgs e)
        {
            //
            string x = Convert.ToString(e.X);

            MessageBox.Show("Torpedo left position = " + x);
        }