Message from @Sdeck37
Discord ID: 444275748748918808
Now if only I could figure out how to pass shit from Form2 to Form1
<:GWfroggyMonkaMega:405753064100986880>
ohgod
Imagine if few years into future
You'd want to apply for a job at C# dev
_press tab_
_3 million LOC_
And the interviewer asks you to write fizzbuzz
And you just write fizzbuzz<tab>
And this shit autocompletes for you
the way i think is best
assuming Form2 is some sort of dialog
It was an old side project of mine back when I played LoL
Basically I had a Form1 which acted as a main program interface, and Form2 which was just a list that you could click on
The idea was that you'd click items you had and it would pass the needed data from it
well Form1 probably spawns Form2, so it has a reference to an instance of Form2
It sort of worked but crashed badly which now I don't remember how exactly
just add some properties on Form2
which you can then access from that instance
A++ project naming
```cs
class Form2 {
public string Username => txtUsername.Text;
public string Password => txtPassword.Text;
// Blah blah
}
...
var loginDialog = new Form2();
var result = loginDialog.ShowDialog(); // Blocks until dialog is closed
// do something with loginDialog.Username and loginDialog.Password
```
Seems the old me did this
`` public partial class ChampionList : Form
{
public string czempUsera { get; set; }
public ChampionList()
{
InitializeComponent();
var temp = File.ReadAllLines("cname.txt");
foreach (var test in temp)
{
listBox1.Items.Add(test);
}
}
...
private void ChampionList_FormClosing(object sender, FormClosingEventArgs e)
{
this.Hide();
e.Cancel = true;
}
}
}``
just need a few more `
And from main program `ChampionList okno2 = new ChampionList();`
` private void button1_Click(object sender, EventArgs e)
{
okno2.Activate();
okno2.Show();
}`
And I thought I was retarded when I called my main project folder "Arbeitsordner" (working folder) back then.
anyone know people that would be interested in some gtx 1070 ti s
new/unused
All 110 of them?
lol ofc yes
we wanna get rid of em, no idea how
wut
im not sure if 550 is too high of a price, for new and unused
and free shipping
im going less than amazon, and im offering bulk order sales
i havent found the market to sell it to
you have 110 1070 ti's?
ill get banned on leddit
yea