Пример #1
0
 public ChatForm(SIMClient.Main client, SIMCommon.UserProfile profile, SIMClient.Thread thread)
 {
     this.client        = client;
     this.profile       = profile;
     this.thread        = thread;
     this.offsetCounter = 0;
     InitializeComponent();
 }
Пример #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     failiureLabel.Visible   = false;
     connectingLabel.Visible = true;
     System.Net.IPAddress address;
     try
     {
         address = System.Net.IPAddress.Parse(addressTextBox.Text);
         var client = new SIMClient.Main(address);
         var f      = new SignInForm(client);
         this.Hide();
         f.Closed += (s, args) => this.Close();
         f.Show();
     }
     catch (Exception ex) when(ex is FormatException || ex is SIMClient.Main.InitializationFailiureException)
     {
         connectingLabel.Visible = false;
         failiureLabel.Visible   = true;
     }
 }
Пример #3
0
 public SignInForm(SIMClient.Main client)
 {
     this.client = client;
     InitializeComponent();
 }