コード例 #1
0
        public LevelViewParent()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            // Default
            panelShowToolbar.Hide();
            panelToolbar.Show();

            // Easier than creating a resource file?

            System.Reflection.Assembly ass = typeof(LevelViewParent).Module.Assembly;
            Stream stm = ass.GetManifestResourceStream("m.toolstrip.bmp");

            imageList1.Images.AddStrip(new Bitmap(stm));

            TemplateDocTemplate doct = (TemplateDocTemplate)DocManager.FindDocTemplate(typeof(TemplateDoc));

            doct.DocAdded   += new DocTemplate.DocAddedHandler(TemplateDocTemplate_DocAdded);
            doct.DocRemoved += new DocTemplate.DocRemovedHandler(TemplateDocTemplate_DocRemoved);

            // Combo index 0

            FillCombo();
            comboDocs.SelectedIndex = 0;
            UpdateZoomSelection();
            view.ScaleChanged += new EventHandler(View_ScaleChanged);
        }
コード例 #2
0
ファイル: AdminForm.cs プロジェクト: nysascape/CS3App
 private void HidePanels(System.Windows.Forms.Panel panelToShow)
 {
     // Hide all panels except admin selection panel and desired form passed as an arugment
     foreach (Panel panel in Controls.OfType <Panel>().Where(p => p != panelToShow && p != adminPanel))
     {
         panel.Hide();
     }
     panelToShow.Show();
 }
コード例 #3
0
ファイル: Main.cs プロジェクト: jariz/jZm
 void boxshow(Panel p)
 {
     foreach (Control x in Controls)
     {
         if (x.Name.StartsWith("box_"))
             x.Hide();
     }
     p.Show();
 }
コード例 #4
0
 static public void wyswietl_panel(System.Windows.Forms.Panel instancja, int nr_panelu)
 {
     if (Pierwsza_pomoc.animacja == 0)
     {
         instancja.Enabled = true;
         instancja.Show();
         Pierwsza_pomoc.wybrany_panel = nr_panelu;
     }
 }
コード例 #5
0
        /// <summary>
        /// Creates the waiting box.
        /// </summary>
        /// User:Ryan  CreateTime:2012-8-5 16:22.
        private void CreateWaitingBox()
        {
            if (!this._IsWaitingBoxCreated)
            {
                #region CreateWaitingBox

                this.waitingBox = new System.Windows.Forms.Panel();
                //ControlHelper.BindMouseMoveEvent(this.waitingBox);
                waitingBox.BackColor = Color.FromArgb(234, 244, 252);
                ////innerpanel
                waitingBoxInnerPanel                = new TXPanel();
                waitingBoxInnerPanel.Width          = 280;
                waitingBoxInnerPanel.Height         = 80;
                waitingBoxInnerPanel.CornerRadius   = 6;
                waitingBoxInnerPanel.BackBeginColor = Color.White;
                waitingBoxInnerPanel.BackEndColor   = Color.White;
                waitingBoxInnerPanel.Padding        = new System.Windows.Forms.Padding(8, 5, 5, 5);
                ////label
                waitingBoxLab              = new Label();
                waitingBoxLab.TextAlign    = ContentAlignment.MiddleLeft;
                waitingBoxLab.AutoEllipsis = true;
                waitingBoxLab.Dock         = DockStyle.Fill;
                //waitingBox.AutoSize = false;
                //ControlHelper.BindMouseMoveEvent(this.waitingBoxLab);
                waitingBoxInnerPanel.Controls.Add(waitingBoxLab);
                ////pictruebox
                PictureBox pb = new PictureBox();
                pb.Dock          = DockStyle.Left;
                pb.Size          = new System.Drawing.Size(72, 70);
                pb.Image         = LoadResource.GetRandomLoadImage();
                pb.Margin        = new System.Windows.Forms.Padding(3, 3, 20, 3);
                pb.SizeMode      = PictureBoxSizeMode.StretchImage;
                this._waitPicBox = pb;
                waitingBoxInnerPanel.Controls.Add(pb);
                ////...
                waitingBox.Controls.Add(waitingBoxInnerPanel);
                waitingBox.BringToFront();
                if (!this.Controls.Contains(waitingBox))
                {
                    this.Controls.Add(waitingBox);
                }
                waitingBox.Show();
                this._IsWaitingBoxCreated = true;
                #endregion
            }

            Rectangle rect = this.WorkRectangle;
            waitingBox.Width           = rect.Width;
            waitingBox.Height          = rect.Height;
            waitingBox.Location        = new Point(rect.X, rect.Y);
            this._waitPicBox.Image     = LoadResource.GetRandomLoadImage();
            waitingBox.BackgroundImage = this.CreateBacgroundImage();
            //waitingBox.BackgroundImage = Properties.Resources.logo_mini;
            waitingBox.BackgroundImageLayout = ImageLayout.Stretch;
        }
コード例 #6
0
        private void EnableDisableMenu()
        {
            if (lstObjInStack != null && lstObjInStack.Count > 0 &&
                (lstObjInStack[lstObjInStack.Count - 1] == "LicenseManagement" || lstObjInStack[lstObjInStack.Count - 1] == "PurchaseManagement" ||
                 lstObjInStack[lstObjInStack.Count - 1] == "ContactUs" || lstObjInStack[lstObjInStack.Count - 1] == "FAQ"))
            {
                _objPanelMenu.Hide();
                _objPictureBox1.Show();
            }
            else if (_objPanelDetail.Controls.Count > 1)
            {
                if (lstObjInStack != null && lstObjInStack.Count > 0 &&
                    (lstObjInStack[lstObjInStack.Count - 1] == "QuestionBank"))
                {
                    //_questionBankToolStripMenuItem.Checked = true;
                    _addToolStripMenuItem.Visible    = true;
                    _editToolStripMenuItem.Visible   = true;
                    _deleteToolStripMenuItem.Visible = true;

                    AuthorizationOperations obj = new AuthorizationOperations();

                    _addToolStripMenuItem.Enabled    = obj.isUserAccessible(OperationNames.TypeOfOperations.Question_Manage);
                    _editToolStripMenuItem.Enabled   = obj.isUserAccessible(OperationNames.TypeOfOperations.Question_Manage);
                    _deleteToolStripMenuItem.Enabled = obj.isUserAccessible(OperationNames.TypeOfOperations.Question_Manage);
                }
                else
                {
                    //_questionBankToolStripMenuItem.Enabled = true;
                    _addToolStripMenuItem.Visible    = false;
                    _editToolStripMenuItem.Visible   = false;
                    _deleteToolStripMenuItem.Visible = false;
                }
                _objPanelMenu.Show();
                _objPictureBox1.Hide();
            }
            else
            {
                _objPanelMenu.Hide();
                _objPictureBox1.Show();
            }
        }
