private void SetStatus(string Text, string in_reply_to_status_id) { using (PostUpdate StatusForm = new PostUpdate(false)) { StatusForm.Owner = this; if (!string.IsNullOrEmpty(Text)) { StatusForm.AccountToSet = CurrentlySelectedAccount; } else { StatusForm.AccountToSet = ClientSettings.DefaultAccount; } this.statList.Visible = false; if (!string.IsNullOrEmpty(Text)) { StatusForm.StatusText = Text + " "; } IsLoaded = false; StatusForm.in_reply_to_status_id = in_reply_to_status_id; Manager.Pause(); if (StatusForm.ShowDialog() == DialogResult.OK) { this.statList.Visible = true; IsLoaded = false; //Manager.RefreshFriendsTimeLine(); } else { this.statList.Visible = true; IsLoaded = false; } Manager.Start(); this.Visible = true; IsLoaded = true; this.statList.Redraw(); this.statList.Visible = true; StatusForm.Dispose(); } }
private void linkLabel1_Click(object sender, EventArgs e) { using (PostUpdate s = new PostUpdate(false)) { s.Owner = this; s.StatusText = "@PockeTwitDev "; s.ShowDialog(); s.Hide(); string UpdateText = s.StatusText; if (s.DialogResult == DialogResult.OK) { Yedda.Twitter Twitter = Yedda.Servers.CreateConnection(s.AccountToSet); Cursor.Current = Cursors.WaitCursor; Twitter.Update(UpdateText, null, Yedda.Twitter.OutputFormatType.XML); Cursor.Current = Cursors.Default; } s.Dispose(); } }