コード例 #1
0
ファイル: TweetList.cs プロジェクト: enersia/pocketwit
        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();
            }
        }
コード例 #2
0
ファイル: TweetList.cs プロジェクト: JakeStevenson/PockeTwit
        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);
                }
            }
        }