コード例 #7
0
ファイル: Utility.cs プロジェクト: faksam/My_FPT_C-Sharp
        public static void Embed(Panel p, Form f)
        {
            p.Controls.Clear(); // delete all child controls in panel

            f.FormBorderStyle = FormBorderStyle.None;
            f.TopLevel = false;
            f.Visible = true;
            f.Dock = DockStyle.Fill;

            p.Controls.Add(f);//add new form into panel
            p.Show(); // show panel
        }
コード例 #8
0
ファイル: StartergyGrid.cs プロジェクト: BahNahNah/SatoshiBot
        public StratergySquare(Control parent, Point location)
        {
            DrawNum = 0;
            _pObj = new Panel();
            _pObj.Size = new Size(40, 40);
            _pObj.BackColor = Color.Gray;
            _pObj.Parent = parent;
            _pObj.Location = location;
            _pObj.AutoSize = true;
            _pObj.Show();
            _pObj.Click += _pObj_Click;

            IsGlowing = false;
        }
コード例 #9
0
ファイル: MainWindow.cs プロジェクト: Isola92/NeckBoard
 private void expandPanel(Panel panelName, Label l, PictureBox pb)
 {
     if (panelName.Visible == true)
     {
         panelName.Hide();
         l.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(207)))), ((int)(((byte)(207)))));
         rotateImage(pb, RotateFlipType.Rotate90FlipX);
     }
     else
     {
         panelName.Show();
         l.ForeColor = System.Drawing.Color.Coral;
         rotateImage(pb, RotateFlipType.Rotate90FlipX);
     }
 }
コード例 #10
0
 private void modifyTenantToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Panel display = new Panel();
     Presentation.UpdateTenant tenant = new Presentation.UpdateTenant();
     tenant.BringToFront();
     tenant.TopLevel = false;
     tenant.Visible = true;
     tenant.FormBorderStyle = FormBorderStyle.None;
     tenant.Dock = DockStyle.Fill;
     display.Controls.Add(tenant);
     display.Size = panel1.Size;
     panel1.Controls.Add(display);
     display.Show();
     display.BringToFront();
     tenant.Show();
 }
コード例 #11
0
ファイル: About.cs プロジェクト: prezz/Fuzzy-Gammon
        public AboutGUI()
        {
            this.Width = 415;
            this.Height = 345;
            this.Text = "About";
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.StartPosition = FormStartPosition.CenterParent;
            this.ControlBox = false;

            Panel frame = new Panel();
            frame.BorderStyle = BorderStyle.FixedSingle;
            frame.Left = 15;
            frame.Width = 380;
            frame.Top = 15;
            frame.Height = 258;
            frame.Show();
            this.Controls.Add( frame );

            Label about = new Label();
            //about.BackColor = System.Drawing.Color.Green;
            about.Left = 2;
            about.Width = frame.Width - 4;
            about.Top = 2;
            about.Height = frame.Height - 4;
            about.Show();
            frame.Controls.Add( about );

            string a = "";

            a += "This backgammon program is freeware and has been part of a Master thesis on intelligent game agents. The original program and its associated paper were composed by Mikael Heinze at Aalborg University Esbjerg in Denmark in the period 2nd February to 21st December 2004.\n\n";

            a += "The programs purpose was to work as a problem/test domain for an adaptive and intelligent computer player named Fuzzeval based on fuzzy logic and fuzzy control. For evaluation purpose other computer players based on other principles has also been implemented. To configure an opponent (agent) one can select what decision module that is to be used for move and cube evaluation.\n\n";

            a += "This is however a greatly improved version of this original backgammon program completed at the 26th of April 2005. This version includes a large range of new features, improvements and bug fixes. Examples are a stronger computer opponent named TD-NN 2 and implementation of the cube. It is however only the two TD-NN evaluators that in reality supports cube handling.\n\n";

            a += "Happy playing.";

            about.Text = a;

            Button ok = new Button();
            ok.Text = "OK";
            ok.Left = 320;
            ok.Top = 280;
            ok.Click += new EventHandler(ok_Click);
            ok.Show();
            this.Controls.Add( ok );
        }
