示例#1
0
        private void LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
        {
            FCurrentTaskList = FDashboard.GetTaskList((XmlNode)((Control)sender).Tag);

            FCurrentTaskList.Statusbar        = FStatusbar;
            FCurrentTaskList.Dock             = DockStyle.Fill;
            TLstTasks.CurrentLedger           = FCurrentLedger;
            TLstTasks.InitiallySelectedLedger = FInitiallySelectedLedger;

            FDashboard.ShowTaskList(FCurrentTaskList);
        }
        private void LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
        {
            Object tag = ((Control)sender).Tag;

            if (tag.GetType() == typeof(TLstTasks))
            {
                FCurrentTaskList = (TLstTasks)tag;
//TLogging.Log("LinkClicked for existing " + FCurrentTaskList.Name);
            }
            else
            {
                FCurrentTaskList = new TLstTasks((XmlNode)tag, FDashboard.TaskAppearance);
//TLogging.Log("LinkClicked for NEW " + FCurrentTaskList.Name);
                ((Control)sender).Tag = FCurrentTaskList;
            }

            FCurrentTaskList.Statusbar = FStatusbar;
            FCurrentTaskList.Dock      = DockStyle.Fill;
            TLstTasks.CurrentLedger    = FCurrentLedger;

            FDashboard.ShowTaskList(FCurrentTaskList);
//            Invalidate();
        }