Exemple #1
0
        private void memberToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RemoteSource member;
            NewMember    newMemberForm = new NewMember();

            newMemberForm.ShowDialog();
            if (newMemberForm.created)
            {
                new Thread((ThreadStart) delegate {
                    string resultFile = IBMiUtils.DownloadMember(newMemberForm._lib, newMemberForm._spf, newMemberForm._mbr, (newMemberForm._type == "*NONE" ? "" : newMemberForm._type));

                    if (resultFile != "")
                    {
                        member = new RemoteSource(resultFile, newMemberForm._lib, newMemberForm._spf, newMemberForm._mbr, newMemberForm._type, true);
                        //LOCK HERE
                        member.Lock();
                        this.Invoke((MethodInvoker) delegate
                        {
                            Editor.TheEditor.AddSourceEditor(member, GetBoundLangType(newMemberForm._type));
                        });
                    }
                }).Start();
            }
            newMemberForm.Dispose();
        }
Exemple #2
0
        private void memberToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RemoteSource member;
            NewMember    newMemberForm = new NewMember();

            newMemberForm.ShowDialog();
            if (newMemberForm.created)
            {
                member = new RemoteSource("", newMemberForm._lib, newMemberForm._spf, newMemberForm._mbr, newMemberForm._type, true);
                OpenSource(member);
            }
            newMemberForm.Dispose();
        }
Exemple #3
0
        private void addmember_Click(object sender, EventArgs e)
        {
            NewMember newMemberForm = new NewMember(library.Text.Trim(), spf.Text.Trim());

            newMemberForm.ShowDialog();

            if (newMemberForm.created)
            {
                ListViewItem curItem = new ListViewItem(new string[3] {
                    newMemberForm._mbr, newMemberForm._type, newMemberForm._text
                }, 0);
                curItem.Tag = new RemoteSource("", library.Text.Trim(), spf.Text.Trim(), newMemberForm._mbr, newMemberForm._type);
                memberList.Items.Add(curItem);
            }

            newMemberForm.Dispose();
        }