コード例 #12
0
        /// <summary>
        /// Event when Leaderboard button is clicked on main form.
        /// Shows the header and the listBox with the top 5 players
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button_leaderboard_Click(object sender, EventArgs e)
        {
            gameMain.ActiveForm.BackgroundImage       = null;
            gameMain.ActiveForm.BackgroundImageLayout = ImageLayout.Stretch;

            //Creates a listBox for the top 5 leaderboard
            listBox_leaderboard = new ListBox();
            listBox_leaderboard.FormattingEnabled = true;
            listBox_leaderboard.Location          = new System.Drawing.Point(251, 200);
            listBox_leaderboard.Name     = "listBox_leaderboard";
            listBox_leaderboard.Size     = new System.Drawing.Size(200, 200);
            listBox_leaderboard.TabIndex = 0;
            listBox_leaderboard.Font     = new System.Drawing.Font("Comic Sans MS", 16F, FontStyle.Bold);

            //New panel
            panel_leaderboard           = new Panel();
            panel_leaderboard.Dock      = System.Windows.Forms.DockStyle.Fill;
            panel_leaderboard.Location  = new System.Drawing.Point(0, 0);
            panel_leaderboard.Size      = new System.Drawing.Size(gameMain.ActiveForm.Width, gameMain.ActiveForm.Height);
            panel_leaderboard.Visible   = true;
            panel_leaderboard.BackColor = Color.AntiqueWhite;

            //Creates a Leaderboard Header
            label_leaderboard_header           = new Label();
            label_leaderboard_header.AutoSize  = true;
            label_leaderboard_header.BackColor = System.Drawing.Color.Transparent;
            label_leaderboard_header.Size      = new System.Drawing.Size(200, 200);
            label_leaderboard_header.Text      = "LEADERBOARD";
            label_leaderboard_header.Font      = new System.Drawing.Font("Comic Sans MS", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            //x_label = (x_label - label_leaderboard_header.Width) / 2;
            label_leaderboard_header.Location = new System.Drawing.Point(150, 50);
            label_leaderboard_header.Name     = "label_leaderboard_header";


            //Adds objects to panel
            panel_leaderboard.Controls.Add(label_leaderboard_header);
            panel_leaderboard.Controls.Add(listBox_leaderboard);
            this.Controls.Add(panel_leaderboard);
            button_howTo.Hide();
            button_leaderboard.Hide();
            button_start.Hide();
            panel_leaderboard.BringToFront();
            panel_leaderboard.Show();
            label_leaderboard_header.Show();
            get_leaderboard();
        }
コード例 #13
0
ファイル: Main.cs プロジェクト: DanielTuttos/sistemas-csharp
        private void button5_Click(object sender, System.EventArgs e)
        {
            //get username
            if (textBox1.Text != "")
            {
                string query = "";
                query = "SELECT * FROM USERACCESS WHERE(UserName='******')";
                OleDbDataAdapter cmdAdapter = new OleDbDataAdapter();
                OleDbCommand     cmd        = new OleDbCommand(query, this.oleDbConnection1);
                cmdAdapter.SelectCommand             = cmd;
                cmdAdapter.SelectCommand.CommandType = CommandType.Text;
                this.oleDbConnection1.Open();
                profileSet1.Clear();
                cmdAdapter.Fill(profileSet1, "UserAccess");
                this.oleDbConnection1.Close();
            }
            int found = BindingContext[profileSet1, "UserAccess"].Count;
            int valid = 0;

            //check password
            if (found != 0)
            {
                if (textBox2.Text == label3.Text)
                {
                    valid = 1;
                }
            }
            if (valid == 1)
            {
                //check profile
                panel2.Hide();
                this.menuItem1.Visible  = true;
                this.menuItem6.Visible  = true;
                this.menuItem18.Visible = true;
                panel1.Show();
                textBox1.Text = "";
                textBox2.Text = "";
            }
            else
            {
                MessageBox.Show("You have entered an invalid user name and/or password. Please try again.", "Invalid User Name or Password", MessageBoxButtons.OK, MessageBoxIcon.Error);
                textBox2.Text = "";
            }
        }
コード例 #14
0
        void DisplayGraphItem(object sender, EventArgs e)
        {
            FormForDisplay TMPWin = new FormForDisplay();
            Panel Pan = new Panel();
            Pan.Show();

            cExtendedList ListValue = new cExtendedList();
            for (int Idx = 0; Idx < this.listViewForClassifHistory.Items.Count; Idx++)
            {
               // this.listViewForCellPopulations.Items[Idx];
                ListValue.Add(double.Parse(this.listViewForClassifHistory.Items[Idx].SubItems[2].Text));
            }

             //   ListValue.Name = this.dt.Columns[e.ColumnIndex].ColumnName;

            cPanelHisto PanelHisto = new cPanelHisto(ListValue, eGraphType.LINE, eOrientation.HORIZONTAL);
            TMPWin.Controls.Add(PanelHisto.WindowForPanelHisto.panelForGraphContainer);
            TMPWin.Show();
        }
コード例 #15
0
 private void seriousNamesComeOnRobert(string fileExt)
 {
     string path = @"C:\ProjectSnowshoes\User\" + Properties.Settings.Default.username[Properties.Settings.Default.whoIsThisCrazyDoge] + @"\Pictures";
     for (int i = 0; i < Directory.GetFiles(path, fileExt, SearchOption.AllDirectories).Length; i++)
     {
         FileInfo fiInf = new FileInfo(Directory.GetFiles(path, fileExt, SearchOption.AllDirectories)[i]);
         char[] separator = new char[] { '.' };
         string str2 = fiInf.Name.Split(separator)[0];
         Panel panel = new Panel();
         panel.Show();
         panel.BackColor = Color.Transparent;
         panel.Left = 0;
         panel.Width = 180;
         panel.Height = 110;
         panel.Margin = new Padding(10);
         this.imagePanel.Controls.Add(panel);
         PictureBox box = new PictureBox();
         box.Show();
         box.Width = 160;
         box.Height = 90;
         box.Left = 10;
         box.BackgroundImage = Image.FromFile(fiInf.FullName);
         box.BackgroundImageLayout = ImageLayout.Zoom;
         panel.Controls.Add(box);
         Label label = new Label();
         label.Show();
         label.Width = 170;
         label.AutoEllipsis = true;
         label.Height = 14;
         label.TextAlign = ContentAlignment.MiddleCenter;
         label.Font = new Font(Properties.Settings.Default.fontsOfScience[Properties.Settings.Default.whoIsThisCrazyDoge], 11f);
         label.BackColor = Color.Transparent;
         label.ForeColor = Color.DarkGray;
         label.Left = 5;
         label.Text = str2;
         label.Top = 0x5d;
         panel.Controls.Add(label);
         panel.Click += (senderA, args) => Process.Start(fiInf.FullName);
         box.Click += (senderA, args) => Process.Start(fiInf.FullName);
         label.Click += (senderA, args) => Process.Start(fiInf.FullName);
     }
 }
コード例 #16
0
        private void hideShowPanel(object s, EventArgs e)
        {
            if (annotPanel == null)
            {
                return;
            }

            if (annotPanel.Visible)
            {
                annotPanel.Hide();
                theSplitter.Hide();
                hideBtn.Text = "+Notes+";
            }
            else
            {
                theSplitter.Show();
                annotPanel.Show();
                hideBtn.Text = "-Notes-";
            }
        }
コード例 #17
0
        /*设置空间状态*/
        private void SetControlState(CtlState state)
        {
            switch (state)
            {
            case CtlState.audit:
                //pnAuditCheck.Visible = true;
                //pnAuditFilter.Visible = true;
                pnAuditTrial.Show();
                pnDevice.Hide();
                pnSource.Hide();
                break;

            default:
                pnAuditCheck.Visible  = false;
                pnAuditFilter.Visible = false;

                pnDevice.Visible = true;
                pnSource.Visible = true;
                break;
            }
        }
コード例 #18
0
        private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
        {
            switch (toolBar1.Buttons.IndexOf(e.Button))
            {
            case 0:
                view.SetLayerFlags(view.GetLayerFlags() ^ LayerFlags.Templates);
                break;

            case 1:
                view.SetLayerFlags(view.GetLayerFlags() ^ LayerFlags.Gobs);
                break;

            case 2:
                view.SetLayerFlags(view.GetLayerFlags() ^ LayerFlags.Areas);
                break;

            case 3:
                panelToolbar.Hide();
                panelShowToolbar.Show();
                break;
            }
        }
コード例 #19
0
ファイル: MainForm.cs プロジェクト: thanSkourtan/museum
 /*************************************************makes the panels appear/disappear***************************************************************/
 private void PanelDisplay(Panel panel, ToolStripMenuItem toolStripMenuItem)
 {
     /*make the corresponding panel appear/disappear*/
     if (panel.Visible == false)
     {
         toolStripMenuItem.Checked = true;
         panel.Show();
     }
     else
     {
         panel.Hide();
         toolStripMenuItem.Checked = false;
     }
 }
コード例 #20
0
ファイル: AgentGUI.cs プロジェクト: prezz/Fuzzy-Gammon
        public AgentGUI( string caption )
        {
            m_Id = ++m_IdCounter;
            RadioGroupUpdater[] tmpOld = m_UpdaterList;
            m_UpdaterList = new RadioGroupUpdater[m_Id];
            if ( tmpOld != null )
                for ( int i = 0; i < tmpOld.Length; i++ )
                    m_UpdaterList[i] = tmpOld[i];
            m_UpdaterList[m_Id-1] = new RadioGroupUpdater( SyncPlayerSelectors );

            this.Text = caption;
            this.Width = 430;
            this.Height = 340;
            this.MaximizeBox = false;
            this.FormBorderStyle = FormBorderStyle.FixedSingle;

            m_GroupBoxPlayer = new GroupBox();
            m_GroupBoxPlayer.Text = "Play as";
            m_GroupBoxPlayer.Width = 100;
            m_GroupBoxPlayer.Height = 150;
            m_GroupBoxPlayer.Left = 10;
            m_GroupBoxPlayer.Top = 25;
            m_GroupBoxPlayer.Show();
            this.Controls.Add( m_GroupBoxPlayer );

            m_PlayerLight = new RadioButton();
            m_PlayerLight.Text = "Light";
            m_PlayerLight.Width = 50;
            m_PlayerLight.Left = 25;
            m_PlayerLight.Top = 50;
            m_PlayerLight.Checked = true;
            m_PlayerLight.CheckedChanged += new EventHandler( m_PlayerSelect_Click );
            m_PlayerLight.Show();
            m_GroupBoxPlayer.Controls.Add( m_PlayerLight );

            m_PlayerDark = new RadioButton();
            m_PlayerDark.Text = "Dark";
            m_PlayerDark.Width = 50;
            m_PlayerDark.Left = 25;
            m_PlayerDark.Top = 80;
            m_PlayerDark.CheckedChanged += new EventHandler( m_PlayerSelect_Click );
            m_PlayerDark.Show();
            m_GroupBoxPlayer.Controls.Add( m_PlayerDark );

            m_PlayerNone = new RadioButton();
            m_PlayerNone.Text = "None";
            m_PlayerNone.Width = 50;
            m_PlayerNone.Left = 25;
            m_PlayerNone.Top = 20;
            m_PlayerNone.CheckedChanged += new EventHandler( m_PlayerSelect_Click );
            m_PlayerNone.Show();
            m_GroupBoxPlayer.Controls.Add( m_PlayerNone );

            m_PlayerBoth = new RadioButton();
            m_PlayerBoth.Text = "Both";
            m_PlayerBoth.Width = 50;
            m_PlayerBoth.Left = 25;
            m_PlayerBoth.Top = 110;
            m_PlayerBoth.CheckedChanged += new EventHandler( m_PlayerSelect_Click );
            m_PlayerBoth.Show();
            m_GroupBoxPlayer.Controls.Add( m_PlayerBoth );

            m_EvaluatorLabel = new Label();
            m_EvaluatorLabel.Text = "Evaluator";
            m_EvaluatorLabel.Left = 10;
            m_EvaluatorLabel.Top = 190;
            m_EvaluatorLabel.AutoSize = true;
            m_EvaluatorLabel.Show();
            this.Controls.Add( m_EvaluatorLabel );

            m_PluginSelector = new ComboBox();
            m_PluginSelector.DropDownStyle = ComboBoxStyle.DropDownList;
            m_PluginSelector.Left = 10;
            m_PluginSelector.Top = 210;
            m_PluginSelector.Width = 100;
            m_PluginSelector.Items.Add( "None" );
            m_PluginSelector.SelectedIndex = 0;
            m_PluginSelector.Show();
            this.Controls.Add( m_PluginSelector );

            m_LearnPanel = new Panel();
            m_LearnPanel.BorderStyle = BorderStyle.None;
            m_LearnPanel.Left = 5;
            m_LearnPanel.Top = 240;
            m_LearnPanel.Width = 100;
            m_LearnPanel.Height = 25;
            m_LearnPanel.Show();
            this.Controls.Add( m_LearnPanel );

            m_Learn = new CheckBox();
            m_Learn.Text = "Learn";
            m_Learn.Left = 5;
            m_Learn.Top = 0;
            m_Learn.Checked = false;
            m_Learn.CheckedChanged += new EventHandler( m_Learn_CheckedChanged );
            m_Learn.Show();
            m_LearnPanel.Controls.Add( m_Learn );
            if (m_Id == 1)
                m_Learn.Checked = true;

            m_PossibilitiesLabel = new Label();
            m_PossibilitiesLabel.Text = "Possible moves and score";
            m_PossibilitiesLabel.Left = 130;
            m_PossibilitiesLabel.Top = 10;
            m_PossibilitiesLabel.AutoSize = true;
            m_PossibilitiesLabel.Show();
            this.Controls.Add( m_PossibilitiesLabel );

            m_PossibilitiesList = new ListBox();
            m_PossibilitiesList.Left = 130;
            m_PossibilitiesList.Top = 30;
            m_PossibilitiesList.Width = 280;
            m_PossibilitiesList.Height = 250;
            m_PossibilitiesList.Show();
            this.Controls.Add( m_PossibilitiesList );

            m_NumberPossibilitiesLabel = new Label();
            m_NumberPossibilitiesLabel.Text = "Possibilities: 0";
            m_NumberPossibilitiesLabel.Left = 130;
            m_NumberPossibilitiesLabel.Top = 280;
            m_NumberPossibilitiesLabel.AutoSize = true;
            m_NumberPossibilitiesLabel.Show();
            this.Controls.Add( m_NumberPossibilitiesLabel );

            SyncAllSelectors();
            SyncAllSelectors();
        }
コード例 #21
0
ファイル: Space.cs プロジェクト: IndigoBox/ProjectSnowshoes
        private void goGenerateTilesFriendship()
        {
            
            String pathPlease = @"C:\ProjectSnowshoes\User\" + Properties.Settings.Default.username[Properties.Settings.Default.whoIsThisCrazyDoge] + @"\Space";

            for (int i = 0; i < Directory.GetFiles(pathPlease,"*.*",SearchOption.TopDirectoryOnly).Length; i++) {
                
                FileInfo fiInf = new FileInfo(Directory.GetFiles(pathPlease, "*.*", SearchOption.TopDirectoryOnly)[i]);
                String fiInfStr = fiInf.Name;
                String fiInfStillWIthExt = fiInfStr;
                fiInfStr = fiInfStr.Split('.')[0];

                // if (fiInfStillWIthExt != "desktop.ini" || 
                if ((fiInf.Attributes & FileAttributes.Hidden) != FileAttributes.Hidden)
                {

                    String panelname = "app" + i;
                    Panel app1 = new Panel();
                    app1.Show();
                    app1.BackColor = Color.Transparent;
                    app1.Width = 150;
                    app1.Height = 150;
                    app1.Margin = new Padding(20);
                    app1.BackgroundImageLayout = ImageLayout.Stretch;


                    iconMatch(Directory.GetFiles(pathPlease, "*.*", SearchOption.TopDirectoryOnly)[i]);

                    DoubleBufferManipulation.SetDoubleBuffered(app1);

                    spaceForIcons.Controls.Add(app1);

                    Panel turnip = new Panel();
                    turnip.Show();
                    turnip.BackColor = Color.Transparent;
                    turnip.Width = 150;
                    turnip.Height = 150;
                    turnip.BackgroundImageLayout = ImageLayout.Zoom;

                    IconManager areYouForRealRightNowLikeReallyRealVSWow = new IconManager();
                    app1.BackColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]);
                    //app1.BackgroundImage = Properties.Resources._20pertrans_lighterGray;
                    turnip.BackgroundImage = areYouForRealRightNowLikeReallyRealVSWow.icoExtReturner(fiInf.FullName, fiInfStr, true);

                    DoubleBufferManipulation.SetDoubleBuffered(turnip);
                    app1.Controls.Add(turnip);
                    turnip.Left = 0;
                    turnip.Top = 0;

                    Label whatEvenIsThis = new Label();
                    whatEvenIsThis.BackColor = Color.Transparent;
                    whatEvenIsThis.Show();

                    /*ImageFactory imga = new ImageFactory();

                    Properties.Resources.TheOpacityIsAlmostReal.Save("C:\\ProjectSnowshoes\\loginbacktempAA.png");
                    imga.Load("C:\\ProjectSnowshoes\\loginbacktempAA.png");
                    imga.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]));

                    whatEvenIsThis.BackgroundImage = imga.Image;*/

                    whatEvenIsThis.BackgroundImage = Image.FromFile("C:\\ProjectSnowshoes\\loginbacktempAA.png");


                    whatEvenIsThis.Width = 150;
                    whatEvenIsThis.Height = 40;
                    /* whatEvenIsThis.Text = Directory.GetFiles(pathPlease, "*.*", SearchOption.TopDirectoryOnly)[i];
                    FileInfo fiInf = new FileInfo(Directory.GetFiles(pathPlease, "*.*", SearchOption.TopDirectoryOnly)[i]);
                    String fiInfStr = fiInf.Name; 
                    fiInfStr = fiInfStr.Split('.')[0]; */
                    whatEvenIsThis.AutoSize = false;
                    whatEvenIsThis.TextAlign = ContentAlignment.MiddleCenter;
                    whatEvenIsThis.Text = fiInfStr;
                    whatEvenIsThis.ForeColor = Color.White;
                    whatEvenIsThis.Font = new System.Drawing.Font(Properties.Settings.Default.fontsOfScience[Properties.Settings.Default.whoIsThisCrazyDoge], 10);
                    turnip.Controls.Add(whatEvenIsThis);
                    whatEvenIsThis.BringToFront();
                    DoubleBufferManipulation.SetDoubleBuffered(whatEvenIsThis);
                    whatEvenIsThis.Left = 0;
                    whatEvenIsThis.Top = 110;

                    /* app1.Click += hmThatIsAReallyInterestingActionWow;                    
                    turnip.Click += hmThatIsAReallyInterestingActionWow;
                    whatEvenIsThis.Click += hmThatIsAReallyInterestingActionWow; */

                    // Yes, I had to refer to StackOverflow in order to remember how to do this following portion.
                    // Yes, I'm doing that a lot.
                    // Yes, you and my doge are judging me harshly right now.

                    app1.Click += (sender, args) =>
                    {
                        System.Diagnostics.Process.Start(fiInf.FullName);
                    };

                    turnip.Click += (sender, args) =>
                    {
                        System.Diagnostics.Process.Start(fiInf.FullName);
                    };

                    whatEvenIsThis.Click += (sender, args) =>
                    {
                        System.Diagnostics.Process.Start(fiInf.FullName);
                    };

                }


            }

            // Transition.run(spaceForIcons, "Visible", false, true, new TransitionType_EaseInEaseOut(150));
            spaceForIcons.Visible = true;
   
        }
