Пример #1
0
		public static void BuildDropDownButton(DropDownButton obj)
		{
			string listValue=null;
			for (int i=0;i<obj.Items.Count;i++)
			{
				listValue=Pub.GetSetting(obj.Name+i);
				if (listValue!=null) obj.Items[i].Text=listValue;
			}
			
		}
Пример #2
0
		private void mergeOpen1_DropDownClick(object sender,  DropDownButton.DropDownClickEventArgs  e)
		{
			DropDownButton obj=sender as DropDownButton;
			switch  (e.ClickItem.MergeOrder)
			{
				case -1:
					if (obj.Name=="mergeOpen1")
						buildToMerge1();
					else
						buildToMerge2();
					//keepUnit_CheckedChanged(null,null);
					break;
				default:
					mergeOpenFile(obj,e.ClickItem.Text);
					break;
			}

		}
Пример #3
0
		private void buildOpen_DropDownClick(object sender,  DropDownButton.DropDownClickEventArgs  e)
		{
			switch  (e.ClickItem.MergeOrder)
			{
				case -3:
					merge1ToBuild();
					break;
				case -2:
					merge2ToBuild();
					break;
				case -1:
					mergeToBuild();
					break;
				default:
					//					OpenFile(buildOpen,capBuild,buildSource,(sender as MenuItem).Text);
					buildOpenFile(e.ClickItem.Text);

					break;
			}
		}
Пример #4
0
		private void mergeOpenFile(DropDownButton sender ,string FileName)
		{
			Caption ct=null;
			if (sender.Name=="mergeOpen1")
			{
				ct=capMerge.Caption1=Pub.LoadFile(FileName,mergeSource1);
				if (ct==null) return;
				timeBaseLine1.Value=ct.TimeBaseLine;//new TimeSpan(0);
			}
			else
			{
				ct=capMerge.Caption2=Pub.LoadFile(FileName,mergeSource2);
				if (ct==null) return;
				timeBaseLine2.Value=ct.TimeBaseLine;//new TimeSpan(0);
			}
			if (ct!=null) sender.AddMenu(FileName);
			//keepUnit_CheckedChanged(null,null);
		}
Пример #5
0
		private void buildSave_DropDownClick(object sender,  DropDownButton.DropDownClickEventArgs e)
		{
			switch  (e.ClickItem.MergeOrder)
			{
				case -2:
//					mergeSource1.Text=buildTarget.Text;
//					capMerge.Caption1=capBuild;
//					timeBaseLine1.Value=capBuild.TimeBaseLine;
					buildToMerge1();
					break;
				case -1:
//					mergeSource2.Text=buildTarget.Text;
//					capMerge.Caption2=capBuild;
//					timeBaseLine2.Value=capBuild.TimeBaseLine;
					buildToMerge2();
					break;
				default:
					buildSave.AddMenu(Pub.SaveFile(capBuild.ToString(),e.ClickItem.Text,false));
					break;
			}

		}