示例#1
0
        public StatusControl(ControlWindow main)
        {
            this.main = main;
            this.SelectionMode = SelectionMode.MultiExtended;
			
            DrawMode = DrawMode.OwnerDrawFixed;

            ItemHeight = 30;
			
            dropDown = new ToolStripDropDownMenu();
            dropDown.Items.Add("Clear Disconnected").Click += HandleClearClick;
            dropDown.Items.Add("Sort").Click += HandleSortClick;
            ;
            dropDown.Items.Add("Group on top").Click += HandleTopClick;
            //dropDown.Items.Add ("History").Click += ShowHistory;
            dropDown.Items.Add("Follow").Click += FollowPlayer;
            //dropDown.Items.Add ("Tp nuxas to ").Click += TpNuxasTo;
            dropDown.Items.Add("Tp Player to ").Click += TpPlayerTo;
            dropDown.Items.Add("Pardon").Click += PardonPlayer;
            dropDown.Items.Add(new ToolStripSeparator());
            dropDown.Items.Add("Kick").Click += KickPlayer;
            dropDown.Items.Add("Ban 30 min").Click += BanPlayer30;
            dropDown.Items.Add("Ban").Click += BanPlayer;
			
        }
示例#2
0
        public MapControl(ControlWindow main)
        {
            this.MainWindow     = main;
            this.DoubleBuffered = true;
            this.BackColor      = System.Drawing.Color.Black;
            LoadRegions();

            this.Position.X = -Width / 2;
            this.Position.Z = -Height / 2;
        }
示例#3
0
        public MapControl(ControlWindow main)
        {
            this.MainWindow = main;
            this.DoubleBuffered = true;
            this.BackColor = System.Drawing.Color.Black;
            LoadRegions();

            this.Position.X = - Width / 2;
            this.Position.Z = - Height / 2;
        }
示例#4
0
        public static void Main()
        {
            Directory.SetCurrentDirectory(MineSharp.Settings.BaseWorldsPath);
            Application.SetCompatibleTextRenderingDefault(true);
			
            using (ControlWindow window = new ControlWindow())
            {
                Application.Run(window);
            }
            ServerCommander.Shutdown();
            Application.Exit();
        }
示例#5
0
        public static void Main()
        {
            Directory.SetCurrentDirectory(MineSharp.Settings.BaseWorldsPath);
            Application.SetCompatibleTextRenderingDefault(true);

            using (ControlWindow window = new ControlWindow())
            {
                Application.Run(window);
            }
            ServerCommander.Shutdown();
            Application.Exit();
        }
示例#6
0
        public StatusControl(ControlWindow main)
        {
            this.main          = main;
            this.SelectionMode = SelectionMode.MultiExtended;

            DrawMode = DrawMode.OwnerDrawFixed;

            ItemHeight = 30;

            dropDown = new ToolStripDropDownMenu();
            dropDown.Items.Add("Clear Disconnected").Click += HandleClearClick;
            dropDown.Items.Add("Sort").Click += HandleSortClick;
            ;
            dropDown.Items.Add("Group on top").Click += HandleTopClick;
            //dropDown.Items.Add ("History").Click += ShowHistory;
            dropDown.Items.Add("Follow").Click += FollowPlayer;
            //dropDown.Items.Add ("Tp nuxas to ").Click += TpNuxasTo;
            dropDown.Items.Add("Tp Player to ").Click += TpPlayerTo;
            dropDown.Items.Add("Pardon").Click        += PardonPlayer;
            dropDown.Items.Add(new ToolStripSeparator());
            dropDown.Items.Add("Kick").Click       += KickPlayer;
            dropDown.Items.Add("Ban 30 min").Click += BanPlayer30;
            dropDown.Items.Add("Ban").Click        += BanPlayer;
        }