コード例 #22
0
        /// <summary>
        /// Creates the waiting box.
        /// </summary>
        private void CreateWaitingBox()
        {
            if (!this._IsWaitingBoxCreated)
            {
                #region CreateWaitingBox

                this.waitingBox = new System.Windows.Forms.Panel();
                //ControlHelper.BindMouseMoveEvent(this.waitingBox);
                waitingBox.BackColor = Color.WhiteSmoke;

                if (!Control.Contains(waitingBox))
                {
                    _Loading = new ProgressPanel();
                    //_Loading.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
                    _Loading.Appearance.BackColor                  = System.Drawing.Color.FromArgb(60, Color.WhiteSmoke);
                    _Loading.Appearance.Font                       = new System.Drawing.Font("Tahoma", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
                    _Loading.Appearance.ForeColor                  = System.Drawing.Color.Black;
                    _Loading.Appearance.Options.UseBackColor       = true;
                    _Loading.Appearance.Options.UseFont            = true;
                    _Loading.Appearance.Options.UseForeColor       = true;
                    _Loading.AppearanceCaption.Font                = new System.Drawing.Font("Microsoft Sans Serif", 12F);
                    _Loading.AppearanceCaption.Options.UseFont     = true;
                    _Loading.AppearanceDescription.Font            = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
                    _Loading.AppearanceDescription.Options.UseFont = true;
                    _Loading.Size        = new System.Drawing.Size(223, 53);
                    _Loading.Caption     = _text;
                    _Loading.Description = "";
                    //_Loading.Dock = System.Windows.Forms.DockStyle.Fill;
                    _Loading.Margin  = new System.Windows.Forms.Padding(2, 2, 2, 2);
                    _Loading.Name    = "progressPanel1";
                    _Loading.Padding = new System.Windows.Forms.Padding(38, 0, 0, 0);
                    //_Loading.Size = new System.Drawing.Size(223, 53);
                    //_Loading.Location = new Point((Control.Width - _Loading.Width) / 2,  (Control.Height - _Loading.Height) / 2);//居中
                    _Loading.Dock = DockStyle.Top;
                    _Loading.LookAndFeel.SkinName = "Visual Studio 2013 Light";
                    _Loading.LookAndFeel.UseDefaultLookAndFeel = false;

                    _Loading.TabIndex = 0;
                    _Loading.Text     = "progressPanel1";

                    pe             = new PanelEx();
                    pe.Size        = new System.Drawing.Size(223, 75);
                    pe.Location    = new Point((Control.Width - _Loading.Width) / 2, (Control.Height - _Loading.Height) / 2);//居中
                    pe.BorderColor = Color.LightGray;
                    pe.Controls.Add(_Loading);
                    waitingBox.Controls.Add(pe);
                    Control.Controls.Add(waitingBox);
                    //取消按钮
                    buttonControl = new Xr.Common.Controls.ButtonControl();

                    buttonControl.BackColor      = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(245)))), ((int)(((byte)(245)))));
                    buttonControl.Dock           = DockStyle.None;
                    buttonControl.ForeColor      = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(131)))), ((int)(((byte)(113)))));
                    buttonControl.HoverBackColor = System.Drawing.Color.Empty;
                    buttonControl.Location       = new Point((pe.Width - buttonControl.Width) / 2 + 10, _Loading.Height);//居中
                    buttonControl.Margin         = new System.Windows.Forms.Padding(5, 0, 5, 0);
                    buttonControl.Size           = new System.Drawing.Size(50, 20);
                    buttonControl.Style          = Xr.Common.Controls.ButtonStyle.Return;
                    buttonControl.TabIndex       = 90;
                    buttonControl.TabStop        = false;
                    buttonControl.Text           = "取消";
                    buttonControl.Click         += new System.EventHandler(this.button_Click);
                    pe.Controls.Add(buttonControl);
                }

                waitingBox.Show();
                this._IsWaitingBoxCreated = true;
                #endregion
            }
            _Loading.Caption = _text;
            if (IsShowCancelBtn)
            {
                if (buttonControl != null)
                {
                    buttonControl.Visible = true;
                    pe.Size = new System.Drawing.Size(223, 75);
                }
            }
            else
            {
                if (buttonControl != null)
                {
                    buttonControl.Visible = false;
                    pe.Size = new System.Drawing.Size(223, 52);
                }
            }
            if (status == false)
            {
                Rectangle rect = Control.DisplayRectangle;
                if (rectDisplay == new Rectangle())
                {
                    rect = Control.DisplayRectangle;
                }

                else
                {
                    rect                   = rectDisplay;
                    pe.Location            = new Point((rect.Width - _Loading.Width) / 2, (rect.Height - _Loading.Height) / 2); //居中
                    buttonControl.Location = new Point((pe.Width - buttonControl.Width) / 2 + 10, _Loading.Height);             //居中
                }
                waitingBox.Width    = rect.Width;
                waitingBox.Height   = rect.Height;
                waitingBox.Location = new Point(rect.X, rect.Y);

                if (IsShowtransparencyBG)
                {
                    waitingBox.BackgroundImage = this.CreateBacgroundImage();
                    //waitingBox.BackgroundImage = Properties.Resources.logo_mini;
                    waitingBox.BackgroundImageLayout = ImageLayout.Stretch;
                }
                if (_alpha != 0f)
                {
                    waitingBox.BackgroundImage = this.CreateBacgroundImage();
                    //waitingBox.BackgroundImage = Properties.Resources.logo_mini;
                    waitingBox.BackgroundImageLayout = ImageLayout.Stretch;
                }
            }

            waitingBox.Visible = true;
            waitingBox.BringToFront();
            waitingBox.Focus();
            status = true;
        }
