private void CreateNewGroup(bool Exclusive) { StatusItem selectedItem = (StatusItem)statList.SelectedItem; if (selectedItem == null) { return; } if (selectedItem.Tweet.user == null) { return; } using (DefineGroup d = new DefineGroup()) { d.Owner = this; if (d.ShowDialog() == DialogResult.OK) { UserGroupTimeLine t = new UserGroupTimeLine(); t.name = d.GroupName; if(AddUserToGroup(t, Exclusive, false)) { SpecialTimeLinesRepository.Add(t); AddGroupSelectMenuItem(t); AddAddUserToGroupMenuItem(t); SpecialTimeLinesRepository.Save(); if(Exclusive) { Cursor.Current = Cursors.WaitCursor; ReloadTimeLine(); Cursor.Current = Cursors.Default; } } } d.Dispose(); } }
private void CreateNewGroup(bool Exclusive) { FingerUI.StatusItem selectedItem = (FingerUI.StatusItem)statList.SelectedItem; if (selectedItem == null) { return; } if (selectedItem.Tweet.user == null) { return; } using (DefineGroup d = new DefineGroup()) { if (d.ShowDialog() == DialogResult.OK) { SpecialTimeLine t = new SpecialTimeLine(); t.name = d.GroupName; SpecialTimeLines.Add(t); AddGroupSelectMenuItem(t); AddAddUserToGroupMenuItem(t); AddUserToGroup(t, Exclusive); } } }