private void comboBoxProject_SelectedIndexChanged(object sender, EventArgs e)
        {
            object o = comboBoxProject.SelectedItem;

            if (null == o)
            {
                return;
            }
            KopsikApi.KopsikViewItem item = (KopsikApi.KopsikViewItem)o;
            KopsikApi.kopsik_set_time_entry_project(KopsikApi.ctx,
                                                    GUID, 0, item.ID, "");
        }
Ejemplo n.º 2
0
        public static List <KopsikApi.KopsikViewItem> ConvertToViewItemList(
            ref KopsikApi.KopsikViewItem first)
        {
            List <KopsikApi.KopsikViewItem> list = new List <KopsikApi.KopsikViewItem>();

            if (Object.ReferenceEquals(null, first))
            {
                return(list);
            }
            KopsikApi.KopsikViewItem n = first;
            while (true)
            {
                list.Add(n);
                if (n.Next == IntPtr.Zero)
                {
                    break;
                }
                n = (KopsikApi.KopsikViewItem)Marshal.PtrToStructure(
                    n.Next, typeof(KopsikApi.KopsikViewItem));
            }
            ;
            return(list);
        }
Ejemplo n.º 3
0
        public static List <KopsikApi.KopsikViewItem> ConvertToViewItemList(
            IntPtr first)
        {
            List <KopsikApi.KopsikViewItem> list = new List <KopsikApi.KopsikViewItem>();

            if (IntPtr.Zero == first)
            {
                return(list);
            }
            KopsikApi.KopsikViewItem n = (KopsikApi.KopsikViewItem)Marshal.PtrToStructure(
                first, typeof(KopsikApi.KopsikViewItem));
            while (true)
            {
                list.Add(n);
                if (n.Next == IntPtr.Zero)
                {
                    break;
                }
                n = (KopsikApi.KopsikViewItem)Marshal.PtrToStructure(
                    n.Next, typeof(KopsikApi.KopsikViewItem));
            }
            ;
            return(list);
        }
        void OnWorkspaceSelect(ref KopsikApi.KopsikViewItem first)
        {
            List <KopsikApi.KopsikViewItem> list = KopsikApi.ConvertToViewItemList(ref first);

            DisplayWorkspaceSelect(list);
        }
        void OnTags(ref KopsikApi.KopsikViewItem first)
        {
            List <KopsikApi.KopsikViewItem> list = KopsikApi.ConvertToViewItemList(ref first);

            DisplayTags(list);
        }
        void OnClientSelect(ref KopsikApi.KopsikViewItem first)
        {
            List <KopsikApi.KopsikViewItem> list = KopsikApi.ConvertToViewItemList(ref first);

            DisplayClientSelect(list);
        }