コード例 #23
0
ファイル: Form1.cs プロジェクト: tjaard123/typo-pop
 private void menuItem11_Click(object sender, System.EventArgs e)
 {
     panel1.Show();
 }
コード例 #24
0
ファイル: Popup.cs プロジェクト: keep01/efwplus_winformframe
        private void Task(Panel p1, int i,int count)
        {
            try
            {
                if (p1.InvokeRequired)
                {
                    SetTextCallback d = new SetTextCallback(Task);
                    p1.Invoke(d, new Object[] { p1, i,count });
                }
                else
                {
                    int w = ((PopupContent)panelContainer.Tag).Width;
                    int h = ((PopupContent)panelContainer.Tag).Height;
                    int left = ((PopupContent)panelContainer.Tag).TargetControl.FindForm().Width - w - 20;
                    int top = ((PopupContent)panelContainer.Tag).TargetControl.FindForm().Height - 40;
                    if (p1.Height >= h)
                    {
                        p1.SetBounds(left, top - h,w, h);
                    }
                    else
                    {
                        p1.SetBounds(left, top - i * (int)Convert.ToDouble(h / count), p1.Width, i * (int)Convert.ToDouble(h / count));
                    }

                    if (!p1.Visible)
                    {
                        p1.Show();
                    }
                }
            }
            catch (Exception ex)
            {
                throw new Exception("Task函数执行错误");
            }
        }
