コード例 #1
0
ファイル: ChatForm.cs プロジェクト: stelioslogothetis/SIM
 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();
 }