C sharp help thread
 
Notifications
Clear all

C sharp help thread

Page 4 / 4

Posts: 0
(@CroNoX)
New Member
Joined: 9 years ago

If you are writing his in C#, those tabs should have their own logical name inside the controller context. So click I side the tab as tho you were adding an item them go to properties to find the name. Then you could use a simple Boolean to check if you have a connection.

	Boolean Connection (SelectApi API = SelectAPI.TargetManager)
	{
	    PS3.ChangeAPI(API);
	Boolean state = PS3.ConnectTarget();
	    if (state) state = PS3.AttachTarget();
	return state;
	}
	Boolean Is_Connected;
	private void button1_Click(object sender, EventArgs e)
	Is_Connected = Connection();
	tab_Statz.Enabled = Is_Connected;
	}
	

Something like that maybe?

Did that on my phone so I wouldn't trust Copy/Pasting it haha

Err I think I just lost myself with that xD. And yes, I'm writing in C#

Reply
Cain532
Posts: 1280
Topic starter
(@cain532)
Noble Member
Joined: 10 years ago

Err I think I just lost myself with that xD. And yes, I'm writing in C#

Haha I'd be glad to help if you want

Reply
Page 4 / 4