コード例 #25
0
ファイル: uscAccountsPanel.cs プロジェクト: NSGod/Procon-1
        private void ShowLayerPanel(Panel pnlShow) {
            this.pnlMainLayerServer.Hide();
            this.pnlStartPRoConLayer.Hide();
            this.pnlAccountPrivileges.Hide();

            this.m_blEditingPrivileges = false;

            if (pnlShow == this.pnlMainLayerServer) {
                this.lsvLayerAccounts.SelectedItems.Clear();
            }
            else if (pnlShow == this.pnlAccountPrivileges) {
                this.m_blEditingPrivileges = true;

                // Should be but still..
                if (this.lsvLayerAccounts.SelectedItems.Count > 0) {
                    this.uscPrivileges.AccountName = this.lsvLayerAccounts.SelectedItems[0].Text;
                }

                if (this.lsvLayerAccounts.SelectedItems.Count > 0) {
                    CPrivileges spPrivs = (CPrivileges)this.lsvLayerAccounts.SelectedItems[0].SubItems[1].Tag;

                    this.uscPrivileges.Privileges = spPrivs;
                }
                else {
                    this.uscPrivileges.Privileges = new CPrivileges();
                }
            }

            pnlShow.Show();
        }
コード例 #26
0
ファイル: Popup.cs プロジェクト: keep01/efwplus_winformframe
        private void Shadow(Panel p1, int i,int count)
        {
            try
            {
                if (p1.InvokeRequired)
                {
                    SetTextCallback d = new SetTextCallback(Shadow);
                    p1.Invoke(d, new Object[] { p1, i, count });
                }
                else
                {

                    int w = ((PopupContent)panelContainer.Tag).Width;
                    int h = ((PopupContent)panelContainer.Tag).Height;

                    if (p1.Width >= w)
                        p1.Width = w;
                    else
                        p1.Width = i * (int)Convert.ToDouble(w / count);

                    if (p1.Height >= h)
                        p1.Height = h;
                    else
                        p1.Height = i * (int)Convert.ToDouble(h / count);

                    if (!p1.Visible)
                    {
                        p1.Show();
                    }
                }
            }
            catch (Exception ex)
            {
                throw new Exception("ShowPanel函数执行错误");
            }
        }
