示例#1
0
文件: Gui.cs 项目: moisterrific/TSGui
        void ListBoxUsernames_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            UserOptions options = new UserOptions();
            ListBox     lb      = (sender as ListBox);

            List <TSPlayer> tsplrs = TShock.Utils.FindPlayer(lb.Items[lb.SelectedIndex].ToString());

            if (tsplrs.Count == 0)
            {
                return;
            }

            options.TSPlayer = tsplrs[0];
            options.ShowDialog();
        }
示例#2
0
文件: Gui.cs 项目: elevatorguy/TSGui
        void ListBoxUsernames_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            UserOptions options = new UserOptions();
            ListBox lb = (sender as ListBox);

            List<TSPlayer> tsplrs = TShock.Utils.FindPlayer(lb.Items[lb.SelectedIndex].ToString());

            if (tsplrs.Count == 0)
                return;

            options.TSPlayer = tsplrs[0];
            options.ShowDialog();
        }