Multipurpose button



  • @bstorer said:

    @morbiuswilters said:

    @blakeyrat said:

    or do you think every thread about someone's penis, someone's mom, or Fallout 3 is entirely factually accurate?

    My dick is so big it tore pstorer's fat mom in half like a mininuke.

    That's factually inaccurate!  It tore her in half like an Auto Axe.

    It's obvious I hit a nerve with my joke about mininukes.  That's why you wrote several.. letters defending the Auto Axe.  It's fine, you can just admit it.  If you love the Auto Axe so much, why don't you marry it?



  • @morbiuswilters said:

    @bstorer said:

    @morbiuswilters said:

    @blakeyrat said:

    or do you think every thread about someone's penis, someone's mom, or Fallout 3 is entirely factually accurate?

    My dick is so big it tore pstorer's fat mom in half like a mininuke.

    That's factually inaccurate!  It tore her in half like an Auto Axe.

    It's obvious I hit a nerve with my joke about mininukes.  That's why you wrote several.. letters defending the Auto Axe.  It's fine, you can just admit it.  If you love the Auto Axe so much, why don't you marry it?

    No!  I have been outed as an Auto Axe apologist!  Curse you, false dichotomies!  CURSE YOU!


  •  I'd like to use the auto axe once, but I'm not sure I'll continue with the expansion packs.



  • @dhromed said:

     I'd like to use the auto axe once, but I'm not sure I'll continue with the expansion packs.

     

    it's a pretty neat weapon. Like a longer range ripper with more damage. It's just somewhat more annoying to repair (without the right mod).



  • The Pitt is worth it for the Perforator. That weapon is fantastic.



  • @Welbog said:

    The Pitt is worth it for the Perforator. That weapon is fantastic.

    Yes, I would take a 5000 km/s Perforator over grenades any day.



  • This reminds me of horrible stuff I would do way back in preteen years.  I would take all the buttons on all my forms in an application and hook them up to one massive event handler in a seperate class.  The equivalent today in c# would be something like this abomination.  This may not compile but I think it gets the point across.  Also OP, is your coworker 12 years old?

     

    <FONT color=#0000ff size=2><FONT color=#0000ff size=2>

    class </FONT></FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>buttonHandler
    </FONT></FONT><FONT size=2>{
    </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>  internal</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>void</FONT></FONT><FONT size=2> button_Click(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>object</FONT></FONT><FONT size=2> sender, </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>EventArgs</FONT></FONT><FONT size=2> e)
      {
    </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>    Button</FONT></FONT><FONT size=2> buttonClicked = (</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Button</FONT></FONT><FONT size=2>)sender;
    </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>    if</FONT></FONT><FONT size=2> (buttonClicked.Text == </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Add"</FONT></FONT><FONT size=2>)
        {
    </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>      //SuperForm inherits from Form and adds abstract method definition for Add
    </FONT></FONT><FONT size=2>      ((SuperForm)buttonClicked.FindForm()).Add();
        }
      }
    }</FONT>

    <FONT size=2><FONT color=#0000ff size=2><FONT color=#0000ff size=2>

    public</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>partial</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>class</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Form1</FONT></FONT><FONT size=2> : SuperForm
    {
      <FONT color=#0000ff size=2><FONT color=#0000ff size=2>private</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>void</FONT></FONT><FONT size=2> InitializeComponent()
      {
        <FONT color=#0000ff size=2><FONT color=#0000ff size=2>this</FONT></FONT><FONT size=2>.button1.Location = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> System.Drawing.</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Point</FONT></FONT><FONT size=2>(109, 126);
    </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>    this</FONT></FONT><FONT size=2>.button1.Name = </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"button1"</FONT></FONT><FONT size=2>;
    </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>    this</FONT></FONT><FONT size=2>.button1.Size = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> System.Drawing.</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Size</FONT></FONT><FONT size=2>(75, 23);
    </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>    this</FONT></FONT><FONT size=2>.button1.TabIndex = 0;
    </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>    this</FONT></FONT><FONT size=2>.button1.Text = </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Add"</FONT></FONT><FONT size=2>;
    </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>    this</FONT></FONT><FONT size=2>.button1.UseVisualStyleBackColor = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>true</FONT></FONT><FONT size=2>;
    </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>    this</FONT></FONT><FONT size=2>.button1.Click += </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> System.</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>EventHandler</FONT></FONT><FONT size=2>(</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>buttonHandler</FONT></FONT><FONT size=2>.button_Click);</FONT>
    </FONT>  }

      </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>internal</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>void</FONT></FONT><FONT size=2> Add()
      {
    </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>    //do something
    </FONT></FONT><FONT size=2>  }
    }

    </FONT></FONT>


  • @galgorah said:

    This reminds me of horrible stuff I would do way back in preteen years.  I would take all the buttons on all my forms in an application and hook them up to one massive event handler in a seperate class. 

    You were writing Windows Forms apps in your pre-teen years? God I'm old.



  • @blakeyrat said:

    You were writing Windows Forms apps in your pre-teen years? God I'm old.
       

    I did these abomination around vb 3 or 4.  Before that I was programming in c++, assembly, and BASIC (started in the 80's thanks to my father). The code is almost two decades old.  Which I guess makes you ancient since I'm 28 now.


Log in to reply