private void OnLoadState(object sender, WindowStateEventArgs e)
		{
			string activeTabName = (string) e.Key.GetValue("ActiveTab");
			int i = tabControl1.TabPages.IndexOfKey(activeTabName);
			if (0 <= i && i < tabControl1.TabCount)
				tabControl1.SelectedIndex = i;
		}
        private void OnLoadState(object sender, WindowStateEventArgs e)
        {
            string activeTabName = (string)e.Key.GetValue("ActiveTab");
            int    i             = tabControl1.TabPages.IndexOfKey(activeTabName);

            if (0 <= i && i < tabControl1.TabCount)
            {
                tabControl1.SelectedIndex = i;
            }
        }
 private void OnSaveState(object sender, WindowStateEventArgs e)
 {
     // save additional state information to registry
     e.Key.SetValue(projectcolumnwidth, colProject.Width);
     e.Key.SetValue(servercolumnwidth, colServer.Width);
     e.Key.SetValue(categorycolumnwidth, colCategory.Width);
     e.Key.SetValue(qnamecolumnwidth, colQName.Width);
     e.Key.SetValue(qprioritycolumnwidth, colQPriority.Width);
     e.Key.SetValue(activitycolumnwidth, colActivity.Width);
     e.Key.SetValue(detailcolumnwidth, colDetail.Width);
     e.Key.SetValue(lastbuildlabelcolumnwidth, colLastBuildLabel.Width);
     e.Key.SetValue(lastbuildtimecolumnwidth, colLastBuildTime.Width);
     e.Key.SetValue(queueviewpanelvisible, queueViewPanelVisible);
     e.Key.SetValue(queueviewsplitterposition, splitterQueueView.SplitPosition);
     e.Key.SetValue(projectviewmode, lvProjects.View.ToString());
 }
        private void OnLoadState(object sender, WindowStateEventArgs e)
        {
            // get additional state information from registry
            colProject.Width = (int)e.Key.GetValue(projectcolumnwidth, 160);
            colServer.Width = (int)e.Key.GetValue(servercolumnwidth, 100);
            colCategory.Width = (int)e.Key.GetValue(categorycolumnwidth, 100);
            colActivity.Width = (int)e.Key.GetValue(activitycolumnwidth, 132);
            colDetail.Width = (int)e.Key.GetValue(detailcolumnwidth, 250);
            colLastBuildLabel.Width = (int)e.Key.GetValue(lastbuildlabelcolumnwidth, 120);
            colLastBuildTime.Width = (int)e.Key.GetValue(lastbuildtimecolumnwidth, 130);
            colQName.Width = (int)e.Key.GetValue(qnamecolumnwidth, 130);
            colQPriority.Width = (int)e.Key.GetValue(qprioritycolumnwidth, 130);

            queueViewPanelVisible = bool.Parse(e.Key.GetValue(queueviewpanelvisible, bool.FalseString).ToString());
            splitterQueueView.Visible = queueViewPanelVisible;
            pnlViewQueues.Visible = queueViewPanelVisible;
            queueTreeView.Visible = queueViewPanelVisible;
            UpdateViewQueuesButtonLabel();
            splitterQueueView.SplitPosition = (int)e.Key.GetValue(queueviewsplitterposition, 80);
            lvProjects.View = (View)Enum.Parse(typeof(View), (string)e.Key.GetValue(projectviewmode, View.Details.ToString()));


        }
		private void OnSaveState(object sender, WindowStateEventArgs e)
		{
			e.Key.SetValue("ActiveTab", tabControl1.SelectedTab.Name);
		}
Beispiel #6
0
 private void OnSaveState(object sender, WindowStateEventArgs e)
 {
     // save additional state information to registry
     e.Key.SetValue("ProjectColumnWidth", colProject.Width);
     e.Key.SetValue("ServerColumnWidth", colServer.Width);
     e.Key.SetValue("CategoryColumnWidth", colCategory.Width);
     e.Key.SetValue("ActivityColumnWidth", colActivity.Width);
     e.Key.SetValue("DetailColumnWidth", colDetail.Width);
     e.Key.SetValue("LastBuildLabelColumnWidth", colLastBuildLabel.Width);
     e.Key.SetValue("LastBuildTimeColumnWidth", colLastBuildTime.Width);
     e.Key.SetValue("QueueViewPanelVisible", queueViewPanelVisible);
     e.Key.SetValue("QueueViewSplitterPosition", splitterQueueView.SplitPosition);
     e.Key.SetValue("ProjectViewMode", lvProjects.View.ToString());
 }
Beispiel #7
0
 private void OnLoadState(object sender, WindowStateEventArgs e)
 {
     // get additional state information from registry
     colProject.Width = (int)e.Key.GetValue("ProjectColumnWidth", 160);
     colServer.Width = (int)e.Key.GetValue("ServerColumnWidth", 100);
     colCategory.Width = (int)e.Key.GetValue("CategoryColumnWidth", 100);
     colActivity.Width = (int)e.Key.GetValue("ActivityColumnWidth", 132);
     colDetail.Width = (int)e.Key.GetValue("DetailColumnWidth", 250);
     colLastBuildLabel.Width = (int)e.Key.GetValue("LastBuildLabelColumnWidth", 120);
     colLastBuildTime.Width = (int)e.Key.GetValue("LastBuildTimeColumnWidth", 130);
     queueViewPanelVisible = bool.Parse(e.Key.GetValue("QueueViewPanelVisible", bool.FalseString).ToString());
     splitterQueueView.Visible = queueViewPanelVisible;
     pnlViewQueues.Visible = queueViewPanelVisible;
     queueTreeView.Visible = queueViewPanelVisible;
     UpdateViewQueuesButtonLabel();
     splitterQueueView.SplitPosition = (int)e.Key.GetValue("QueueViewSplitterPosition", 80);
     lvProjects.View = (View)Enum.Parse(typeof(View), (string)e.Key.GetValue("ProjectViewMode", View.Details.ToString()));
 }
 private void OnSaveState(object sender, WindowStateEventArgs e)
 {
     e.Key.SetValue("ActiveTab", tabControl1.SelectedTab.Name);
 }