コード例 #27
0
ファイル: MainWindow.cs プロジェクト: brnrd/MasterMind
 private void HideAllPanelsBut(Panel p1, Panel p2, Panel p3)
 {
     panelSidePlayers.Hide();
     panelSideTournaments.Hide();
     panelPlayer.Hide();
     panelPlayerList.Hide();
     panelTournament.Hide();
     panelTournamentsList.Hide();
     panelSearch.Hide();
     panelTopSearch.Hide();
     p1.Show();
     p2.Show();
     p3.Show();
 }
コード例 #28
0
        private void newPlayerCombatantUIRow(int i)
        {
            Panel combatantPanel = new System.Windows.Forms.Panel();
            Button combatantInfo = new System.Windows.Forms.Button();
            Button healButton = new System.Windows.Forms.Button();
            Button damageButton = new System.Windows.Forms.Button();
            TextBox damageTextBox = new System.Windows.Forms.TextBox();
            Label combatantHP = new System.Windows.Forms.Label();
            Label combatantAC = new System.Windows.Forms.Label();
            Label combatantName = new System.Windows.Forms.Label();

            this.combatTab.Controls.Add(combatantPanel);
            combatantPanel.SuspendLayout();
            //
            // combatantPanel
            //
            combatantPanel.Controls.Add(combatantInfo);
            combatantPanel.Controls.Add(healButton);
            combatantPanel.Controls.Add(damageButton);
            combatantPanel.Controls.Add(damageTextBox);
            combatantPanel.Controls.Add(combatantHP);
            combatantPanel.Controls.Add(combatantAC);
            combatantPanel.Controls.Add(combatantName);
            combatantPanel.Name = "combatantPanel" + i;
            combatantPanel.Parent = this.combatTab;
            combatantPanel.Size = new System.Drawing.Size(714, 30);
            combatantPanel.Location = new System.Drawing.Point(6, 31 + (i * ROW_HEIGHT));
            combatantPanel.BorderStyle = BorderStyle.FixedSingle;
            combatantPanel.TabIndex = 1;
            combatantPanel.Show();

            if (i % 2 == 1)
            {
                combatantPanel.BackColor = Color.LightBlue;
            }

            //
            // combatantInfo
            //
            combatantInfo.Name = "combatantInfo" + i;
            combatantInfo.Size = new System.Drawing.Size(28, 23);
            combatantInfo.Location = new System.Drawing.Point(683, 2);
            combatantInfo.TabIndex = 6;
            combatantInfo.Text = "...";
            combatantInfo.UseVisualStyleBackColor = true;
            combatantInfo.Parent = combatantPanel;
            combatantInfo.Show();

            //
            // healButton
            //
            healButton.Name = "healButton" + i;
            healButton.Size = new System.Drawing.Size(19, 23);
            healButton.Location = new System.Drawing.Point(600, 2);
            healButton.TabIndex = 5;
            healButton.Text = "+";
            healButton.UseVisualStyleBackColor = true;
            healButton.Parent = combatantPanel;
            healButton.Show();

            //
            // damageButton
            //
            damageButton.Name = "damageButton" + i;
            damageButton.Size = new System.Drawing.Size(19, 23);
            damageButton.Location = new System.Drawing.Point(578, 2);
            damageButton.TabIndex = 4;
            damageButton.Text = "-";
            damageButton.UseVisualStyleBackColor = true;
            damageButton.Parent = combatantPanel;
            damageButton.Show();

            //
            // damageTextBox
            //
            damageTextBox.Name = "damageTextBox" + i;
            damageTextBox.Size = new System.Drawing.Size(45, 22);
            damageTextBox.Location = new System.Drawing.Point(530, 2);
            damageTextBox.TabIndex = 3;
            damageButton.Parent = combatantPanel;
            damageButton.Show();

            //
            // combatantHP
            //
            combatantHP.AutoSize = true;
            combatantHP.Font = new System.Drawing.Font("Calibri", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            combatantHP.Name = "combatantHP" + i;
            combatantHP.Size = new System.Drawing.Size(71, 23);
            combatantHP.Location = new System.Drawing.Point(400, 2);
            combatantHP.TabIndex = 2;
            combatantHP.Text = String.Format("HP: {0}/{1}", GameManagement.playerCharacters[i].currentHitPoints, GameManagement.playerCharacters[i].hitPoints);
            combatantHP.Parent = combatantPanel;
            combatantHP.Show();

            //
            // combatantAC
            //
            combatantAC.AutoSize = true;
            combatantAC.Font = new System.Drawing.Font("Calibri", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            combatantAC.Name = "combatantAC" + i;
            combatantAC.Size = new System.Drawing.Size(60, 23);
            combatantAC.Location = new System.Drawing.Point(300, 2);
            combatantAC.TabIndex = 1;
            combatantAC.Text = "AC: " + GameManagement.playerCharacters[i].armorClass;
            combatantAC.Show();
            //
            // combatantName
            //
            combatantName.AutoSize = true;
            combatantName.Font = new System.Drawing.Font("Calibri", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            combatantName.Name = "combatantName" + i;
            combatantName.Size = new System.Drawing.Size(3, 23);
            combatantName.Location = new System.Drawing.Point(3, 2);
            combatantName.TabIndex = 0;
            combatantName.Text = GameManagement.playerCharacters[i].name;
            combatantName.Show();

            // Resume Layout
            combatantPanel.ResumeLayout(false);
            combatantPanel.PerformLayout();
        }
コード例 #29
0
        // Yeah, yeah, so I should probably make this accept params. We'll see if it happens later on. 
        private void populateUsers()
        {
            // Also shoutout to automatic definition handling 
            // Ah, C#, it's great to be here again.

            // Go through each user
            // (could have also used the count from anything else that holds a user property)
            for (int i = 0; i < Properties.Settings.Default.username.Count; i++)
            {

                int t = 0;
                
                Panel uA = new Panel();
                uA.Show();
                uA.BackColor = Color.White;
                //uA.BackColor = Color.FromName(Properties.Settings.Default.custColor[i]);
                uA.Left = 0;
                uA.Width = this.Width;
                uA.Height = 50;
                uA.Margin = new Padding(0, 2, 0, 0);
                
                userList.Controls.Add(uA);

                PictureBox pImg = new PictureBox();
                pImg.Image = Image.FromFile(Properties.Settings.Default.userimgacc_path[i]);
                pImg.Left = 0;
                pImg.Width = 50;
                pImg.Height = 50;
                pImg.Dock = DockStyle.Left;
                pImg.BackColor = Color.White;
                pImg.SizeMode = PictureBoxSizeMode.Zoom;
                
                Label turnip = new Label();
                turnip.Show();
                turnip.BackColor = Color.Transparent;
                turnip.AutoEllipsis = true;
                turnip.Left = 64;
                turnip.Width = this.Width - 64 - 50;
                turnip.Height = 50;
                turnip.Top = 0;
                turnip.Font = new System.Drawing.Font(Properties.Settings.Default.fontsOfScience[Properties.Settings.Default.whoIsThisCrazyDoge], 11);
                turnip.ForeColor = Color.DimGray;
                //turnip.ForeColor = Color.White;
                turnip.TextAlign = ContentAlignment.MiddleLeft;
                turnip.Text = Properties.Settings.Default.username[i];

                uA.Controls.Add(pImg);
                uA.Controls.Add(turnip);

                Button dl = new Button();
                dl.Show();
                dl.BackColor = Color.Firebrick;
                
                dl.Width = 50;
                dl.Left = uA.Width - 50;
                dl.Height = 50;
                dl.Dock = DockStyle.Right;

                dl.Font = new System.Drawing.Font(Properties.Settings.Default.fontsOfScience[Properties.Settings.Default.whoIsThisCrazyDoge], 11);
                dl.ForeColor = Color.White;
                dl.TextAlign = ContentAlignment.MiddleCenter;
                dl.Text = "X";

                dl.FlatStyle = FlatStyle.Flat;
                dl.FlatAppearance.BorderSize = 0;
                
                uA.Controls.Add(dl);

                // Shhhhhhhhhhh hidden controls

                Label toDel = new Label();

                toDel.Show();
                toDel.BackColor = Color.Transparent;
                toDel.AutoEllipsis = true;
                toDel.Left = 64;
                toDel.Width = this.Width - 64 - 50;
                toDel.Height = 18;
                toDel.Top = 50;
                toDel.Font = new System.Drawing.Font(Properties.Settings.Default.fontsOfScience[Properties.Settings.Default.whoIsThisCrazyDoge], 11);
                toDel.ForeColor = Color.Red;
                toDel.TextAlign = ContentAlignment.MiddleLeft;
                toDel.Text = "To delete this account, enter the password:"******"PSR002: User data incorrectly populated for matching with user element.");
                            ts.Show();
                            ts.BringToFront();
                        }
                        else if (pBox.Text == Properties.Settings.Default.woahThereHello[t])
                        {
                            
                            Properties.Settings.Default.custColor.RemoveAt(t);
                            Properties.Settings.Default.lock_path.RemoveAt(t);
                            Properties.Settings.Default.loggedIn.RemoveAt(t);
                            Properties.Settings.Default.nickname.RemoveAt(t);
                            Properties.Settings.Default.space_back_path.RemoveAt(t);
                            Properties.Settings.Default.userimgacc_path.RemoveAt(t);
                            Properties.Settings.Default.username.RemoveAt(t);
                            Properties.Settings.Default.woahThereHello.RemoveAt(t);
                            Properties.Settings.Default.fontsOfScience.RemoveAt(t);
                            Properties.Settings.Default.darkerFontsOfScience.RemoveAt(t);
                            Properties.Settings.Default.Save();

                            try
                            {
                                System.IO.Directory.Delete(@"C:\ProjectSnowshoes\User\" + turnip.Text, true); // Note that we have to use this as a source for username, since we removed it from Settings earlier.
                            }
                            catch (Exception ex)
                            {
                                // This is a terrible way to do error reporting...knowing that errors might occur here if there's a problem with accounts not having actual files
                                // Hey, all that's not going to be a problem in Escape though, since we are getting away from VC# settings...and VC# for the most part as well.
                                TheScreenIsBlue ts = new TheScreenIsBlue("PSR003: User information removed, but files damaged or missing for requested username (" + ex.HResult + ").");
                                ts.Show();
                                ts.BringToFront();
                            }

                            goBackJack();
                        }
                        else
                        {
                            pBox.Text = "";
                            toDel.Text = "That won't work. Try something else.";
                        }
                    }
                };

            }
        }