コード例 #1
0
 public void SetObject(CorpWalletNameObject obj)
 {
     m_OriginalNames.Clear();
     AddName(obj.Name0);
     AddName(obj.Name1);
     AddName(obj.Name2);
     AddName(obj.Name3);
     AddName(obj.Name4);
     AddName(obj.Name5);
     AddName(obj.Name6);
 }
コード例 #2
0
ファイル: Form1.CorpTrans.cs プロジェクト: Siern/EveJournal
        private void CorpTransInit()
        {
            int idx2 = this.comboBoxCorpTrans.SelectedIndex;

            comboBoxCorpTrans.Items.Clear();
            CorpWalletNameObject wallet = ReadWalletNames() as CorpWalletNameObject;
            comboBoxCorpTrans.Items.Add(new JournalFilterObject("All", (long[])null));
            comboBoxCorpTrans.Items.Add(new JournalFilterObject(wallet.Name0, new long[] { 1000 }));
            comboBoxCorpTrans.Items.Add(new JournalFilterObject(wallet.Name1, new long[] { 1001 }));
            comboBoxCorpTrans.Items.Add(new JournalFilterObject(wallet.Name2, new long[] { 1002 }));
            comboBoxCorpTrans.Items.Add(new JournalFilterObject(wallet.Name3, new long[] { 1003 }));
            comboBoxCorpTrans.Items.Add(new JournalFilterObject(wallet.Name4, new long[] { 1004 }));
            comboBoxCorpTrans.Items.Add(new JournalFilterObject(wallet.Name5, new long[] { 1005 }));
            comboBoxCorpTrans.Items.Add(new JournalFilterObject(wallet.Name6, new long[] { 1006 }));
            if (-1 == idx2)
                idx2 = 0;
            this.comboBoxCorpTrans.SelectedIndex = idx2;
        }
コード例 #3
0
ファイル: Form1.CorpJournal.cs プロジェクト: Siern/EveJournal
        private void CorpJournalInit()
        {
            int idx = comboBoxCorpJournalFilter.SelectedIndex;

            comboBoxCorpJournalFilter.Items.Clear();
            comboBoxCorpJournalFilter.Items.Add(new JournalFilterObject("None", (long[])null));
            foreach (int key in AppData.ReferenceName.Keys)
            {
                comboBoxCorpJournalFilter.Items.Add(
                    new JournalFilterObject(AppData.ReferenceName[key],
                                            new Int32[] { key }));
            }
            if (-1 == idx)
            {
                idx = 0;
            }
            comboBoxCorpJournalFilter.SelectedIndex = idx;

            int idx2 = comboBoxCorpJournal.SelectedIndex;

            comboBoxCorpJournal.Items.Clear();
            CorpWalletNameObject wallet = ReadWalletNames() as CorpWalletNameObject;

            comboBoxCorpJournal.Items.Add(new JournalFilterObject("All", (long[])null));
            comboBoxCorpJournal.Items.Add(new JournalFilterObject(wallet.Name0, new long[] { 1000 }));
            comboBoxCorpJournal.Items.Add(new JournalFilterObject(wallet.Name1, new long[] { 1001 }));
            comboBoxCorpJournal.Items.Add(new JournalFilterObject(wallet.Name2, new long[] { 1002 }));
            comboBoxCorpJournal.Items.Add(new JournalFilterObject(wallet.Name3, new long[] { 1003 }));
            comboBoxCorpJournal.Items.Add(new JournalFilterObject(wallet.Name4, new long[] { 1004 }));
            comboBoxCorpJournal.Items.Add(new JournalFilterObject(wallet.Name5, new long[] { 1005 }));
            comboBoxCorpJournal.Items.Add(new JournalFilterObject(wallet.Name6, new long[] { 1006 }));
            if (-1 == idx2)
            {
                idx2 = 0;
            }
            comboBoxCorpJournal.SelectedIndex = idx2;
        }